diff --git a/providers/src/aws/v00.00.00000/services/accessanalyzer.yaml b/providers/src/aws/v00.00.00000/services/accessanalyzer.yaml index 6869f31a..7bf58b39 100644 --- a/providers/src/aws/v00.00.00000/services/accessanalyzer.yaml +++ b/providers/src/aws/v00.00.00000/services/accessanalyzer.yaml @@ -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: |- @@ -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: diff --git a/providers/src/aws/v00.00.00000/services/acmpca.yaml b/providers/src/aws/v00.00.00000/services/acmpca.yaml index 71bdb766..799494dd 100644 --- a/providers/src/aws/v00.00.00000/services/acmpca.yaml +++ b/providers/src/aws/v00.00.00000/services/acmpca.yaml @@ -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: |- @@ -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 diff --git a/providers/src/aws/v00.00.00000/services/amplify.yaml b/providers/src/aws/v00.00.00000/services/amplify.yaml index 035ab217..4f6e71ca 100644 --- a/providers/src/aws/v00.00.00000/services/amplify.yaml +++ b/providers/src/aws/v00.00.00000/services/amplify.yaml @@ -1273,10 +1273,33 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Amplify::App' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessToken') as access_token, + JSON_EXTRACT(detail.Properties, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.AppName') as app_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AutoBranchCreationConfig') as auto_branch_creation_config, + JSON_EXTRACT(detail.Properties, '$.BasicAuthConfig') as basic_auth_config, + JSON_EXTRACT(detail.Properties, '$.BuildSpec') as build_spec, + JSON_EXTRACT(detail.Properties, '$.CustomHeaders') as custom_headers, + JSON_EXTRACT(detail.Properties, '$.CustomRules') as custom_rules, + JSON_EXTRACT(detail.Properties, '$.DefaultDomain') as default_domain, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnableBranchAutoDeletion') as enable_branch_auto_deletion, + JSON_EXTRACT(detail.Properties, '$.EnvironmentVariables') as environment_variables, + JSON_EXTRACT(detail.Properties, '$.IAMServiceRole') as iam_service_role, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OauthToken') as oauth_token, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.Repository') as repository, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Amplify::App' + AND detail.data__TypeName = 'AWS::Amplify::App' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1309,10 +1332,143 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Amplify::App' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessToken') as access_token, + json_extract_path_text(detail.Properties, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'AppName') as app_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AutoBranchCreationConfig') as auto_branch_creation_config, + json_extract_path_text(detail.Properties, 'BasicAuthConfig') as basic_auth_config, + json_extract_path_text(detail.Properties, 'BuildSpec') as build_spec, + json_extract_path_text(detail.Properties, 'CustomHeaders') as custom_headers, + json_extract_path_text(detail.Properties, 'CustomRules') as custom_rules, + json_extract_path_text(detail.Properties, 'DefaultDomain') as default_domain, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnableBranchAutoDeletion') as enable_branch_auto_deletion, + json_extract_path_text(detail.Properties, 'EnvironmentVariables') as environment_variables, + json_extract_path_text(detail.Properties, 'IAMServiceRole') as iam_service_role, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OauthToken') as oauth_token, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'Repository') as repository, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Amplify::App' + AND detail.data__TypeName = 'AWS::Amplify::App' + AND listing.region = 'us-east-1' + apps_list_only: + name: apps_list_only + id: aws.amplify.apps_list_only + x-cfn-schema-name: App + x-cfn-type-name: AWS::Amplify::App + 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::Amplify::App' + 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::Amplify::App' + AND region = 'us-east-1' + app_tags: + name: app_tags + id: aws.amplify.app_tags + x-cfn-schema-name: App + x-cfn-type-name: AWS::Amplify::App + 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, '$.AccessToken') as access_token, + JSON_EXTRACT(detail.Properties, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.AppName') as app_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AutoBranchCreationConfig') as auto_branch_creation_config, + JSON_EXTRACT(detail.Properties, '$.BasicAuthConfig') as basic_auth_config, + JSON_EXTRACT(detail.Properties, '$.BuildSpec') as build_spec, + JSON_EXTRACT(detail.Properties, '$.CustomHeaders') as custom_headers, + JSON_EXTRACT(detail.Properties, '$.CustomRules') as custom_rules, + JSON_EXTRACT(detail.Properties, '$.DefaultDomain') as default_domain, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnableBranchAutoDeletion') as enable_branch_auto_deletion, + JSON_EXTRACT(detail.Properties, '$.EnvironmentVariables') as environment_variables, + JSON_EXTRACT(detail.Properties, '$.IAMServiceRole') as iam_service_role, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OauthToken') as oauth_token, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.Repository') as repository + 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::Amplify::App' + AND detail.data__TypeName = 'AWS::Amplify::App' + 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, 'AccessToken') as access_token, + json_extract_path_text(detail.Properties, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'AppName') as app_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AutoBranchCreationConfig') as auto_branch_creation_config, + json_extract_path_text(detail.Properties, 'BasicAuthConfig') as basic_auth_config, + json_extract_path_text(detail.Properties, 'BuildSpec') as build_spec, + json_extract_path_text(detail.Properties, 'CustomHeaders') as custom_headers, + json_extract_path_text(detail.Properties, 'CustomRules') as custom_rules, + json_extract_path_text(detail.Properties, 'DefaultDomain') as default_domain, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnableBranchAutoDeletion') as enable_branch_auto_deletion, + json_extract_path_text(detail.Properties, 'EnvironmentVariables') as environment_variables, + json_extract_path_text(detail.Properties, 'IAMServiceRole') as iam_service_role, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OauthToken') as oauth_token, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'Repository') as repository + 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::Amplify::App' + AND detail.data__TypeName = 'AWS::Amplify::App' + AND listing.region = 'us-east-1' branches: name: branches id: aws.amplify.branches @@ -1398,10 +1554,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Amplify::Branch' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.BasicAuthConfig') as basic_auth_config, + JSON_EXTRACT(detail.Properties, '$.Backend') as backend, + JSON_EXTRACT(detail.Properties, '$.BranchName') as branch_name, + JSON_EXTRACT(detail.Properties, '$.BuildSpec') as build_spec, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnableAutoBuild') as enable_auto_build, + JSON_EXTRACT(detail.Properties, '$.EnablePerformanceMode') as enable_performance_mode, + JSON_EXTRACT(detail.Properties, '$.EnablePullRequestPreview') as enable_pull_request_preview, + JSON_EXTRACT(detail.Properties, '$.EnvironmentVariables') as environment_variables, + JSON_EXTRACT(detail.Properties, '$.Framework') as framework, + JSON_EXTRACT(detail.Properties, '$.PullRequestEnvironmentName') as pull_request_environment_name, + JSON_EXTRACT(detail.Properties, '$.Stage') as stage, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Amplify::Branch' + AND detail.data__TypeName = 'AWS::Amplify::Branch' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1430,10 +1605,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Amplify::Branch' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'BasicAuthConfig') as basic_auth_config, + json_extract_path_text(detail.Properties, 'Backend') as backend, + json_extract_path_text(detail.Properties, 'BranchName') as branch_name, + json_extract_path_text(detail.Properties, 'BuildSpec') as build_spec, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnableAutoBuild') as enable_auto_build, + json_extract_path_text(detail.Properties, 'EnablePerformanceMode') as enable_performance_mode, + json_extract_path_text(detail.Properties, 'EnablePullRequestPreview') as enable_pull_request_preview, + json_extract_path_text(detail.Properties, 'EnvironmentVariables') as environment_variables, + json_extract_path_text(detail.Properties, 'Framework') as framework, + json_extract_path_text(detail.Properties, 'PullRequestEnvironmentName') as pull_request_environment_name, + json_extract_path_text(detail.Properties, 'Stage') as stage, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Amplify::Branch' + AND detail.data__TypeName = 'AWS::Amplify::Branch' + AND listing.region = 'us-east-1' + branches_list_only: + name: branches_list_only + id: aws.amplify.branches_list_only + x-cfn-schema-name: Branch + x-cfn-type-name: AWS::Amplify::Branch + 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::Amplify::Branch' + 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::Amplify::Branch' + AND region = 'us-east-1' + branch_tags: + name: branch_tags + id: aws.amplify.branch_tags + x-cfn-schema-name: Branch + x-cfn-type-name: AWS::Amplify::Branch + 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, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.BasicAuthConfig') as basic_auth_config, + JSON_EXTRACT(detail.Properties, '$.Backend') as backend, + JSON_EXTRACT(detail.Properties, '$.BranchName') as branch_name, + JSON_EXTRACT(detail.Properties, '$.BuildSpec') as build_spec, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnableAutoBuild') as enable_auto_build, + JSON_EXTRACT(detail.Properties, '$.EnablePerformanceMode') as enable_performance_mode, + JSON_EXTRACT(detail.Properties, '$.EnablePullRequestPreview') as enable_pull_request_preview, + JSON_EXTRACT(detail.Properties, '$.EnvironmentVariables') as environment_variables, + JSON_EXTRACT(detail.Properties, '$.Framework') as framework, + JSON_EXTRACT(detail.Properties, '$.PullRequestEnvironmentName') as pull_request_environment_name, + JSON_EXTRACT(detail.Properties, '$.Stage') as stage + 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::Amplify::Branch' + AND detail.data__TypeName = 'AWS::Amplify::Branch' + 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, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'BasicAuthConfig') as basic_auth_config, + json_extract_path_text(detail.Properties, 'Backend') as backend, + json_extract_path_text(detail.Properties, 'BranchName') as branch_name, + json_extract_path_text(detail.Properties, 'BuildSpec') as build_spec, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnableAutoBuild') as enable_auto_build, + json_extract_path_text(detail.Properties, 'EnablePerformanceMode') as enable_performance_mode, + json_extract_path_text(detail.Properties, 'EnablePullRequestPreview') as enable_pull_request_preview, + json_extract_path_text(detail.Properties, 'EnvironmentVariables') as environment_variables, + json_extract_path_text(detail.Properties, 'Framework') as framework, + json_extract_path_text(detail.Properties, 'PullRequestEnvironmentName') as pull_request_environment_name, + json_extract_path_text(detail.Properties, 'Stage') as stage + 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::Amplify::Branch' + AND detail.data__TypeName = 'AWS::Amplify::Branch' + AND listing.region = 'us-east-1' domains: name: domains id: aws.amplify.domains @@ -1517,10 +1813,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Amplify::Domain' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AutoSubDomainCreationPatterns') as auto_sub_domain_creation_patterns, + JSON_EXTRACT(detail.Properties, '$.AutoSubDomainIAMRole') as auto_sub_domain_iam_role, + JSON_EXTRACT(detail.Properties, '$.CertificateRecord') as certificate_record, + JSON_EXTRACT(detail.Properties, '$.Certificate') as certificate, + JSON_EXTRACT(detail.Properties, '$.CertificateSettings') as certificate_settings, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainStatus') as domain_status, + JSON_EXTRACT(detail.Properties, '$.UpdateStatus') as update_status, + JSON_EXTRACT(detail.Properties, '$.EnableAutoSubDomain') as enable_auto_sub_domain, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.SubDomainSettings') as sub_domain_settings + 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::Amplify::Domain' + AND detail.data__TypeName = 'AWS::Amplify::Domain' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1547,10 +1860,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Amplify::Domain' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AutoSubDomainCreationPatterns') as auto_sub_domain_creation_patterns, + json_extract_path_text(detail.Properties, 'AutoSubDomainIAMRole') as auto_sub_domain_iam_role, + json_extract_path_text(detail.Properties, 'CertificateRecord') as certificate_record, + json_extract_path_text(detail.Properties, 'Certificate') as certificate, + json_extract_path_text(detail.Properties, 'CertificateSettings') as certificate_settings, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainStatus') as domain_status, + json_extract_path_text(detail.Properties, 'UpdateStatus') as update_status, + json_extract_path_text(detail.Properties, 'EnableAutoSubDomain') as enable_auto_sub_domain, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'SubDomainSettings') as sub_domain_settings + 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::Amplify::Domain' + AND detail.data__TypeName = 'AWS::Amplify::Domain' + AND listing.region = 'us-east-1' + domains_list_only: + name: domains_list_only + id: aws.amplify.domains_list_only + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::Amplify::Domain + 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::Amplify::Domain' + 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::Amplify::Domain' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/amplifyuibuilder.yaml b/providers/src/aws/v00.00.00000/services/amplifyuibuilder.yaml index a34c3a06..300f271d 100644 --- a/providers/src/aws/v00.00.00000/services/amplifyuibuilder.yaml +++ b/providers/src/aws/v00.00.00000/services/amplifyuibuilder.yaml @@ -1484,12 +1484,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AppId') as app_id, - JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Component' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.BindingProperties') as binding_properties, + JSON_EXTRACT(detail.Properties, '$.Children') as children, + JSON_EXTRACT(detail.Properties, '$.CollectionProperties') as collection_properties, + JSON_EXTRACT(detail.Properties, '$.ComponentType') as component_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Events') as events, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Overrides') as overrides, + JSON_EXTRACT(detail.Properties, '$.Properties') as properties, + JSON_EXTRACT(detail.Properties, '$.SchemaVersion') as schema_version, + JSON_EXTRACT(detail.Properties, '$.SourceId') as source_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Variants') as variants + 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::AmplifyUIBuilder::Component' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Component' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1520,12 +1539,143 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AppId') as app_id, - json_extract_path_text(Properties, 'EnvironmentName') as environment_name, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Component' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'BindingProperties') as binding_properties, + json_extract_path_text(detail.Properties, 'Children') as children, + json_extract_path_text(detail.Properties, 'CollectionProperties') as collection_properties, + json_extract_path_text(detail.Properties, 'ComponentType') as component_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Events') as events, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Overrides') as overrides, + json_extract_path_text(detail.Properties, 'Properties') as properties, + json_extract_path_text(detail.Properties, 'SchemaVersion') as schema_version, + json_extract_path_text(detail.Properties, 'SourceId') as source_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Variants') as variants + 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::AmplifyUIBuilder::Component' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Component' + AND listing.region = 'us-east-1' + components_list_only: + name: components_list_only + id: aws.amplifyuibuilder.components_list_only + x-cfn-schema-name: Component + x-cfn-type-name: AWS::AmplifyUIBuilder::Component + x-identifiers: + - AppId + - EnvironmentName + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AppId') as app_id, + JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Component' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AppId') as app_id, + json_extract_path_text(Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Component' + AND region = 'us-east-1' + component_tags: + name: component_tags + id: aws.amplifyuibuilder.component_tags + x-cfn-schema-name: Component + x-cfn-type-name: AWS::AmplifyUIBuilder::Component + 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, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.BindingProperties') as binding_properties, + JSON_EXTRACT(detail.Properties, '$.Children') as children, + JSON_EXTRACT(detail.Properties, '$.CollectionProperties') as collection_properties, + JSON_EXTRACT(detail.Properties, '$.ComponentType') as component_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Events') as events, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Overrides') as overrides, + JSON_EXTRACT(detail.Properties, '$.Properties') as properties, + JSON_EXTRACT(detail.Properties, '$.SchemaVersion') as schema_version, + JSON_EXTRACT(detail.Properties, '$.SourceId') as source_id, + JSON_EXTRACT(detail.Properties, '$.Variants') as variants + 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::AmplifyUIBuilder::Component' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Component' + 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, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'BindingProperties') as binding_properties, + json_extract_path_text(detail.Properties, 'Children') as children, + json_extract_path_text(detail.Properties, 'CollectionProperties') as collection_properties, + json_extract_path_text(detail.Properties, 'ComponentType') as component_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Events') as events, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Overrides') as overrides, + json_extract_path_text(detail.Properties, 'Properties') as properties, + json_extract_path_text(detail.Properties, 'SchemaVersion') as schema_version, + json_extract_path_text(detail.Properties, 'SourceId') as source_id, + json_extract_path_text(detail.Properties, 'Variants') as variants + 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::AmplifyUIBuilder::Component' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Component' + AND listing.region = 'us-east-1' forms: name: forms id: aws.amplifyuibuilder.forms @@ -1611,12 +1761,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AppId') as app_id, - JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Form' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.Cta') as cta, + JSON_EXTRACT(detail.Properties, '$.DataType') as data_type, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Fields') as fields, + JSON_EXTRACT(detail.Properties, '$.FormActionType') as form_action_type, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LabelDecorator') as label_decorator, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SchemaVersion') as schema_version, + JSON_EXTRACT(detail.Properties, '$.SectionalElements') as sectional_elements, + JSON_EXTRACT(detail.Properties, '$.Style') as style, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AmplifyUIBuilder::Form' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Form' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1643,12 +1808,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AppId') as app_id, - json_extract_path_text(Properties, 'EnvironmentName') as environment_name, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Form' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'Cta') as cta, + json_extract_path_text(detail.Properties, 'DataType') as data_type, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Fields') as fields, + json_extract_path_text(detail.Properties, 'FormActionType') as form_action_type, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LabelDecorator') as label_decorator, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SchemaVersion') as schema_version, + json_extract_path_text(detail.Properties, 'SectionalElements') as sectional_elements, + json_extract_path_text(detail.Properties, 'Style') as style, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AmplifyUIBuilder::Form' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Form' + AND listing.region = 'us-east-1' + forms_list_only: + name: forms_list_only + id: aws.amplifyuibuilder.forms_list_only + x-cfn-schema-name: Form + x-cfn-type-name: AWS::AmplifyUIBuilder::Form + x-identifiers: + - AppId + - EnvironmentName + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AppId') as app_id, + JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Form' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AppId') as app_id, + json_extract_path_text(Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Form' + AND region = 'us-east-1' + form_tags: + name: form_tags + id: aws.amplifyuibuilder.form_tags + x-cfn-schema-name: Form + x-cfn-type-name: AWS::AmplifyUIBuilder::Form + 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, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.Cta') as cta, + JSON_EXTRACT(detail.Properties, '$.DataType') as data_type, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Fields') as fields, + JSON_EXTRACT(detail.Properties, '$.FormActionType') as form_action_type, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LabelDecorator') as label_decorator, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SchemaVersion') as schema_version, + JSON_EXTRACT(detail.Properties, '$.SectionalElements') as sectional_elements, + JSON_EXTRACT(detail.Properties, '$.Style') as style + 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::AmplifyUIBuilder::Form' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Form' + 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, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'Cta') as cta, + json_extract_path_text(detail.Properties, 'DataType') as data_type, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Fields') as fields, + json_extract_path_text(detail.Properties, 'FormActionType') as form_action_type, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LabelDecorator') as label_decorator, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SchemaVersion') as schema_version, + json_extract_path_text(detail.Properties, 'SectionalElements') as sectional_elements, + json_extract_path_text(detail.Properties, 'Style') as style + 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::AmplifyUIBuilder::Form' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Form' + AND listing.region = 'us-east-1' themes: name: themes id: aws.amplifyuibuilder.themes @@ -1730,12 +2014,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AppId') as app_id, - JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Theme' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Overrides') as overrides, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Values') as _values + 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::AmplifyUIBuilder::Theme' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Theme' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1758,12 +2053,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AppId') as app_id, - json_extract_path_text(Properties, 'EnvironmentName') as environment_name, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Theme' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Overrides') as overrides, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Values') as _values + 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::AmplifyUIBuilder::Theme' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Theme' + AND listing.region = 'us-east-1' + themes_list_only: + name: themes_list_only + id: aws.amplifyuibuilder.themes_list_only + x-cfn-schema-name: Theme + x-cfn-type-name: AWS::AmplifyUIBuilder::Theme + x-identifiers: + - AppId + - EnvironmentName + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AppId') as app_id, + JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Theme' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AppId') as app_id, + json_extract_path_text(Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Theme' + AND region = 'us-east-1' + theme_tags: + name: theme_tags + id: aws.amplifyuibuilder.theme_tags + x-cfn-schema-name: Theme + x-cfn-type-name: AWS::AmplifyUIBuilder::Theme + 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, '$.AppId') as app_id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Overrides') as overrides, + JSON_EXTRACT(detail.Properties, '$.Values') as _values + 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::AmplifyUIBuilder::Theme' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Theme' + 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, 'AppId') as app_id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Overrides') as overrides, + json_extract_path_text(detail.Properties, 'Values') as _values + 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::AmplifyUIBuilder::Theme' + AND detail.data__TypeName = 'AWS::AmplifyUIBuilder::Theme' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/apigateway.yaml b/providers/src/aws/v00.00.00000/services/apigateway.yaml index f56730ca..1f367fd9 100644 --- a/providers/src/aws/v00.00.00000/services/apigateway.yaml +++ b/providers/src/aws/v00.00.00000/services/apigateway.yaml @@ -3074,10 +3074,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.APIKeyId') as api_key_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ApiKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.APIKeyId') as api_key_id, + JSON_EXTRACT(detail.Properties, '$.CustomerId') as customer_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.GenerateDistinctId') as generate_distinct_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StageKeys') as stage_keys, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Value') as value + 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::ApiGateway::ApiKey' + AND detail.data__TypeName = 'AWS::ApiGateway::ApiKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3100,10 +3113,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'APIKeyId') as api_key_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ApiKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'APIKeyId') as api_key_id, + json_extract_path_text(detail.Properties, 'CustomerId') as customer_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'GenerateDistinctId') as generate_distinct_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StageKeys') as stage_keys, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Value') as value + 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::ApiGateway::ApiKey' + AND detail.data__TypeName = 'AWS::ApiGateway::ApiKey' + AND listing.region = 'us-east-1' + api_keys_list_only: + name: api_keys_list_only + id: aws.apigateway.api_keys_list_only + x-cfn-schema-name: ApiKey + x-cfn-type-name: AWS::ApiGateway::ApiKey + x-identifiers: + - APIKeyId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.APIKeyId') as api_key_id + FROM aws.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 api_key_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ApiKey' + AND region = 'us-east-1' + api_key_tags: + name: api_key_tags + id: aws.apigateway.api_key_tags + x-cfn-schema-name: ApiKey + x-cfn-type-name: AWS::ApiGateway::ApiKey + 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, '$.APIKeyId') as api_key_id, + JSON_EXTRACT(detail.Properties, '$.CustomerId') as customer_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.GenerateDistinctId') as generate_distinct_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StageKeys') as stage_keys, + JSON_EXTRACT(detail.Properties, '$.Value') as value + 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::ApiGateway::ApiKey' + AND detail.data__TypeName = 'AWS::ApiGateway::ApiKey' + 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, 'APIKeyId') as api_key_id, + json_extract_path_text(detail.Properties, 'CustomerId') as customer_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'GenerateDistinctId') as generate_distinct_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StageKeys') as stage_keys, + json_extract_path_text(detail.Properties, 'Value') as value + 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::ApiGateway::ApiKey' + AND detail.data__TypeName = 'AWS::ApiGateway::ApiKey' + AND listing.region = 'us-east-1' authorizers: name: authorizers id: aws.apigateway.authorizers @@ -3186,11 +3302,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, - JSON_EXTRACT(Properties, '$.AuthorizerId') as authorizer_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Authorizer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.AuthorizerId') as authorizer_id, + JSON_EXTRACT(detail.Properties, '$.AuthType') as auth_type, + JSON_EXTRACT(detail.Properties, '$.AuthorizerCredentials') as authorizer_credentials, + JSON_EXTRACT(detail.Properties, '$.AuthorizerResultTtlInSeconds') as authorizer_result_ttl_in_seconds, + JSON_EXTRACT(detail.Properties, '$.AuthorizerUri') as authorizer_uri, + JSON_EXTRACT(detail.Properties, '$.IdentitySource') as identity_source, + JSON_EXTRACT(detail.Properties, '$.IdentityValidationExpression') as identity_validation_expression, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProviderARNs') as provider_arns, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::ApiGateway::Authorizer' + AND detail.data__TypeName = 'AWS::ApiGateway::Authorizer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3215,11 +3345,59 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id, - json_extract_path_text(Properties, 'AuthorizerId') as authorizer_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Authorizer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'AuthorizerId') as authorizer_id, + json_extract_path_text(detail.Properties, 'AuthType') as auth_type, + json_extract_path_text(detail.Properties, 'AuthorizerCredentials') as authorizer_credentials, + json_extract_path_text(detail.Properties, 'AuthorizerResultTtlInSeconds') as authorizer_result_ttl_in_seconds, + json_extract_path_text(detail.Properties, 'AuthorizerUri') as authorizer_uri, + json_extract_path_text(detail.Properties, 'IdentitySource') as identity_source, + json_extract_path_text(detail.Properties, 'IdentityValidationExpression') as identity_validation_expression, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProviderARNs') as provider_arns, + json_extract_path_text(detail.Properties, 'Type') as type + 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::ApiGateway::Authorizer' + AND detail.data__TypeName = 'AWS::ApiGateway::Authorizer' + AND listing.region = 'us-east-1' + authorizers_list_only: + name: authorizers_list_only + id: aws.apigateway.authorizers_list_only + x-cfn-schema-name: Authorizer + x-cfn-type-name: AWS::ApiGateway::Authorizer + x-identifiers: + - RestApiId + - AuthorizerId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(Properties, '$.AuthorizerId') as authorizer_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Authorizer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(Properties, 'AuthorizerId') as authorizer_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Authorizer' + AND region = 'us-east-1' base_path_mappings: name: base_path_mappings id: aws.apigateway.base_path_mappings @@ -3295,11 +3473,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name, - JSON_EXTRACT(Properties, '$.BasePath') as base_path - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::BasePathMapping' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BasePath') as base_path, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.Stage') as stage + 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::ApiGateway::BasePathMapping' + AND detail.data__TypeName = 'AWS::ApiGateway::BasePathMapping' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3317,11 +3502,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name, - json_extract_path_text(Properties, 'BasePath') as base_path - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::BasePathMapping' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BasePath') as base_path, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'Stage') as stage + 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::ApiGateway::BasePathMapping' + AND detail.data__TypeName = 'AWS::ApiGateway::BasePathMapping' + AND listing.region = 'us-east-1' + base_path_mappings_list_only: + name: base_path_mappings_list_only + id: aws.apigateway.base_path_mappings_list_only + x-cfn-schema-name: BasePathMapping + x-cfn-type-name: AWS::ApiGateway::BasePathMapping + x-identifiers: + - DomainName + - BasePath + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(Properties, '$.BasePath') as base_path + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::BasePathMapping' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name, + json_extract_path_text(Properties, 'BasePath') as base_path + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::BasePathMapping' + AND region = 'us-east-1' client_certificates: name: client_certificates id: aws.apigateway.client_certificates @@ -3395,10 +3621,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClientCertificateId') as client_certificate_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ClientCertificate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClientCertificateId') as client_certificate_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ApiGateway::ClientCertificate' + AND detail.data__TypeName = 'AWS::ApiGateway::ClientCertificate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3415,10 +3648,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClientCertificateId') as client_certificate_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ClientCertificate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClientCertificateId') as client_certificate_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ApiGateway::ClientCertificate' + AND detail.data__TypeName = 'AWS::ApiGateway::ClientCertificate' + AND listing.region = 'us-east-1' + client_certificates_list_only: + name: client_certificates_list_only + id: aws.apigateway.client_certificates_list_only + x-cfn-schema-name: ClientCertificate + x-cfn-type-name: AWS::ApiGateway::ClientCertificate + x-identifiers: + - ClientCertificateId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClientCertificateId') as client_certificate_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ClientCertificate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClientCertificateId') as client_certificate_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ClientCertificate' + AND region = 'us-east-1' + client_certificate_tags: + name: client_certificate_tags + id: aws.apigateway.client_certificate_tags + x-cfn-schema-name: ClientCertificate + x-cfn-type-name: AWS::ApiGateway::ClientCertificate + 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, '$.ClientCertificateId') as client_certificate_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::ApiGateway::ClientCertificate' + AND detail.data__TypeName = 'AWS::ApiGateway::ClientCertificate' + 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, 'ClientCertificateId') as client_certificate_id, + json_extract_path_text(detail.Properties, 'Description') as description + 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::ApiGateway::ClientCertificate' + AND detail.data__TypeName = 'AWS::ApiGateway::ClientCertificate' + AND listing.region = 'us-east-1' deployments: name: deployments id: aws.apigateway.deployments @@ -3496,11 +3814,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DeploymentId') as deployment_id, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Deployment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DeploymentId') as deployment_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.StageDescription') as stage_description, + JSON_EXTRACT(detail.Properties, '$.StageName') as stage_name, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.DeploymentCanarySettings') as deployment_canary_settings + 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::ApiGateway::Deployment' + AND detail.data__TypeName = 'AWS::ApiGateway::Deployment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3520,11 +3847,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DeploymentId') as deployment_id, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Deployment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DeploymentId') as deployment_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'StageDescription') as stage_description, + json_extract_path_text(detail.Properties, 'StageName') as stage_name, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'DeploymentCanarySettings') as deployment_canary_settings + 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::ApiGateway::Deployment' + AND detail.data__TypeName = 'AWS::ApiGateway::Deployment' + AND listing.region = 'us-east-1' + deployments_list_only: + name: deployments_list_only + id: aws.apigateway.deployments_list_only + x-cfn-schema-name: Deployment + x-cfn-type-name: AWS::ApiGateway::Deployment + x-identifiers: + - DeploymentId + - RestApiId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DeploymentId') as deployment_id, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Deployment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DeploymentId') as deployment_id, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Deployment' + AND region = 'us-east-1' documentation_parts: name: documentation_parts id: aws.apigateway.documentation_parts @@ -3600,11 +3970,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DocumentationPartId') as documentation_part_id, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationPart' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DocumentationPartId') as documentation_part_id, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Properties') as properties, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id + 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::ApiGateway::DocumentationPart' + AND detail.data__TypeName = 'AWS::ApiGateway::DocumentationPart' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3622,11 +3999,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DocumentationPartId') as documentation_part_id, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationPart' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DocumentationPartId') as documentation_part_id, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Properties') as properties, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id + 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::ApiGateway::DocumentationPart' + AND detail.data__TypeName = 'AWS::ApiGateway::DocumentationPart' + AND listing.region = 'us-east-1' + documentation_parts_list_only: + name: documentation_parts_list_only + id: aws.apigateway.documentation_parts_list_only + x-cfn-schema-name: DocumentationPart + x-cfn-type-name: AWS::ApiGateway::DocumentationPart + x-identifiers: + - DocumentationPartId + - RestApiId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DocumentationPartId') as documentation_part_id, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationPart' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DocumentationPartId') as documentation_part_id, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationPart' + AND region = 'us-east-1' documentation_versions: name: documentation_versions id: aws.apigateway.documentation_versions @@ -3701,11 +4119,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DocumentationVersion') as documentation_version, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DocumentationVersion') as documentation_version, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id + 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::ApiGateway::DocumentationVersion' + AND detail.data__TypeName = 'AWS::ApiGateway::DocumentationVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3722,11 +4146,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DocumentationVersion') as documentation_version, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DocumentationVersion') as documentation_version, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id + 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::ApiGateway::DocumentationVersion' + AND detail.data__TypeName = 'AWS::ApiGateway::DocumentationVersion' + AND listing.region = 'us-east-1' + documentation_versions_list_only: + name: documentation_versions_list_only + id: aws.apigateway.documentation_versions_list_only + x-cfn-schema-name: DocumentationVersion + x-cfn-type-name: AWS::ApiGateway::DocumentationVersion + x-identifiers: + - DocumentationVersion + - RestApiId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DocumentationVersion') as documentation_version, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DocumentationVersion') as documentation_version, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DocumentationVersion' + AND region = 'us-east-1' domain_names: name: domain_names id: aws.apigateway.domain_names @@ -3809,10 +4273,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DomainName' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DistributionDomainName') as distribution_domain_name, + JSON_EXTRACT(detail.Properties, '$.DistributionHostedZoneId') as distribution_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.EndpointConfiguration') as endpoint_configuration, + JSON_EXTRACT(detail.Properties, '$.MutualTlsAuthentication') as mutual_tls_authentication, + JSON_EXTRACT(detail.Properties, '$.RegionalDomainName') as regional_domain_name, + JSON_EXTRACT(detail.Properties, '$.RegionalHostedZoneId') as regional_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.RegionalCertificateArn') as regional_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.OwnershipVerificationCertificateArn') as ownership_verification_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityPolicy') as security_policy, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ApiGateway::DomainName' + AND detail.data__TypeName = 'AWS::ApiGateway::DomainName' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3838,10 +4318,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DomainName' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DistributionDomainName') as distribution_domain_name, + json_extract_path_text(detail.Properties, 'DistributionHostedZoneId') as distribution_hosted_zone_id, + json_extract_path_text(detail.Properties, 'EndpointConfiguration') as endpoint_configuration, + json_extract_path_text(detail.Properties, 'MutualTlsAuthentication') as mutual_tls_authentication, + json_extract_path_text(detail.Properties, 'RegionalDomainName') as regional_domain_name, + json_extract_path_text(detail.Properties, 'RegionalHostedZoneId') as regional_hosted_zone_id, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'RegionalCertificateArn') as regional_certificate_arn, + json_extract_path_text(detail.Properties, 'OwnershipVerificationCertificateArn') as ownership_verification_certificate_arn, + json_extract_path_text(detail.Properties, 'SecurityPolicy') as security_policy, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ApiGateway::DomainName' + AND detail.data__TypeName = 'AWS::ApiGateway::DomainName' + AND listing.region = 'us-east-1' + domain_names_list_only: + name: domain_names_list_only + id: aws.apigateway.domain_names_list_only + x-cfn-schema-name: DomainName + x-cfn-type-name: AWS::ApiGateway::DomainName + x-identifiers: + - DomainName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DomainName' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::DomainName' + AND region = 'us-east-1' + domain_name_tags: + name: domain_name_tags + id: aws.apigateway.domain_name_tags + x-cfn-schema-name: DomainName + x-cfn-type-name: AWS::ApiGateway::DomainName + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DistributionDomainName') as distribution_domain_name, + JSON_EXTRACT(detail.Properties, '$.DistributionHostedZoneId') as distribution_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.EndpointConfiguration') as endpoint_configuration, + JSON_EXTRACT(detail.Properties, '$.MutualTlsAuthentication') as mutual_tls_authentication, + JSON_EXTRACT(detail.Properties, '$.RegionalDomainName') as regional_domain_name, + JSON_EXTRACT(detail.Properties, '$.RegionalHostedZoneId') as regional_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.RegionalCertificateArn') as regional_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.OwnershipVerificationCertificateArn') as ownership_verification_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityPolicy') as security_policy + 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::ApiGateway::DomainName' + AND detail.data__TypeName = 'AWS::ApiGateway::DomainName' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DistributionDomainName') as distribution_domain_name, + json_extract_path_text(detail.Properties, 'DistributionHostedZoneId') as distribution_hosted_zone_id, + json_extract_path_text(detail.Properties, 'EndpointConfiguration') as endpoint_configuration, + json_extract_path_text(detail.Properties, 'MutualTlsAuthentication') as mutual_tls_authentication, + json_extract_path_text(detail.Properties, 'RegionalDomainName') as regional_domain_name, + json_extract_path_text(detail.Properties, 'RegionalHostedZoneId') as regional_hosted_zone_id, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'RegionalCertificateArn') as regional_certificate_arn, + json_extract_path_text(detail.Properties, 'OwnershipVerificationCertificateArn') as ownership_verification_certificate_arn, + json_extract_path_text(detail.Properties, 'SecurityPolicy') as security_policy + 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::ApiGateway::DomainName' + AND detail.data__TypeName = 'AWS::ApiGateway::DomainName' + AND listing.region = 'us-east-1' gateway_responses: name: gateway_responses id: aws.apigateway.gateway_responses @@ -3918,10 +4510,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::GatewayResponse' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.ResponseType') as response_type, + JSON_EXTRACT(detail.Properties, '$.StatusCode') as status_code, + JSON_EXTRACT(detail.Properties, '$.ResponseParameters') as response_parameters, + JSON_EXTRACT(detail.Properties, '$.ResponseTemplates') as response_templates + 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::ApiGateway::GatewayResponse' + AND detail.data__TypeName = 'AWS::ApiGateway::GatewayResponse' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3941,10 +4543,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::GatewayResponse' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'ResponseType') as response_type, + json_extract_path_text(detail.Properties, 'StatusCode') as status_code, + json_extract_path_text(detail.Properties, 'ResponseParameters') as response_parameters, + json_extract_path_text(detail.Properties, 'ResponseTemplates') as response_templates + 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::ApiGateway::GatewayResponse' + AND detail.data__TypeName = 'AWS::ApiGateway::GatewayResponse' + AND listing.region = 'us-east-1' + gateway_responses_list_only: + name: gateway_responses_list_only + id: aws.apigateway.gateway_responses_list_only + x-cfn-schema-name: GatewayResponse + x-cfn-type-name: AWS::ApiGateway::GatewayResponse + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::GatewayResponse' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::GatewayResponse' + AND region = 'us-east-1' methods: name: methods id: aws.apigateway.methods @@ -4124,11 +4767,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Model' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ContentType') as content_type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema + 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::ApiGateway::Model' + AND detail.data__TypeName = 'AWS::ApiGateway::Model' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4147,11 +4798,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Model' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ContentType') as content_type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'Schema') as _schema + 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::ApiGateway::Model' + AND detail.data__TypeName = 'AWS::ApiGateway::Model' + AND listing.region = 'us-east-1' + models_list_only: + name: models_list_only + id: aws.apigateway.models_list_only + x-cfn-schema-name: Model + x-cfn-type-name: AWS::ApiGateway::Model + x-identifiers: + - RestApiId + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Model' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Model' + AND region = 'us-east-1' request_validators: name: request_validators id: aws.apigateway.request_validators @@ -4228,11 +4921,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, - JSON_EXTRACT(Properties, '$.RequestValidatorId') as request_validator_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RequestValidator' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RequestValidatorId') as request_validator_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.ValidateRequestBody') as validate_request_body, + JSON_EXTRACT(detail.Properties, '$.ValidateRequestParameters') as validate_request_parameters + 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::ApiGateway::RequestValidator' + AND detail.data__TypeName = 'AWS::ApiGateway::RequestValidator' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4251,11 +4952,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id, - json_extract_path_text(Properties, 'RequestValidatorId') as request_validator_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RequestValidator' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RequestValidatorId') as request_validator_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'ValidateRequestBody') as validate_request_body, + json_extract_path_text(detail.Properties, 'ValidateRequestParameters') as validate_request_parameters + 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::ApiGateway::RequestValidator' + AND detail.data__TypeName = 'AWS::ApiGateway::RequestValidator' + AND listing.region = 'us-east-1' + request_validators_list_only: + name: request_validators_list_only + id: aws.apigateway.request_validators_list_only + x-cfn-schema-name: RequestValidator + x-cfn-type-name: AWS::ApiGateway::RequestValidator + x-identifiers: + - RestApiId + - RequestValidatorId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(Properties, '$.RequestValidatorId') as request_validator_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RequestValidator' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(Properties, 'RequestValidatorId') as request_validator_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RequestValidator' + AND region = 'us-east-1' resources: name: resources id: aws.apigateway.resources @@ -4331,11 +5074,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, - JSON_EXTRACT(Properties, '$.ResourceId') as resource_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Resource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ParentId') as parent_id, + JSON_EXTRACT(detail.Properties, '$.PathPart') as path_part, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id + 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::ApiGateway::Resource' + AND detail.data__TypeName = 'AWS::ApiGateway::Resource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4353,11 +5103,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id, - json_extract_path_text(Properties, 'ResourceId') as resource_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Resource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ParentId') as parent_id, + json_extract_path_text(detail.Properties, 'PathPart') as path_part, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id + 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::ApiGateway::Resource' + AND detail.data__TypeName = 'AWS::ApiGateway::Resource' + AND listing.region = 'us-east-1' + resources_list_only: + name: resources_list_only + id: aws.apigateway.resources_list_only + x-cfn-schema-name: Resource + x-cfn-type-name: AWS::ApiGateway::Resource + x-identifiers: + - RestApiId + - ResourceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(Properties, '$.ResourceId') as resource_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Resource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(Properties, 'ResourceId') as resource_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Resource' + AND region = 'us-east-1' rest_apis: name: rest_apis id: aws.apigateway.rest_apis @@ -4445,10 +5236,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RestApi' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.BodyS3Location') as body_s3_location, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MinimumCompressionSize') as minimum_compression_size, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.CloneFrom') as clone_from, + JSON_EXTRACT(detail.Properties, '$.Mode') as mode, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + JSON_EXTRACT(detail.Properties, '$.FailOnWarnings') as fail_on_warnings, + JSON_EXTRACT(detail.Properties, '$.BinaryMediaTypes') as binary_media_types, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RootResourceId') as root_resource_id, + JSON_EXTRACT(detail.Properties, '$.ApiKeySourceType') as api_key_source_type, + JSON_EXTRACT(detail.Properties, '$.EndpointConfiguration') as endpoint_configuration, + JSON_EXTRACT(detail.Properties, '$.Body') as body, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ApiGateway::RestApi' + AND detail.data__TypeName = 'AWS::ApiGateway::RestApi' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4479,10 +5291,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RestApi' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'BodyS3Location') as body_s3_location, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MinimumCompressionSize') as minimum_compression_size, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'CloneFrom') as clone_from, + json_extract_path_text(detail.Properties, 'Mode') as mode, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + json_extract_path_text(detail.Properties, 'FailOnWarnings') as fail_on_warnings, + json_extract_path_text(detail.Properties, 'BinaryMediaTypes') as binary_media_types, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RootResourceId') as root_resource_id, + json_extract_path_text(detail.Properties, 'ApiKeySourceType') as api_key_source_type, + json_extract_path_text(detail.Properties, 'EndpointConfiguration') as endpoint_configuration, + json_extract_path_text(detail.Properties, 'Body') as body, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ApiGateway::RestApi' + AND detail.data__TypeName = 'AWS::ApiGateway::RestApi' + AND listing.region = 'us-east-1' + rest_apis_list_only: + name: rest_apis_list_only + id: aws.apigateway.rest_apis_list_only + x-cfn-schema-name: RestApi + x-cfn-type-name: AWS::ApiGateway::RestApi + x-identifiers: + - RestApiId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RestApi' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::RestApi' + AND region = 'us-east-1' + rest_api_tags: + name: rest_api_tags + id: aws.apigateway.rest_api_tags + x-cfn-schema-name: RestApi + x-cfn-type-name: AWS::ApiGateway::RestApi + 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, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.BodyS3Location') as body_s3_location, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MinimumCompressionSize') as minimum_compression_size, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.CloneFrom') as clone_from, + JSON_EXTRACT(detail.Properties, '$.Mode') as mode, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + JSON_EXTRACT(detail.Properties, '$.FailOnWarnings') as fail_on_warnings, + JSON_EXTRACT(detail.Properties, '$.BinaryMediaTypes') as binary_media_types, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RootResourceId') as root_resource_id, + JSON_EXTRACT(detail.Properties, '$.ApiKeySourceType') as api_key_source_type, + JSON_EXTRACT(detail.Properties, '$.EndpointConfiguration') as endpoint_configuration, + JSON_EXTRACT(detail.Properties, '$.Body') as body + 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::ApiGateway::RestApi' + AND detail.data__TypeName = 'AWS::ApiGateway::RestApi' + 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, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'BodyS3Location') as body_s3_location, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MinimumCompressionSize') as minimum_compression_size, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'CloneFrom') as clone_from, + json_extract_path_text(detail.Properties, 'Mode') as mode, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + json_extract_path_text(detail.Properties, 'FailOnWarnings') as fail_on_warnings, + json_extract_path_text(detail.Properties, 'BinaryMediaTypes') as binary_media_types, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RootResourceId') as root_resource_id, + json_extract_path_text(detail.Properties, 'ApiKeySourceType') as api_key_source_type, + json_extract_path_text(detail.Properties, 'EndpointConfiguration') as endpoint_configuration, + json_extract_path_text(detail.Properties, 'Body') as body + 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::ApiGateway::RestApi' + AND detail.data__TypeName = 'AWS::ApiGateway::RestApi' + AND listing.region = 'us-east-1' stages: name: stages id: aws.apigateway.stages @@ -4568,11 +5507,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, - JSON_EXTRACT(Properties, '$.StageName') as stage_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Stage' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessLogSetting') as access_log_setting, + JSON_EXTRACT(detail.Properties, '$.CacheClusterEnabled') as cache_cluster_enabled, + JSON_EXTRACT(detail.Properties, '$.CacheClusterSize') as cache_cluster_size, + JSON_EXTRACT(detail.Properties, '$.CanarySetting') as canary_setting, + JSON_EXTRACT(detail.Properties, '$.ClientCertificateId') as client_certificate_id, + JSON_EXTRACT(detail.Properties, '$.DeploymentId') as deployment_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DocumentationVersion') as documentation_version, + JSON_EXTRACT(detail.Properties, '$.MethodSettings') as method_settings, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.StageName') as stage_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TracingEnabled') as tracing_enabled, + JSON_EXTRACT(detail.Properties, '$.Variables') as variables + 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::ApiGateway::Stage' + AND detail.data__TypeName = 'AWS::ApiGateway::Stage' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4600,11 +5556,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestApiId') as rest_api_id, - json_extract_path_text(Properties, 'StageName') as stage_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Stage' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessLogSetting') as access_log_setting, + json_extract_path_text(detail.Properties, 'CacheClusterEnabled') as cache_cluster_enabled, + json_extract_path_text(detail.Properties, 'CacheClusterSize') as cache_cluster_size, + json_extract_path_text(detail.Properties, 'CanarySetting') as canary_setting, + json_extract_path_text(detail.Properties, 'ClientCertificateId') as client_certificate_id, + json_extract_path_text(detail.Properties, 'DeploymentId') as deployment_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DocumentationVersion') as documentation_version, + json_extract_path_text(detail.Properties, 'MethodSettings') as method_settings, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'StageName') as stage_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TracingEnabled') as tracing_enabled, + json_extract_path_text(detail.Properties, 'Variables') as variables + 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::ApiGateway::Stage' + AND detail.data__TypeName = 'AWS::ApiGateway::Stage' + AND listing.region = 'us-east-1' + stages_list_only: + name: stages_list_only + id: aws.apigateway.stages_list_only + x-cfn-schema-name: Stage + x-cfn-type-name: AWS::ApiGateway::Stage + x-identifiers: + - RestApiId + - StageName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(Properties, '$.StageName') as stage_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Stage' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(Properties, 'StageName') as stage_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::Stage' + AND region = 'us-east-1' + stage_tags: + name: stage_tags + id: aws.apigateway.stage_tags + x-cfn-schema-name: Stage + x-cfn-type-name: AWS::ApiGateway::Stage + 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, '$.AccessLogSetting') as access_log_setting, + JSON_EXTRACT(detail.Properties, '$.CacheClusterEnabled') as cache_cluster_enabled, + JSON_EXTRACT(detail.Properties, '$.CacheClusterSize') as cache_cluster_size, + JSON_EXTRACT(detail.Properties, '$.CanarySetting') as canary_setting, + JSON_EXTRACT(detail.Properties, '$.ClientCertificateId') as client_certificate_id, + JSON_EXTRACT(detail.Properties, '$.DeploymentId') as deployment_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DocumentationVersion') as documentation_version, + JSON_EXTRACT(detail.Properties, '$.MethodSettings') as method_settings, + JSON_EXTRACT(detail.Properties, '$.RestApiId') as rest_api_id, + JSON_EXTRACT(detail.Properties, '$.StageName') as stage_name, + JSON_EXTRACT(detail.Properties, '$.TracingEnabled') as tracing_enabled, + JSON_EXTRACT(detail.Properties, '$.Variables') as variables + 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::ApiGateway::Stage' + AND detail.data__TypeName = 'AWS::ApiGateway::Stage' + 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, 'AccessLogSetting') as access_log_setting, + json_extract_path_text(detail.Properties, 'CacheClusterEnabled') as cache_cluster_enabled, + json_extract_path_text(detail.Properties, 'CacheClusterSize') as cache_cluster_size, + json_extract_path_text(detail.Properties, 'CanarySetting') as canary_setting, + json_extract_path_text(detail.Properties, 'ClientCertificateId') as client_certificate_id, + json_extract_path_text(detail.Properties, 'DeploymentId') as deployment_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DocumentationVersion') as documentation_version, + json_extract_path_text(detail.Properties, 'MethodSettings') as method_settings, + json_extract_path_text(detail.Properties, 'RestApiId') as rest_api_id, + json_extract_path_text(detail.Properties, 'StageName') as stage_name, + json_extract_path_text(detail.Properties, 'TracingEnabled') as tracing_enabled, + json_extract_path_text(detail.Properties, 'Variables') as variables + 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::ApiGateway::Stage' + AND detail.data__TypeName = 'AWS::ApiGateway::Stage' + AND listing.region = 'us-east-1' usage_plans: name: usage_plans id: aws.apigateway.usage_plans @@ -4682,10 +5758,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlan' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ApiStages') as api_stages, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Quota') as quota, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Throttle') as throttle, + JSON_EXTRACT(detail.Properties, '$.UsagePlanName') as usage_plan_name + 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::ApiGateway::UsagePlan' + AND detail.data__TypeName = 'AWS::ApiGateway::UsagePlan' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4706,10 +5793,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlan' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ApiStages') as api_stages, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Quota') as quota, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Throttle') as throttle, + json_extract_path_text(detail.Properties, 'UsagePlanName') as usage_plan_name + 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::ApiGateway::UsagePlan' + AND detail.data__TypeName = 'AWS::ApiGateway::UsagePlan' + AND listing.region = 'us-east-1' + usage_plans_list_only: + name: usage_plans_list_only + id: aws.apigateway.usage_plans_list_only + x-cfn-schema-name: UsagePlan + x-cfn-type-name: AWS::ApiGateway::UsagePlan + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlan' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlan' + AND region = 'us-east-1' + usage_plan_tags: + name: usage_plan_tags + id: aws.apigateway.usage_plan_tags + x-cfn-schema-name: UsagePlan + x-cfn-type-name: AWS::ApiGateway::UsagePlan + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ApiStages') as api_stages, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Quota') as quota, + JSON_EXTRACT(detail.Properties, '$.Throttle') as throttle, + JSON_EXTRACT(detail.Properties, '$.UsagePlanName') as usage_plan_name + 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::ApiGateway::UsagePlan' + AND detail.data__TypeName = 'AWS::ApiGateway::UsagePlan' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'ApiStages') as api_stages, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Quota') as quota, + json_extract_path_text(detail.Properties, 'Throttle') as throttle, + json_extract_path_text(detail.Properties, 'UsagePlanName') as usage_plan_name + 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::ApiGateway::UsagePlan' + AND detail.data__TypeName = 'AWS::ApiGateway::UsagePlan' + AND listing.region = 'us-east-1' usage_plan_keys: name: usage_plan_keys id: aws.apigateway.usage_plan_keys @@ -4771,10 +5955,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlanKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.KeyId') as key_id, + JSON_EXTRACT(detail.Properties, '$.KeyType') as key_type, + JSON_EXTRACT(detail.Properties, '$.UsagePlanId') as usage_plan_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::ApiGateway::UsagePlanKey' + AND detail.data__TypeName = 'AWS::ApiGateway::UsagePlanKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4792,10 +5984,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlanKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'KeyId') as key_id, + json_extract_path_text(detail.Properties, 'KeyType') as key_type, + json_extract_path_text(detail.Properties, 'UsagePlanId') as usage_plan_id, + json_extract_path_text(detail.Properties, 'Id') as id + 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::ApiGateway::UsagePlanKey' + AND detail.data__TypeName = 'AWS::ApiGateway::UsagePlanKey' + AND listing.region = 'us-east-1' + usage_plan_keys_list_only: + name: usage_plan_keys_list_only + id: aws.apigateway.usage_plan_keys_list_only + x-cfn-schema-name: UsagePlanKey + x-cfn-type-name: AWS::ApiGateway::UsagePlanKey + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlanKey' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::UsagePlanKey' + AND region = 'us-east-1' vpc_links: name: vpc_links id: aws.apigateway.vpc_links @@ -4871,10 +6102,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VpcLinkId') as vpc_link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::VpcLink' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TargetArns') as target_arns, + JSON_EXTRACT(detail.Properties, '$.VpcLinkId') as vpc_link_id + 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::ApiGateway::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGateway::VpcLink' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4893,10 +6133,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VpcLinkId') as vpc_link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::VpcLink' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TargetArns') as target_arns, + json_extract_path_text(detail.Properties, 'VpcLinkId') as vpc_link_id + 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::ApiGateway::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGateway::VpcLink' + AND listing.region = 'us-east-1' + vpc_links_list_only: + name: vpc_links_list_only + id: aws.apigateway.vpc_links_list_only + x-cfn-schema-name: VpcLink + x-cfn-type-name: AWS::ApiGateway::VpcLink + x-identifiers: + - VpcLinkId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VpcLinkId') as vpc_link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::VpcLink' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VpcLinkId') as vpc_link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::VpcLink' + AND region = 'us-east-1' + vpc_link_tags: + name: vpc_link_tags + id: aws.apigateway.vpc_link_tags + x-cfn-schema-name: VpcLink + x-cfn-type-name: AWS::ApiGateway::VpcLink + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TargetArns') as target_arns, + JSON_EXTRACT(detail.Properties, '$.VpcLinkId') as vpc_link_id + 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::ApiGateway::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGateway::VpcLink' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TargetArns') as target_arns, + json_extract_path_text(detail.Properties, 'VpcLinkId') as vpc_link_id + 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::ApiGateway::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGateway::VpcLink' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/apigatewayv2.yaml b/providers/src/aws/v00.00.00000/services/apigatewayv2.yaml index 95e86f66..734a068e 100644 --- a/providers/src/aws/v00.00.00000/services/apigatewayv2.yaml +++ b/providers/src/aws/v00.00.00000/services/apigatewayv2.yaml @@ -1791,10 +1791,33 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApiId') as api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Api' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RouteSelectionExpression') as route_selection_expression, + JSON_EXTRACT(detail.Properties, '$.BodyS3Location') as body_s3_location, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApiEndpoint') as api_endpoint, + JSON_EXTRACT(detail.Properties, '$.BasePath') as base_path, + JSON_EXTRACT(detail.Properties, '$.FailOnWarnings') as fail_on_warnings, + JSON_EXTRACT(detail.Properties, '$.DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + JSON_EXTRACT(detail.Properties, '$.DisableSchemaValidation') as disable_schema_validation, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Target') as target, + JSON_EXTRACT(detail.Properties, '$.CredentialsArn') as credentials_arn, + JSON_EXTRACT(detail.Properties, '$.CorsConfiguration') as cors_configuration, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.ProtocolType') as protocol_type, + JSON_EXTRACT(detail.Properties, '$.RouteKey') as route_key, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.Body') as body, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ApiKeySelectionExpression') as api_key_selection_expression + 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::ApiGatewayV2::Api' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Api' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1827,10 +1850,143 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApiId') as api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Api' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RouteSelectionExpression') as route_selection_expression, + json_extract_path_text(detail.Properties, 'BodyS3Location') as body_s3_location, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApiEndpoint') as api_endpoint, + json_extract_path_text(detail.Properties, 'BasePath') as base_path, + json_extract_path_text(detail.Properties, 'FailOnWarnings') as fail_on_warnings, + json_extract_path_text(detail.Properties, 'DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + json_extract_path_text(detail.Properties, 'DisableSchemaValidation') as disable_schema_validation, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Target') as target, + json_extract_path_text(detail.Properties, 'CredentialsArn') as credentials_arn, + json_extract_path_text(detail.Properties, 'CorsConfiguration') as cors_configuration, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'ProtocolType') as protocol_type, + json_extract_path_text(detail.Properties, 'RouteKey') as route_key, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'Body') as body, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ApiKeySelectionExpression') as api_key_selection_expression + 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::ApiGatewayV2::Api' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Api' + AND listing.region = 'us-east-1' + apis_list_only: + name: apis_list_only + id: aws.apigatewayv2.apis_list_only + x-cfn-schema-name: Api + x-cfn-type-name: AWS::ApiGatewayV2::Api + x-identifiers: + - ApiId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApiId') as api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Api' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApiId') as api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Api' + AND region = 'us-east-1' + api_tags: + name: api_tags + id: aws.apigatewayv2.api_tags + x-cfn-schema-name: Api + x-cfn-type-name: AWS::ApiGatewayV2::Api + 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, '$.RouteSelectionExpression') as route_selection_expression, + JSON_EXTRACT(detail.Properties, '$.BodyS3Location') as body_s3_location, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApiEndpoint') as api_endpoint, + JSON_EXTRACT(detail.Properties, '$.BasePath') as base_path, + JSON_EXTRACT(detail.Properties, '$.FailOnWarnings') as fail_on_warnings, + JSON_EXTRACT(detail.Properties, '$.DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + JSON_EXTRACT(detail.Properties, '$.DisableSchemaValidation') as disable_schema_validation, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Target') as target, + JSON_EXTRACT(detail.Properties, '$.CredentialsArn') as credentials_arn, + JSON_EXTRACT(detail.Properties, '$.CorsConfiguration') as cors_configuration, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.ProtocolType') as protocol_type, + JSON_EXTRACT(detail.Properties, '$.RouteKey') as route_key, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.Body') as body, + JSON_EXTRACT(detail.Properties, '$.ApiKeySelectionExpression') as api_key_selection_expression + 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::ApiGatewayV2::Api' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Api' + 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, 'RouteSelectionExpression') as route_selection_expression, + json_extract_path_text(detail.Properties, 'BodyS3Location') as body_s3_location, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApiEndpoint') as api_endpoint, + json_extract_path_text(detail.Properties, 'BasePath') as base_path, + json_extract_path_text(detail.Properties, 'FailOnWarnings') as fail_on_warnings, + json_extract_path_text(detail.Properties, 'DisableExecuteApiEndpoint') as disable_execute_api_endpoint, + json_extract_path_text(detail.Properties, 'DisableSchemaValidation') as disable_schema_validation, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Target') as target, + json_extract_path_text(detail.Properties, 'CredentialsArn') as credentials_arn, + json_extract_path_text(detail.Properties, 'CorsConfiguration') as cors_configuration, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'ProtocolType') as protocol_type, + json_extract_path_text(detail.Properties, 'RouteKey') as route_key, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'Body') as body, + json_extract_path_text(detail.Properties, 'ApiKeySelectionExpression') as api_key_selection_expression + 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::ApiGatewayV2::Api' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Api' + AND listing.region = 'us-east-1' api_mappings: name: api_mappings id: aws.apigatewayv2.api_mappings @@ -1907,11 +2063,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApiMappingId') as api_mapping_id, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::ApiMapping' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApiMappingId') as api_mapping_id, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Stage') as stage, + JSON_EXTRACT(detail.Properties, '$.ApiMappingKey') as api_mapping_key, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id + 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::ApiGatewayV2::ApiMapping' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::ApiMapping' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1930,11 +2094,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApiMappingId') as api_mapping_id, - json_extract_path_text(Properties, 'DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::ApiMapping' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApiMappingId') as api_mapping_id, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Stage') as stage, + json_extract_path_text(detail.Properties, 'ApiMappingKey') as api_mapping_key, + json_extract_path_text(detail.Properties, 'ApiId') as api_id + 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::ApiGatewayV2::ApiMapping' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::ApiMapping' + AND listing.region = 'us-east-1' + api_mappings_list_only: + name: api_mappings_list_only + id: aws.apigatewayv2.api_mappings_list_only + x-cfn-schema-name: ApiMapping + x-cfn-type-name: AWS::ApiGatewayV2::ApiMapping + x-identifiers: + - ApiMappingId + - DomainName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApiMappingId') as api_mapping_id, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::ApiMapping' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApiMappingId') as api_mapping_id, + json_extract_path_text(Properties, 'DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::ApiMapping' + AND region = 'us-east-1' authorizers: name: authorizers id: aws.apigatewayv2.authorizers @@ -2018,11 +2224,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AuthorizerId') as authorizer_id, - JSON_EXTRACT(Properties, '$.ApiId') as api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Authorizer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IdentityValidationExpression') as identity_validation_expression, + JSON_EXTRACT(detail.Properties, '$.AuthorizerUri') as authorizer_uri, + JSON_EXTRACT(detail.Properties, '$.AuthorizerCredentialsArn') as authorizer_credentials_arn, + JSON_EXTRACT(detail.Properties, '$.AuthorizerType') as authorizer_type, + JSON_EXTRACT(detail.Properties, '$.JwtConfiguration') as jwt_configuration, + JSON_EXTRACT(detail.Properties, '$.AuthorizerResultTtlInSeconds') as authorizer_result_ttl_in_seconds, + JSON_EXTRACT(detail.Properties, '$.IdentitySource') as identity_source, + JSON_EXTRACT(detail.Properties, '$.AuthorizerPayloadFormatVersion') as authorizer_payload_format_version, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.EnableSimpleResponses') as enable_simple_responses, + JSON_EXTRACT(detail.Properties, '$.AuthorizerId') as authorizer_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::ApiGatewayV2::Authorizer' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Authorizer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2048,11 +2269,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AuthorizerId') as authorizer_id, - json_extract_path_text(Properties, 'ApiId') as api_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Authorizer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IdentityValidationExpression') as identity_validation_expression, + json_extract_path_text(detail.Properties, 'AuthorizerUri') as authorizer_uri, + json_extract_path_text(detail.Properties, 'AuthorizerCredentialsArn') as authorizer_credentials_arn, + json_extract_path_text(detail.Properties, 'AuthorizerType') as authorizer_type, + json_extract_path_text(detail.Properties, 'JwtConfiguration') as jwt_configuration, + json_extract_path_text(detail.Properties, 'AuthorizerResultTtlInSeconds') as authorizer_result_ttl_in_seconds, + json_extract_path_text(detail.Properties, 'IdentitySource') as identity_source, + json_extract_path_text(detail.Properties, 'AuthorizerPayloadFormatVersion') as authorizer_payload_format_version, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'EnableSimpleResponses') as enable_simple_responses, + json_extract_path_text(detail.Properties, 'AuthorizerId') as authorizer_id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::ApiGatewayV2::Authorizer' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Authorizer' + AND listing.region = 'us-east-1' + authorizers_list_only: + name: authorizers_list_only + id: aws.apigatewayv2.authorizers_list_only + x-cfn-schema-name: Authorizer + x-cfn-type-name: AWS::ApiGatewayV2::Authorizer + x-identifiers: + - AuthorizerId + - ApiId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AuthorizerId') as authorizer_id, + JSON_EXTRACT(Properties, '$.ApiId') as api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Authorizer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AuthorizerId') as authorizer_id, + json_extract_path_text(Properties, 'ApiId') as api_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Authorizer' + AND region = 'us-east-1' deployments: name: deployments id: aws.apigatewayv2.deployments @@ -2128,11 +2398,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApiId') as api_id, - JSON_EXTRACT(Properties, '$.DeploymentId') as deployment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Deployment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DeploymentId') as deployment_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.StageName') as stage_name, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id + 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::ApiGatewayV2::Deployment' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Deployment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2150,11 +2427,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApiId') as api_id, - json_extract_path_text(Properties, 'DeploymentId') as deployment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Deployment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DeploymentId') as deployment_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'StageName') as stage_name, + json_extract_path_text(detail.Properties, 'ApiId') as api_id + 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::ApiGatewayV2::Deployment' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Deployment' + AND listing.region = 'us-east-1' + deployments_list_only: + name: deployments_list_only + id: aws.apigatewayv2.deployments_list_only + x-cfn-schema-name: Deployment + x-cfn-type-name: AWS::ApiGatewayV2::Deployment + x-identifiers: + - ApiId + - DeploymentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApiId') as api_id, + JSON_EXTRACT(Properties, '$.DeploymentId') as deployment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Deployment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApiId') as api_id, + json_extract_path_text(Properties, 'DeploymentId') as deployment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Deployment' + AND region = 'us-east-1' domain_names: name: domain_names id: aws.apigatewayv2.domain_names @@ -2231,10 +2549,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::DomainName' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MutualTlsAuthentication') as mutual_tls_authentication, + JSON_EXTRACT(detail.Properties, '$.RegionalHostedZoneId') as regional_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.RegionalDomainName') as regional_domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainNameConfigurations') as domain_name_configurations, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ApiGatewayV2::DomainName' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::DomainName' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2254,10 +2582,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::DomainName' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MutualTlsAuthentication') as mutual_tls_authentication, + json_extract_path_text(detail.Properties, 'RegionalHostedZoneId') as regional_hosted_zone_id, + json_extract_path_text(detail.Properties, 'RegionalDomainName') as regional_domain_name, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainNameConfigurations') as domain_name_configurations, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ApiGatewayV2::DomainName' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::DomainName' + AND listing.region = 'us-east-1' + domain_names_list_only: + name: domain_names_list_only + id: aws.apigatewayv2.domain_names_list_only + x-cfn-schema-name: DomainName + x-cfn-type-name: AWS::ApiGatewayV2::DomainName + x-identifiers: + - DomainName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::DomainName' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::DomainName' + AND region = 'us-east-1' + domain_name_tags: + name: domain_name_tags + id: aws.apigatewayv2.domain_name_tags + x-cfn-schema-name: DomainName + x-cfn-type-name: AWS::ApiGatewayV2::DomainName + 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, '$.MutualTlsAuthentication') as mutual_tls_authentication, + JSON_EXTRACT(detail.Properties, '$.RegionalHostedZoneId') as regional_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.RegionalDomainName') as regional_domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainNameConfigurations') as domain_name_configurations + 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::ApiGatewayV2::DomainName' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::DomainName' + 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, 'MutualTlsAuthentication') as mutual_tls_authentication, + json_extract_path_text(detail.Properties, 'RegionalHostedZoneId') as regional_hosted_zone_id, + json_extract_path_text(detail.Properties, 'RegionalDomainName') as regional_domain_name, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainNameConfigurations') as domain_name_configurations + 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::ApiGatewayV2::DomainName' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::DomainName' + AND listing.region = 'us-east-1' integration_responses: name: integration_responses id: aws.apigatewayv2.integration_responses @@ -2338,12 +2760,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApiId') as api_id, - JSON_EXTRACT(Properties, '$.IntegrationId') as integration_id, - JSON_EXTRACT(Properties, '$.IntegrationResponseId') as integration_response_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::IntegrationResponse' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IntegrationResponseId') as integration_response_id, + JSON_EXTRACT(detail.Properties, '$.ResponseTemplates') as response_templates, + JSON_EXTRACT(detail.Properties, '$.TemplateSelectionExpression') as template_selection_expression, + JSON_EXTRACT(detail.Properties, '$.ResponseParameters') as response_parameters, + JSON_EXTRACT(detail.Properties, '$.ContentHandlingStrategy') as content_handling_strategy, + JSON_EXTRACT(detail.Properties, '$.IntegrationId') as integration_id, + JSON_EXTRACT(detail.Properties, '$.IntegrationResponseKey') as integration_response_key, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id + 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::ApiGatewayV2::IntegrationResponse' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::IntegrationResponse' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2365,12 +2797,59 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApiId') as api_id, - json_extract_path_text(Properties, 'IntegrationId') as integration_id, - json_extract_path_text(Properties, 'IntegrationResponseId') as integration_response_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::IntegrationResponse' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IntegrationResponseId') as integration_response_id, + json_extract_path_text(detail.Properties, 'ResponseTemplates') as response_templates, + json_extract_path_text(detail.Properties, 'TemplateSelectionExpression') as template_selection_expression, + json_extract_path_text(detail.Properties, 'ResponseParameters') as response_parameters, + json_extract_path_text(detail.Properties, 'ContentHandlingStrategy') as content_handling_strategy, + json_extract_path_text(detail.Properties, 'IntegrationId') as integration_id, + json_extract_path_text(detail.Properties, 'IntegrationResponseKey') as integration_response_key, + json_extract_path_text(detail.Properties, 'ApiId') as api_id + 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::ApiGatewayV2::IntegrationResponse' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::IntegrationResponse' + AND listing.region = 'us-east-1' + integration_responses_list_only: + name: integration_responses_list_only + id: aws.apigatewayv2.integration_responses_list_only + x-cfn-schema-name: IntegrationResponse + x-cfn-type-name: AWS::ApiGatewayV2::IntegrationResponse + x-identifiers: + - ApiId + - IntegrationId + - IntegrationResponseId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApiId') as api_id, + JSON_EXTRACT(Properties, '$.IntegrationId') as integration_id, + JSON_EXTRACT(Properties, '$.IntegrationResponseId') as integration_response_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::IntegrationResponse' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApiId') as api_id, + json_extract_path_text(Properties, 'IntegrationId') as integration_id, + json_extract_path_text(Properties, 'IntegrationResponseId') as integration_response_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::IntegrationResponse' + AND region = 'us-east-1' models: name: models id: aws.apigatewayv2.models @@ -2448,11 +2927,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApiId') as api_id, - JSON_EXTRACT(Properties, '$.ModelId') as model_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Model' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ModelId') as model_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ContentType') as content_type, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::ApiGatewayV2::Model' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Model' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2472,11 +2960,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApiId') as api_id, - json_extract_path_text(Properties, 'ModelId') as model_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Model' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ModelId') as model_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ContentType') as content_type, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::ApiGatewayV2::Model' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Model' + AND listing.region = 'us-east-1' + models_list_only: + name: models_list_only + id: aws.apigatewayv2.models_list_only + x-cfn-schema-name: Model + x-cfn-type-name: AWS::ApiGatewayV2::Model + x-identifiers: + - ApiId + - ModelId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApiId') as api_id, + JSON_EXTRACT(Properties, '$.ModelId') as model_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Model' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApiId') as api_id, + json_extract_path_text(Properties, 'ModelId') as model_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Model' + AND region = 'us-east-1' routes: name: routes id: aws.apigatewayv2.routes @@ -2561,11 +3092,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApiId') as api_id, - JSON_EXTRACT(Properties, '$.RouteId') as route_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Route' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RouteId') as route_id, + JSON_EXTRACT(detail.Properties, '$.RouteResponseSelectionExpression') as route_response_selection_expression, + JSON_EXTRACT(detail.Properties, '$.RequestModels') as request_models, + JSON_EXTRACT(detail.Properties, '$.OperationName') as operation_name, + JSON_EXTRACT(detail.Properties, '$.AuthorizationScopes') as authorization_scopes, + JSON_EXTRACT(detail.Properties, '$.ApiKeyRequired') as api_key_required, + JSON_EXTRACT(detail.Properties, '$.RouteKey') as route_key, + JSON_EXTRACT(detail.Properties, '$.AuthorizationType') as authorization_type, + JSON_EXTRACT(detail.Properties, '$.ModelSelectionExpression') as model_selection_expression, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.RequestParameters') as request_parameters, + JSON_EXTRACT(detail.Properties, '$.Target') as target, + JSON_EXTRACT(detail.Properties, '$.AuthorizerId') as authorizer_id + 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::ApiGatewayV2::Route' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Route' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2592,11 +3139,61 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApiId') as api_id, - json_extract_path_text(Properties, 'RouteId') as route_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Route' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RouteId') as route_id, + json_extract_path_text(detail.Properties, 'RouteResponseSelectionExpression') as route_response_selection_expression, + json_extract_path_text(detail.Properties, 'RequestModels') as request_models, + json_extract_path_text(detail.Properties, 'OperationName') as operation_name, + json_extract_path_text(detail.Properties, 'AuthorizationScopes') as authorization_scopes, + json_extract_path_text(detail.Properties, 'ApiKeyRequired') as api_key_required, + json_extract_path_text(detail.Properties, 'RouteKey') as route_key, + json_extract_path_text(detail.Properties, 'AuthorizationType') as authorization_type, + json_extract_path_text(detail.Properties, 'ModelSelectionExpression') as model_selection_expression, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'RequestParameters') as request_parameters, + json_extract_path_text(detail.Properties, 'Target') as target, + json_extract_path_text(detail.Properties, 'AuthorizerId') as authorizer_id + 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::ApiGatewayV2::Route' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::Route' + AND listing.region = 'us-east-1' + routes_list_only: + name: routes_list_only + id: aws.apigatewayv2.routes_list_only + x-cfn-schema-name: Route + x-cfn-type-name: AWS::ApiGatewayV2::Route + x-identifiers: + - ApiId + - RouteId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApiId') as api_id, + JSON_EXTRACT(Properties, '$.RouteId') as route_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Route' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApiId') as api_id, + json_extract_path_text(Properties, 'RouteId') as route_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::Route' + AND region = 'us-east-1' route_responses: name: route_responses id: aws.apigatewayv2.route_responses @@ -2676,12 +3273,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApiId') as api_id, - JSON_EXTRACT(Properties, '$.RouteId') as route_id, - JSON_EXTRACT(Properties, '$.RouteResponseId') as route_response_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::RouteResponse' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RouteResponseKey') as route_response_key, + JSON_EXTRACT(detail.Properties, '$.ResponseParameters') as response_parameters, + JSON_EXTRACT(detail.Properties, '$.RouteId') as route_id, + JSON_EXTRACT(detail.Properties, '$.ModelSelectionExpression') as model_selection_expression, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.ResponseModels') as response_models, + JSON_EXTRACT(detail.Properties, '$.RouteResponseId') as route_response_id + 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::ApiGatewayV2::RouteResponse' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::RouteResponse' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2702,12 +3308,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApiId') as api_id, - json_extract_path_text(Properties, 'RouteId') as route_id, - json_extract_path_text(Properties, 'RouteResponseId') as route_response_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::RouteResponse' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RouteResponseKey') as route_response_key, + json_extract_path_text(detail.Properties, 'ResponseParameters') as response_parameters, + json_extract_path_text(detail.Properties, 'RouteId') as route_id, + json_extract_path_text(detail.Properties, 'ModelSelectionExpression') as model_selection_expression, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'ResponseModels') as response_models, + json_extract_path_text(detail.Properties, 'RouteResponseId') as route_response_id + 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::ApiGatewayV2::RouteResponse' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::RouteResponse' + AND listing.region = 'us-east-1' + route_responses_list_only: + name: route_responses_list_only + id: aws.apigatewayv2.route_responses_list_only + x-cfn-schema-name: RouteResponse + x-cfn-type-name: AWS::ApiGatewayV2::RouteResponse + x-identifiers: + - ApiId + - RouteId + - RouteResponseId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApiId') as api_id, + JSON_EXTRACT(Properties, '$.RouteId') as route_id, + JSON_EXTRACT(Properties, '$.RouteResponseId') as route_response_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::RouteResponse' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApiId') as api_id, + json_extract_path_text(Properties, 'RouteId') as route_id, + json_extract_path_text(Properties, 'RouteResponseId') as route_response_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::RouteResponse' + AND region = 'us-east-1' vpc_links: name: vpc_links id: aws.apigatewayv2.vpc_links @@ -2783,10 +3435,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VpcLinkId') as vpc_link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::VpcLink' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VpcLinkId') as vpc_link_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::ApiGatewayV2::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::VpcLink' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2805,10 +3466,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VpcLinkId') as vpc_link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::VpcLink' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VpcLinkId') as vpc_link_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::ApiGatewayV2::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::VpcLink' + AND listing.region = 'us-east-1' + vpc_links_list_only: + name: vpc_links_list_only + id: aws.apigatewayv2.vpc_links_list_only + x-cfn-schema-name: VpcLink + x-cfn-type-name: AWS::ApiGatewayV2::VpcLink + x-identifiers: + - VpcLinkId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VpcLinkId') as vpc_link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::VpcLink' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VpcLinkId') as vpc_link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGatewayV2::VpcLink' + AND region = 'us-east-1' + vpc_link_tags: + name: vpc_link_tags + id: aws.apigatewayv2.vpc_link_tags + x-cfn-schema-name: VpcLink + x-cfn-type-name: AWS::ApiGatewayV2::VpcLink + 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, '$.VpcLinkId') as vpc_link_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::ApiGatewayV2::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::VpcLink' + 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, 'VpcLinkId') as vpc_link_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Name') as name + 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::ApiGatewayV2::VpcLink' + AND detail.data__TypeName = 'AWS::ApiGatewayV2::VpcLink' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/appconfig.yaml b/providers/src/aws/v00.00.00000/services/appconfig.yaml index e28de010..ad30dcd2 100644 --- a/providers/src/aws/v00.00.00000/services/appconfig.yaml +++ b/providers/src/aws/v00.00.00000/services/appconfig.yaml @@ -1364,10 +1364,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::AppConfig::Application' + AND detail.data__TypeName = 'AWS::AppConfig::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1385,10 +1393,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::AppConfig::Application' + AND detail.data__TypeName = 'AWS::AppConfig::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.appconfig.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::AppConfig::Application + x-identifiers: + - ApplicationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.appconfig.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::AppConfig::Application + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::AppConfig::Application' + AND detail.data__TypeName = 'AWS::AppConfig::Application' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::AppConfig::Application' + AND detail.data__TypeName = 'AWS::AppConfig::Application' + AND listing.region = 'us-east-1' configuration_profiles: name: configuration_profiles id: aws.appconfig.configuration_profiles @@ -1471,11 +1567,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.ConfigurationProfileId') as configuration_profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ConfigurationProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConfigurationProfileId') as configuration_profile_id, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyIdentifier') as kms_key_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Validators') as validators, + JSON_EXTRACT(detail.Properties, '$.RetrievalRoleArn') as retrieval_role_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::AppConfig::ConfigurationProfile' + AND detail.data__TypeName = 'AWS::AppConfig::ConfigurationProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1500,11 +1610,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'ConfigurationProfileId') as configuration_profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ConfigurationProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConfigurationProfileId') as configuration_profile_id, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'KmsKeyIdentifier') as kms_key_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Validators') as validators, + json_extract_path_text(detail.Properties, 'RetrievalRoleArn') as retrieval_role_arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::AppConfig::ConfigurationProfile' + AND detail.data__TypeName = 'AWS::AppConfig::ConfigurationProfile' + AND listing.region = 'us-east-1' + configuration_profiles_list_only: + name: configuration_profiles_list_only + id: aws.appconfig.configuration_profiles_list_only + x-cfn-schema-name: ConfigurationProfile + x-cfn-type-name: AWS::AppConfig::ConfigurationProfile + x-identifiers: + - ApplicationId + - ConfigurationProfileId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.ConfigurationProfileId') as configuration_profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ConfigurationProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'ConfigurationProfileId') as configuration_profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ConfigurationProfile' + AND region = 'us-east-1' + configuration_profile_tags: + name: configuration_profile_tags + id: aws.appconfig.configuration_profile_tags + x-cfn-schema-name: ConfigurationProfile + x-cfn-type-name: AWS::AppConfig::ConfigurationProfile + 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, '$.ConfigurationProfileId') as configuration_profile_id, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyIdentifier') as kms_key_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Validators') as validators, + JSON_EXTRACT(detail.Properties, '$.RetrievalRoleArn') as retrieval_role_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::AppConfig::ConfigurationProfile' + AND detail.data__TypeName = 'AWS::AppConfig::ConfigurationProfile' + 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, 'ConfigurationProfileId') as configuration_profile_id, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'KmsKeyIdentifier') as kms_key_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Validators') as validators, + json_extract_path_text(detail.Properties, 'RetrievalRoleArn') as retrieval_role_arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::AppConfig::ConfigurationProfile' + AND detail.data__TypeName = 'AWS::AppConfig::ConfigurationProfile' + AND listing.region = 'us-east-1' environments: name: environments id: aws.appconfig.environments @@ -1582,11 +1803,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.EnvironmentId') as environment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Monitors') as monitors, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::AppConfig::Environment' + AND detail.data__TypeName = 'AWS::AppConfig::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1606,11 +1836,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'EnvironmentId') as environment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Monitors') as monitors, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::AppConfig::Environment' + AND detail.data__TypeName = 'AWS::AppConfig::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.appconfig.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::AppConfig::Environment + x-identifiers: + - ApplicationId + - EnvironmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.EnvironmentId') as environment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'EnvironmentId') as environment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Environment' + AND region = 'us-east-1' + environment_tags: + name: environment_tags + id: aws.appconfig.environment_tags + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::AppConfig::Environment + 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, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Monitors') as monitors, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::AppConfig::Environment' + AND detail.data__TypeName = 'AWS::AppConfig::Environment' + 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, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Monitors') as monitors, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::AppConfig::Environment' + AND detail.data__TypeName = 'AWS::AppConfig::Environment' + AND listing.region = 'us-east-1' extensions: name: extensions id: aws.appconfig.extensions @@ -1690,10 +2016,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Extension' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.VersionNumber') as version_number, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.LatestVersionNumber') as latest_version_number, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppConfig::Extension' + AND detail.data__TypeName = 'AWS::AppConfig::Extension' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1716,10 +2055,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Extension' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'VersionNumber') as version_number, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'LatestVersionNumber') as latest_version_number, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppConfig::Extension' + AND detail.data__TypeName = 'AWS::AppConfig::Extension' + AND listing.region = 'us-east-1' + extensions_list_only: + name: extensions_list_only + id: aws.appconfig.extensions_list_only + x-cfn-schema-name: Extension + x-cfn-type-name: AWS::AppConfig::Extension + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Extension' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::Extension' + AND region = 'us-east-1' + extension_tags: + name: extension_tags + id: aws.appconfig.extension_tags + x-cfn-schema-name: Extension + x-cfn-type-name: AWS::AppConfig::Extension + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.VersionNumber') as version_number, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.LatestVersionNumber') as latest_version_number + 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::AppConfig::Extension' + AND detail.data__TypeName = 'AWS::AppConfig::Extension' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'VersionNumber') as version_number, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'LatestVersionNumber') as latest_version_number + 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::AppConfig::Extension' + AND detail.data__TypeName = 'AWS::AppConfig::Extension' + AND listing.region = 'us-east-1' extension_associations: name: extension_associations id: aws.appconfig.extension_associations @@ -1799,10 +2241,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ExtensionAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ExtensionArn') as extension_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.ExtensionIdentifier') as extension_identifier, + JSON_EXTRACT(detail.Properties, '$.ResourceIdentifier') as resource_identifier, + JSON_EXTRACT(detail.Properties, '$.ExtensionVersionNumber') as extension_version_number, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppConfig::ExtensionAssociation' + AND detail.data__TypeName = 'AWS::AppConfig::ExtensionAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1825,10 +2280,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ExtensionAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ExtensionArn') as extension_arn, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'ExtensionIdentifier') as extension_identifier, + json_extract_path_text(detail.Properties, 'ResourceIdentifier') as resource_identifier, + json_extract_path_text(detail.Properties, 'ExtensionVersionNumber') as extension_version_number, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppConfig::ExtensionAssociation' + AND detail.data__TypeName = 'AWS::AppConfig::ExtensionAssociation' + AND listing.region = 'us-east-1' + extension_associations_list_only: + name: extension_associations_list_only + id: aws.appconfig.extension_associations_list_only + x-cfn-schema-name: ExtensionAssociation + x-cfn-type-name: AWS::AppConfig::ExtensionAssociation + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ExtensionAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::ExtensionAssociation' + AND region = 'us-east-1' + extension_association_tags: + name: extension_association_tags + id: aws.appconfig.extension_association_tags + x-cfn-schema-name: ExtensionAssociation + x-cfn-type-name: AWS::AppConfig::ExtensionAssociation + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ExtensionArn') as extension_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.ExtensionIdentifier') as extension_identifier, + JSON_EXTRACT(detail.Properties, '$.ResourceIdentifier') as resource_identifier, + JSON_EXTRACT(detail.Properties, '$.ExtensionVersionNumber') as extension_version_number, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters + 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::AppConfig::ExtensionAssociation' + AND detail.data__TypeName = 'AWS::AppConfig::ExtensionAssociation' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ExtensionArn') as extension_arn, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'ExtensionIdentifier') as extension_identifier, + json_extract_path_text(detail.Properties, 'ResourceIdentifier') as resource_identifier, + json_extract_path_text(detail.Properties, 'ExtensionVersionNumber') as extension_version_number, + json_extract_path_text(detail.Properties, 'Parameters') as parameters + 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::AppConfig::ExtensionAssociation' + AND detail.data__TypeName = 'AWS::AppConfig::ExtensionAssociation' + AND listing.region = 'us-east-1' hosted_configuration_versions: name: hosted_configuration_versions id: aws.appconfig.hosted_configuration_versions @@ -1896,12 +2454,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.ConfigurationProfileId') as configuration_profile_id, - JSON_EXTRACT(Properties, '$.VersionNumber') as version_number - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::HostedConfigurationVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConfigurationProfileId') as configuration_profile_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ContentType') as content_type, + JSON_EXTRACT(detail.Properties, '$.LatestVersionNumber') as latest_version_number, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.VersionLabel') as version_label, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.VersionNumber') as version_number + 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::AppConfig::HostedConfigurationVersion' + AND detail.data__TypeName = 'AWS::AppConfig::HostedConfigurationVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1923,12 +2491,59 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'ConfigurationProfileId') as configuration_profile_id, - json_extract_path_text(Properties, 'VersionNumber') as version_number - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::HostedConfigurationVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConfigurationProfileId') as configuration_profile_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ContentType') as content_type, + json_extract_path_text(detail.Properties, 'LatestVersionNumber') as latest_version_number, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'VersionLabel') as version_label, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'VersionNumber') as version_number + 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::AppConfig::HostedConfigurationVersion' + AND detail.data__TypeName = 'AWS::AppConfig::HostedConfigurationVersion' + AND listing.region = 'us-east-1' + hosted_configuration_versions_list_only: + name: hosted_configuration_versions_list_only + id: aws.appconfig.hosted_configuration_versions_list_only + x-cfn-schema-name: HostedConfigurationVersion + x-cfn-type-name: AWS::AppConfig::HostedConfigurationVersion + x-identifiers: + - ApplicationId + - ConfigurationProfileId + - VersionNumber + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.ConfigurationProfileId') as configuration_profile_id, + JSON_EXTRACT(Properties, '$.VersionNumber') as version_number + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::HostedConfigurationVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'ConfigurationProfileId') as configuration_profile_id, + json_extract_path_text(Properties, 'VersionNumber') as version_number + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppConfig::HostedConfigurationVersion' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/appflow.yaml b/providers/src/aws/v00.00.00000/services/appflow.yaml index de38f01d..42ed8fad 100644 --- a/providers/src/aws/v00.00.00000/services/appflow.yaml +++ b/providers/src/aws/v00.00.00000/services/appflow.yaml @@ -2944,10 +2944,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectorLabel') as connector_label - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Connector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectorLabel') as connector_label, + JSON_EXTRACT(detail.Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorProvisioningType') as connector_provisioning_type, + JSON_EXTRACT(detail.Properties, '$.ConnectorProvisioningConfig') as connector_provisioning_config, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::AppFlow::Connector' + AND detail.data__TypeName = 'AWS::AppFlow::Connector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2966,10 +2975,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectorLabel') as connector_label - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Connector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectorLabel') as connector_label, + json_extract_path_text(detail.Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'ConnectorProvisioningType') as connector_provisioning_type, + json_extract_path_text(detail.Properties, 'ConnectorProvisioningConfig') as connector_provisioning_config, + json_extract_path_text(detail.Properties, 'Description') as description + 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::AppFlow::Connector' + AND detail.data__TypeName = 'AWS::AppFlow::Connector' + AND listing.region = 'us-east-1' + connectors_list_only: + name: connectors_list_only + id: aws.appflow.connectors_list_only + x-cfn-schema-name: Connector + x-cfn-type-name: AWS::AppFlow::Connector + x-identifiers: + - ConnectorLabel + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectorLabel') as connector_label + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Connector' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectorLabel') as connector_label + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Connector' + AND region = 'us-east-1' connector_profiles: name: connector_profiles id: aws.appflow.connector_profiles @@ -3048,10 +3097,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectorProfileName') as connector_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::ConnectorProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectorProfileArn') as connector_profile_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorLabel') as connector_label, + JSON_EXTRACT(detail.Properties, '$.ConnectorProfileName') as connector_profile_name, + JSON_EXTRACT(detail.Properties, '$.KMSArn') as kms_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorType') as connector_type, + JSON_EXTRACT(detail.Properties, '$.ConnectionMode') as connection_mode, + JSON_EXTRACT(detail.Properties, '$.ConnectorProfileConfig') as connector_profile_config, + JSON_EXTRACT(detail.Properties, '$.CredentialsArn') as credentials_arn + 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::AppFlow::ConnectorProfile' + AND detail.data__TypeName = 'AWS::AppFlow::ConnectorProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3073,10 +3134,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectorProfileName') as connector_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::ConnectorProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectorProfileArn') as connector_profile_arn, + json_extract_path_text(detail.Properties, 'ConnectorLabel') as connector_label, + json_extract_path_text(detail.Properties, 'ConnectorProfileName') as connector_profile_name, + json_extract_path_text(detail.Properties, 'KMSArn') as kms_arn, + json_extract_path_text(detail.Properties, 'ConnectorType') as connector_type, + json_extract_path_text(detail.Properties, 'ConnectionMode') as connection_mode, + json_extract_path_text(detail.Properties, 'ConnectorProfileConfig') as connector_profile_config, + json_extract_path_text(detail.Properties, 'CredentialsArn') as credentials_arn + 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::AppFlow::ConnectorProfile' + AND detail.data__TypeName = 'AWS::AppFlow::ConnectorProfile' + AND listing.region = 'us-east-1' + connector_profiles_list_only: + name: connector_profiles_list_only + id: aws.appflow.connector_profiles_list_only + x-cfn-schema-name: ConnectorProfile + x-cfn-type-name: AWS::AppFlow::ConnectorProfile + x-identifiers: + - ConnectorProfileName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectorProfileName') as connector_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::ConnectorProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectorProfileName') as connector_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::ConnectorProfile' + AND region = 'us-east-1' flows: name: flows id: aws.appflow.flows @@ -3158,10 +3262,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FlowName') as flow_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Flow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FlowArn') as flow_arn, + JSON_EXTRACT(detail.Properties, '$.FlowName') as flow_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KMSArn') as kms_arn, + JSON_EXTRACT(detail.Properties, '$.TriggerConfig') as trigger_config, + JSON_EXTRACT(detail.Properties, '$.FlowStatus') as flow_status, + JSON_EXTRACT(detail.Properties, '$.SourceFlowConfig') as source_flow_config, + JSON_EXTRACT(detail.Properties, '$.DestinationFlowConfigList') as destination_flow_config_list, + JSON_EXTRACT(detail.Properties, '$.Tasks') as tasks, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.MetadataCatalogConfig') as metadata_catalog_config + 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::AppFlow::Flow' + AND detail.data__TypeName = 'AWS::AppFlow::Flow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3186,10 +3305,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FlowName') as flow_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Flow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FlowArn') as flow_arn, + json_extract_path_text(detail.Properties, 'FlowName') as flow_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KMSArn') as kms_arn, + json_extract_path_text(detail.Properties, 'TriggerConfig') as trigger_config, + json_extract_path_text(detail.Properties, 'FlowStatus') as flow_status, + json_extract_path_text(detail.Properties, 'SourceFlowConfig') as source_flow_config, + json_extract_path_text(detail.Properties, 'DestinationFlowConfigList') as destination_flow_config_list, + json_extract_path_text(detail.Properties, 'Tasks') as tasks, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'MetadataCatalogConfig') as metadata_catalog_config + 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::AppFlow::Flow' + AND detail.data__TypeName = 'AWS::AppFlow::Flow' + AND listing.region = 'us-east-1' + flows_list_only: + name: flows_list_only + id: aws.appflow.flows_list_only + x-cfn-schema-name: Flow + x-cfn-type-name: AWS::AppFlow::Flow + x-identifiers: + - FlowName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FlowName') as flow_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Flow' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FlowName') as flow_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppFlow::Flow' + AND region = 'us-east-1' + flow_tags: + name: flow_tags + id: aws.appflow.flow_tags + x-cfn-schema-name: Flow + x-cfn-type-name: AWS::AppFlow::Flow + 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, '$.FlowArn') as flow_arn, + JSON_EXTRACT(detail.Properties, '$.FlowName') as flow_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KMSArn') as kms_arn, + JSON_EXTRACT(detail.Properties, '$.TriggerConfig') as trigger_config, + JSON_EXTRACT(detail.Properties, '$.FlowStatus') as flow_status, + JSON_EXTRACT(detail.Properties, '$.SourceFlowConfig') as source_flow_config, + JSON_EXTRACT(detail.Properties, '$.DestinationFlowConfigList') as destination_flow_config_list, + JSON_EXTRACT(detail.Properties, '$.Tasks') as tasks, + JSON_EXTRACT(detail.Properties, '$.MetadataCatalogConfig') as metadata_catalog_config + 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::AppFlow::Flow' + AND detail.data__TypeName = 'AWS::AppFlow::Flow' + 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, 'FlowArn') as flow_arn, + json_extract_path_text(detail.Properties, 'FlowName') as flow_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KMSArn') as kms_arn, + json_extract_path_text(detail.Properties, 'TriggerConfig') as trigger_config, + json_extract_path_text(detail.Properties, 'FlowStatus') as flow_status, + json_extract_path_text(detail.Properties, 'SourceFlowConfig') as source_flow_config, + json_extract_path_text(detail.Properties, 'DestinationFlowConfigList') as destination_flow_config_list, + json_extract_path_text(detail.Properties, 'Tasks') as tasks, + json_extract_path_text(detail.Properties, 'MetadataCatalogConfig') as metadata_catalog_config + 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::AppFlow::Flow' + AND detail.data__TypeName = 'AWS::AppFlow::Flow' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/appintegrations.yaml b/providers/src/aws/v00.00.00000/services/appintegrations.yaml index 3e3c2302..2b6933d9 100644 --- a/providers/src/aws/v00.00.00000/services/appintegrations.yaml +++ b/providers/src/aws/v00.00.00000/services/appintegrations.yaml @@ -1112,10 +1112,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationSourceConfig') as application_source_config, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppIntegrations::Application' + AND detail.data__TypeName = 'AWS::AppIntegrations::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1137,10 +1149,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationArn') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationSourceConfig') as application_source_config, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppIntegrations::Application' + AND detail.data__TypeName = 'AWS::AppIntegrations::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.appintegrations.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::AppIntegrations::Application + x-identifiers: + - ApplicationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationArn') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.appintegrations.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::AppIntegrations::Application + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationSourceConfig') as application_source_config, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions + 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::AppIntegrations::Application' + AND detail.data__TypeName = 'AWS::AppIntegrations::Application' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationSourceConfig') as application_source_config, + json_extract_path_text(detail.Properties, 'Permissions') as permissions + 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::AppIntegrations::Application' + AND detail.data__TypeName = 'AWS::AppIntegrations::Application' + AND listing.region = 'us-east-1' data_integrations: name: data_integrations id: aws.appintegrations.data_integrations @@ -1221,10 +1333,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::DataIntegration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DataIntegrationArn') as data_integration_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.KmsKey') as kms_key, + JSON_EXTRACT(detail.Properties, '$.ScheduleConfig') as schedule_config, + JSON_EXTRACT(detail.Properties, '$.SourceURI') as source_uri, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.FileConfiguration') as file_configuration, + JSON_EXTRACT(detail.Properties, '$.ObjectConfiguration') as object_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::AppIntegrations::DataIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::DataIntegration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1248,10 +1374,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::DataIntegration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DataIntegrationArn') as data_integration_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'KmsKey') as kms_key, + json_extract_path_text(detail.Properties, 'ScheduleConfig') as schedule_config, + json_extract_path_text(detail.Properties, 'SourceURI') as source_uri, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'FileConfiguration') as file_configuration, + json_extract_path_text(detail.Properties, 'ObjectConfiguration') as object_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::AppIntegrations::DataIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::DataIntegration' + AND listing.region = 'us-east-1' + data_integrations_list_only: + name: data_integrations_list_only + id: aws.appintegrations.data_integrations_list_only + x-cfn-schema-name: DataIntegration + x-cfn-type-name: AWS::AppIntegrations::DataIntegration + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::DataIntegration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::DataIntegration' + AND region = 'us-east-1' + data_integration_tags: + name: data_integration_tags + id: aws.appintegrations.data_integration_tags + x-cfn-schema-name: DataIntegration + x-cfn-type-name: AWS::AppIntegrations::DataIntegration + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DataIntegrationArn') as data_integration_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.KmsKey') as kms_key, + JSON_EXTRACT(detail.Properties, '$.ScheduleConfig') as schedule_config, + JSON_EXTRACT(detail.Properties, '$.SourceURI') as source_uri, + JSON_EXTRACT(detail.Properties, '$.FileConfiguration') as file_configuration, + JSON_EXTRACT(detail.Properties, '$.ObjectConfiguration') as object_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::AppIntegrations::DataIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::DataIntegration' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DataIntegrationArn') as data_integration_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'KmsKey') as kms_key, + json_extract_path_text(detail.Properties, 'ScheduleConfig') as schedule_config, + json_extract_path_text(detail.Properties, 'SourceURI') as source_uri, + json_extract_path_text(detail.Properties, 'FileConfiguration') as file_configuration, + json_extract_path_text(detail.Properties, 'ObjectConfiguration') as object_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::AppIntegrations::DataIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::DataIntegration' + AND listing.region = 'us-east-1' event_integrations: name: event_integrations id: aws.appintegrations.event_integrations @@ -1328,10 +1560,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::EventIntegration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EventIntegrationArn') as event_integration_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.EventBridgeBus') as event_bridge_bus, + JSON_EXTRACT(detail.Properties, '$.EventFilter') as event_filter, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppIntegrations::EventIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::EventIntegration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1351,10 +1593,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::EventIntegration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EventIntegrationArn') as event_integration_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'EventBridgeBus') as event_bridge_bus, + json_extract_path_text(detail.Properties, 'EventFilter') as event_filter, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppIntegrations::EventIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::EventIntegration' + AND listing.region = 'us-east-1' + event_integrations_list_only: + name: event_integrations_list_only + id: aws.appintegrations.event_integrations_list_only + x-cfn-schema-name: EventIntegration + x-cfn-type-name: AWS::AppIntegrations::EventIntegration + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::EventIntegration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppIntegrations::EventIntegration' + AND region = 'us-east-1' + event_integration_tags: + name: event_integration_tags + id: aws.appintegrations.event_integration_tags + x-cfn-schema-name: EventIntegration + x-cfn-type-name: AWS::AppIntegrations::EventIntegration + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EventIntegrationArn') as event_integration_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.EventBridgeBus') as event_bridge_bus, + JSON_EXTRACT(detail.Properties, '$.EventFilter') as event_filter + 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::AppIntegrations::EventIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::EventIntegration' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'EventIntegrationArn') as event_integration_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'EventBridgeBus') as event_bridge_bus, + json_extract_path_text(detail.Properties, 'EventFilter') as event_filter + 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::AppIntegrations::EventIntegration' + AND detail.data__TypeName = 'AWS::AppIntegrations::EventIntegration' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/applicationautoscaling.yaml b/providers/src/aws/v00.00.00000/services/applicationautoscaling.yaml index 70b96a62..1c9ad167 100644 --- a/providers/src/aws/v00.00.00000/services/applicationautoscaling.yaml +++ b/providers/src/aws/v00.00.00000/services/applicationautoscaling.yaml @@ -1124,12 +1124,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResourceId') as resource_id, - JSON_EXTRACT(Properties, '$.ScalableDimension') as scalable_dimension, - JSON_EXTRACT(Properties, '$.ServiceNamespace') as service_namespace - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalableTarget' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ScheduledActions') as scheduled_actions, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ServiceNamespace') as service_namespace, + JSON_EXTRACT(detail.Properties, '$.ScalableDimension') as scalable_dimension, + JSON_EXTRACT(detail.Properties, '$.SuspendedState') as suspended_state, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.MinCapacity') as min_capacity, + JSON_EXTRACT(detail.Properties, '$.RoleARN') as role_arn, + JSON_EXTRACT(detail.Properties, '$.MaxCapacity') as max_capacity + 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::ApplicationAutoScaling::ScalableTarget' + AND detail.data__TypeName = 'AWS::ApplicationAutoScaling::ScalableTarget' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1152,12 +1163,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResourceId') as resource_id, - json_extract_path_text(Properties, 'ScalableDimension') as scalable_dimension, - json_extract_path_text(Properties, 'ServiceNamespace') as service_namespace - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalableTarget' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ScheduledActions') as scheduled_actions, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ServiceNamespace') as service_namespace, + json_extract_path_text(detail.Properties, 'ScalableDimension') as scalable_dimension, + json_extract_path_text(detail.Properties, 'SuspendedState') as suspended_state, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'MinCapacity') as min_capacity, + json_extract_path_text(detail.Properties, 'RoleARN') as role_arn, + json_extract_path_text(detail.Properties, 'MaxCapacity') as max_capacity + 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::ApplicationAutoScaling::ScalableTarget' + AND detail.data__TypeName = 'AWS::ApplicationAutoScaling::ScalableTarget' + AND listing.region = 'us-east-1' + scalable_targets_list_only: + name: scalable_targets_list_only + id: aws.applicationautoscaling.scalable_targets_list_only + x-cfn-schema-name: ScalableTarget + x-cfn-type-name: AWS::ApplicationAutoScaling::ScalableTarget + x-identifiers: + - ResourceId + - ScalableDimension + - ServiceNamespace + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(Properties, '$.ScalableDimension') as scalable_dimension, + JSON_EXTRACT(Properties, '$.ServiceNamespace') as service_namespace + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalableTarget' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResourceId') as resource_id, + json_extract_path_text(Properties, 'ScalableDimension') as scalable_dimension, + json_extract_path_text(Properties, 'ServiceNamespace') as service_namespace + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalableTarget' + AND region = 'us-east-1' scaling_policies: name: scaling_policies id: aws.applicationautoscaling.scaling_policies @@ -1238,11 +1297,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn, - JSON_EXTRACT(Properties, '$.ScalableDimension') as scalable_dimension - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalingPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyType') as policy_type, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ScalableDimension') as scalable_dimension, + JSON_EXTRACT(detail.Properties, '$.ScalingTargetId') as scaling_target_id, + JSON_EXTRACT(detail.Properties, '$.ServiceNamespace') as service_namespace, + JSON_EXTRACT(detail.Properties, '$.StepScalingPolicyConfiguration') as step_scaling_policy_configuration, + JSON_EXTRACT(detail.Properties, '$.TargetTrackingScalingPolicyConfiguration') as target_tracking_scaling_policy_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::ApplicationAutoScaling::ScalingPolicy' + AND detail.data__TypeName = 'AWS::ApplicationAutoScaling::ScalingPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1265,11 +1336,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn, - json_extract_path_text(Properties, 'ScalableDimension') as scalable_dimension - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalingPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyType') as policy_type, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ScalableDimension') as scalable_dimension, + json_extract_path_text(detail.Properties, 'ScalingTargetId') as scaling_target_id, + json_extract_path_text(detail.Properties, 'ServiceNamespace') as service_namespace, + json_extract_path_text(detail.Properties, 'StepScalingPolicyConfiguration') as step_scaling_policy_configuration, + json_extract_path_text(detail.Properties, 'TargetTrackingScalingPolicyConfiguration') as target_tracking_scaling_policy_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::ApplicationAutoScaling::ScalingPolicy' + AND detail.data__TypeName = 'AWS::ApplicationAutoScaling::ScalingPolicy' + AND listing.region = 'us-east-1' + scaling_policies_list_only: + name: scaling_policies_list_only + id: aws.applicationautoscaling.scaling_policies_list_only + x-cfn-schema-name: ScalingPolicy + x-cfn-type-name: AWS::ApplicationAutoScaling::ScalingPolicy + x-identifiers: + - Arn + - ScalableDimension + 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, + JSON_EXTRACT(Properties, '$.ScalableDimension') as scalable_dimension + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalingPolicy' + 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, 'ScalableDimension') as scalable_dimension + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationAutoScaling::ScalingPolicy' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/applicationinsights.yaml b/providers/src/aws/v00.00.00000/services/applicationinsights.yaml index c6db706d..0b08e83f 100644 --- a/providers/src/aws/v00.00.00000/services/applicationinsights.yaml +++ b/providers/src/aws/v00.00.00000/services/applicationinsights.yaml @@ -1102,10 +1102,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationARN') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationInsights::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceGroupName') as resource_group_name, + JSON_EXTRACT(detail.Properties, '$.ApplicationARN') as application_arn, + JSON_EXTRACT(detail.Properties, '$.CWEMonitorEnabled') as cwe_monitor_enabled, + JSON_EXTRACT(detail.Properties, '$.OpsCenterEnabled') as ops_center_enabled, + JSON_EXTRACT(detail.Properties, '$.OpsItemSNSTopicArn') as ops_item_sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CustomComponents') as custom_components, + JSON_EXTRACT(detail.Properties, '$.LogPatternSets') as log_pattern_sets, + JSON_EXTRACT(detail.Properties, '$.AutoConfigurationEnabled') as auto_configuration_enabled, + JSON_EXTRACT(detail.Properties, '$.ComponentMonitoringSettings') as component_monitoring_settings, + JSON_EXTRACT(detail.Properties, '$.GroupingType') as grouping_type, + JSON_EXTRACT(detail.Properties, '$.AttachMissingPermission') as attach_missing_permission + 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::ApplicationInsights::Application' + AND detail.data__TypeName = 'AWS::ApplicationInsights::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1131,10 +1147,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationARN') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationInsights::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceGroupName') as resource_group_name, + json_extract_path_text(detail.Properties, 'ApplicationARN') as application_arn, + json_extract_path_text(detail.Properties, 'CWEMonitorEnabled') as cwe_monitor_enabled, + json_extract_path_text(detail.Properties, 'OpsCenterEnabled') as ops_center_enabled, + json_extract_path_text(detail.Properties, 'OpsItemSNSTopicArn') as ops_item_sns_topic_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CustomComponents') as custom_components, + json_extract_path_text(detail.Properties, 'LogPatternSets') as log_pattern_sets, + json_extract_path_text(detail.Properties, 'AutoConfigurationEnabled') as auto_configuration_enabled, + json_extract_path_text(detail.Properties, 'ComponentMonitoringSettings') as component_monitoring_settings, + json_extract_path_text(detail.Properties, 'GroupingType') as grouping_type, + json_extract_path_text(detail.Properties, 'AttachMissingPermission') as attach_missing_permission + 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::ApplicationInsights::Application' + AND detail.data__TypeName = 'AWS::ApplicationInsights::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.applicationinsights.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::ApplicationInsights::Application + x-identifiers: + - ApplicationARN + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationARN') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationInsights::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationARN') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ApplicationInsights::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.applicationinsights.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::ApplicationInsights::Application + 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, '$.ResourceGroupName') as resource_group_name, + JSON_EXTRACT(detail.Properties, '$.ApplicationARN') as application_arn, + JSON_EXTRACT(detail.Properties, '$.CWEMonitorEnabled') as cwe_monitor_enabled, + JSON_EXTRACT(detail.Properties, '$.OpsCenterEnabled') as ops_center_enabled, + JSON_EXTRACT(detail.Properties, '$.OpsItemSNSTopicArn') as ops_item_sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.CustomComponents') as custom_components, + JSON_EXTRACT(detail.Properties, '$.LogPatternSets') as log_pattern_sets, + JSON_EXTRACT(detail.Properties, '$.AutoConfigurationEnabled') as auto_configuration_enabled, + JSON_EXTRACT(detail.Properties, '$.ComponentMonitoringSettings') as component_monitoring_settings, + JSON_EXTRACT(detail.Properties, '$.GroupingType') as grouping_type, + JSON_EXTRACT(detail.Properties, '$.AttachMissingPermission') as attach_missing_permission + 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::ApplicationInsights::Application' + AND detail.data__TypeName = 'AWS::ApplicationInsights::Application' + 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, 'ResourceGroupName') as resource_group_name, + json_extract_path_text(detail.Properties, 'ApplicationARN') as application_arn, + json_extract_path_text(detail.Properties, 'CWEMonitorEnabled') as cwe_monitor_enabled, + json_extract_path_text(detail.Properties, 'OpsCenterEnabled') as ops_center_enabled, + json_extract_path_text(detail.Properties, 'OpsItemSNSTopicArn') as ops_item_sns_topic_arn, + json_extract_path_text(detail.Properties, 'CustomComponents') as custom_components, + json_extract_path_text(detail.Properties, 'LogPatternSets') as log_pattern_sets, + json_extract_path_text(detail.Properties, 'AutoConfigurationEnabled') as auto_configuration_enabled, + json_extract_path_text(detail.Properties, 'ComponentMonitoringSettings') as component_monitoring_settings, + json_extract_path_text(detail.Properties, 'GroupingType') as grouping_type, + json_extract_path_text(detail.Properties, 'AttachMissingPermission') as attach_missing_permission + 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::ApplicationInsights::Application' + AND detail.data__TypeName = 'AWS::ApplicationInsights::Application' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/apprunner.yaml b/providers/src/aws/v00.00.00000/services/apprunner.yaml index 0172856d..96eb42e4 100644 --- a/providers/src/aws/v00.00.00000/services/apprunner.yaml +++ b/providers/src/aws/v00.00.00000/services/apprunner.yaml @@ -1455,10 +1455,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AutoScalingConfigurationArn') as auto_scaling_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.AutoScalingConfigurationName') as auto_scaling_configuration_name, + JSON_EXTRACT(detail.Properties, '$.AutoScalingConfigurationRevision') as auto_scaling_configuration_revision, + JSON_EXTRACT(detail.Properties, '$.MaxConcurrency') as max_concurrency, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.Latest') as latest, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppRunner::AutoScalingConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1480,10 +1492,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AutoScalingConfigurationArn') as auto_scaling_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + json_extract_path_text(detail.Properties, 'AutoScalingConfigurationName') as auto_scaling_configuration_name, + json_extract_path_text(detail.Properties, 'AutoScalingConfigurationRevision') as auto_scaling_configuration_revision, + json_extract_path_text(detail.Properties, 'MaxConcurrency') as max_concurrency, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'Latest') as latest, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppRunner::AutoScalingConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' + AND listing.region = 'us-east-1' + auto_scaling_configurations_list_only: + name: auto_scaling_configurations_list_only + id: aws.apprunner.auto_scaling_configurations_list_only + x-cfn-schema-name: AutoScalingConfiguration + x-cfn-type-name: AWS::AppRunner::AutoScalingConfiguration + x-identifiers: + - AutoScalingConfigurationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AutoScalingConfigurationArn') as auto_scaling_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AutoScalingConfigurationArn') as auto_scaling_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' + AND region = 'us-east-1' + auto_scaling_configuration_tags: + name: auto_scaling_configuration_tags + id: aws.apprunner.auto_scaling_configuration_tags + x-cfn-schema-name: AutoScalingConfiguration + x-cfn-type-name: AWS::AppRunner::AutoScalingConfiguration + 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, '$.AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.AutoScalingConfigurationName') as auto_scaling_configuration_name, + JSON_EXTRACT(detail.Properties, '$.AutoScalingConfigurationRevision') as auto_scaling_configuration_revision, + JSON_EXTRACT(detail.Properties, '$.MaxConcurrency') as max_concurrency, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.Latest') as latest + 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::AppRunner::AutoScalingConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' + 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, 'AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + json_extract_path_text(detail.Properties, 'AutoScalingConfigurationName') as auto_scaling_configuration_name, + json_extract_path_text(detail.Properties, 'AutoScalingConfigurationRevision') as auto_scaling_configuration_revision, + json_extract_path_text(detail.Properties, 'MaxConcurrency') as max_concurrency, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'Latest') as latest + 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::AppRunner::AutoScalingConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::AutoScalingConfiguration' + AND listing.region = 'us-east-1' observability_configurations: name: observability_configurations id: aws.apprunner.observability_configurations @@ -1547,10 +1659,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ObservabilityConfigurationArn') as observability_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ObservabilityConfigurationArn') as observability_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.ObservabilityConfigurationName') as observability_configuration_name, + JSON_EXTRACT(detail.Properties, '$.ObservabilityConfigurationRevision') as observability_configuration_revision, + JSON_EXTRACT(detail.Properties, '$.Latest') as latest, + JSON_EXTRACT(detail.Properties, '$.TraceConfiguration') as trace_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppRunner::ObservabilityConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1570,10 +1692,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ObservabilityConfigurationArn') as observability_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ObservabilityConfigurationArn') as observability_configuration_arn, + json_extract_path_text(detail.Properties, 'ObservabilityConfigurationName') as observability_configuration_name, + json_extract_path_text(detail.Properties, 'ObservabilityConfigurationRevision') as observability_configuration_revision, + json_extract_path_text(detail.Properties, 'Latest') as latest, + json_extract_path_text(detail.Properties, 'TraceConfiguration') as trace_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppRunner::ObservabilityConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' + AND listing.region = 'us-east-1' + observability_configurations_list_only: + name: observability_configurations_list_only + id: aws.apprunner.observability_configurations_list_only + x-cfn-schema-name: ObservabilityConfiguration + x-cfn-type-name: AWS::AppRunner::ObservabilityConfiguration + x-identifiers: + - ObservabilityConfigurationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ObservabilityConfigurationArn') as observability_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ObservabilityConfigurationArn') as observability_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' + AND region = 'us-east-1' + observability_configuration_tags: + name: observability_configuration_tags + id: aws.apprunner.observability_configuration_tags + x-cfn-schema-name: ObservabilityConfiguration + x-cfn-type-name: AWS::AppRunner::ObservabilityConfiguration + 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, '$.ObservabilityConfigurationArn') as observability_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.ObservabilityConfigurationName') as observability_configuration_name, + JSON_EXTRACT(detail.Properties, '$.ObservabilityConfigurationRevision') as observability_configuration_revision, + JSON_EXTRACT(detail.Properties, '$.Latest') as latest, + JSON_EXTRACT(detail.Properties, '$.TraceConfiguration') as trace_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::AppRunner::ObservabilityConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' + 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, 'ObservabilityConfigurationArn') as observability_configuration_arn, + json_extract_path_text(detail.Properties, 'ObservabilityConfigurationName') as observability_configuration_name, + json_extract_path_text(detail.Properties, 'ObservabilityConfigurationRevision') as observability_configuration_revision, + json_extract_path_text(detail.Properties, 'Latest') as latest, + json_extract_path_text(detail.Properties, 'TraceConfiguration') as trace_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::AppRunner::ObservabilityConfiguration' + AND detail.data__TypeName = 'AWS::AppRunner::ObservabilityConfiguration' + AND listing.region = 'us-east-1' services: name: services id: aws.apprunner.services @@ -1657,10 +1873,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServiceArn') as service_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::Service' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceUrl') as service_url, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SourceConfiguration') as source_configuration, + JSON_EXTRACT(detail.Properties, '$.InstanceConfiguration') as instance_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.HealthCheckConfiguration') as health_check_configuration, + JSON_EXTRACT(detail.Properties, '$.ObservabilityConfiguration') as observability_configuration, + JSON_EXTRACT(detail.Properties, '$.AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_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::AppRunner::Service' + AND detail.data__TypeName = 'AWS::AppRunner::Service' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1687,10 +1920,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServiceArn') as service_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::Service' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'ServiceUrl') as service_url, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SourceConfiguration') as source_configuration, + json_extract_path_text(detail.Properties, 'InstanceConfiguration') as instance_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'HealthCheckConfiguration') as health_check_configuration, + json_extract_path_text(detail.Properties, 'ObservabilityConfiguration') as observability_configuration, + json_extract_path_text(detail.Properties, 'AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_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::AppRunner::Service' + AND detail.data__TypeName = 'AWS::AppRunner::Service' + AND listing.region = 'us-east-1' + services_list_only: + name: services_list_only + id: aws.apprunner.services_list_only + x-cfn-schema-name: Service + x-cfn-type-name: AWS::AppRunner::Service + x-identifiers: + - ServiceArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServiceArn') as service_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::Service' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServiceArn') as service_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::Service' + AND region = 'us-east-1' + service_tags: + name: service_tags + id: aws.apprunner.service_tags + x-cfn-schema-name: Service + x-cfn-type-name: AWS::AppRunner::Service + 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, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceUrl') as service_url, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SourceConfiguration') as source_configuration, + JSON_EXTRACT(detail.Properties, '$.InstanceConfiguration') as instance_configuration, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.HealthCheckConfiguration') as health_check_configuration, + JSON_EXTRACT(detail.Properties, '$.ObservabilityConfiguration') as observability_configuration, + JSON_EXTRACT(detail.Properties, '$.AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_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::AppRunner::Service' + AND detail.data__TypeName = 'AWS::AppRunner::Service' + 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, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'ServiceUrl') as service_url, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SourceConfiguration') as source_configuration, + json_extract_path_text(detail.Properties, 'InstanceConfiguration') as instance_configuration, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'HealthCheckConfiguration') as health_check_configuration, + json_extract_path_text(detail.Properties, 'ObservabilityConfiguration') as observability_configuration, + json_extract_path_text(detail.Properties, 'AutoScalingConfigurationArn') as auto_scaling_configuration_arn, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_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::AppRunner::Service' + AND detail.data__TypeName = 'AWS::AppRunner::Service' + AND listing.region = 'us-east-1' vpc_connectors: name: vpc_connectors id: aws.apprunner.vpc_connectors @@ -1754,10 +2102,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VpcConnectorArn') as vpc_connector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcConnector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VpcConnectorName') as vpc_connector_name, + JSON_EXTRACT(detail.Properties, '$.VpcConnectorArn') as vpc_connector_arn, + JSON_EXTRACT(detail.Properties, '$.VpcConnectorRevision') as vpc_connector_revision, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppRunner::VpcConnector' + AND detail.data__TypeName = 'AWS::AppRunner::VpcConnector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1777,10 +2135,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VpcConnectorArn') as vpc_connector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcConnector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VpcConnectorName') as vpc_connector_name, + json_extract_path_text(detail.Properties, 'VpcConnectorArn') as vpc_connector_arn, + json_extract_path_text(detail.Properties, 'VpcConnectorRevision') as vpc_connector_revision, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppRunner::VpcConnector' + AND detail.data__TypeName = 'AWS::AppRunner::VpcConnector' + AND listing.region = 'us-east-1' + vpc_connectors_list_only: + name: vpc_connectors_list_only + id: aws.apprunner.vpc_connectors_list_only + x-cfn-schema-name: VpcConnector + x-cfn-type-name: AWS::AppRunner::VpcConnector + x-identifiers: + - VpcConnectorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VpcConnectorArn') as vpc_connector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcConnector' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VpcConnectorArn') as vpc_connector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcConnector' + AND region = 'us-east-1' + vpc_connector_tags: + name: vpc_connector_tags + id: aws.apprunner.vpc_connector_tags + x-cfn-schema-name: VpcConnector + x-cfn-type-name: AWS::AppRunner::VpcConnector + 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, '$.VpcConnectorName') as vpc_connector_name, + JSON_EXTRACT(detail.Properties, '$.VpcConnectorArn') as vpc_connector_arn, + JSON_EXTRACT(detail.Properties, '$.VpcConnectorRevision') as vpc_connector_revision, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups + 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::AppRunner::VpcConnector' + AND detail.data__TypeName = 'AWS::AppRunner::VpcConnector' + 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, 'VpcConnectorName') as vpc_connector_name, + json_extract_path_text(detail.Properties, 'VpcConnectorArn') as vpc_connector_arn, + json_extract_path_text(detail.Properties, 'VpcConnectorRevision') as vpc_connector_revision, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups + 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::AppRunner::VpcConnector' + AND detail.data__TypeName = 'AWS::AppRunner::VpcConnector' + AND listing.region = 'us-east-1' vpc_ingress_connections: name: vpc_ingress_connections id: aws.apprunner.vpc_ingress_connections @@ -1858,10 +2310,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VpcIngressConnectionArn') as vpc_ingress_connection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcIngressConnection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VpcIngressConnectionArn') as vpc_ingress_connection_arn, + JSON_EXTRACT(detail.Properties, '$.VpcIngressConnectionName') as vpc_ingress_connection_name, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.IngressVpcConfiguration') as ingress_vpc_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::AppRunner::VpcIngressConnection' + AND detail.data__TypeName = 'AWS::AppRunner::VpcIngressConnection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1882,10 +2345,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VpcIngressConnectionArn') as vpc_ingress_connection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcIngressConnection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VpcIngressConnectionArn') as vpc_ingress_connection_arn, + json_extract_path_text(detail.Properties, 'VpcIngressConnectionName') as vpc_ingress_connection_name, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'IngressVpcConfiguration') as ingress_vpc_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::AppRunner::VpcIngressConnection' + AND detail.data__TypeName = 'AWS::AppRunner::VpcIngressConnection' + AND listing.region = 'us-east-1' + vpc_ingress_connections_list_only: + name: vpc_ingress_connections_list_only + id: aws.apprunner.vpc_ingress_connections_list_only + x-cfn-schema-name: VpcIngressConnection + x-cfn-type-name: AWS::AppRunner::VpcIngressConnection + x-identifiers: + - VpcIngressConnectionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VpcIngressConnectionArn') as vpc_ingress_connection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcIngressConnection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VpcIngressConnectionArn') as vpc_ingress_connection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppRunner::VpcIngressConnection' + AND region = 'us-east-1' + vpc_ingress_connection_tags: + name: vpc_ingress_connection_tags + id: aws.apprunner.vpc_ingress_connection_tags + x-cfn-schema-name: VpcIngressConnection + x-cfn-type-name: AWS::AppRunner::VpcIngressConnection + 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, '$.VpcIngressConnectionArn') as vpc_ingress_connection_arn, + JSON_EXTRACT(detail.Properties, '$.VpcIngressConnectionName') as vpc_ingress_connection_name, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.IngressVpcConfiguration') as ingress_vpc_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::AppRunner::VpcIngressConnection' + AND detail.data__TypeName = 'AWS::AppRunner::VpcIngressConnection' + 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, 'VpcIngressConnectionArn') as vpc_ingress_connection_arn, + json_extract_path_text(detail.Properties, 'VpcIngressConnectionName') as vpc_ingress_connection_name, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'IngressVpcConfiguration') as ingress_vpc_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::AppRunner::VpcIngressConnection' + AND detail.data__TypeName = 'AWS::AppRunner::VpcIngressConnection' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/appstream.yaml b/providers/src/aws/v00.00.00000/services/appstream.yaml index cc39e552..72fc056f 100644 --- a/providers/src/aws/v00.00.00000/services/appstream.yaml +++ b/providers/src/aws/v00.00.00000/services/appstream.yaml @@ -1545,10 +1545,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::AppBlockBuilder' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.AccessEndpoints') as access_endpoints, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.EnableDefaultInternetAccess') as enable_default_internet_access, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.AppBlockArns') as app_block_arns + 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::AppStream::AppBlockBuilder' + AND detail.data__TypeName = 'AWS::AppStream::AppBlockBuilder' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1575,10 +1592,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::AppBlockBuilder' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'AccessEndpoints') as access_endpoints, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'EnableDefaultInternetAccess') as enable_default_internet_access, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'AppBlockArns') as app_block_arns + 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::AppStream::AppBlockBuilder' + AND detail.data__TypeName = 'AWS::AppStream::AppBlockBuilder' + AND listing.region = 'us-east-1' + app_block_builders_list_only: + name: app_block_builders_list_only + id: aws.appstream.app_block_builders_list_only + x-cfn-schema-name: AppBlockBuilder + x-cfn-type-name: AWS::AppStream::AppBlockBuilder + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::AppBlockBuilder' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::AppBlockBuilder' + AND region = 'us-east-1' + app_block_builder_tags: + name: app_block_builder_tags + id: aws.appstream.app_block_builder_tags + x-cfn-schema-name: AppBlockBuilder + x-cfn-type-name: AWS::AppStream::AppBlockBuilder + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.AccessEndpoints') as access_endpoints, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.EnableDefaultInternetAccess') as enable_default_internet_access, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.AppBlockArns') as app_block_arns + 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::AppStream::AppBlockBuilder' + AND detail.data__TypeName = 'AWS::AppStream::AppBlockBuilder' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'AccessEndpoints') as access_endpoints, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'EnableDefaultInternetAccess') as enable_default_internet_access, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'AppBlockArns') as app_block_arns + 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::AppStream::AppBlockBuilder' + AND detail.data__TypeName = 'AWS::AppStream::AppBlockBuilder' + AND listing.region = 'us-east-1' applications: name: applications id: aws.appstream.applications @@ -1893,10 +2025,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DirectoryName') as directory_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::DirectoryConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.OrganizationalUnitDistinguishedNames') as organizational_unit_distinguished_names, + JSON_EXTRACT(detail.Properties, '$.ServiceAccountCredentials') as service_account_credentials, + JSON_EXTRACT(detail.Properties, '$.DirectoryName') as directory_name, + JSON_EXTRACT(detail.Properties, '$.CertificateBasedAuthProperties') as certificate_based_auth_properties + 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::AppStream::DirectoryConfig' + AND detail.data__TypeName = 'AWS::AppStream::DirectoryConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1914,10 +2054,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DirectoryName') as directory_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::DirectoryConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'OrganizationalUnitDistinguishedNames') as organizational_unit_distinguished_names, + json_extract_path_text(detail.Properties, 'ServiceAccountCredentials') as service_account_credentials, + json_extract_path_text(detail.Properties, 'DirectoryName') as directory_name, + json_extract_path_text(detail.Properties, 'CertificateBasedAuthProperties') as certificate_based_auth_properties + 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::AppStream::DirectoryConfig' + AND detail.data__TypeName = 'AWS::AppStream::DirectoryConfig' + AND listing.region = 'us-east-1' + directory_configs_list_only: + name: directory_configs_list_only + id: aws.appstream.directory_configs_list_only + x-cfn-schema-name: DirectoryConfig + x-cfn-type-name: AWS::AppStream::DirectoryConfig + x-identifiers: + - DirectoryName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DirectoryName') as directory_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::DirectoryConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DirectoryName') as directory_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::DirectoryConfig' + AND region = 'us-east-1' entitlements: name: entitlements id: aws.appstream.entitlements @@ -2079,10 +2258,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::ImageBuilder' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.EnableDefaultInternetAccess') as enable_default_internet_access, + JSON_EXTRACT(detail.Properties, '$.DomainJoinInfo') as domain_join_info, + JSON_EXTRACT(detail.Properties, '$.AppstreamAgentVersion') as appstream_agent_version, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ImageName') as image_name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.StreamingUrl') as streaming_url, + JSON_EXTRACT(detail.Properties, '$.ImageArn') as image_arn, + JSON_EXTRACT(detail.Properties, '$.AccessEndpoints') as access_endpoints + 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::AppStream::ImageBuilder' + AND detail.data__TypeName = 'AWS::AppStream::ImageBuilder' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2110,10 +2307,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::ImageBuilder' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'EnableDefaultInternetAccess') as enable_default_internet_access, + json_extract_path_text(detail.Properties, 'DomainJoinInfo') as domain_join_info, + json_extract_path_text(detail.Properties, 'AppstreamAgentVersion') as appstream_agent_version, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ImageName') as image_name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'StreamingUrl') as streaming_url, + json_extract_path_text(detail.Properties, 'ImageArn') as image_arn, + json_extract_path_text(detail.Properties, 'AccessEndpoints') as access_endpoints + 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::AppStream::ImageBuilder' + AND detail.data__TypeName = 'AWS::AppStream::ImageBuilder' + AND listing.region = 'us-east-1' + image_builders_list_only: + name: image_builders_list_only + id: aws.appstream.image_builders_list_only + x-cfn-schema-name: ImageBuilder + x-cfn-type-name: AWS::AppStream::ImageBuilder + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::ImageBuilder' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppStream::ImageBuilder' + AND region = 'us-east-1' + image_builder_tags: + name: image_builder_tags + id: aws.appstream.image_builder_tags + x-cfn-schema-name: ImageBuilder + x-cfn-type-name: AWS::AppStream::ImageBuilder + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.EnableDefaultInternetAccess') as enable_default_internet_access, + JSON_EXTRACT(detail.Properties, '$.DomainJoinInfo') as domain_join_info, + JSON_EXTRACT(detail.Properties, '$.AppstreamAgentVersion') as appstream_agent_version, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ImageName') as image_name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.StreamingUrl') as streaming_url, + JSON_EXTRACT(detail.Properties, '$.ImageArn') as image_arn, + JSON_EXTRACT(detail.Properties, '$.AccessEndpoints') as access_endpoints + 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::AppStream::ImageBuilder' + AND detail.data__TypeName = 'AWS::AppStream::ImageBuilder' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'EnableDefaultInternetAccess') as enable_default_internet_access, + json_extract_path_text(detail.Properties, 'DomainJoinInfo') as domain_join_info, + json_extract_path_text(detail.Properties, 'AppstreamAgentVersion') as appstream_agent_version, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ImageName') as image_name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'StreamingUrl') as streaming_url, + json_extract_path_text(detail.Properties, 'ImageArn') as image_arn, + json_extract_path_text(detail.Properties, 'AccessEndpoints') as access_endpoints + 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::AppStream::ImageBuilder' + AND detail.data__TypeName = 'AWS::AppStream::ImageBuilder' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/appsync.yaml b/providers/src/aws/v00.00.00000/services/appsync.yaml index 7c11e2dd..5c5ff0c5 100644 --- a/providers/src/aws/v00.00.00000/services/appsync.yaml +++ b/providers/src/aws/v00.00.00000/services/appsync.yaml @@ -1234,10 +1234,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::DomainName' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.AppSyncDomainName') as app_sync_domain_name, + JSON_EXTRACT(detail.Properties, '$.HostedZoneId') as hosted_zone_id + 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::AppSync::DomainName' + AND detail.data__TypeName = 'AWS::AppSync::DomainName' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1256,10 +1265,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::DomainName' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'AppSyncDomainName') as app_sync_domain_name, + json_extract_path_text(detail.Properties, 'HostedZoneId') as hosted_zone_id + 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::AppSync::DomainName' + AND detail.data__TypeName = 'AWS::AppSync::DomainName' + AND listing.region = 'us-east-1' + domain_names_list_only: + name: domain_names_list_only + id: aws.appsync.domain_names_list_only + x-cfn-schema-name: DomainName + x-cfn-type-name: AWS::AppSync::DomainName + x-identifiers: + - DomainName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::DomainName' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::DomainName' + AND region = 'us-east-1' domain_name_api_associations: name: domain_name_api_associations id: aws.appsync.domain_name_api_associations @@ -1427,10 +1476,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FunctionArn') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::FunctionConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FunctionId') as function_id, + JSON_EXTRACT(detail.Properties, '$.FunctionArn') as function_arn, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.Code') as code, + JSON_EXTRACT(detail.Properties, '$.CodeS3Location') as code_s3_location, + JSON_EXTRACT(detail.Properties, '$.DataSourceName') as data_source_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FunctionVersion') as function_version, + JSON_EXTRACT(detail.Properties, '$.MaxBatchSize') as max_batch_size, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RequestMappingTemplate') as request_mapping_template, + JSON_EXTRACT(detail.Properties, '$.RequestMappingTemplateS3Location') as request_mapping_template_s3_location, + JSON_EXTRACT(detail.Properties, '$.ResponseMappingTemplate') as response_mapping_template, + JSON_EXTRACT(detail.Properties, '$.ResponseMappingTemplateS3Location') as response_mapping_template_s3_location, + JSON_EXTRACT(detail.Properties, '$.Runtime') as runtime, + JSON_EXTRACT(detail.Properties, '$.SyncConfig') as sync_config + 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::AppSync::FunctionConfiguration' + AND detail.data__TypeName = 'AWS::AppSync::FunctionConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1460,10 +1529,61 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FunctionArn') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::FunctionConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FunctionId') as function_id, + json_extract_path_text(detail.Properties, 'FunctionArn') as function_arn, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'Code') as code, + json_extract_path_text(detail.Properties, 'CodeS3Location') as code_s3_location, + json_extract_path_text(detail.Properties, 'DataSourceName') as data_source_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FunctionVersion') as function_version, + json_extract_path_text(detail.Properties, 'MaxBatchSize') as max_batch_size, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RequestMappingTemplate') as request_mapping_template, + json_extract_path_text(detail.Properties, 'RequestMappingTemplateS3Location') as request_mapping_template_s3_location, + json_extract_path_text(detail.Properties, 'ResponseMappingTemplate') as response_mapping_template, + json_extract_path_text(detail.Properties, 'ResponseMappingTemplateS3Location') as response_mapping_template_s3_location, + json_extract_path_text(detail.Properties, 'Runtime') as runtime, + json_extract_path_text(detail.Properties, 'SyncConfig') as sync_config + 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::AppSync::FunctionConfiguration' + AND detail.data__TypeName = 'AWS::AppSync::FunctionConfiguration' + AND listing.region = 'us-east-1' + function_configurations_list_only: + name: function_configurations_list_only + id: aws.appsync.function_configurations_list_only + x-cfn-schema-name: FunctionConfiguration + x-cfn-type-name: AWS::AppSync::FunctionConfiguration + x-identifiers: + - FunctionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FunctionArn') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::FunctionConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FunctionArn') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::FunctionConfiguration' + AND region = 'us-east-1' resolvers: name: resolvers id: aws.appsync.resolvers @@ -1552,10 +1672,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResolverArn') as resolver_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::Resolver' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApiId') as api_id, + JSON_EXTRACT(detail.Properties, '$.CachingConfig') as caching_config, + JSON_EXTRACT(detail.Properties, '$.Code') as code, + JSON_EXTRACT(detail.Properties, '$.CodeS3Location') as code_s3_location, + JSON_EXTRACT(detail.Properties, '$.DataSourceName') as data_source_name, + JSON_EXTRACT(detail.Properties, '$.FieldName') as field_name, + JSON_EXTRACT(detail.Properties, '$.Kind') as kind, + JSON_EXTRACT(detail.Properties, '$.MaxBatchSize') as max_batch_size, + JSON_EXTRACT(detail.Properties, '$.PipelineConfig') as pipeline_config, + JSON_EXTRACT(detail.Properties, '$.RequestMappingTemplate') as request_mapping_template, + JSON_EXTRACT(detail.Properties, '$.RequestMappingTemplateS3Location') as request_mapping_template_s3_location, + JSON_EXTRACT(detail.Properties, '$.ResolverArn') as resolver_arn, + JSON_EXTRACT(detail.Properties, '$.ResponseMappingTemplate') as response_mapping_template, + JSON_EXTRACT(detail.Properties, '$.ResponseMappingTemplateS3Location') as response_mapping_template_s3_location, + JSON_EXTRACT(detail.Properties, '$.Runtime') as runtime, + JSON_EXTRACT(detail.Properties, '$.SyncConfig') as sync_config, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.MetricsConfig') as metrics_config + 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::AppSync::Resolver' + AND detail.data__TypeName = 'AWS::AppSync::Resolver' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1587,10 +1729,63 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResolverArn') as resolver_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::Resolver' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApiId') as api_id, + json_extract_path_text(detail.Properties, 'CachingConfig') as caching_config, + json_extract_path_text(detail.Properties, 'Code') as code, + json_extract_path_text(detail.Properties, 'CodeS3Location') as code_s3_location, + json_extract_path_text(detail.Properties, 'DataSourceName') as data_source_name, + json_extract_path_text(detail.Properties, 'FieldName') as field_name, + json_extract_path_text(detail.Properties, 'Kind') as kind, + json_extract_path_text(detail.Properties, 'MaxBatchSize') as max_batch_size, + json_extract_path_text(detail.Properties, 'PipelineConfig') as pipeline_config, + json_extract_path_text(detail.Properties, 'RequestMappingTemplate') as request_mapping_template, + json_extract_path_text(detail.Properties, 'RequestMappingTemplateS3Location') as request_mapping_template_s3_location, + json_extract_path_text(detail.Properties, 'ResolverArn') as resolver_arn, + json_extract_path_text(detail.Properties, 'ResponseMappingTemplate') as response_mapping_template, + json_extract_path_text(detail.Properties, 'ResponseMappingTemplateS3Location') as response_mapping_template_s3_location, + json_extract_path_text(detail.Properties, 'Runtime') as runtime, + json_extract_path_text(detail.Properties, 'SyncConfig') as sync_config, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'MetricsConfig') as metrics_config + 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::AppSync::Resolver' + AND detail.data__TypeName = 'AWS::AppSync::Resolver' + AND listing.region = 'us-east-1' + resolvers_list_only: + name: resolvers_list_only + id: aws.appsync.resolvers_list_only + x-cfn-schema-name: Resolver + x-cfn-type-name: AWS::AppSync::Resolver + x-identifiers: + - ResolverArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResolverArn') as resolver_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::Resolver' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResolverArn') as resolver_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::Resolver' + AND region = 'us-east-1' source_api_associations: name: source_api_associations id: aws.appsync.source_api_associations @@ -1674,10 +1869,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssociationArn') as association_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::SourceApiAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SourceApiIdentifier') as source_api_identifier, + JSON_EXTRACT(detail.Properties, '$.MergedApiIdentifier') as merged_api_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SourceApiAssociationConfig') as source_api_association_config, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id, + JSON_EXTRACT(detail.Properties, '$.AssociationArn') as association_arn, + JSON_EXTRACT(detail.Properties, '$.SourceApiId') as source_api_id, + JSON_EXTRACT(detail.Properties, '$.SourceApiArn') as source_api_arn, + JSON_EXTRACT(detail.Properties, '$.MergedApiId') as merged_api_id, + JSON_EXTRACT(detail.Properties, '$.MergedApiArn') as merged_api_arn, + JSON_EXTRACT(detail.Properties, '$.SourceApiAssociationStatus') as source_api_association_status, + JSON_EXTRACT(detail.Properties, '$.SourceApiAssociationStatusDetail') as source_api_association_status_detail, + JSON_EXTRACT(detail.Properties, '$.LastSuccessfulMergeDate') as last_successful_merge_date + 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::AppSync::SourceApiAssociation' + AND detail.data__TypeName = 'AWS::AppSync::SourceApiAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1704,10 +1916,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssociationArn') as association_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::SourceApiAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SourceApiIdentifier') as source_api_identifier, + json_extract_path_text(detail.Properties, 'MergedApiIdentifier') as merged_api_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SourceApiAssociationConfig') as source_api_association_config, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id, + json_extract_path_text(detail.Properties, 'AssociationArn') as association_arn, + json_extract_path_text(detail.Properties, 'SourceApiId') as source_api_id, + json_extract_path_text(detail.Properties, 'SourceApiArn') as source_api_arn, + json_extract_path_text(detail.Properties, 'MergedApiId') as merged_api_id, + json_extract_path_text(detail.Properties, 'MergedApiArn') as merged_api_arn, + json_extract_path_text(detail.Properties, 'SourceApiAssociationStatus') as source_api_association_status, + json_extract_path_text(detail.Properties, 'SourceApiAssociationStatusDetail') as source_api_association_status_detail, + json_extract_path_text(detail.Properties, 'LastSuccessfulMergeDate') as last_successful_merge_date + 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::AppSync::SourceApiAssociation' + AND detail.data__TypeName = 'AWS::AppSync::SourceApiAssociation' + AND listing.region = 'us-east-1' + source_api_associations_list_only: + name: source_api_associations_list_only + id: aws.appsync.source_api_associations_list_only + x-cfn-schema-name: SourceApiAssociation + x-cfn-type-name: AWS::AppSync::SourceApiAssociation + x-identifiers: + - AssociationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssociationArn') as association_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::SourceApiAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssociationArn') as association_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AppSync::SourceApiAssociation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/aps.yaml b/providers/src/aws/v00.00.00000/services/aps.yaml index 45824297..2dfccea7 100644 --- a/providers/src/aws/v00.00.00000/services/aps.yaml +++ b/providers/src/aws/v00.00.00000/services/aps.yaml @@ -989,10 +989,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::APS::RuleGroupsNamespace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Workspace') as workspace, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Data') as data, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::APS::RuleGroupsNamespace' + AND detail.data__TypeName = 'AWS::APS::RuleGroupsNamespace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1011,10 +1020,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::APS::RuleGroupsNamespace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Workspace') as workspace, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Data') as data, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::APS::RuleGroupsNamespace' + AND detail.data__TypeName = 'AWS::APS::RuleGroupsNamespace' + AND listing.region = 'us-east-1' + rule_groups_namespaces_list_only: + name: rule_groups_namespaces_list_only + id: aws.aps.rule_groups_namespaces_list_only + x-cfn-schema-name: RuleGroupsNamespace + x-cfn-type-name: AWS::APS::RuleGroupsNamespace + 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::APS::RuleGroupsNamespace' + 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::APS::RuleGroupsNamespace' + AND region = 'us-east-1' + rule_groups_namespace_tags: + name: rule_groups_namespace_tags + id: aws.aps.rule_groups_namespace_tags + x-cfn-schema-name: RuleGroupsNamespace + x-cfn-type-name: AWS::APS::RuleGroupsNamespace + 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, '$.Workspace') as workspace, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Data') as data, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::APS::RuleGroupsNamespace' + AND detail.data__TypeName = 'AWS::APS::RuleGroupsNamespace' + 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, 'Workspace') as workspace, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Data') as data, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::APS::RuleGroupsNamespace' + AND detail.data__TypeName = 'AWS::APS::RuleGroupsNamespace' + AND listing.region = 'us-east-1' scrapers: name: scrapers id: aws.aps.scrapers @@ -1093,10 +1193,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::APS::Scraper' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ScraperId') as scraper_id, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.ScrapeConfiguration') as scrape_configuration, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Destination') as destination, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::APS::Scraper' + AND detail.data__TypeName = 'AWS::APS::Scraper' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1118,10 +1230,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::APS::Scraper' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ScraperId') as scraper_id, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'ScrapeConfiguration') as scrape_configuration, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Destination') as destination, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::APS::Scraper' + AND detail.data__TypeName = 'AWS::APS::Scraper' + AND listing.region = 'us-east-1' + scrapers_list_only: + name: scrapers_list_only + id: aws.aps.scrapers_list_only + x-cfn-schema-name: Scraper + x-cfn-type-name: AWS::APS::Scraper + 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::APS::Scraper' + 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::APS::Scraper' + AND region = 'us-east-1' + scraper_tags: + name: scraper_tags + id: aws.aps.scraper_tags + x-cfn-schema-name: Scraper + x-cfn-type-name: AWS::APS::Scraper + 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, '$.ScraperId') as scraper_id, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.ScrapeConfiguration') as scrape_configuration, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Destination') as destination + 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::APS::Scraper' + AND detail.data__TypeName = 'AWS::APS::Scraper' + 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, 'ScraperId') as scraper_id, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'ScrapeConfiguration') as scrape_configuration, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Destination') as destination + 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::APS::Scraper' + AND detail.data__TypeName = 'AWS::APS::Scraper' + AND listing.region = 'us-east-1' workspaces: name: workspaces id: aws.aps.workspaces @@ -1200,10 +1412,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::APS::Workspace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AlertManagerDefinition') as alert_manager_definition, + JSON_EXTRACT(detail.Properties, '$.PrometheusEndpoint') as prometheus_endpoint, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::APS::Workspace' + AND detail.data__TypeName = 'AWS::APS::Workspace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1225,10 +1449,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::APS::Workspace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AlertManagerDefinition') as alert_manager_definition, + json_extract_path_text(detail.Properties, 'PrometheusEndpoint') as prometheus_endpoint, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::APS::Workspace' + AND detail.data__TypeName = 'AWS::APS::Workspace' + AND listing.region = 'us-east-1' + workspaces_list_only: + name: workspaces_list_only + id: aws.aps.workspaces_list_only + x-cfn-schema-name: Workspace + x-cfn-type-name: AWS::APS::Workspace + 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::APS::Workspace' + 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::APS::Workspace' + AND region = 'us-east-1' + workspace_tags: + name: workspace_tags + id: aws.aps.workspace_tags + x-cfn-schema-name: Workspace + x-cfn-type-name: AWS::APS::Workspace + 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, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AlertManagerDefinition') as alert_manager_definition, + JSON_EXTRACT(detail.Properties, '$.PrometheusEndpoint') as prometheus_endpoint, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn + 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::APS::Workspace' + AND detail.data__TypeName = 'AWS::APS::Workspace' + 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, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AlertManagerDefinition') as alert_manager_definition, + json_extract_path_text(detail.Properties, 'PrometheusEndpoint') as prometheus_endpoint, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn + 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::APS::Workspace' + AND detail.data__TypeName = 'AWS::APS::Workspace' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/arczonalshift.yaml b/providers/src/aws/v00.00.00000/services/arczonalshift.yaml index a578262e..05b6d273 100644 --- a/providers/src/aws/v00.00.00000/services/arczonalshift.yaml +++ b/providers/src/aws/v00.00.00000/services/arczonalshift.yaml @@ -593,10 +593,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResourceIdentifier') as resource_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ARCZonalShift::ZonalAutoshiftConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ZonalAutoshiftStatus') as zonal_autoshift_status, + JSON_EXTRACT(detail.Properties, '$.PracticeRunConfiguration') as practice_run_configuration, + JSON_EXTRACT(detail.Properties, '$.ResourceIdentifier') as resource_identifier + 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::ARCZonalShift::ZonalAutoshiftConfiguration' + AND detail.data__TypeName = 'AWS::ARCZonalShift::ZonalAutoshiftConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -613,10 +620,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResourceIdentifier') as resource_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ARCZonalShift::ZonalAutoshiftConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ZonalAutoshiftStatus') as zonal_autoshift_status, + json_extract_path_text(detail.Properties, 'PracticeRunConfiguration') as practice_run_configuration, + json_extract_path_text(detail.Properties, 'ResourceIdentifier') as resource_identifier + 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::ARCZonalShift::ZonalAutoshiftConfiguration' + AND detail.data__TypeName = 'AWS::ARCZonalShift::ZonalAutoshiftConfiguration' + AND listing.region = 'us-east-1' + zonal_autoshift_configurations_list_only: + name: zonal_autoshift_configurations_list_only + id: aws.arczonalshift.zonal_autoshift_configurations_list_only + x-cfn-schema-name: ZonalAutoshiftConfiguration + x-cfn-type-name: AWS::ARCZonalShift::ZonalAutoshiftConfiguration + x-identifiers: + - ResourceIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResourceIdentifier') as resource_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ARCZonalShift::ZonalAutoshiftConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResourceIdentifier') as resource_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ARCZonalShift::ZonalAutoshiftConfiguration' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/athena.yaml b/providers/src/aws/v00.00.00000/services/athena.yaml index 870c7fbd..77f027b1 100644 --- a/providers/src/aws/v00.00.00000/services/athena.yaml +++ b/providers/src/aws/v00.00.00000/services/athena.yaml @@ -1293,10 +1293,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::CapacityReservation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TargetDpus') as target_dpus, + JSON_EXTRACT(detail.Properties, '$.AllocatedDpus') as allocated_dpus, + JSON_EXTRACT(detail.Properties, '$.CapacityAssignmentConfiguration') as capacity_assignment_configuration, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastSuccessfulAllocationTime') as last_successful_allocation_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Athena::CapacityReservation' + AND detail.data__TypeName = 'AWS::Athena::CapacityReservation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1319,10 +1332,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::CapacityReservation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TargetDpus') as target_dpus, + json_extract_path_text(detail.Properties, 'AllocatedDpus') as allocated_dpus, + json_extract_path_text(detail.Properties, 'CapacityAssignmentConfiguration') as capacity_assignment_configuration, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastSuccessfulAllocationTime') as last_successful_allocation_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Athena::CapacityReservation' + AND detail.data__TypeName = 'AWS::Athena::CapacityReservation' + AND listing.region = 'us-east-1' + capacity_reservations_list_only: + name: capacity_reservations_list_only + id: aws.athena.capacity_reservations_list_only + x-cfn-schema-name: CapacityReservation + x-cfn-type-name: AWS::Athena::CapacityReservation + 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::Athena::CapacityReservation' + 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::Athena::CapacityReservation' + AND region = 'us-east-1' + capacity_reservation_tags: + name: capacity_reservation_tags + id: aws.athena.capacity_reservation_tags + x-cfn-schema-name: CapacityReservation + x-cfn-type-name: AWS::Athena::CapacityReservation + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TargetDpus') as target_dpus, + JSON_EXTRACT(detail.Properties, '$.AllocatedDpus') as allocated_dpus, + JSON_EXTRACT(detail.Properties, '$.CapacityAssignmentConfiguration') as capacity_assignment_configuration, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastSuccessfulAllocationTime') as last_successful_allocation_time + 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::Athena::CapacityReservation' + AND detail.data__TypeName = 'AWS::Athena::CapacityReservation' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TargetDpus') as target_dpus, + json_extract_path_text(detail.Properties, 'AllocatedDpus') as allocated_dpus, + json_extract_path_text(detail.Properties, 'CapacityAssignmentConfiguration') as capacity_assignment_configuration, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastSuccessfulAllocationTime') as last_successful_allocation_time + 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::Athena::CapacityReservation' + AND detail.data__TypeName = 'AWS::Athena::CapacityReservation' + AND listing.region = 'us-east-1' data_catalogs: name: data_catalogs id: aws.athena.data_catalogs @@ -1398,10 +1514,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::DataCatalog' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::Athena::DataCatalog' + AND detail.data__TypeName = 'AWS::Athena::DataCatalog' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1420,10 +1545,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::DataCatalog' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type + 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::Athena::DataCatalog' + AND detail.data__TypeName = 'AWS::Athena::DataCatalog' + AND listing.region = 'us-east-1' + data_catalogs_list_only: + name: data_catalogs_list_only + id: aws.athena.data_catalogs_list_only + x-cfn-schema-name: DataCatalog + x-cfn-type-name: AWS::Athena::DataCatalog + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::DataCatalog' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::DataCatalog' + AND region = 'us-east-1' + data_catalog_tags: + name: data_catalog_tags + id: aws.athena.data_catalog_tags + x-cfn-schema-name: DataCatalog + x-cfn-type-name: AWS::Athena::DataCatalog + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::Athena::DataCatalog' + AND detail.data__TypeName = 'AWS::Athena::DataCatalog' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'Type') as type + 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::Athena::DataCatalog' + AND detail.data__TypeName = 'AWS::Athena::DataCatalog' + AND listing.region = 'us-east-1' named_queries: name: named_queries id: aws.athena.named_queries @@ -1487,10 +1703,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NamedQueryId') as named_query_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::NamedQuery' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Database') as _database, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.WorkGroup') as work_group, + JSON_EXTRACT(detail.Properties, '$.NamedQueryId') as named_query_id + 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::Athena::NamedQuery' + AND detail.data__TypeName = 'AWS::Athena::NamedQuery' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1510,10 +1736,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NamedQueryId') as named_query_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::NamedQuery' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Database') as _database, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'WorkGroup') as work_group, + json_extract_path_text(detail.Properties, 'NamedQueryId') as named_query_id + 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::Athena::NamedQuery' + AND detail.data__TypeName = 'AWS::Athena::NamedQuery' + AND listing.region = 'us-east-1' + named_queries_list_only: + name: named_queries_list_only + id: aws.athena.named_queries_list_only + x-cfn-schema-name: NamedQuery + x-cfn-type-name: AWS::Athena::NamedQuery + x-identifiers: + - NamedQueryId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NamedQueryId') as named_query_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::NamedQuery' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NamedQueryId') as named_query_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::NamedQuery' + AND region = 'us-east-1' prepared_statements: name: prepared_statements id: aws.athena.prepared_statements @@ -1589,11 +1856,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StatementName') as statement_name, - JSON_EXTRACT(Properties, '$.WorkGroup') as work_group - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::PreparedStatement' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StatementName') as statement_name, + JSON_EXTRACT(detail.Properties, '$.WorkGroup') as work_group, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.QueryStatement') as query_statement + 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::Athena::PreparedStatement' + AND detail.data__TypeName = 'AWS::Athena::PreparedStatement' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1611,11 +1885,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StatementName') as statement_name, - json_extract_path_text(Properties, 'WorkGroup') as work_group - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::PreparedStatement' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StatementName') as statement_name, + json_extract_path_text(detail.Properties, 'WorkGroup') as work_group, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'QueryStatement') as query_statement + 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::Athena::PreparedStatement' + AND detail.data__TypeName = 'AWS::Athena::PreparedStatement' + AND listing.region = 'us-east-1' + prepared_statements_list_only: + name: prepared_statements_list_only + id: aws.athena.prepared_statements_list_only + x-cfn-schema-name: PreparedStatement + x-cfn-type-name: AWS::Athena::PreparedStatement + x-identifiers: + - StatementName + - WorkGroup + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StatementName') as statement_name, + JSON_EXTRACT(Properties, '$.WorkGroup') as work_group + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::PreparedStatement' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StatementName') as statement_name, + json_extract_path_text(Properties, 'WorkGroup') as work_group + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::PreparedStatement' + AND region = 'us-east-1' work_groups: name: work_groups id: aws.athena.work_groups @@ -1694,10 +2009,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::WorkGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.WorkGroupConfiguration') as work_group_configuration, + JSON_EXTRACT(detail.Properties, '$.WorkGroupConfigurationUpdates') as work_group_configuration_updates, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.RecursiveDeleteOption') as recursive_delete_option + 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::Athena::WorkGroup' + AND detail.data__TypeName = 'AWS::Athena::WorkGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1719,10 +2046,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::WorkGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'WorkGroupConfiguration') as work_group_configuration, + json_extract_path_text(detail.Properties, 'WorkGroupConfigurationUpdates') as work_group_configuration_updates, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'RecursiveDeleteOption') as recursive_delete_option + 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::Athena::WorkGroup' + AND detail.data__TypeName = 'AWS::Athena::WorkGroup' + AND listing.region = 'us-east-1' + work_groups_list_only: + name: work_groups_list_only + id: aws.athena.work_groups_list_only + x-cfn-schema-name: WorkGroup + x-cfn-type-name: AWS::Athena::WorkGroup + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::WorkGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Athena::WorkGroup' + AND region = 'us-east-1' + work_group_tags: + name: work_group_tags + id: aws.athena.work_group_tags + x-cfn-schema-name: WorkGroup + x-cfn-type-name: AWS::Athena::WorkGroup + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.WorkGroupConfiguration') as work_group_configuration, + JSON_EXTRACT(detail.Properties, '$.WorkGroupConfigurationUpdates') as work_group_configuration_updates, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.RecursiveDeleteOption') as recursive_delete_option + 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::Athena::WorkGroup' + AND detail.data__TypeName = 'AWS::Athena::WorkGroup' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'WorkGroupConfiguration') as work_group_configuration, + json_extract_path_text(detail.Properties, 'WorkGroupConfigurationUpdates') as work_group_configuration_updates, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'RecursiveDeleteOption') as recursive_delete_option + 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::Athena::WorkGroup' + AND detail.data__TypeName = 'AWS::Athena::WorkGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/auditmanager.yaml b/providers/src/aws/v00.00.00000/services/auditmanager.yaml index 56fdd226..6a48694e 100644 --- a/providers/src/aws/v00.00.00000/services/auditmanager.yaml +++ b/providers/src/aws/v00.00.00000/services/auditmanager.yaml @@ -797,10 +797,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssessmentId') as assessment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AuditManager::Assessment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FrameworkId') as framework_id, + JSON_EXTRACT(detail.Properties, '$.AssessmentId') as assessment_id, + JSON_EXTRACT(detail.Properties, '$.AwsAccount') as aws_account, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Delegations') as delegations, + JSON_EXTRACT(detail.Properties, '$.Roles') as roles, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.AssessmentReportsDestination') as assessment_reports_destination, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::AuditManager::Assessment' + AND detail.data__TypeName = 'AWS::AuditManager::Assessment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -827,10 +844,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssessmentId') as assessment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AuditManager::Assessment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FrameworkId') as framework_id, + json_extract_path_text(detail.Properties, 'AssessmentId') as assessment_id, + json_extract_path_text(detail.Properties, 'AwsAccount') as aws_account, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Delegations') as delegations, + json_extract_path_text(detail.Properties, 'Roles') as roles, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'AssessmentReportsDestination') as assessment_reports_destination, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description + 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::AuditManager::Assessment' + AND detail.data__TypeName = 'AWS::AuditManager::Assessment' + AND listing.region = 'us-east-1' + assessments_list_only: + name: assessments_list_only + id: aws.auditmanager.assessments_list_only + x-cfn-schema-name: Assessment + x-cfn-type-name: AWS::AuditManager::Assessment + x-identifiers: + - AssessmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssessmentId') as assessment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AuditManager::Assessment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssessmentId') as assessment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AuditManager::Assessment' + AND region = 'us-east-1' + assessment_tags: + name: assessment_tags + id: aws.auditmanager.assessment_tags + x-cfn-schema-name: Assessment + x-cfn-type-name: AWS::AuditManager::Assessment + 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, '$.FrameworkId') as framework_id, + JSON_EXTRACT(detail.Properties, '$.AssessmentId') as assessment_id, + JSON_EXTRACT(detail.Properties, '$.AwsAccount') as aws_account, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Delegations') as delegations, + JSON_EXTRACT(detail.Properties, '$.Roles') as roles, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.AssessmentReportsDestination') as assessment_reports_destination, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::AuditManager::Assessment' + AND detail.data__TypeName = 'AWS::AuditManager::Assessment' + 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, 'FrameworkId') as framework_id, + json_extract_path_text(detail.Properties, 'AssessmentId') as assessment_id, + json_extract_path_text(detail.Properties, 'AwsAccount') as aws_account, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Delegations') as delegations, + json_extract_path_text(detail.Properties, 'Roles') as roles, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'AssessmentReportsDestination') as assessment_reports_destination, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description + 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::AuditManager::Assessment' + AND detail.data__TypeName = 'AWS::AuditManager::Assessment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/autoscaling.yaml b/providers/src/aws/v00.00.00000/services/autoscaling.yaml index 2279b460..0af17954 100644 --- a/providers/src/aws/v00.00.00000/services/autoscaling.yaml +++ b/providers/src/aws/v00.00.00000/services/autoscaling.yaml @@ -2497,10 +2497,44 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AutoScalingGroupName') as auto_scaling_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LifecycleHookSpecificationList') as lifecycle_hook_specification_list, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerNames') as load_balancer_names, + JSON_EXTRACT(detail.Properties, '$.LaunchConfigurationName') as launch_configuration_name, + JSON_EXTRACT(detail.Properties, '$.ServiceLinkedRoleARN') as service_linked_role_arn, + JSON_EXTRACT(detail.Properties, '$.TargetGroupARNs') as target_group_arns, + JSON_EXTRACT(detail.Properties, '$.Cooldown') as cooldown, + JSON_EXTRACT(detail.Properties, '$.NotificationConfigurations') as notification_configurations, + JSON_EXTRACT(detail.Properties, '$.DesiredCapacity') as desired_capacity, + JSON_EXTRACT(detail.Properties, '$.HealthCheckGracePeriod') as health_check_grace_period, + JSON_EXTRACT(detail.Properties, '$.DefaultInstanceWarmup') as default_instance_warmup, + JSON_EXTRACT(detail.Properties, '$.NewInstancesProtectedFromScaleIn') as new_instances_protected_from_scale_in, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.MixedInstancesPolicy') as mixed_instances_policy, + JSON_EXTRACT(detail.Properties, '$.VPCZoneIdentifier') as vpc_zone_identifier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Context') as context, + JSON_EXTRACT(detail.Properties, '$.CapacityRebalance') as capacity_rebalance, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.NotificationConfiguration') as notification_configuration, + JSON_EXTRACT(detail.Properties, '$.MetricsCollection') as metrics_collection, + JSON_EXTRACT(detail.Properties, '$.InstanceMaintenancePolicy') as instance_maintenance_policy, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.TerminationPolicies') as termination_policies, + JSON_EXTRACT(detail.Properties, '$.AutoScalingGroupName') as auto_scaling_group_name, + JSON_EXTRACT(detail.Properties, '$.DesiredCapacityType') as desired_capacity_type, + JSON_EXTRACT(detail.Properties, '$.PlacementGroup') as placement_group, + JSON_EXTRACT(detail.Properties, '$.HealthCheckType') as health_check_type, + JSON_EXTRACT(detail.Properties, '$.MaxInstanceLifetime') as max_instance_lifetime + 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::AutoScaling::AutoScalingGroup' + AND detail.data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2544,10 +2578,176 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AutoScalingGroupName') as auto_scaling_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LifecycleHookSpecificationList') as lifecycle_hook_specification_list, + json_extract_path_text(detail.Properties, 'LoadBalancerNames') as load_balancer_names, + json_extract_path_text(detail.Properties, 'LaunchConfigurationName') as launch_configuration_name, + json_extract_path_text(detail.Properties, 'ServiceLinkedRoleARN') as service_linked_role_arn, + json_extract_path_text(detail.Properties, 'TargetGroupARNs') as target_group_arns, + json_extract_path_text(detail.Properties, 'Cooldown') as cooldown, + json_extract_path_text(detail.Properties, 'NotificationConfigurations') as notification_configurations, + json_extract_path_text(detail.Properties, 'DesiredCapacity') as desired_capacity, + json_extract_path_text(detail.Properties, 'HealthCheckGracePeriod') as health_check_grace_period, + json_extract_path_text(detail.Properties, 'DefaultInstanceWarmup') as default_instance_warmup, + json_extract_path_text(detail.Properties, 'NewInstancesProtectedFromScaleIn') as new_instances_protected_from_scale_in, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'MixedInstancesPolicy') as mixed_instances_policy, + json_extract_path_text(detail.Properties, 'VPCZoneIdentifier') as vpc_zone_identifier, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Context') as context, + json_extract_path_text(detail.Properties, 'CapacityRebalance') as capacity_rebalance, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'NotificationConfiguration') as notification_configuration, + json_extract_path_text(detail.Properties, 'MetricsCollection') as metrics_collection, + json_extract_path_text(detail.Properties, 'InstanceMaintenancePolicy') as instance_maintenance_policy, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'TerminationPolicies') as termination_policies, + json_extract_path_text(detail.Properties, 'AutoScalingGroupName') as auto_scaling_group_name, + json_extract_path_text(detail.Properties, 'DesiredCapacityType') as desired_capacity_type, + json_extract_path_text(detail.Properties, 'PlacementGroup') as placement_group, + json_extract_path_text(detail.Properties, 'HealthCheckType') as health_check_type, + json_extract_path_text(detail.Properties, 'MaxInstanceLifetime') as max_instance_lifetime + 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::AutoScaling::AutoScalingGroup' + AND detail.data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' + AND listing.region = 'us-east-1' + auto_scaling_groups_list_only: + name: auto_scaling_groups_list_only + id: aws.autoscaling.auto_scaling_groups_list_only + x-cfn-schema-name: AutoScalingGroup + x-cfn-type-name: AWS::AutoScaling::AutoScalingGroup + x-identifiers: + - AutoScalingGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AutoScalingGroupName') as auto_scaling_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AutoScalingGroupName') as auto_scaling_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' + AND region = 'us-east-1' + auto_scaling_group_tags: + name: auto_scaling_group_tags + id: aws.autoscaling.auto_scaling_group_tags + x-cfn-schema-name: AutoScalingGroup + x-cfn-type-name: AWS::AutoScaling::AutoScalingGroup + 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, '$.LifecycleHookSpecificationList') as lifecycle_hook_specification_list, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerNames') as load_balancer_names, + JSON_EXTRACT(detail.Properties, '$.LaunchConfigurationName') as launch_configuration_name, + JSON_EXTRACT(detail.Properties, '$.ServiceLinkedRoleARN') as service_linked_role_arn, + JSON_EXTRACT(detail.Properties, '$.TargetGroupARNs') as target_group_arns, + JSON_EXTRACT(detail.Properties, '$.Cooldown') as cooldown, + JSON_EXTRACT(detail.Properties, '$.NotificationConfigurations') as notification_configurations, + JSON_EXTRACT(detail.Properties, '$.DesiredCapacity') as desired_capacity, + JSON_EXTRACT(detail.Properties, '$.HealthCheckGracePeriod') as health_check_grace_period, + JSON_EXTRACT(detail.Properties, '$.DefaultInstanceWarmup') as default_instance_warmup, + JSON_EXTRACT(detail.Properties, '$.NewInstancesProtectedFromScaleIn') as new_instances_protected_from_scale_in, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.MixedInstancesPolicy') as mixed_instances_policy, + JSON_EXTRACT(detail.Properties, '$.VPCZoneIdentifier') as vpc_zone_identifier, + JSON_EXTRACT(detail.Properties, '$.Context') as context, + JSON_EXTRACT(detail.Properties, '$.CapacityRebalance') as capacity_rebalance, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.NotificationConfiguration') as notification_configuration, + JSON_EXTRACT(detail.Properties, '$.MetricsCollection') as metrics_collection, + JSON_EXTRACT(detail.Properties, '$.InstanceMaintenancePolicy') as instance_maintenance_policy, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.TerminationPolicies') as termination_policies, + JSON_EXTRACT(detail.Properties, '$.AutoScalingGroupName') as auto_scaling_group_name, + JSON_EXTRACT(detail.Properties, '$.DesiredCapacityType') as desired_capacity_type, + JSON_EXTRACT(detail.Properties, '$.PlacementGroup') as placement_group, + JSON_EXTRACT(detail.Properties, '$.HealthCheckType') as health_check_type, + JSON_EXTRACT(detail.Properties, '$.MaxInstanceLifetime') as max_instance_lifetime + 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::AutoScaling::AutoScalingGroup' + AND detail.data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' + 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, 'LifecycleHookSpecificationList') as lifecycle_hook_specification_list, + json_extract_path_text(detail.Properties, 'LoadBalancerNames') as load_balancer_names, + json_extract_path_text(detail.Properties, 'LaunchConfigurationName') as launch_configuration_name, + json_extract_path_text(detail.Properties, 'ServiceLinkedRoleARN') as service_linked_role_arn, + json_extract_path_text(detail.Properties, 'TargetGroupARNs') as target_group_arns, + json_extract_path_text(detail.Properties, 'Cooldown') as cooldown, + json_extract_path_text(detail.Properties, 'NotificationConfigurations') as notification_configurations, + json_extract_path_text(detail.Properties, 'DesiredCapacity') as desired_capacity, + json_extract_path_text(detail.Properties, 'HealthCheckGracePeriod') as health_check_grace_period, + json_extract_path_text(detail.Properties, 'DefaultInstanceWarmup') as default_instance_warmup, + json_extract_path_text(detail.Properties, 'NewInstancesProtectedFromScaleIn') as new_instances_protected_from_scale_in, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'MixedInstancesPolicy') as mixed_instances_policy, + json_extract_path_text(detail.Properties, 'VPCZoneIdentifier') as vpc_zone_identifier, + json_extract_path_text(detail.Properties, 'Context') as context, + json_extract_path_text(detail.Properties, 'CapacityRebalance') as capacity_rebalance, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'NotificationConfiguration') as notification_configuration, + json_extract_path_text(detail.Properties, 'MetricsCollection') as metrics_collection, + json_extract_path_text(detail.Properties, 'InstanceMaintenancePolicy') as instance_maintenance_policy, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'TerminationPolicies') as termination_policies, + json_extract_path_text(detail.Properties, 'AutoScalingGroupName') as auto_scaling_group_name, + json_extract_path_text(detail.Properties, 'DesiredCapacityType') as desired_capacity_type, + json_extract_path_text(detail.Properties, 'PlacementGroup') as placement_group, + json_extract_path_text(detail.Properties, 'HealthCheckType') as health_check_type, + json_extract_path_text(detail.Properties, 'MaxInstanceLifetime') as max_instance_lifetime + 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::AutoScaling::AutoScalingGroup' + AND detail.data__TypeName = 'AWS::AutoScaling::AutoScalingGroup' + AND listing.region = 'us-east-1' launch_configurations: name: launch_configurations id: aws.autoscaling.launch_configurations @@ -2624,10 +2824,33 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LaunchConfigurationName') as launch_configuration_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LaunchConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PlacementTenancy') as placement_tenancy, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.LaunchConfigurationName') as launch_configuration_name, + JSON_EXTRACT(detail.Properties, '$.MetadataOptions') as metadata_options, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.UserData') as user_data, + JSON_EXTRACT(detail.Properties, '$.ClassicLinkVPCSecurityGroups') as classic_link_vpc_security_groups, + JSON_EXTRACT(detail.Properties, '$.BlockDeviceMappings') as block_device_mappings, + JSON_EXTRACT(detail.Properties, '$.IamInstanceProfile') as iam_instance_profile, + JSON_EXTRACT(detail.Properties, '$.KernelId') as kernel_id, + JSON_EXTRACT(detail.Properties, '$.AssociatePublicIpAddress') as associate_public_ip_address, + JSON_EXTRACT(detail.Properties, '$.ClassicLinkVPCId') as classic_link_vpc_id, + JSON_EXTRACT(detail.Properties, '$.EbsOptimized') as ebs_optimized, + JSON_EXTRACT(detail.Properties, '$.KeyName') as key_name, + JSON_EXTRACT(detail.Properties, '$.SpotPrice') as spot_price, + JSON_EXTRACT(detail.Properties, '$.ImageId') as image_id, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.RamDiskId') as ram_disk_id, + JSON_EXTRACT(detail.Properties, '$.InstanceMonitoring') as instance_monitoring + 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::AutoScaling::LaunchConfiguration' + AND detail.data__TypeName = 'AWS::AutoScaling::LaunchConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2660,10 +2883,64 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LaunchConfigurationName') as launch_configuration_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LaunchConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PlacementTenancy') as placement_tenancy, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'LaunchConfigurationName') as launch_configuration_name, + json_extract_path_text(detail.Properties, 'MetadataOptions') as metadata_options, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'UserData') as user_data, + json_extract_path_text(detail.Properties, 'ClassicLinkVPCSecurityGroups') as classic_link_vpc_security_groups, + json_extract_path_text(detail.Properties, 'BlockDeviceMappings') as block_device_mappings, + json_extract_path_text(detail.Properties, 'IamInstanceProfile') as iam_instance_profile, + json_extract_path_text(detail.Properties, 'KernelId') as kernel_id, + json_extract_path_text(detail.Properties, 'AssociatePublicIpAddress') as associate_public_ip_address, + json_extract_path_text(detail.Properties, 'ClassicLinkVPCId') as classic_link_vpc_id, + json_extract_path_text(detail.Properties, 'EbsOptimized') as ebs_optimized, + json_extract_path_text(detail.Properties, 'KeyName') as key_name, + json_extract_path_text(detail.Properties, 'SpotPrice') as spot_price, + json_extract_path_text(detail.Properties, 'ImageId') as image_id, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'RamDiskId') as ram_disk_id, + json_extract_path_text(detail.Properties, 'InstanceMonitoring') as instance_monitoring + 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::AutoScaling::LaunchConfiguration' + AND detail.data__TypeName = 'AWS::AutoScaling::LaunchConfiguration' + AND listing.region = 'us-east-1' + launch_configurations_list_only: + name: launch_configurations_list_only + id: aws.autoscaling.launch_configurations_list_only + x-cfn-schema-name: LaunchConfiguration + x-cfn-type-name: AWS::AutoScaling::LaunchConfiguration + x-identifiers: + - LaunchConfigurationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LaunchConfigurationName') as launch_configuration_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LaunchConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LaunchConfigurationName') as launch_configuration_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LaunchConfiguration' + AND region = 'us-east-1' lifecycle_hooks: name: lifecycle_hooks id: aws.autoscaling.lifecycle_hooks @@ -2743,11 +3020,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AutoScalingGroupName') as auto_scaling_group_name, - JSON_EXTRACT(Properties, '$.LifecycleHookName') as lifecycle_hook_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LifecycleHook' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AutoScalingGroupName') as auto_scaling_group_name, + JSON_EXTRACT(detail.Properties, '$.DefaultResult') as default_result, + JSON_EXTRACT(detail.Properties, '$.HeartbeatTimeout') as heartbeat_timeout, + JSON_EXTRACT(detail.Properties, '$.LifecycleHookName') as lifecycle_hook_name, + JSON_EXTRACT(detail.Properties, '$.LifecycleTransition') as lifecycle_transition, + JSON_EXTRACT(detail.Properties, '$.NotificationMetadata') as notification_metadata, + JSON_EXTRACT(detail.Properties, '$.NotificationTargetARN') as notification_target_arn, + JSON_EXTRACT(detail.Properties, '$.RoleARN') as role_arn + 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::AutoScaling::LifecycleHook' + AND detail.data__TypeName = 'AWS::AutoScaling::LifecycleHook' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2769,11 +3057,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AutoScalingGroupName') as auto_scaling_group_name, - json_extract_path_text(Properties, 'LifecycleHookName') as lifecycle_hook_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LifecycleHook' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AutoScalingGroupName') as auto_scaling_group_name, + json_extract_path_text(detail.Properties, 'DefaultResult') as default_result, + json_extract_path_text(detail.Properties, 'HeartbeatTimeout') as heartbeat_timeout, + json_extract_path_text(detail.Properties, 'LifecycleHookName') as lifecycle_hook_name, + json_extract_path_text(detail.Properties, 'LifecycleTransition') as lifecycle_transition, + json_extract_path_text(detail.Properties, 'NotificationMetadata') as notification_metadata, + json_extract_path_text(detail.Properties, 'NotificationTargetARN') as notification_target_arn, + json_extract_path_text(detail.Properties, 'RoleARN') as role_arn + 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::AutoScaling::LifecycleHook' + AND detail.data__TypeName = 'AWS::AutoScaling::LifecycleHook' + AND listing.region = 'us-east-1' + lifecycle_hooks_list_only: + name: lifecycle_hooks_list_only + id: aws.autoscaling.lifecycle_hooks_list_only + x-cfn-schema-name: LifecycleHook + x-cfn-type-name: AWS::AutoScaling::LifecycleHook + x-identifiers: + - AutoScalingGroupName + - LifecycleHookName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AutoScalingGroupName') as auto_scaling_group_name, + JSON_EXTRACT(Properties, '$.LifecycleHookName') as lifecycle_hook_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LifecycleHook' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AutoScalingGroupName') as auto_scaling_group_name, + json_extract_path_text(Properties, 'LifecycleHookName') as lifecycle_hook_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::LifecycleHook' + AND region = 'us-east-1' scaling_policies: name: scaling_policies id: aws.autoscaling.scaling_policies @@ -2857,10 +3190,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::ScalingPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MetricAggregationType') as metric_aggregation_type, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyType') as policy_type, + JSON_EXTRACT(detail.Properties, '$.PredictiveScalingConfiguration') as predictive_scaling_configuration, + JSON_EXTRACT(detail.Properties, '$.ScalingAdjustment') as scaling_adjustment, + JSON_EXTRACT(detail.Properties, '$.Cooldown') as cooldown, + JSON_EXTRACT(detail.Properties, '$.StepAdjustments') as step_adjustments, + JSON_EXTRACT(detail.Properties, '$.AutoScalingGroupName') as auto_scaling_group_name, + JSON_EXTRACT(detail.Properties, '$.MinAdjustmentMagnitude') as min_adjustment_magnitude, + JSON_EXTRACT(detail.Properties, '$.TargetTrackingConfiguration') as target_tracking_configuration, + JSON_EXTRACT(detail.Properties, '$.EstimatedInstanceWarmup') as estimated_instance_warmup, + JSON_EXTRACT(detail.Properties, '$.AdjustmentType') as adjustment_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::AutoScaling::ScalingPolicy' + AND detail.data__TypeName = 'AWS::AutoScaling::ScalingPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2887,10 +3237,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::ScalingPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MetricAggregationType') as metric_aggregation_type, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyType') as policy_type, + json_extract_path_text(detail.Properties, 'PredictiveScalingConfiguration') as predictive_scaling_configuration, + json_extract_path_text(detail.Properties, 'ScalingAdjustment') as scaling_adjustment, + json_extract_path_text(detail.Properties, 'Cooldown') as cooldown, + json_extract_path_text(detail.Properties, 'StepAdjustments') as step_adjustments, + json_extract_path_text(detail.Properties, 'AutoScalingGroupName') as auto_scaling_group_name, + json_extract_path_text(detail.Properties, 'MinAdjustmentMagnitude') as min_adjustment_magnitude, + json_extract_path_text(detail.Properties, 'TargetTrackingConfiguration') as target_tracking_configuration, + json_extract_path_text(detail.Properties, 'EstimatedInstanceWarmup') as estimated_instance_warmup, + json_extract_path_text(detail.Properties, 'AdjustmentType') as adjustment_type, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::AutoScaling::ScalingPolicy' + AND detail.data__TypeName = 'AWS::AutoScaling::ScalingPolicy' + AND listing.region = 'us-east-1' + scaling_policies_list_only: + name: scaling_policies_list_only + id: aws.autoscaling.scaling_policies_list_only + x-cfn-schema-name: ScalingPolicy + x-cfn-type-name: AWS::AutoScaling::ScalingPolicy + 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::AutoScaling::ScalingPolicy' + 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::AutoScaling::ScalingPolicy' + AND region = 'us-east-1' scheduled_actions: name: scheduled_actions id: aws.autoscaling.scheduled_actions @@ -2971,11 +3369,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ScheduledActionName') as scheduled_action_name, - JSON_EXTRACT(Properties, '$.AutoScalingGroupName') as auto_scaling_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::ScheduledAction' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ScheduledActionName') as scheduled_action_name, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.Recurrence') as recurrence, + JSON_EXTRACT(detail.Properties, '$.TimeZone') as time_zone, + JSON_EXTRACT(detail.Properties, '$.EndTime') as end_time, + JSON_EXTRACT(detail.Properties, '$.AutoScalingGroupName') as auto_scaling_group_name, + JSON_EXTRACT(detail.Properties, '$.StartTime') as start_time, + JSON_EXTRACT(detail.Properties, '$.DesiredCapacity') as desired_capacity, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size + 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::AutoScaling::ScheduledAction' + AND detail.data__TypeName = 'AWS::AutoScaling::ScheduledAction' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2998,11 +3408,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ScheduledActionName') as scheduled_action_name, - json_extract_path_text(Properties, 'AutoScalingGroupName') as auto_scaling_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::ScheduledAction' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ScheduledActionName') as scheduled_action_name, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'Recurrence') as recurrence, + json_extract_path_text(detail.Properties, 'TimeZone') as time_zone, + json_extract_path_text(detail.Properties, 'EndTime') as end_time, + json_extract_path_text(detail.Properties, 'AutoScalingGroupName') as auto_scaling_group_name, + json_extract_path_text(detail.Properties, 'StartTime') as start_time, + json_extract_path_text(detail.Properties, 'DesiredCapacity') as desired_capacity, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size + 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::AutoScaling::ScheduledAction' + AND detail.data__TypeName = 'AWS::AutoScaling::ScheduledAction' + AND listing.region = 'us-east-1' + scheduled_actions_list_only: + name: scheduled_actions_list_only + id: aws.autoscaling.scheduled_actions_list_only + x-cfn-schema-name: ScheduledAction + x-cfn-type-name: AWS::AutoScaling::ScheduledAction + x-identifiers: + - ScheduledActionName + - AutoScalingGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ScheduledActionName') as scheduled_action_name, + JSON_EXTRACT(Properties, '$.AutoScalingGroupName') as auto_scaling_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::ScheduledAction' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ScheduledActionName') as scheduled_action_name, + json_extract_path_text(Properties, 'AutoScalingGroupName') as auto_scaling_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AutoScaling::ScheduledAction' + AND region = 'us-east-1' warm_pools: name: warm_pools id: aws.autoscaling.warm_pools diff --git a/providers/src/aws/v00.00.00000/services/b2bi.yaml b/providers/src/aws/v00.00.00000/services/b2bi.yaml index b751371d..9eaadaa6 100644 --- a/providers/src/aws/v00.00.00000/services/b2bi.yaml +++ b/providers/src/aws/v00.00.00000/services/b2bi.yaml @@ -1283,10 +1283,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CapabilityId') as capability_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Capability' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CapabilityArn') as capability_arn, + JSON_EXTRACT(detail.Properties, '$.CapabilityId') as capability_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.InstructionsDocuments') as instructions_documents, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::B2BI::Capability' + AND detail.data__TypeName = 'AWS::B2BI::Capability' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1309,10 +1322,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CapabilityId') as capability_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Capability' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CapabilityArn') as capability_arn, + json_extract_path_text(detail.Properties, 'CapabilityId') as capability_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'InstructionsDocuments') as instructions_documents, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type + 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::B2BI::Capability' + AND detail.data__TypeName = 'AWS::B2BI::Capability' + AND listing.region = 'us-east-1' + capabilities_list_only: + name: capabilities_list_only + id: aws.b2bi.capabilities_list_only + x-cfn-schema-name: Capability + x-cfn-type-name: AWS::B2BI::Capability + x-identifiers: + - CapabilityId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CapabilityId') as capability_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Capability' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CapabilityId') as capability_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Capability' + AND region = 'us-east-1' + capability_tags: + name: capability_tags + id: aws.b2bi.capability_tags + x-cfn-schema-name: Capability + x-cfn-type-name: AWS::B2BI::Capability + 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, '$.CapabilityArn') as capability_arn, + JSON_EXTRACT(detail.Properties, '$.CapabilityId') as capability_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.InstructionsDocuments') as instructions_documents, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::B2BI::Capability' + AND detail.data__TypeName = 'AWS::B2BI::Capability' + 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, 'CapabilityArn') as capability_arn, + json_extract_path_text(detail.Properties, 'CapabilityId') as capability_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'InstructionsDocuments') as instructions_documents, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type + 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::B2BI::Capability' + AND detail.data__TypeName = 'AWS::B2BI::Capability' + AND listing.region = 'us-east-1' partnerships: name: partnerships id: aws.b2bi.partnerships @@ -1394,10 +1510,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PartnershipId') as partnership_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Partnership' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Email') as email, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PartnershipArn') as partnership_arn, + JSON_EXTRACT(detail.Properties, '$.PartnershipId') as partnership_id, + JSON_EXTRACT(detail.Properties, '$.Phone') as phone, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TradingPartnerId') as trading_partner_id + 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::B2BI::Partnership' + AND detail.data__TypeName = 'AWS::B2BI::Partnership' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1422,10 +1553,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PartnershipId') as partnership_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Partnership' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Email') as email, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PartnershipArn') as partnership_arn, + json_extract_path_text(detail.Properties, 'PartnershipId') as partnership_id, + json_extract_path_text(detail.Properties, 'Phone') as phone, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TradingPartnerId') as trading_partner_id + 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::B2BI::Partnership' + AND detail.data__TypeName = 'AWS::B2BI::Partnership' + AND listing.region = 'us-east-1' + partnerships_list_only: + name: partnerships_list_only + id: aws.b2bi.partnerships_list_only + x-cfn-schema-name: Partnership + x-cfn-type-name: AWS::B2BI::Partnership + x-identifiers: + - PartnershipId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PartnershipId') as partnership_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Partnership' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PartnershipId') as partnership_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Partnership' + AND region = 'us-east-1' + partnership_tags: + name: partnership_tags + id: aws.b2bi.partnership_tags + x-cfn-schema-name: Partnership + x-cfn-type-name: AWS::B2BI::Partnership + 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, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Email') as email, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PartnershipArn') as partnership_arn, + JSON_EXTRACT(detail.Properties, '$.PartnershipId') as partnership_id, + JSON_EXTRACT(detail.Properties, '$.Phone') as phone, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.TradingPartnerId') as trading_partner_id + 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::B2BI::Partnership' + AND detail.data__TypeName = 'AWS::B2BI::Partnership' + 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, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Email') as email, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PartnershipArn') as partnership_arn, + json_extract_path_text(detail.Properties, 'PartnershipId') as partnership_id, + json_extract_path_text(detail.Properties, 'Phone') as phone, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'TradingPartnerId') as trading_partner_id + 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::B2BI::Partnership' + AND detail.data__TypeName = 'AWS::B2BI::Partnership' + AND listing.region = 'us-east-1' profiles: name: profiles id: aws.b2bi.profiles @@ -1507,10 +1747,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProfileId') as profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Profile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BusinessName') as business_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Email') as email, + JSON_EXTRACT(detail.Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(detail.Properties, '$.Logging') as logging, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Phone') as phone, + JSON_EXTRACT(detail.Properties, '$.ProfileArn') as profile_arn, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::B2BI::Profile' + AND detail.data__TypeName = 'AWS::B2BI::Profile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1535,10 +1790,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProfileId') as profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Profile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BusinessName') as business_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Email') as email, + json_extract_path_text(detail.Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(detail.Properties, 'Logging') as logging, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Phone') as phone, + json_extract_path_text(detail.Properties, 'ProfileArn') as profile_arn, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::B2BI::Profile' + AND detail.data__TypeName = 'AWS::B2BI::Profile' + AND listing.region = 'us-east-1' + profiles_list_only: + name: profiles_list_only + id: aws.b2bi.profiles_list_only + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::B2BI::Profile + x-identifiers: + - ProfileId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProfileId') as profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Profile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProfileId') as profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Profile' + AND region = 'us-east-1' + profile_tags: + name: profile_tags + id: aws.b2bi.profile_tags + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::B2BI::Profile + 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, '$.BusinessName') as business_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Email') as email, + JSON_EXTRACT(detail.Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(detail.Properties, '$.Logging') as logging, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Phone') as phone, + JSON_EXTRACT(detail.Properties, '$.ProfileArn') as profile_arn, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id + 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::B2BI::Profile' + AND detail.data__TypeName = 'AWS::B2BI::Profile' + 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, 'BusinessName') as business_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Email') as email, + json_extract_path_text(detail.Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(detail.Properties, 'Logging') as logging, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Phone') as phone, + json_extract_path_text(detail.Properties, 'ProfileArn') as profile_arn, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id + 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::B2BI::Profile' + AND detail.data__TypeName = 'AWS::B2BI::Profile' + AND listing.region = 'us-east-1' transformers: name: transformers id: aws.b2bi.transformers @@ -1620,10 +1984,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransformerId') as transformer_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Transformer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EdiType') as edi_type, + JSON_EXTRACT(detail.Properties, '$.FileFormat') as file_format, + JSON_EXTRACT(detail.Properties, '$.MappingTemplate') as mapping_template, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SampleDocument') as sample_document, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TransformerArn') as transformer_arn, + JSON_EXTRACT(detail.Properties, '$.TransformerId') as transformer_id + 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::B2BI::Transformer' + AND detail.data__TypeName = 'AWS::B2BI::Transformer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1648,10 +2027,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransformerId') as transformer_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Transformer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EdiType') as edi_type, + json_extract_path_text(detail.Properties, 'FileFormat') as file_format, + json_extract_path_text(detail.Properties, 'MappingTemplate') as mapping_template, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SampleDocument') as sample_document, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TransformerArn') as transformer_arn, + json_extract_path_text(detail.Properties, 'TransformerId') as transformer_id + 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::B2BI::Transformer' + AND detail.data__TypeName = 'AWS::B2BI::Transformer' + AND listing.region = 'us-east-1' + transformers_list_only: + name: transformers_list_only + id: aws.b2bi.transformers_list_only + x-cfn-schema-name: Transformer + x-cfn-type-name: AWS::B2BI::Transformer + x-identifiers: + - TransformerId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransformerId') as transformer_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Transformer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransformerId') as transformer_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::B2BI::Transformer' + AND region = 'us-east-1' + transformer_tags: + name: transformer_tags + id: aws.b2bi.transformer_tags + x-cfn-schema-name: Transformer + x-cfn-type-name: AWS::B2BI::Transformer + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EdiType') as edi_type, + JSON_EXTRACT(detail.Properties, '$.FileFormat') as file_format, + JSON_EXTRACT(detail.Properties, '$.MappingTemplate') as mapping_template, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SampleDocument') as sample_document, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TransformerArn') as transformer_arn, + JSON_EXTRACT(detail.Properties, '$.TransformerId') as transformer_id + 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::B2BI::Transformer' + AND detail.data__TypeName = 'AWS::B2BI::Transformer' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EdiType') as edi_type, + json_extract_path_text(detail.Properties, 'FileFormat') as file_format, + json_extract_path_text(detail.Properties, 'MappingTemplate') as mapping_template, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SampleDocument') as sample_document, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TransformerArn') as transformer_arn, + json_extract_path_text(detail.Properties, 'TransformerId') as transformer_id + 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::B2BI::Transformer' + AND detail.data__TypeName = 'AWS::B2BI::Transformer' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/backup.yaml b/providers/src/aws/v00.00.00000/services/backup.yaml index 68396478..0fe13fd1 100644 --- a/providers/src/aws/v00.00.00000/services/backup.yaml +++ b/providers/src/aws/v00.00.00000/services/backup.yaml @@ -1639,10 +1639,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BackupPlanId') as backup_plan_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupPlan' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BackupPlan') as backup_plan, + JSON_EXTRACT(detail.Properties, '$.BackupPlanTags') as backup_plan_tags, + JSON_EXTRACT(detail.Properties, '$.BackupPlanArn') as backup_plan_arn, + JSON_EXTRACT(detail.Properties, '$.BackupPlanId') as backup_plan_id, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id + 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::Backup::BackupPlan' + AND detail.data__TypeName = 'AWS::Backup::BackupPlan' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1661,10 +1670,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BackupPlanId') as backup_plan_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupPlan' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BackupPlan') as backup_plan, + json_extract_path_text(detail.Properties, 'BackupPlanTags') as backup_plan_tags, + json_extract_path_text(detail.Properties, 'BackupPlanArn') as backup_plan_arn, + json_extract_path_text(detail.Properties, 'BackupPlanId') as backup_plan_id, + json_extract_path_text(detail.Properties, 'VersionId') as version_id + 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::Backup::BackupPlan' + AND detail.data__TypeName = 'AWS::Backup::BackupPlan' + AND listing.region = 'us-east-1' + backup_plans_list_only: + name: backup_plans_list_only + id: aws.backup.backup_plans_list_only + x-cfn-schema-name: BackupPlan + x-cfn-type-name: AWS::Backup::BackupPlan + x-identifiers: + - BackupPlanId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BackupPlanId') as backup_plan_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupPlan' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BackupPlanId') as backup_plan_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupPlan' + AND region = 'us-east-1' backup_selections: name: backup_selections id: aws.backup.backup_selections @@ -1726,10 +1775,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupSelection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.BackupPlanId') as backup_plan_id, + JSON_EXTRACT(detail.Properties, '$.BackupSelection') as backup_selection, + JSON_EXTRACT(detail.Properties, '$.SelectionId') as selection_id + 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::Backup::BackupSelection' + AND detail.data__TypeName = 'AWS::Backup::BackupSelection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1747,10 +1804,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupSelection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'BackupPlanId') as backup_plan_id, + json_extract_path_text(detail.Properties, 'BackupSelection') as backup_selection, + json_extract_path_text(detail.Properties, 'SelectionId') as selection_id + 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::Backup::BackupSelection' + AND detail.data__TypeName = 'AWS::Backup::BackupSelection' + AND listing.region = 'us-east-1' + backup_selections_list_only: + name: backup_selections_list_only + id: aws.backup.backup_selections_list_only + x-cfn-schema-name: BackupSelection + x-cfn-type-name: AWS::Backup::BackupSelection + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupSelection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupSelection' + AND region = 'us-east-1' backup_vaults: name: backup_vaults id: aws.backup.backup_vaults @@ -1828,10 +1924,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BackupVaultName') as backup_vault_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupVault' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessPolicy') as access_policy, + JSON_EXTRACT(detail.Properties, '$.BackupVaultName') as backup_vault_name, + JSON_EXTRACT(detail.Properties, '$.BackupVaultTags') as backup_vault_tags, + JSON_EXTRACT(detail.Properties, '$.EncryptionKeyArn') as encryption_key_arn, + JSON_EXTRACT(detail.Properties, '$.Notifications') as notifications, + JSON_EXTRACT(detail.Properties, '$.LockConfiguration') as lock_configuration, + JSON_EXTRACT(detail.Properties, '$.BackupVaultArn') as backup_vault_arn + 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::Backup::BackupVault' + AND detail.data__TypeName = 'AWS::Backup::BackupVault' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1852,10 +1959,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BackupVaultName') as backup_vault_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupVault' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessPolicy') as access_policy, + json_extract_path_text(detail.Properties, 'BackupVaultName') as backup_vault_name, + json_extract_path_text(detail.Properties, 'BackupVaultTags') as backup_vault_tags, + json_extract_path_text(detail.Properties, 'EncryptionKeyArn') as encryption_key_arn, + json_extract_path_text(detail.Properties, 'Notifications') as notifications, + json_extract_path_text(detail.Properties, 'LockConfiguration') as lock_configuration, + json_extract_path_text(detail.Properties, 'BackupVaultArn') as backup_vault_arn + 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::Backup::BackupVault' + AND detail.data__TypeName = 'AWS::Backup::BackupVault' + AND listing.region = 'us-east-1' + backup_vaults_list_only: + name: backup_vaults_list_only + id: aws.backup.backup_vaults_list_only + x-cfn-schema-name: BackupVault + x-cfn-type-name: AWS::Backup::BackupVault + x-identifiers: + - BackupVaultName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BackupVaultName') as backup_vault_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupVault' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BackupVaultName') as backup_vault_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::BackupVault' + AND region = 'us-east-1' frameworks: name: frameworks id: aws.backup.frameworks @@ -1934,10 +2083,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FrameworkArn') as framework_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::Framework' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FrameworkName') as framework_name, + JSON_EXTRACT(detail.Properties, '$.FrameworkDescription') as framework_description, + JSON_EXTRACT(detail.Properties, '$.FrameworkArn') as framework_arn, + JSON_EXTRACT(detail.Properties, '$.DeploymentStatus') as deployment_status, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.FrameworkControls') as framework_controls, + JSON_EXTRACT(detail.Properties, '$.FrameworkStatus') as framework_status, + JSON_EXTRACT(detail.Properties, '$.FrameworkTags') as framework_tags + 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::Backup::Framework' + AND detail.data__TypeName = 'AWS::Backup::Framework' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1959,10 +2120,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FrameworkArn') as framework_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::Framework' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FrameworkName') as framework_name, + json_extract_path_text(detail.Properties, 'FrameworkDescription') as framework_description, + json_extract_path_text(detail.Properties, 'FrameworkArn') as framework_arn, + json_extract_path_text(detail.Properties, 'DeploymentStatus') as deployment_status, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'FrameworkControls') as framework_controls, + json_extract_path_text(detail.Properties, 'FrameworkStatus') as framework_status, + json_extract_path_text(detail.Properties, 'FrameworkTags') as framework_tags + 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::Backup::Framework' + AND detail.data__TypeName = 'AWS::Backup::Framework' + AND listing.region = 'us-east-1' + frameworks_list_only: + name: frameworks_list_only + id: aws.backup.frameworks_list_only + x-cfn-schema-name: Framework + x-cfn-type-name: AWS::Backup::Framework + x-identifiers: + - FrameworkArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FrameworkArn') as framework_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::Framework' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FrameworkArn') as framework_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::Framework' + AND region = 'us-east-1' report_plans: name: report_plans id: aws.backup.report_plans @@ -2039,10 +2243,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ReportPlanArn') as report_plan_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::ReportPlan' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ReportPlanName') as report_plan_name, + JSON_EXTRACT(detail.Properties, '$.ReportPlanArn') as report_plan_arn, + JSON_EXTRACT(detail.Properties, '$.ReportPlanDescription') as report_plan_description, + JSON_EXTRACT(detail.Properties, '$.ReportPlanTags') as report_plan_tags, + JSON_EXTRACT(detail.Properties, '$.ReportDeliveryChannel') as report_delivery_channel, + JSON_EXTRACT(detail.Properties, '$.ReportSetting') as report_setting + 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::Backup::ReportPlan' + AND detail.data__TypeName = 'AWS::Backup::ReportPlan' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2062,10 +2276,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ReportPlanArn') as report_plan_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::ReportPlan' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ReportPlanName') as report_plan_name, + json_extract_path_text(detail.Properties, 'ReportPlanArn') as report_plan_arn, + json_extract_path_text(detail.Properties, 'ReportPlanDescription') as report_plan_description, + json_extract_path_text(detail.Properties, 'ReportPlanTags') as report_plan_tags, + json_extract_path_text(detail.Properties, 'ReportDeliveryChannel') as report_delivery_channel, + json_extract_path_text(detail.Properties, 'ReportSetting') as report_setting + 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::Backup::ReportPlan' + AND detail.data__TypeName = 'AWS::Backup::ReportPlan' + AND listing.region = 'us-east-1' + report_plans_list_only: + name: report_plans_list_only + id: aws.backup.report_plans_list_only + x-cfn-schema-name: ReportPlan + x-cfn-type-name: AWS::Backup::ReportPlan + x-identifiers: + - ReportPlanArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ReportPlanArn') as report_plan_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::ReportPlan' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ReportPlanArn') as report_plan_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::ReportPlan' + AND region = 'us-east-1' restore_testing_plans: name: restore_testing_plans id: aws.backup.restore_testing_plans @@ -2143,10 +2398,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestoreTestingPlanName') as restore_testing_plan_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingPlan' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RecoveryPointSelection') as recovery_point_selection, + JSON_EXTRACT(detail.Properties, '$.RestoreTestingPlanArn') as restore_testing_plan_arn, + JSON_EXTRACT(detail.Properties, '$.RestoreTestingPlanName') as restore_testing_plan_name, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpression') as schedule_expression, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpressionTimezone') as schedule_expression_timezone, + JSON_EXTRACT(detail.Properties, '$.StartWindowHours') as start_window_hours, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Backup::RestoreTestingPlan' + AND detail.data__TypeName = 'AWS::Backup::RestoreTestingPlan' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2167,10 +2433,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestoreTestingPlanName') as restore_testing_plan_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingPlan' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RecoveryPointSelection') as recovery_point_selection, + json_extract_path_text(detail.Properties, 'RestoreTestingPlanArn') as restore_testing_plan_arn, + json_extract_path_text(detail.Properties, 'RestoreTestingPlanName') as restore_testing_plan_name, + json_extract_path_text(detail.Properties, 'ScheduleExpression') as schedule_expression, + json_extract_path_text(detail.Properties, 'ScheduleExpressionTimezone') as schedule_expression_timezone, + json_extract_path_text(detail.Properties, 'StartWindowHours') as start_window_hours, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Backup::RestoreTestingPlan' + AND detail.data__TypeName = 'AWS::Backup::RestoreTestingPlan' + AND listing.region = 'us-east-1' + restore_testing_plans_list_only: + name: restore_testing_plans_list_only + id: aws.backup.restore_testing_plans_list_only + x-cfn-schema-name: RestoreTestingPlan + x-cfn-type-name: AWS::Backup::RestoreTestingPlan + x-identifiers: + - RestoreTestingPlanName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestoreTestingPlanName') as restore_testing_plan_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingPlan' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestoreTestingPlanName') as restore_testing_plan_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingPlan' + AND region = 'us-east-1' + restore_testing_plan_tags: + name: restore_testing_plan_tags + id: aws.backup.restore_testing_plan_tags + x-cfn-schema-name: RestoreTestingPlan + x-cfn-type-name: AWS::Backup::RestoreTestingPlan + 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, '$.RecoveryPointSelection') as recovery_point_selection, + JSON_EXTRACT(detail.Properties, '$.RestoreTestingPlanArn') as restore_testing_plan_arn, + JSON_EXTRACT(detail.Properties, '$.RestoreTestingPlanName') as restore_testing_plan_name, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpression') as schedule_expression, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpressionTimezone') as schedule_expression_timezone, + JSON_EXTRACT(detail.Properties, '$.StartWindowHours') as start_window_hours + 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::Backup::RestoreTestingPlan' + AND detail.data__TypeName = 'AWS::Backup::RestoreTestingPlan' + 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, 'RecoveryPointSelection') as recovery_point_selection, + json_extract_path_text(detail.Properties, 'RestoreTestingPlanArn') as restore_testing_plan_arn, + json_extract_path_text(detail.Properties, 'RestoreTestingPlanName') as restore_testing_plan_name, + json_extract_path_text(detail.Properties, 'ScheduleExpression') as schedule_expression, + json_extract_path_text(detail.Properties, 'ScheduleExpressionTimezone') as schedule_expression_timezone, + json_extract_path_text(detail.Properties, 'StartWindowHours') as start_window_hours + 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::Backup::RestoreTestingPlan' + AND detail.data__TypeName = 'AWS::Backup::RestoreTestingPlan' + AND listing.region = 'us-east-1' restore_testing_selections: name: restore_testing_selections id: aws.backup.restore_testing_selections @@ -2250,11 +2613,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RestoreTestingPlanName') as restore_testing_plan_name, - JSON_EXTRACT(Properties, '$.RestoreTestingSelectionName') as restore_testing_selection_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingSelection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.ProtectedResourceArns') as protected_resource_arns, + JSON_EXTRACT(detail.Properties, '$.ProtectedResourceConditions') as protected_resource_conditions, + JSON_EXTRACT(detail.Properties, '$.ProtectedResourceType') as protected_resource_type, + JSON_EXTRACT(detail.Properties, '$.RestoreMetadataOverrides') as restore_metadata_overrides, + JSON_EXTRACT(detail.Properties, '$.RestoreTestingPlanName') as restore_testing_plan_name, + JSON_EXTRACT(detail.Properties, '$.RestoreTestingSelectionName') as restore_testing_selection_name, + JSON_EXTRACT(detail.Properties, '$.ValidationWindowHours') as validation_window_hours + 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::Backup::RestoreTestingSelection' + AND detail.data__TypeName = 'AWS::Backup::RestoreTestingSelection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2276,11 +2650,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RestoreTestingPlanName') as restore_testing_plan_name, - json_extract_path_text(Properties, 'RestoreTestingSelectionName') as restore_testing_selection_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingSelection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'ProtectedResourceArns') as protected_resource_arns, + json_extract_path_text(detail.Properties, 'ProtectedResourceConditions') as protected_resource_conditions, + json_extract_path_text(detail.Properties, 'ProtectedResourceType') as protected_resource_type, + json_extract_path_text(detail.Properties, 'RestoreMetadataOverrides') as restore_metadata_overrides, + json_extract_path_text(detail.Properties, 'RestoreTestingPlanName') as restore_testing_plan_name, + json_extract_path_text(detail.Properties, 'RestoreTestingSelectionName') as restore_testing_selection_name, + json_extract_path_text(detail.Properties, 'ValidationWindowHours') as validation_window_hours + 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::Backup::RestoreTestingSelection' + AND detail.data__TypeName = 'AWS::Backup::RestoreTestingSelection' + AND listing.region = 'us-east-1' + restore_testing_selections_list_only: + name: restore_testing_selections_list_only + id: aws.backup.restore_testing_selections_list_only + x-cfn-schema-name: RestoreTestingSelection + x-cfn-type-name: AWS::Backup::RestoreTestingSelection + x-identifiers: + - RestoreTestingPlanName + - RestoreTestingSelectionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RestoreTestingPlanName') as restore_testing_plan_name, + JSON_EXTRACT(Properties, '$.RestoreTestingSelectionName') as restore_testing_selection_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingSelection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RestoreTestingPlanName') as restore_testing_plan_name, + json_extract_path_text(Properties, 'RestoreTestingSelectionName') as restore_testing_selection_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Backup::RestoreTestingSelection' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/backupgateway.yaml b/providers/src/aws/v00.00.00000/services/backupgateway.yaml index c926a1c9..aae17837 100644 --- a/providers/src/aws/v00.00.00000/services/backupgateway.yaml +++ b/providers/src/aws/v00.00.00000/services/backupgateway.yaml @@ -647,10 +647,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.HypervisorArn') as hypervisor_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BackupGateway::Hypervisor' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Host') as host, + JSON_EXTRACT(detail.Properties, '$.HypervisorArn') as hypervisor_arn, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.LogGroupArn') as log_group_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Username') as username + 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::BackupGateway::Hypervisor' + AND detail.data__TypeName = 'AWS::BackupGateway::Hypervisor' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -672,10 +684,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'HypervisorArn') as hypervisor_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BackupGateway::Hypervisor' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Host') as host, + json_extract_path_text(detail.Properties, 'HypervisorArn') as hypervisor_arn, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'LogGroupArn') as log_group_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Username') as username + 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::BackupGateway::Hypervisor' + AND detail.data__TypeName = 'AWS::BackupGateway::Hypervisor' + AND listing.region = 'us-east-1' + hypervisors_list_only: + name: hypervisors_list_only + id: aws.backupgateway.hypervisors_list_only + x-cfn-schema-name: Hypervisor + x-cfn-type-name: AWS::BackupGateway::Hypervisor + x-identifiers: + - HypervisorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.HypervisorArn') as hypervisor_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BackupGateway::Hypervisor' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'HypervisorArn') as hypervisor_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BackupGateway::Hypervisor' + AND region = 'us-east-1' + hypervisor_tags: + name: hypervisor_tags + id: aws.backupgateway.hypervisor_tags + x-cfn-schema-name: Hypervisor + x-cfn-type-name: AWS::BackupGateway::Hypervisor + 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, '$.Host') as host, + JSON_EXTRACT(detail.Properties, '$.HypervisorArn') as hypervisor_arn, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.LogGroupArn') as log_group_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.Username') as username + 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::BackupGateway::Hypervisor' + AND detail.data__TypeName = 'AWS::BackupGateway::Hypervisor' + 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, 'Host') as host, + json_extract_path_text(detail.Properties, 'HypervisorArn') as hypervisor_arn, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'LogGroupArn') as log_group_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'Username') as username + 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::BackupGateway::Hypervisor' + AND detail.data__TypeName = 'AWS::BackupGateway::Hypervisor' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/batch.yaml b/providers/src/aws/v00.00.00000/services/batch.yaml index 06f23339..1747f430 100644 --- a/providers/src/aws/v00.00.00000/services/batch.yaml +++ b/providers/src/aws/v00.00.00000/services/batch.yaml @@ -1011,10 +1011,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ComputeEnvironmentArn') as compute_environment_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::ComputeEnvironment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ComputeEnvironmentArn') as compute_environment_arn, + JSON_EXTRACT(detail.Properties, '$.ComputeEnvironmentName') as compute_environment_name, + JSON_EXTRACT(detail.Properties, '$.ComputeResources') as compute_resources, + JSON_EXTRACT(detail.Properties, '$.ReplaceComputeEnvironment') as replace_compute_environment, + JSON_EXTRACT(detail.Properties, '$.ServiceRole') as service_role, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatePolicy') as update_policy, + JSON_EXTRACT(detail.Properties, '$.UnmanagedvCpus') as unmanagedv_cpus, + JSON_EXTRACT(detail.Properties, '$.EksConfiguration') as eks_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::Batch::ComputeEnvironment' + AND detail.data__TypeName = 'AWS::Batch::ComputeEnvironment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1039,10 +1054,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ComputeEnvironmentArn') as compute_environment_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::ComputeEnvironment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ComputeEnvironmentArn') as compute_environment_arn, + json_extract_path_text(detail.Properties, 'ComputeEnvironmentName') as compute_environment_name, + json_extract_path_text(detail.Properties, 'ComputeResources') as compute_resources, + json_extract_path_text(detail.Properties, 'ReplaceComputeEnvironment') as replace_compute_environment, + json_extract_path_text(detail.Properties, 'ServiceRole') as service_role, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatePolicy') as update_policy, + json_extract_path_text(detail.Properties, 'UnmanagedvCpus') as unmanagedv_cpus, + json_extract_path_text(detail.Properties, 'EksConfiguration') as eks_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::Batch::ComputeEnvironment' + AND detail.data__TypeName = 'AWS::Batch::ComputeEnvironment' + AND listing.region = 'us-east-1' + compute_environments_list_only: + name: compute_environments_list_only + id: aws.batch.compute_environments_list_only + x-cfn-schema-name: ComputeEnvironment + x-cfn-type-name: AWS::Batch::ComputeEnvironment + x-identifiers: + - ComputeEnvironmentArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ComputeEnvironmentArn') as compute_environment_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::ComputeEnvironment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ComputeEnvironmentArn') as compute_environment_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::ComputeEnvironment' + AND region = 'us-east-1' + compute_environment_tags: + name: compute_environment_tags + id: aws.batch.compute_environment_tags + x-cfn-schema-name: ComputeEnvironment + x-cfn-type-name: AWS::Batch::ComputeEnvironment + 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, '$.ComputeEnvironmentArn') as compute_environment_arn, + JSON_EXTRACT(detail.Properties, '$.ComputeEnvironmentName') as compute_environment_name, + JSON_EXTRACT(detail.Properties, '$.ComputeResources') as compute_resources, + JSON_EXTRACT(detail.Properties, '$.ReplaceComputeEnvironment') as replace_compute_environment, + JSON_EXTRACT(detail.Properties, '$.ServiceRole') as service_role, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatePolicy') as update_policy, + JSON_EXTRACT(detail.Properties, '$.UnmanagedvCpus') as unmanagedv_cpus, + JSON_EXTRACT(detail.Properties, '$.EksConfiguration') as eks_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::Batch::ComputeEnvironment' + AND detail.data__TypeName = 'AWS::Batch::ComputeEnvironment' + 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, 'ComputeEnvironmentArn') as compute_environment_arn, + json_extract_path_text(detail.Properties, 'ComputeEnvironmentName') as compute_environment_name, + json_extract_path_text(detail.Properties, 'ComputeResources') as compute_resources, + json_extract_path_text(detail.Properties, 'ReplaceComputeEnvironment') as replace_compute_environment, + json_extract_path_text(detail.Properties, 'ServiceRole') as service_role, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatePolicy') as update_policy, + json_extract_path_text(detail.Properties, 'UnmanagedvCpus') as unmanagedv_cpus, + json_extract_path_text(detail.Properties, 'EksConfiguration') as eks_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::Batch::ComputeEnvironment' + AND detail.data__TypeName = 'AWS::Batch::ComputeEnvironment' + AND listing.region = 'us-east-1' job_queues: name: job_queues id: aws.batch.job_queues @@ -1121,10 +1245,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.JobQueueArn') as job_queue_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::JobQueue' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.JobQueueName') as job_queue_name, + JSON_EXTRACT(detail.Properties, '$.JobQueueArn') as job_queue_arn, + JSON_EXTRACT(detail.Properties, '$.ComputeEnvironmentOrder') as compute_environment_order, + JSON_EXTRACT(detail.Properties, '$.JobStateTimeLimitActions') as job_state_time_limit_actions, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.SchedulingPolicyArn') as scheduling_policy_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Batch::JobQueue' + AND detail.data__TypeName = 'AWS::Batch::JobQueue' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1146,10 +1282,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'JobQueueArn') as job_queue_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::JobQueue' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'JobQueueName') as job_queue_name, + json_extract_path_text(detail.Properties, 'JobQueueArn') as job_queue_arn, + json_extract_path_text(detail.Properties, 'ComputeEnvironmentOrder') as compute_environment_order, + json_extract_path_text(detail.Properties, 'JobStateTimeLimitActions') as job_state_time_limit_actions, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'SchedulingPolicyArn') as scheduling_policy_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Batch::JobQueue' + AND detail.data__TypeName = 'AWS::Batch::JobQueue' + AND listing.region = 'us-east-1' + job_queues_list_only: + name: job_queues_list_only + id: aws.batch.job_queues_list_only + x-cfn-schema-name: JobQueue + x-cfn-type-name: AWS::Batch::JobQueue + x-identifiers: + - JobQueueArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.JobQueueArn') as job_queue_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::JobQueue' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'JobQueueArn') as job_queue_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::JobQueue' + AND region = 'us-east-1' + job_queue_tags: + name: job_queue_tags + id: aws.batch.job_queue_tags + x-cfn-schema-name: JobQueue + x-cfn-type-name: AWS::Batch::JobQueue + 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, '$.JobQueueName') as job_queue_name, + JSON_EXTRACT(detail.Properties, '$.JobQueueArn') as job_queue_arn, + JSON_EXTRACT(detail.Properties, '$.ComputeEnvironmentOrder') as compute_environment_order, + JSON_EXTRACT(detail.Properties, '$.JobStateTimeLimitActions') as job_state_time_limit_actions, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.SchedulingPolicyArn') as scheduling_policy_arn + 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::Batch::JobQueue' + AND detail.data__TypeName = 'AWS::Batch::JobQueue' + 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, 'JobQueueName') as job_queue_name, + json_extract_path_text(detail.Properties, 'JobQueueArn') as job_queue_arn, + json_extract_path_text(detail.Properties, 'ComputeEnvironmentOrder') as compute_environment_order, + json_extract_path_text(detail.Properties, 'JobStateTimeLimitActions') as job_state_time_limit_actions, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'SchedulingPolicyArn') as scheduling_policy_arn + 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::Batch::JobQueue' + AND detail.data__TypeName = 'AWS::Batch::JobQueue' + AND listing.region = 'us-east-1' scheduling_policies: name: scheduling_policies id: aws.batch.scheduling_policies @@ -1224,10 +1460,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::SchedulingPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.FairsharePolicy') as fairshare_policy, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Batch::SchedulingPolicy' + AND detail.data__TypeName = 'AWS::Batch::SchedulingPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1245,10 +1489,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Batch::SchedulingPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'FairsharePolicy') as fairshare_policy, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Batch::SchedulingPolicy' + AND detail.data__TypeName = 'AWS::Batch::SchedulingPolicy' + AND listing.region = 'us-east-1' + scheduling_policies_list_only: + name: scheduling_policies_list_only + id: aws.batch.scheduling_policies_list_only + x-cfn-schema-name: SchedulingPolicy + x-cfn-type-name: AWS::Batch::SchedulingPolicy + 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::Batch::SchedulingPolicy' + 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::Batch::SchedulingPolicy' + AND region = 'us-east-1' + scheduling_policy_tags: + name: scheduling_policy_tags + id: aws.batch.scheduling_policy_tags + x-cfn-schema-name: SchedulingPolicy + x-cfn-type-name: AWS::Batch::SchedulingPolicy + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.FairsharePolicy') as fairshare_policy + 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::Batch::SchedulingPolicy' + AND detail.data__TypeName = 'AWS::Batch::SchedulingPolicy' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'FairsharePolicy') as fairshare_policy + 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::Batch::SchedulingPolicy' + AND detail.data__TypeName = 'AWS::Batch::SchedulingPolicy' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/bcmdataexports.yaml b/providers/src/aws/v00.00.00000/services/bcmdataexports.yaml index a21c822d..63eda6a4 100644 --- a/providers/src/aws/v00.00.00000/services/bcmdataexports.yaml +++ b/providers/src/aws/v00.00.00000/services/bcmdataexports.yaml @@ -679,10 +679,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ExportArn') as export_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BCMDataExports::Export' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Export') as export, + JSON_EXTRACT(detail.Properties, '$.ExportArn') as export_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::BCMDataExports::Export' + AND detail.data__TypeName = 'AWS::BCMDataExports::Export' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -699,10 +706,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ExportArn') as export_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BCMDataExports::Export' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Export') as export, + json_extract_path_text(detail.Properties, 'ExportArn') as export_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::BCMDataExports::Export' + AND detail.data__TypeName = 'AWS::BCMDataExports::Export' + AND listing.region = 'us-east-1' + exports_list_only: + name: exports_list_only + id: aws.bcmdataexports.exports_list_only + x-cfn-schema-name: Export + x-cfn-type-name: AWS::BCMDataExports::Export + x-identifiers: + - ExportArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ExportArn') as export_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BCMDataExports::Export' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ExportArn') as export_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BCMDataExports::Export' + AND region = 'us-east-1' + export_tags: + name: export_tags + id: aws.bcmdataexports.export_tags + x-cfn-schema-name: Export + x-cfn-type-name: AWS::BCMDataExports::Export + 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, '$.Export') as export, + JSON_EXTRACT(detail.Properties, '$.ExportArn') as export_arn + 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::BCMDataExports::Export' + AND detail.data__TypeName = 'AWS::BCMDataExports::Export' + 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, 'Export') as export, + json_extract_path_text(detail.Properties, 'ExportArn') as export_arn + 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::BCMDataExports::Export' + AND detail.data__TypeName = 'AWS::BCMDataExports::Export' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/bedrock.yaml b/providers/src/aws/v00.00.00000/services/bedrock.yaml index e2e6b397..6175d3ae 100644 --- a/providers/src/aws/v00.00.00000/services/bedrock.yaml +++ b/providers/src/aws/v00.00.00000/services/bedrock.yaml @@ -2687,10 +2687,37 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AgentId') as agent_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Agent' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ActionGroups') as action_groups, + JSON_EXTRACT(detail.Properties, '$.AgentArn') as agent_arn, + JSON_EXTRACT(detail.Properties, '$.AgentId') as agent_id, + JSON_EXTRACT(detail.Properties, '$.AgentName') as agent_name, + JSON_EXTRACT(detail.Properties, '$.AgentResourceRoleArn') as agent_resource_role_arn, + JSON_EXTRACT(detail.Properties, '$.AgentStatus') as agent_status, + JSON_EXTRACT(detail.Properties, '$.AgentVersion') as agent_version, + JSON_EXTRACT(detail.Properties, '$.AutoPrepare') as auto_prepare, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CustomerEncryptionKeyArn') as customer_encryption_key_arn, + JSON_EXTRACT(detail.Properties, '$.SkipResourceInUseCheckOnDelete') as skip_resource_in_use_check_on_delete, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FailureReasons') as failure_reasons, + JSON_EXTRACT(detail.Properties, '$.FoundationModel') as foundation_model, + JSON_EXTRACT(detail.Properties, '$.IdleSessionTTLInSeconds') as idle_session_ttl_in_seconds, + JSON_EXTRACT(detail.Properties, '$.Instruction') as instruction, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBases') as knowledge_bases, + JSON_EXTRACT(detail.Properties, '$.PreparedAt') as prepared_at, + JSON_EXTRACT(detail.Properties, '$.PromptOverrideConfiguration') as prompt_override_configuration, + JSON_EXTRACT(detail.Properties, '$.RecommendedActions') as recommended_actions, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TestAliasTags') as test_alias_tags, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::Bedrock::Agent' + AND detail.data__TypeName = 'AWS::Bedrock::Agent' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2727,10 +2754,155 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AgentId') as agent_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Agent' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ActionGroups') as action_groups, + json_extract_path_text(detail.Properties, 'AgentArn') as agent_arn, + json_extract_path_text(detail.Properties, 'AgentId') as agent_id, + json_extract_path_text(detail.Properties, 'AgentName') as agent_name, + json_extract_path_text(detail.Properties, 'AgentResourceRoleArn') as agent_resource_role_arn, + json_extract_path_text(detail.Properties, 'AgentStatus') as agent_status, + json_extract_path_text(detail.Properties, 'AgentVersion') as agent_version, + json_extract_path_text(detail.Properties, 'AutoPrepare') as auto_prepare, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CustomerEncryptionKeyArn') as customer_encryption_key_arn, + json_extract_path_text(detail.Properties, 'SkipResourceInUseCheckOnDelete') as skip_resource_in_use_check_on_delete, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FailureReasons') as failure_reasons, + json_extract_path_text(detail.Properties, 'FoundationModel') as foundation_model, + json_extract_path_text(detail.Properties, 'IdleSessionTTLInSeconds') as idle_session_ttl_in_seconds, + json_extract_path_text(detail.Properties, 'Instruction') as instruction, + json_extract_path_text(detail.Properties, 'KnowledgeBases') as knowledge_bases, + json_extract_path_text(detail.Properties, 'PreparedAt') as prepared_at, + json_extract_path_text(detail.Properties, 'PromptOverrideConfiguration') as prompt_override_configuration, + json_extract_path_text(detail.Properties, 'RecommendedActions') as recommended_actions, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TestAliasTags') as test_alias_tags, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::Bedrock::Agent' + AND detail.data__TypeName = 'AWS::Bedrock::Agent' + AND listing.region = 'us-east-1' + agents_list_only: + name: agents_list_only + id: aws.bedrock.agents_list_only + x-cfn-schema-name: Agent + x-cfn-type-name: AWS::Bedrock::Agent + x-identifiers: + - AgentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AgentId') as agent_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Agent' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AgentId') as agent_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Agent' + AND region = 'us-east-1' + agent_tags: + name: agent_tags + id: aws.bedrock.agent_tags + x-cfn-schema-name: Agent + x-cfn-type-name: AWS::Bedrock::Agent + 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, '$.ActionGroups') as action_groups, + JSON_EXTRACT(detail.Properties, '$.AgentArn') as agent_arn, + JSON_EXTRACT(detail.Properties, '$.AgentId') as agent_id, + JSON_EXTRACT(detail.Properties, '$.AgentName') as agent_name, + JSON_EXTRACT(detail.Properties, '$.AgentResourceRoleArn') as agent_resource_role_arn, + JSON_EXTRACT(detail.Properties, '$.AgentStatus') as agent_status, + JSON_EXTRACT(detail.Properties, '$.AgentVersion') as agent_version, + JSON_EXTRACT(detail.Properties, '$.AutoPrepare') as auto_prepare, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CustomerEncryptionKeyArn') as customer_encryption_key_arn, + JSON_EXTRACT(detail.Properties, '$.SkipResourceInUseCheckOnDelete') as skip_resource_in_use_check_on_delete, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FailureReasons') as failure_reasons, + JSON_EXTRACT(detail.Properties, '$.FoundationModel') as foundation_model, + JSON_EXTRACT(detail.Properties, '$.IdleSessionTTLInSeconds') as idle_session_ttl_in_seconds, + JSON_EXTRACT(detail.Properties, '$.Instruction') as instruction, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBases') as knowledge_bases, + JSON_EXTRACT(detail.Properties, '$.PreparedAt') as prepared_at, + JSON_EXTRACT(detail.Properties, '$.PromptOverrideConfiguration') as prompt_override_configuration, + JSON_EXTRACT(detail.Properties, '$.RecommendedActions') as recommended_actions, + JSON_EXTRACT(detail.Properties, '$.TestAliasTags') as test_alias_tags, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::Bedrock::Agent' + AND detail.data__TypeName = 'AWS::Bedrock::Agent' + 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, 'ActionGroups') as action_groups, + json_extract_path_text(detail.Properties, 'AgentArn') as agent_arn, + json_extract_path_text(detail.Properties, 'AgentId') as agent_id, + json_extract_path_text(detail.Properties, 'AgentName') as agent_name, + json_extract_path_text(detail.Properties, 'AgentResourceRoleArn') as agent_resource_role_arn, + json_extract_path_text(detail.Properties, 'AgentStatus') as agent_status, + json_extract_path_text(detail.Properties, 'AgentVersion') as agent_version, + json_extract_path_text(detail.Properties, 'AutoPrepare') as auto_prepare, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CustomerEncryptionKeyArn') as customer_encryption_key_arn, + json_extract_path_text(detail.Properties, 'SkipResourceInUseCheckOnDelete') as skip_resource_in_use_check_on_delete, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FailureReasons') as failure_reasons, + json_extract_path_text(detail.Properties, 'FoundationModel') as foundation_model, + json_extract_path_text(detail.Properties, 'IdleSessionTTLInSeconds') as idle_session_ttl_in_seconds, + json_extract_path_text(detail.Properties, 'Instruction') as instruction, + json_extract_path_text(detail.Properties, 'KnowledgeBases') as knowledge_bases, + json_extract_path_text(detail.Properties, 'PreparedAt') as prepared_at, + json_extract_path_text(detail.Properties, 'PromptOverrideConfiguration') as prompt_override_configuration, + json_extract_path_text(detail.Properties, 'RecommendedActions') as recommended_actions, + json_extract_path_text(detail.Properties, 'TestAliasTags') as test_alias_tags, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::Bedrock::Agent' + AND detail.data__TypeName = 'AWS::Bedrock::Agent' + AND listing.region = 'us-east-1' agent_aliases: name: agent_aliases id: aws.bedrock.agent_aliases @@ -2813,11 +2985,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AgentId') as agent_id, - JSON_EXTRACT(Properties, '$.AgentAliasId') as agent_alias_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::AgentAlias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AgentAliasArn') as agent_alias_arn, + JSON_EXTRACT(detail.Properties, '$.AgentAliasHistoryEvents') as agent_alias_history_events, + JSON_EXTRACT(detail.Properties, '$.AgentAliasId') as agent_alias_id, + JSON_EXTRACT(detail.Properties, '$.AgentAliasName') as agent_alias_name, + JSON_EXTRACT(detail.Properties, '$.AgentAliasStatus') as agent_alias_status, + JSON_EXTRACT(detail.Properties, '$.AgentId') as agent_id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoutingConfiguration') as routing_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::Bedrock::AgentAlias' + AND detail.data__TypeName = 'AWS::Bedrock::AgentAlias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2842,11 +3028,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AgentId') as agent_id, - json_extract_path_text(Properties, 'AgentAliasId') as agent_alias_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::AgentAlias' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AgentAliasArn') as agent_alias_arn, + json_extract_path_text(detail.Properties, 'AgentAliasHistoryEvents') as agent_alias_history_events, + json_extract_path_text(detail.Properties, 'AgentAliasId') as agent_alias_id, + json_extract_path_text(detail.Properties, 'AgentAliasName') as agent_alias_name, + json_extract_path_text(detail.Properties, 'AgentAliasStatus') as agent_alias_status, + json_extract_path_text(detail.Properties, 'AgentId') as agent_id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoutingConfiguration') as routing_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::Bedrock::AgentAlias' + AND detail.data__TypeName = 'AWS::Bedrock::AgentAlias' + AND listing.region = 'us-east-1' + agent_aliases_list_only: + name: agent_aliases_list_only + id: aws.bedrock.agent_aliases_list_only + x-cfn-schema-name: AgentAlias + x-cfn-type-name: AWS::Bedrock::AgentAlias + x-identifiers: + - AgentId + - AgentAliasId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AgentId') as agent_id, + JSON_EXTRACT(Properties, '$.AgentAliasId') as agent_alias_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::AgentAlias' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AgentId') as agent_id, + json_extract_path_text(Properties, 'AgentAliasId') as agent_alias_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::AgentAlias' + AND region = 'us-east-1' + agent_alias_tags: + name: agent_alias_tags + id: aws.bedrock.agent_alias_tags + x-cfn-schema-name: AgentAlias + x-cfn-type-name: AWS::Bedrock::AgentAlias + 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, '$.AgentAliasArn') as agent_alias_arn, + JSON_EXTRACT(detail.Properties, '$.AgentAliasHistoryEvents') as agent_alias_history_events, + JSON_EXTRACT(detail.Properties, '$.AgentAliasId') as agent_alias_id, + JSON_EXTRACT(detail.Properties, '$.AgentAliasName') as agent_alias_name, + JSON_EXTRACT(detail.Properties, '$.AgentAliasStatus') as agent_alias_status, + JSON_EXTRACT(detail.Properties, '$.AgentId') as agent_id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoutingConfiguration') as routing_configuration, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::Bedrock::AgentAlias' + AND detail.data__TypeName = 'AWS::Bedrock::AgentAlias' + 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, 'AgentAliasArn') as agent_alias_arn, + json_extract_path_text(detail.Properties, 'AgentAliasHistoryEvents') as agent_alias_history_events, + json_extract_path_text(detail.Properties, 'AgentAliasId') as agent_alias_id, + json_extract_path_text(detail.Properties, 'AgentAliasName') as agent_alias_name, + json_extract_path_text(detail.Properties, 'AgentAliasStatus') as agent_alias_status, + json_extract_path_text(detail.Properties, 'AgentId') as agent_id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoutingConfiguration') as routing_configuration, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::Bedrock::AgentAlias' + AND detail.data__TypeName = 'AWS::Bedrock::AgentAlias' + AND listing.region = 'us-east-1' data_sources: name: data_sources id: aws.bedrock.data_sources @@ -2930,11 +3227,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KnowledgeBaseId') as knowledge_base_id, - JSON_EXTRACT(Properties, '$.DataSourceId') as data_source_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::DataSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DataSourceConfiguration') as data_source_configuration, + JSON_EXTRACT(detail.Properties, '$.DataSourceId') as data_source_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseId') as knowledge_base_id, + JSON_EXTRACT(detail.Properties, '$.DataSourceStatus') as data_source_status, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.VectorIngestionConfiguration') as vector_ingestion_configuration, + JSON_EXTRACT(detail.Properties, '$.DataDeletionPolicy') as data_deletion_policy, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.FailureReasons') as failure_reasons + 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::Bedrock::DataSource' + AND detail.data__TypeName = 'AWS::Bedrock::DataSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2960,11 +3272,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KnowledgeBaseId') as knowledge_base_id, - json_extract_path_text(Properties, 'DataSourceId') as data_source_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::DataSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DataSourceConfiguration') as data_source_configuration, + json_extract_path_text(detail.Properties, 'DataSourceId') as data_source_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KnowledgeBaseId') as knowledge_base_id, + json_extract_path_text(detail.Properties, 'DataSourceStatus') as data_source_status, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'VectorIngestionConfiguration') as vector_ingestion_configuration, + json_extract_path_text(detail.Properties, 'DataDeletionPolicy') as data_deletion_policy, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'FailureReasons') as failure_reasons + 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::Bedrock::DataSource' + AND detail.data__TypeName = 'AWS::Bedrock::DataSource' + AND listing.region = 'us-east-1' + data_sources_list_only: + name: data_sources_list_only + id: aws.bedrock.data_sources_list_only + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::Bedrock::DataSource + x-identifiers: + - KnowledgeBaseId + - DataSourceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KnowledgeBaseId') as knowledge_base_id, + JSON_EXTRACT(Properties, '$.DataSourceId') as data_source_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::DataSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KnowledgeBaseId') as knowledge_base_id, + json_extract_path_text(Properties, 'DataSourceId') as data_source_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::DataSource' + AND region = 'us-east-1' guardrails: name: guardrails id: aws.bedrock.guardrails @@ -3053,10 +3414,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GuardrailArn') as guardrail_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Guardrail' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BlockedInputMessaging') as blocked_input_messaging, + JSON_EXTRACT(detail.Properties, '$.BlockedOutputsMessaging') as blocked_outputs_messaging, + JSON_EXTRACT(detail.Properties, '$.ContentPolicyConfig') as content_policy_config, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FailureRecommendations') as failure_recommendations, + JSON_EXTRACT(detail.Properties, '$.GuardrailArn') as guardrail_arn, + JSON_EXTRACT(detail.Properties, '$.GuardrailId') as guardrail_id, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SensitiveInformationPolicyConfig') as sensitive_information_policy_config, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReasons') as status_reasons, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TopicPolicyConfig') as topic_policy_config, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.WordPolicyConfig') as word_policy_config + 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::Bedrock::Guardrail' + AND detail.data__TypeName = 'AWS::Bedrock::Guardrail' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3088,10 +3471,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GuardrailArn') as guardrail_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Guardrail' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BlockedInputMessaging') as blocked_input_messaging, + json_extract_path_text(detail.Properties, 'BlockedOutputsMessaging') as blocked_outputs_messaging, + json_extract_path_text(detail.Properties, 'ContentPolicyConfig') as content_policy_config, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FailureRecommendations') as failure_recommendations, + json_extract_path_text(detail.Properties, 'GuardrailArn') as guardrail_arn, + json_extract_path_text(detail.Properties, 'GuardrailId') as guardrail_id, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SensitiveInformationPolicyConfig') as sensitive_information_policy_config, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReasons') as status_reasons, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TopicPolicyConfig') as topic_policy_config, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'WordPolicyConfig') as word_policy_config + 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::Bedrock::Guardrail' + AND detail.data__TypeName = 'AWS::Bedrock::Guardrail' + AND listing.region = 'us-east-1' + guardrails_list_only: + name: guardrails_list_only + id: aws.bedrock.guardrails_list_only + x-cfn-schema-name: Guardrail + x-cfn-type-name: AWS::Bedrock::Guardrail + x-identifiers: + - GuardrailArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GuardrailArn') as guardrail_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Guardrail' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GuardrailArn') as guardrail_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::Guardrail' + AND region = 'us-east-1' + guardrail_tags: + name: guardrail_tags + id: aws.bedrock.guardrail_tags + x-cfn-schema-name: Guardrail + x-cfn-type-name: AWS::Bedrock::Guardrail + 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, '$.BlockedInputMessaging') as blocked_input_messaging, + JSON_EXTRACT(detail.Properties, '$.BlockedOutputsMessaging') as blocked_outputs_messaging, + JSON_EXTRACT(detail.Properties, '$.ContentPolicyConfig') as content_policy_config, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FailureRecommendations') as failure_recommendations, + JSON_EXTRACT(detail.Properties, '$.GuardrailArn') as guardrail_arn, + JSON_EXTRACT(detail.Properties, '$.GuardrailId') as guardrail_id, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SensitiveInformationPolicyConfig') as sensitive_information_policy_config, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReasons') as status_reasons, + JSON_EXTRACT(detail.Properties, '$.TopicPolicyConfig') as topic_policy_config, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.WordPolicyConfig') as word_policy_config + 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::Bedrock::Guardrail' + AND detail.data__TypeName = 'AWS::Bedrock::Guardrail' + 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, 'BlockedInputMessaging') as blocked_input_messaging, + json_extract_path_text(detail.Properties, 'BlockedOutputsMessaging') as blocked_outputs_messaging, + json_extract_path_text(detail.Properties, 'ContentPolicyConfig') as content_policy_config, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FailureRecommendations') as failure_recommendations, + json_extract_path_text(detail.Properties, 'GuardrailArn') as guardrail_arn, + json_extract_path_text(detail.Properties, 'GuardrailId') as guardrail_id, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SensitiveInformationPolicyConfig') as sensitive_information_policy_config, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReasons') as status_reasons, + json_extract_path_text(detail.Properties, 'TopicPolicyConfig') as topic_policy_config, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'WordPolicyConfig') as word_policy_config + 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::Bedrock::Guardrail' + AND detail.data__TypeName = 'AWS::Bedrock::Guardrail' + AND listing.region = 'us-east-1' guardrail_versions: name: guardrail_versions id: aws.bedrock.guardrail_versions @@ -3247,10 +3760,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KnowledgeBaseId') as knowledge_base_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::KnowledgeBase' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseConfiguration') as knowledge_base_configuration, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseId') as knowledge_base_id, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseArn') as knowledge_base_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.FailureReasons') as failure_reasons, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.StorageConfiguration') as storage_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Bedrock::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Bedrock::KnowledgeBase' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3276,10 +3805,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KnowledgeBaseId') as knowledge_base_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::KnowledgeBase' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KnowledgeBaseConfiguration') as knowledge_base_configuration, + json_extract_path_text(detail.Properties, 'KnowledgeBaseId') as knowledge_base_id, + json_extract_path_text(detail.Properties, 'KnowledgeBaseArn') as knowledge_base_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'FailureReasons') as failure_reasons, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'StorageConfiguration') as storage_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Bedrock::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Bedrock::KnowledgeBase' + AND listing.region = 'us-east-1' + knowledge_bases_list_only: + name: knowledge_bases_list_only + id: aws.bedrock.knowledge_bases_list_only + x-cfn-schema-name: KnowledgeBase + x-cfn-type-name: AWS::Bedrock::KnowledgeBase + x-identifiers: + - KnowledgeBaseId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KnowledgeBaseId') as knowledge_base_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::KnowledgeBase' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KnowledgeBaseId') as knowledge_base_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Bedrock::KnowledgeBase' + AND region = 'us-east-1' + knowledge_base_tags: + name: knowledge_base_tags + id: aws.bedrock.knowledge_base_tags + x-cfn-schema-name: KnowledgeBase + x-cfn-type-name: AWS::Bedrock::KnowledgeBase + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseConfiguration') as knowledge_base_configuration, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseId') as knowledge_base_id, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseArn') as knowledge_base_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.FailureReasons') as failure_reasons, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.StorageConfiguration') as storage_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::Bedrock::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Bedrock::KnowledgeBase' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'KnowledgeBaseConfiguration') as knowledge_base_configuration, + json_extract_path_text(detail.Properties, 'KnowledgeBaseId') as knowledge_base_id, + json_extract_path_text(detail.Properties, 'KnowledgeBaseArn') as knowledge_base_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'FailureReasons') as failure_reasons, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'StorageConfiguration') as storage_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::Bedrock::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Bedrock::KnowledgeBase' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/billingconductor.yaml b/providers/src/aws/v00.00.00000/services/billingconductor.yaml index a4375de9..1704a626 100644 --- a/providers/src/aws/v00.00.00000/services/billingconductor.yaml +++ b/providers/src/aws/v00.00.00000/services/billingconductor.yaml @@ -1325,10 +1325,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::BillingGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PrimaryAccountId') as primary_account_id, + JSON_EXTRACT(detail.Properties, '$.ComputationPreference') as computation_preference, + JSON_EXTRACT(detail.Properties, '$.AccountGrouping') as account_grouping, + JSON_EXTRACT(detail.Properties, '$.Size') as size, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::BillingConductor::BillingGroup' + AND detail.data__TypeName = 'AWS::BillingConductor::BillingGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1354,10 +1370,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::BillingGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PrimaryAccountId') as primary_account_id, + json_extract_path_text(detail.Properties, 'ComputationPreference') as computation_preference, + json_extract_path_text(detail.Properties, 'AccountGrouping') as account_grouping, + json_extract_path_text(detail.Properties, 'Size') as size, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::BillingConductor::BillingGroup' + AND detail.data__TypeName = 'AWS::BillingConductor::BillingGroup' + AND listing.region = 'us-east-1' + billing_groups_list_only: + name: billing_groups_list_only + id: aws.billingconductor.billing_groups_list_only + x-cfn-schema-name: BillingGroup + x-cfn-type-name: AWS::BillingConductor::BillingGroup + 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::BillingConductor::BillingGroup' + 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::BillingConductor::BillingGroup' + AND region = 'us-east-1' + billing_group_tags: + name: billing_group_tags + id: aws.billingconductor.billing_group_tags + x-cfn-schema-name: BillingGroup + x-cfn-type-name: AWS::BillingConductor::BillingGroup + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PrimaryAccountId') as primary_account_id, + JSON_EXTRACT(detail.Properties, '$.ComputationPreference') as computation_preference, + JSON_EXTRACT(detail.Properties, '$.AccountGrouping') as account_grouping, + JSON_EXTRACT(detail.Properties, '$.Size') as size, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::BillingConductor::BillingGroup' + AND detail.data__TypeName = 'AWS::BillingConductor::BillingGroup' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PrimaryAccountId') as primary_account_id, + json_extract_path_text(detail.Properties, 'ComputationPreference') as computation_preference, + json_extract_path_text(detail.Properties, 'AccountGrouping') as account_grouping, + json_extract_path_text(detail.Properties, 'Size') as size, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::BillingConductor::BillingGroup' + AND detail.data__TypeName = 'AWS::BillingConductor::BillingGroup' + AND listing.region = 'us-east-1' custom_line_items: name: custom_line_items id: aws.billingconductor.custom_line_items @@ -1441,10 +1569,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::CustomLineItem' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CustomLineItemChargeDetails') as custom_line_item_charge_details, + JSON_EXTRACT(detail.Properties, '$.BillingGroupArn') as billing_group_arn, + JSON_EXTRACT(detail.Properties, '$.BillingPeriodRange') as billing_period_range, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.AssociationSize') as association_size, + JSON_EXTRACT(detail.Properties, '$.ProductCode') as product_code, + JSON_EXTRACT(detail.Properties, '$.CurrencyCode') as currency_code, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::BillingConductor::CustomLineItem' + AND detail.data__TypeName = 'AWS::BillingConductor::CustomLineItem' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1471,10 +1616,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::CustomLineItem' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CustomLineItemChargeDetails') as custom_line_item_charge_details, + json_extract_path_text(detail.Properties, 'BillingGroupArn') as billing_group_arn, + json_extract_path_text(detail.Properties, 'BillingPeriodRange') as billing_period_range, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'AssociationSize') as association_size, + json_extract_path_text(detail.Properties, 'ProductCode') as product_code, + json_extract_path_text(detail.Properties, 'CurrencyCode') as currency_code, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::BillingConductor::CustomLineItem' + AND detail.data__TypeName = 'AWS::BillingConductor::CustomLineItem' + AND listing.region = 'us-east-1' + custom_line_items_list_only: + name: custom_line_items_list_only + id: aws.billingconductor.custom_line_items_list_only + x-cfn-schema-name: CustomLineItem + x-cfn-type-name: AWS::BillingConductor::CustomLineItem + 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::BillingConductor::CustomLineItem' + 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::BillingConductor::CustomLineItem' + AND region = 'us-east-1' + custom_line_item_tags: + name: custom_line_item_tags + id: aws.billingconductor.custom_line_item_tags + x-cfn-schema-name: CustomLineItem + x-cfn-type-name: AWS::BillingConductor::CustomLineItem + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CustomLineItemChargeDetails') as custom_line_item_charge_details, + JSON_EXTRACT(detail.Properties, '$.BillingGroupArn') as billing_group_arn, + JSON_EXTRACT(detail.Properties, '$.BillingPeriodRange') as billing_period_range, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.AssociationSize') as association_size, + JSON_EXTRACT(detail.Properties, '$.ProductCode') as product_code, + JSON_EXTRACT(detail.Properties, '$.CurrencyCode') as currency_code, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id + 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::BillingConductor::CustomLineItem' + AND detail.data__TypeName = 'AWS::BillingConductor::CustomLineItem' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CustomLineItemChargeDetails') as custom_line_item_charge_details, + json_extract_path_text(detail.Properties, 'BillingGroupArn') as billing_group_arn, + json_extract_path_text(detail.Properties, 'BillingPeriodRange') as billing_period_range, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'AssociationSize') as association_size, + json_extract_path_text(detail.Properties, 'ProductCode') as product_code, + json_extract_path_text(detail.Properties, 'CurrencyCode') as currency_code, + json_extract_path_text(detail.Properties, 'AccountId') as account_id + 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::BillingConductor::CustomLineItem' + AND detail.data__TypeName = 'AWS::BillingConductor::CustomLineItem' + AND listing.region = 'us-east-1' pricing_plans: name: pricing_plans id: aws.billingconductor.pricing_plans @@ -1553,10 +1813,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::PricingPlan' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PricingRuleArns') as pricing_rule_arns, + JSON_EXTRACT(detail.Properties, '$.Size') as size, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::BillingConductor::PricingPlan' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingPlan' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1578,10 +1850,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::PricingPlan' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PricingRuleArns') as pricing_rule_arns, + json_extract_path_text(detail.Properties, 'Size') as size, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::BillingConductor::PricingPlan' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingPlan' + AND listing.region = 'us-east-1' + pricing_plans_list_only: + name: pricing_plans_list_only + id: aws.billingconductor.pricing_plans_list_only + x-cfn-schema-name: PricingPlan + x-cfn-type-name: AWS::BillingConductor::PricingPlan + 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::BillingConductor::PricingPlan' + 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::BillingConductor::PricingPlan' + AND region = 'us-east-1' + pricing_plan_tags: + name: pricing_plan_tags + id: aws.billingconductor.pricing_plan_tags + x-cfn-schema-name: PricingPlan + x-cfn-type-name: AWS::BillingConductor::PricingPlan + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PricingRuleArns') as pricing_rule_arns, + JSON_EXTRACT(detail.Properties, '$.Size') as size, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::BillingConductor::PricingPlan' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingPlan' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'PricingRuleArns') as pricing_rule_arns, + json_extract_path_text(detail.Properties, 'Size') as size, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::BillingConductor::PricingPlan' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingPlan' + AND listing.region = 'us-east-1' pricing_rules: name: pricing_rules id: aws.billingconductor.pricing_rules @@ -1667,10 +2039,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::PricingRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.ModifierPercentage') as modifier_percentage, + JSON_EXTRACT(detail.Properties, '$.Service') as service, + JSON_EXTRACT(detail.Properties, '$.BillingEntity') as billing_entity, + JSON_EXTRACT(detail.Properties, '$.Tiering') as tiering, + JSON_EXTRACT(detail.Properties, '$.UsageType') as usage_type, + JSON_EXTRACT(detail.Properties, '$.Operation') as operation, + JSON_EXTRACT(detail.Properties, '$.AssociatedPricingPlanCount') as associated_pricing_plan_count, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::BillingConductor::PricingRule' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1699,10 +2090,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::BillingConductor::PricingRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'ModifierPercentage') as modifier_percentage, + json_extract_path_text(detail.Properties, 'Service') as service, + json_extract_path_text(detail.Properties, 'BillingEntity') as billing_entity, + json_extract_path_text(detail.Properties, 'Tiering') as tiering, + json_extract_path_text(detail.Properties, 'UsageType') as usage_type, + json_extract_path_text(detail.Properties, 'Operation') as operation, + json_extract_path_text(detail.Properties, 'AssociatedPricingPlanCount') as associated_pricing_plan_count, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::BillingConductor::PricingRule' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingRule' + AND listing.region = 'us-east-1' + pricing_rules_list_only: + name: pricing_rules_list_only + id: aws.billingconductor.pricing_rules_list_only + x-cfn-schema-name: PricingRule + x-cfn-type-name: AWS::BillingConductor::PricingRule + 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::BillingConductor::PricingRule' + 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::BillingConductor::PricingRule' + AND region = 'us-east-1' + pricing_rule_tags: + name: pricing_rule_tags + id: aws.billingconductor.pricing_rule_tags + x-cfn-schema-name: PricingRule + x-cfn-type-name: AWS::BillingConductor::PricingRule + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.ModifierPercentage') as modifier_percentage, + JSON_EXTRACT(detail.Properties, '$.Service') as service, + JSON_EXTRACT(detail.Properties, '$.BillingEntity') as billing_entity, + JSON_EXTRACT(detail.Properties, '$.Tiering') as tiering, + JSON_EXTRACT(detail.Properties, '$.UsageType') as usage_type, + JSON_EXTRACT(detail.Properties, '$.Operation') as operation, + JSON_EXTRACT(detail.Properties, '$.AssociatedPricingPlanCount') as associated_pricing_plan_count, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::BillingConductor::PricingRule' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingRule' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'ModifierPercentage') as modifier_percentage, + json_extract_path_text(detail.Properties, 'Service') as service, + json_extract_path_text(detail.Properties, 'BillingEntity') as billing_entity, + json_extract_path_text(detail.Properties, 'Tiering') as tiering, + json_extract_path_text(detail.Properties, 'UsageType') as usage_type, + json_extract_path_text(detail.Properties, 'Operation') as operation, + json_extract_path_text(detail.Properties, 'AssociatedPricingPlanCount') as associated_pricing_plan_count, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::BillingConductor::PricingRule' + AND detail.data__TypeName = 'AWS::BillingConductor::PricingRule' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/budgets.yaml b/providers/src/aws/v00.00.00000/services/budgets.yaml index bd50693d..eab88fc6 100644 --- a/providers/src/aws/v00.00.00000/services/budgets.yaml +++ b/providers/src/aws/v00.00.00000/services/budgets.yaml @@ -729,11 +729,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ActionId') as action_id, - JSON_EXTRACT(Properties, '$.BudgetName') as budget_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Budgets::BudgetsAction' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ActionId') as action_id, + JSON_EXTRACT(detail.Properties, '$.BudgetName') as budget_name, + JSON_EXTRACT(detail.Properties, '$.NotificationType') as notification_type, + JSON_EXTRACT(detail.Properties, '$.ActionType') as action_type, + JSON_EXTRACT(detail.Properties, '$.ActionThreshold') as action_threshold, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.ApprovalModel') as approval_model, + JSON_EXTRACT(detail.Properties, '$.Subscribers') as subscribers, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags + 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::Budgets::BudgetsAction' + AND detail.data__TypeName = 'AWS::Budgets::BudgetsAction' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -757,11 +770,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ActionId') as action_id, - json_extract_path_text(Properties, 'BudgetName') as budget_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Budgets::BudgetsAction' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ActionId') as action_id, + json_extract_path_text(detail.Properties, 'BudgetName') as budget_name, + json_extract_path_text(detail.Properties, 'NotificationType') as notification_type, + json_extract_path_text(detail.Properties, 'ActionType') as action_type, + json_extract_path_text(detail.Properties, 'ActionThreshold') as action_threshold, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'ApprovalModel') as approval_model, + json_extract_path_text(detail.Properties, 'Subscribers') as subscribers, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags + 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::Budgets::BudgetsAction' + AND detail.data__TypeName = 'AWS::Budgets::BudgetsAction' + AND listing.region = 'us-east-1' + budgets_actions_list_only: + name: budgets_actions_list_only + id: aws.budgets.budgets_actions_list_only + x-cfn-schema-name: BudgetsAction + x-cfn-type-name: AWS::Budgets::BudgetsAction + x-identifiers: + - ActionId + - BudgetName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ActionId') as action_id, + JSON_EXTRACT(Properties, '$.BudgetName') as budget_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Budgets::BudgetsAction' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ActionId') as action_id, + json_extract_path_text(Properties, 'BudgetName') as budget_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Budgets::BudgetsAction' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cassandra.yaml b/providers/src/aws/v00.00.00000/services/cassandra.yaml index 700c4da1..bb819336 100644 --- a/providers/src/aws/v00.00.00000/services/cassandra.yaml +++ b/providers/src/aws/v00.00.00000/services/cassandra.yaml @@ -998,10 +998,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KeyspaceName') as keyspace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Keyspace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.KeyspaceName') as keyspace_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ReplicationSpecification') as replication_specification + 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::Cassandra::Keyspace' + AND detail.data__TypeName = 'AWS::Cassandra::Keyspace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1018,10 +1025,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KeyspaceName') as keyspace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Keyspace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'KeyspaceName') as keyspace_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ReplicationSpecification') as replication_specification + 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::Cassandra::Keyspace' + AND detail.data__TypeName = 'AWS::Cassandra::Keyspace' + AND listing.region = 'us-east-1' + keyspaces_list_only: + name: keyspaces_list_only + id: aws.cassandra.keyspaces_list_only + x-cfn-schema-name: Keyspace + x-cfn-type-name: AWS::Cassandra::Keyspace + x-identifiers: + - KeyspaceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KeyspaceName') as keyspace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Keyspace' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KeyspaceName') as keyspace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Keyspace' + AND region = 'us-east-1' + keyspace_tags: + name: keyspace_tags + id: aws.cassandra.keyspace_tags + x-cfn-schema-name: Keyspace + x-cfn-type-name: AWS::Cassandra::Keyspace + 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, '$.KeyspaceName') as keyspace_name, + JSON_EXTRACT(detail.Properties, '$.ReplicationSpecification') as replication_specification + 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::Cassandra::Keyspace' + AND detail.data__TypeName = 'AWS::Cassandra::Keyspace' + 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, 'KeyspaceName') as keyspace_name, + json_extract_path_text(detail.Properties, 'ReplicationSpecification') as replication_specification + 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::Cassandra::Keyspace' + AND detail.data__TypeName = 'AWS::Cassandra::Keyspace' + AND listing.region = 'us-east-1' tables: name: tables id: aws.cassandra.tables @@ -1106,11 +1198,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KeyspaceName') as keyspace_name, - JSON_EXTRACT(Properties, '$.TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Table' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.KeyspaceName') as keyspace_name, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.RegularColumns') as regular_columns, + JSON_EXTRACT(detail.Properties, '$.PartitionKeyColumns') as partition_key_columns, + JSON_EXTRACT(detail.Properties, '$.ClusteringKeyColumns') as clustering_key_columns, + JSON_EXTRACT(detail.Properties, '$.BillingMode') as billing_mode, + JSON_EXTRACT(detail.Properties, '$.PointInTimeRecoveryEnabled') as point_in_time_recovery_enabled, + JSON_EXTRACT(detail.Properties, '$.ClientSideTimestampsEnabled') as client_side_timestamps_enabled, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.DefaultTimeToLive') as default_time_to_live, + JSON_EXTRACT(detail.Properties, '$.EncryptionSpecification') as encryption_specification, + JSON_EXTRACT(detail.Properties, '$.AutoScalingSpecifications') as auto_scaling_specifications, + JSON_EXTRACT(detail.Properties, '$.ReplicaSpecifications') as replica_specifications + 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::Cassandra::Table' + AND detail.data__TypeName = 'AWS::Cassandra::Table' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1137,11 +1245,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KeyspaceName') as keyspace_name, - json_extract_path_text(Properties, 'TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Table' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'KeyspaceName') as keyspace_name, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'RegularColumns') as regular_columns, + json_extract_path_text(detail.Properties, 'PartitionKeyColumns') as partition_key_columns, + json_extract_path_text(detail.Properties, 'ClusteringKeyColumns') as clustering_key_columns, + json_extract_path_text(detail.Properties, 'BillingMode') as billing_mode, + json_extract_path_text(detail.Properties, 'PointInTimeRecoveryEnabled') as point_in_time_recovery_enabled, + json_extract_path_text(detail.Properties, 'ClientSideTimestampsEnabled') as client_side_timestamps_enabled, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'DefaultTimeToLive') as default_time_to_live, + json_extract_path_text(detail.Properties, 'EncryptionSpecification') as encryption_specification, + json_extract_path_text(detail.Properties, 'AutoScalingSpecifications') as auto_scaling_specifications, + json_extract_path_text(detail.Properties, 'ReplicaSpecifications') as replica_specifications + 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::Cassandra::Table' + AND detail.data__TypeName = 'AWS::Cassandra::Table' + AND listing.region = 'us-east-1' + tables_list_only: + name: tables_list_only + id: aws.cassandra.tables_list_only + x-cfn-schema-name: Table + x-cfn-type-name: AWS::Cassandra::Table + x-identifiers: + - KeyspaceName + - TableName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KeyspaceName') as keyspace_name, + JSON_EXTRACT(Properties, '$.TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Table' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KeyspaceName') as keyspace_name, + json_extract_path_text(Properties, 'TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cassandra::Table' + AND region = 'us-east-1' + table_tags: + name: table_tags + id: aws.cassandra.table_tags + x-cfn-schema-name: Table + x-cfn-type-name: AWS::Cassandra::Table + 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, '$.KeyspaceName') as keyspace_name, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.RegularColumns') as regular_columns, + JSON_EXTRACT(detail.Properties, '$.PartitionKeyColumns') as partition_key_columns, + JSON_EXTRACT(detail.Properties, '$.ClusteringKeyColumns') as clustering_key_columns, + JSON_EXTRACT(detail.Properties, '$.BillingMode') as billing_mode, + JSON_EXTRACT(detail.Properties, '$.PointInTimeRecoveryEnabled') as point_in_time_recovery_enabled, + JSON_EXTRACT(detail.Properties, '$.ClientSideTimestampsEnabled') as client_side_timestamps_enabled, + JSON_EXTRACT(detail.Properties, '$.DefaultTimeToLive') as default_time_to_live, + JSON_EXTRACT(detail.Properties, '$.EncryptionSpecification') as encryption_specification, + JSON_EXTRACT(detail.Properties, '$.AutoScalingSpecifications') as auto_scaling_specifications, + JSON_EXTRACT(detail.Properties, '$.ReplicaSpecifications') as replica_specifications + 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::Cassandra::Table' + AND detail.data__TypeName = 'AWS::Cassandra::Table' + 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, 'KeyspaceName') as keyspace_name, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'RegularColumns') as regular_columns, + json_extract_path_text(detail.Properties, 'PartitionKeyColumns') as partition_key_columns, + json_extract_path_text(detail.Properties, 'ClusteringKeyColumns') as clustering_key_columns, + json_extract_path_text(detail.Properties, 'BillingMode') as billing_mode, + json_extract_path_text(detail.Properties, 'PointInTimeRecoveryEnabled') as point_in_time_recovery_enabled, + json_extract_path_text(detail.Properties, 'ClientSideTimestampsEnabled') as client_side_timestamps_enabled, + json_extract_path_text(detail.Properties, 'DefaultTimeToLive') as default_time_to_live, + json_extract_path_text(detail.Properties, 'EncryptionSpecification') as encryption_specification, + json_extract_path_text(detail.Properties, 'AutoScalingSpecifications') as auto_scaling_specifications, + json_extract_path_text(detail.Properties, 'ReplicaSpecifications') as replica_specifications + 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::Cassandra::Table' + AND detail.data__TypeName = 'AWS::Cassandra::Table' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ce.yaml b/providers/src/aws/v00.00.00000/services/ce.yaml index 3a115f5e..e296a260 100644 --- a/providers/src/aws/v00.00.00000/services/ce.yaml +++ b/providers/src/aws/v00.00.00000/services/ce.yaml @@ -926,10 +926,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MonitorArn') as monitor_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalyMonitor' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MonitorArn') as monitor_arn, + JSON_EXTRACT(detail.Properties, '$.MonitorType') as monitor_type, + JSON_EXTRACT(detail.Properties, '$.MonitorName') as monitor_name, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.LastEvaluatedDate') as last_evaluated_date, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedDate') as last_updated_date, + JSON_EXTRACT(detail.Properties, '$.MonitorDimension') as monitor_dimension, + JSON_EXTRACT(detail.Properties, '$.MonitorSpecification') as monitor_specification, + JSON_EXTRACT(detail.Properties, '$.DimensionalValueCount') as dimensional_value_count, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags + 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::CE::AnomalyMonitor' + AND detail.data__TypeName = 'AWS::CE::AnomalyMonitor' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -953,10 +967,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MonitorArn') as monitor_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalyMonitor' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MonitorArn') as monitor_arn, + json_extract_path_text(detail.Properties, 'MonitorType') as monitor_type, + json_extract_path_text(detail.Properties, 'MonitorName') as monitor_name, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'LastEvaluatedDate') as last_evaluated_date, + json_extract_path_text(detail.Properties, 'LastUpdatedDate') as last_updated_date, + json_extract_path_text(detail.Properties, 'MonitorDimension') as monitor_dimension, + json_extract_path_text(detail.Properties, 'MonitorSpecification') as monitor_specification, + json_extract_path_text(detail.Properties, 'DimensionalValueCount') as dimensional_value_count, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags + 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::CE::AnomalyMonitor' + AND detail.data__TypeName = 'AWS::CE::AnomalyMonitor' + AND listing.region = 'us-east-1' + anomaly_monitors_list_only: + name: anomaly_monitors_list_only + id: aws.ce.anomaly_monitors_list_only + x-cfn-schema-name: AnomalyMonitor + x-cfn-type-name: AWS::CE::AnomalyMonitor + x-identifiers: + - MonitorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MonitorArn') as monitor_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalyMonitor' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MonitorArn') as monitor_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalyMonitor' + AND region = 'us-east-1' anomaly_subscriptions: name: anomaly_subscriptions id: aws.ce.anomaly_subscriptions @@ -1036,10 +1095,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SubscriptionArn') as subscription_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalySubscription' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SubscriptionArn') as subscription_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriptionName') as subscription_name, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.MonitorArnList') as monitor_arn_list, + JSON_EXTRACT(detail.Properties, '$.Subscribers') as subscribers, + JSON_EXTRACT(detail.Properties, '$.Threshold') as threshold, + JSON_EXTRACT(detail.Properties, '$.ThresholdExpression') as threshold_expression, + JSON_EXTRACT(detail.Properties, '$.Frequency') as frequency, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags + 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::CE::AnomalySubscription' + AND detail.data__TypeName = 'AWS::CE::AnomalySubscription' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1062,10 +1134,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SubscriptionArn') as subscription_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalySubscription' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SubscriptionArn') as subscription_arn, + json_extract_path_text(detail.Properties, 'SubscriptionName') as subscription_name, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'MonitorArnList') as monitor_arn_list, + json_extract_path_text(detail.Properties, 'Subscribers') as subscribers, + json_extract_path_text(detail.Properties, 'Threshold') as threshold, + json_extract_path_text(detail.Properties, 'ThresholdExpression') as threshold_expression, + json_extract_path_text(detail.Properties, 'Frequency') as frequency, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags + 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::CE::AnomalySubscription' + AND detail.data__TypeName = 'AWS::CE::AnomalySubscription' + AND listing.region = 'us-east-1' + anomaly_subscriptions_list_only: + name: anomaly_subscriptions_list_only + id: aws.ce.anomaly_subscriptions_list_only + x-cfn-schema-name: AnomalySubscription + x-cfn-type-name: AWS::CE::AnomalySubscription + x-identifiers: + - SubscriptionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SubscriptionArn') as subscription_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalySubscription' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SubscriptionArn') as subscription_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::AnomalySubscription' + AND region = 'us-east-1' cost_categories: name: cost_categories id: aws.ce.cost_categories @@ -1143,10 +1259,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::CostCategory' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.EffectiveStart') as effective_start, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuleVersion') as rule_version, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.SplitChargeRules') as split_charge_rules, + JSON_EXTRACT(detail.Properties, '$.DefaultValue') as default_value + 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::CE::CostCategory' + AND detail.data__TypeName = 'AWS::CE::CostCategory' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1167,10 +1294,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CE::CostCategory' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'EffectiveStart') as effective_start, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuleVersion') as rule_version, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'SplitChargeRules') as split_charge_rules, + json_extract_path_text(detail.Properties, 'DefaultValue') as default_value + 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::CE::CostCategory' + AND detail.data__TypeName = 'AWS::CE::CostCategory' + AND listing.region = 'us-east-1' + cost_categories_list_only: + name: cost_categories_list_only + id: aws.ce.cost_categories_list_only + x-cfn-schema-name: CostCategory + x-cfn-type-name: AWS::CE::CostCategory + 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::CE::CostCategory' + 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::CE::CostCategory' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/chatbot.yaml b/providers/src/aws/v00.00.00000/services/chatbot.yaml index 1d74a872..db333f27 100644 --- a/providers/src/aws/v00.00.00000/services/chatbot.yaml +++ b/providers/src/aws/v00.00.00000/services/chatbot.yaml @@ -853,10 +853,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Chatbot::MicrosoftTeamsChannelConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TeamId') as team_id, + JSON_EXTRACT(detail.Properties, '$.TeamsChannelId') as teams_channel_id, + JSON_EXTRACT(detail.Properties, '$.TeamsTenantId') as teams_tenant_id, + JSON_EXTRACT(detail.Properties, '$.ConfigurationName') as configuration_name, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArns') as sns_topic_arns, + JSON_EXTRACT(detail.Properties, '$.LoggingLevel') as logging_level, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.GuardrailPolicies') as guardrail_policies, + JSON_EXTRACT(detail.Properties, '$.UserRoleRequired') as user_role_required, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Chatbot::MicrosoftTeamsChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::MicrosoftTeamsChannelConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -881,10 +896,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::Chatbot::MicrosoftTeamsChannelConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TeamId') as team_id, + json_extract_path_text(detail.Properties, 'TeamsChannelId') as teams_channel_id, + json_extract_path_text(detail.Properties, 'TeamsTenantId') as teams_tenant_id, + json_extract_path_text(detail.Properties, 'ConfigurationName') as configuration_name, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'SnsTopicArns') as sns_topic_arns, + json_extract_path_text(detail.Properties, 'LoggingLevel') as logging_level, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'GuardrailPolicies') as guardrail_policies, + json_extract_path_text(detail.Properties, 'UserRoleRequired') as user_role_required, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Chatbot::MicrosoftTeamsChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::MicrosoftTeamsChannelConfiguration' + AND listing.region = 'us-east-1' + microsoft_teams_channel_configurations_list_only: + name: microsoft_teams_channel_configurations_list_only + id: aws.chatbot.microsoft_teams_channel_configurations_list_only + x-cfn-schema-name: MicrosoftTeamsChannelConfiguration + x-cfn-type-name: AWS::Chatbot::MicrosoftTeamsChannelConfiguration + 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::Chatbot::MicrosoftTeamsChannelConfiguration' + 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::Chatbot::MicrosoftTeamsChannelConfiguration' + AND region = 'us-east-1' + microsoft_teams_channel_configuration_tags: + name: microsoft_teams_channel_configuration_tags + id: aws.chatbot.microsoft_teams_channel_configuration_tags + x-cfn-schema-name: MicrosoftTeamsChannelConfiguration + x-cfn-type-name: AWS::Chatbot::MicrosoftTeamsChannelConfiguration + 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, '$.TeamId') as team_id, + JSON_EXTRACT(detail.Properties, '$.TeamsChannelId') as teams_channel_id, + JSON_EXTRACT(detail.Properties, '$.TeamsTenantId') as teams_tenant_id, + JSON_EXTRACT(detail.Properties, '$.ConfigurationName') as configuration_name, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArns') as sns_topic_arns, + JSON_EXTRACT(detail.Properties, '$.LoggingLevel') as logging_level, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.GuardrailPolicies') as guardrail_policies, + JSON_EXTRACT(detail.Properties, '$.UserRoleRequired') as user_role_required + 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::Chatbot::MicrosoftTeamsChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::MicrosoftTeamsChannelConfiguration' + 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, 'TeamId') as team_id, + json_extract_path_text(detail.Properties, 'TeamsChannelId') as teams_channel_id, + json_extract_path_text(detail.Properties, 'TeamsTenantId') as teams_tenant_id, + json_extract_path_text(detail.Properties, 'ConfigurationName') as configuration_name, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'SnsTopicArns') as sns_topic_arns, + json_extract_path_text(detail.Properties, 'LoggingLevel') as logging_level, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'GuardrailPolicies') as guardrail_policies, + json_extract_path_text(detail.Properties, 'UserRoleRequired') as user_role_required + 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::Chatbot::MicrosoftTeamsChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::MicrosoftTeamsChannelConfiguration' + AND listing.region = 'us-east-1' slack_channel_configurations: name: slack_channel_configurations id: aws.chatbot.slack_channel_configurations @@ -965,10 +1089,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Chatbot::SlackChannelConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SlackWorkspaceId') as slack_workspace_id, + JSON_EXTRACT(detail.Properties, '$.SlackChannelId') as slack_channel_id, + JSON_EXTRACT(detail.Properties, '$.ConfigurationName') as configuration_name, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArns') as sns_topic_arns, + JSON_EXTRACT(detail.Properties, '$.LoggingLevel') as logging_level, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.GuardrailPolicies') as guardrail_policies, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UserRoleRequired') as user_role_required + 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::Chatbot::SlackChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::SlackChannelConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -992,10 +1130,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Chatbot::SlackChannelConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SlackWorkspaceId') as slack_workspace_id, + json_extract_path_text(detail.Properties, 'SlackChannelId') as slack_channel_id, + json_extract_path_text(detail.Properties, 'ConfigurationName') as configuration_name, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'SnsTopicArns') as sns_topic_arns, + json_extract_path_text(detail.Properties, 'LoggingLevel') as logging_level, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'GuardrailPolicies') as guardrail_policies, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UserRoleRequired') as user_role_required + 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::Chatbot::SlackChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::SlackChannelConfiguration' + AND listing.region = 'us-east-1' + slack_channel_configurations_list_only: + name: slack_channel_configurations_list_only + id: aws.chatbot.slack_channel_configurations_list_only + x-cfn-schema-name: SlackChannelConfiguration + x-cfn-type-name: AWS::Chatbot::SlackChannelConfiguration + 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::Chatbot::SlackChannelConfiguration' + 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::Chatbot::SlackChannelConfiguration' + AND region = 'us-east-1' + slack_channel_configuration_tags: + name: slack_channel_configuration_tags + id: aws.chatbot.slack_channel_configuration_tags + x-cfn-schema-name: SlackChannelConfiguration + x-cfn-type-name: AWS::Chatbot::SlackChannelConfiguration + 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, '$.SlackWorkspaceId') as slack_workspace_id, + JSON_EXTRACT(detail.Properties, '$.SlackChannelId') as slack_channel_id, + JSON_EXTRACT(detail.Properties, '$.ConfigurationName') as configuration_name, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArns') as sns_topic_arns, + JSON_EXTRACT(detail.Properties, '$.LoggingLevel') as logging_level, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.GuardrailPolicies') as guardrail_policies, + JSON_EXTRACT(detail.Properties, '$.UserRoleRequired') as user_role_required + 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::Chatbot::SlackChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::SlackChannelConfiguration' + 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, 'SlackWorkspaceId') as slack_workspace_id, + json_extract_path_text(detail.Properties, 'SlackChannelId') as slack_channel_id, + json_extract_path_text(detail.Properties, 'ConfigurationName') as configuration_name, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'SnsTopicArns') as sns_topic_arns, + json_extract_path_text(detail.Properties, 'LoggingLevel') as logging_level, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'GuardrailPolicies') as guardrail_policies, + json_extract_path_text(detail.Properties, 'UserRoleRequired') as user_role_required + 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::Chatbot::SlackChannelConfiguration' + AND detail.data__TypeName = 'AWS::Chatbot::SlackChannelConfiguration' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cleanrooms.yaml b/providers/src/aws/v00.00.00000/services/cleanrooms.yaml index f884b5ac..03f378e6 100644 --- a/providers/src/aws/v00.00.00000/services/cleanrooms.yaml +++ b/providers/src/aws/v00.00.00000/services/cleanrooms.yaml @@ -2039,11 +2039,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AnalysisTemplateIdentifier') as analysis_template_identifier, - JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationArn') as collaboration_arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AnalysisParameters') as analysis_parameters, + JSON_EXTRACT(detail.Properties, '$.AnalysisTemplateIdentifier') as analysis_template_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MembershipArn') as membership_arn, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Format') as _format + 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::CleanRooms::AnalysisTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2070,11 +2086,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AnalysisTemplateIdentifier') as analysis_template_identifier, - json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CollaborationArn') as collaboration_arn, + json_extract_path_text(detail.Properties, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AnalysisParameters') as analysis_parameters, + json_extract_path_text(detail.Properties, 'AnalysisTemplateIdentifier') as analysis_template_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MembershipArn') as membership_arn, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Format') as _format + 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::CleanRooms::AnalysisTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' + AND listing.region = 'us-east-1' + analysis_templates_list_only: + name: analysis_templates_list_only + id: aws.cleanrooms.analysis_templates_list_only + x-cfn-schema-name: AnalysisTemplate + x-cfn-type-name: AWS::CleanRooms::AnalysisTemplate + x-identifiers: + - AnalysisTemplateIdentifier + - MembershipIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AnalysisTemplateIdentifier') as analysis_template_identifier, + JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AnalysisTemplateIdentifier') as analysis_template_identifier, + json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' + AND region = 'us-east-1' + analysis_template_tags: + name: analysis_template_tags + id: aws.cleanrooms.analysis_template_tags + x-cfn-schema-name: AnalysisTemplate + x-cfn-type-name: AWS::CleanRooms::AnalysisTemplate + 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, '$.CollaborationArn') as collaboration_arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.AnalysisParameters') as analysis_parameters, + JSON_EXTRACT(detail.Properties, '$.AnalysisTemplateIdentifier') as analysis_template_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MembershipArn') as membership_arn, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Format') as _format + 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::CleanRooms::AnalysisTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' + 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, 'CollaborationArn') as collaboration_arn, + json_extract_path_text(detail.Properties, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'AnalysisParameters') as analysis_parameters, + json_extract_path_text(detail.Properties, 'AnalysisTemplateIdentifier') as analysis_template_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MembershipArn') as membership_arn, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Format') as _format + 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::CleanRooms::AnalysisTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::AnalysisTemplate' + AND listing.region = 'us-east-1' collaborations: name: collaborations id: aws.cleanrooms.collaborations @@ -2156,10 +2289,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CollaborationIdentifier') as collaboration_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Collaboration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.CreatorDisplayName') as creator_display_name, + JSON_EXTRACT(detail.Properties, '$.CreatorMemberAbilities') as creator_member_abilities, + JSON_EXTRACT(detail.Properties, '$.DataEncryptionMetadata') as data_encryption_metadata, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Members') as members, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.QueryLogStatus') as query_log_status, + JSON_EXTRACT(detail.Properties, '$.CreatorPaymentConfiguration') as creator_payment_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::CleanRooms::Collaboration' + AND detail.data__TypeName = 'AWS::CleanRooms::Collaboration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2184,10 +2332,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CollaborationIdentifier') as collaboration_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Collaboration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'CreatorDisplayName') as creator_display_name, + json_extract_path_text(detail.Properties, 'CreatorMemberAbilities') as creator_member_abilities, + json_extract_path_text(detail.Properties, 'DataEncryptionMetadata') as data_encryption_metadata, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Members') as members, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'QueryLogStatus') as query_log_status, + json_extract_path_text(detail.Properties, 'CreatorPaymentConfiguration') as creator_payment_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::CleanRooms::Collaboration' + AND detail.data__TypeName = 'AWS::CleanRooms::Collaboration' + AND listing.region = 'us-east-1' + collaborations_list_only: + name: collaborations_list_only + id: aws.cleanrooms.collaborations_list_only + x-cfn-schema-name: Collaboration + x-cfn-type-name: AWS::CleanRooms::Collaboration + x-identifiers: + - CollaborationIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CollaborationIdentifier') as collaboration_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Collaboration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CollaborationIdentifier') as collaboration_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Collaboration' + AND region = 'us-east-1' + collaboration_tags: + name: collaboration_tags + id: aws.cleanrooms.collaboration_tags + x-cfn-schema-name: Collaboration + x-cfn-type-name: AWS::CleanRooms::Collaboration + 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, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.CreatorDisplayName') as creator_display_name, + JSON_EXTRACT(detail.Properties, '$.CreatorMemberAbilities') as creator_member_abilities, + JSON_EXTRACT(detail.Properties, '$.DataEncryptionMetadata') as data_encryption_metadata, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Members') as members, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.QueryLogStatus') as query_log_status, + JSON_EXTRACT(detail.Properties, '$.CreatorPaymentConfiguration') as creator_payment_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::CleanRooms::Collaboration' + AND detail.data__TypeName = 'AWS::CleanRooms::Collaboration' + 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, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'CreatorDisplayName') as creator_display_name, + json_extract_path_text(detail.Properties, 'CreatorMemberAbilities') as creator_member_abilities, + json_extract_path_text(detail.Properties, 'DataEncryptionMetadata') as data_encryption_metadata, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Members') as members, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'QueryLogStatus') as query_log_status, + json_extract_path_text(detail.Properties, 'CreatorPaymentConfiguration') as creator_payment_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::CleanRooms::Collaboration' + AND detail.data__TypeName = 'AWS::CleanRooms::Collaboration' + AND listing.region = 'us-east-1' configured_tables: name: configured_tables id: aws.cleanrooms.configured_tables @@ -2267,10 +2524,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConfiguredTableIdentifier') as configured_table_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTable' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AllowedColumns') as allowed_columns, + JSON_EXTRACT(detail.Properties, '$.AnalysisMethod') as analysis_method, + JSON_EXTRACT(detail.Properties, '$.ConfiguredTableIdentifier') as configured_table_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AnalysisRules') as analysis_rules, + JSON_EXTRACT(detail.Properties, '$.TableReference') as table_reference + 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::CleanRooms::ConfiguredTable' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTable' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2293,10 +2563,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConfiguredTableIdentifier') as configured_table_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTable' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AllowedColumns') as allowed_columns, + json_extract_path_text(detail.Properties, 'AnalysisMethod') as analysis_method, + json_extract_path_text(detail.Properties, 'ConfiguredTableIdentifier') as configured_table_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AnalysisRules') as analysis_rules, + json_extract_path_text(detail.Properties, 'TableReference') as table_reference + 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::CleanRooms::ConfiguredTable' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTable' + AND listing.region = 'us-east-1' + configured_tables_list_only: + name: configured_tables_list_only + id: aws.cleanrooms.configured_tables_list_only + x-cfn-schema-name: ConfiguredTable + x-cfn-type-name: AWS::CleanRooms::ConfiguredTable + x-identifiers: + - ConfiguredTableIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConfiguredTableIdentifier') as configured_table_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTable' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConfiguredTableIdentifier') as configured_table_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTable' + AND region = 'us-east-1' + configured_table_tags: + name: configured_table_tags + id: aws.cleanrooms.configured_table_tags + x-cfn-schema-name: ConfiguredTable + x-cfn-type-name: AWS::CleanRooms::ConfiguredTable + 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, '$.AllowedColumns') as allowed_columns, + JSON_EXTRACT(detail.Properties, '$.AnalysisMethod') as analysis_method, + JSON_EXTRACT(detail.Properties, '$.ConfiguredTableIdentifier') as configured_table_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AnalysisRules') as analysis_rules, + JSON_EXTRACT(detail.Properties, '$.TableReference') as table_reference + 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::CleanRooms::ConfiguredTable' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTable' + 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, 'AllowedColumns') as allowed_columns, + json_extract_path_text(detail.Properties, 'AnalysisMethod') as analysis_method, + json_extract_path_text(detail.Properties, 'ConfiguredTableIdentifier') as configured_table_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AnalysisRules') as analysis_rules, + json_extract_path_text(detail.Properties, 'TableReference') as table_reference + 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::CleanRooms::ConfiguredTable' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTable' + AND listing.region = 'us-east-1' configured_table_associations: name: configured_table_associations id: aws.cleanrooms.configured_table_associations @@ -2376,11 +2749,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, - JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, + JSON_EXTRACT(detail.Properties, '$.ConfiguredTableIdentifier') as configured_table_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn + 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::CleanRooms::ConfiguredTableAssociation' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2402,11 +2786,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, - json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, + json_extract_path_text(detail.Properties, 'ConfiguredTableIdentifier') as configured_table_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn + 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::CleanRooms::ConfiguredTableAssociation' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' + AND listing.region = 'us-east-1' + configured_table_associations_list_only: + name: configured_table_associations_list_only + id: aws.cleanrooms.configured_table_associations_list_only + x-cfn-schema-name: ConfiguredTableAssociation + x-cfn-type-name: AWS::CleanRooms::ConfiguredTableAssociation + x-identifiers: + - ConfiguredTableAssociationIdentifier + - MembershipIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, + JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, + json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' + AND region = 'us-east-1' + configured_table_association_tags: + name: configured_table_association_tags + id: aws.cleanrooms.configured_table_association_tags + x-cfn-schema-name: ConfiguredTableAssociation + x-cfn-type-name: AWS::CleanRooms::ConfiguredTableAssociation + 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, '$.ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, + JSON_EXTRACT(detail.Properties, '$.ConfiguredTableIdentifier') as configured_table_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn + 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::CleanRooms::ConfiguredTableAssociation' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' + 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, 'ConfiguredTableAssociationIdentifier') as configured_table_association_identifier, + json_extract_path_text(detail.Properties, 'ConfiguredTableIdentifier') as configured_table_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn + 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::CleanRooms::ConfiguredTableAssociation' + AND detail.data__TypeName = 'AWS::CleanRooms::ConfiguredTableAssociation' + AND listing.region = 'us-east-1' memberships: name: memberships id: aws.cleanrooms.memberships @@ -2486,10 +2972,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Membership' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CollaborationArn') as collaboration_arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationCreatorAccountId') as collaboration_creator_account_id, + JSON_EXTRACT(detail.Properties, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier, + JSON_EXTRACT(detail.Properties, '$.QueryLogStatus') as query_log_status, + JSON_EXTRACT(detail.Properties, '$.DefaultResultConfiguration') as default_result_configuration, + JSON_EXTRACT(detail.Properties, '$.PaymentConfiguration') as payment_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::CleanRooms::Membership' + AND detail.data__TypeName = 'AWS::CleanRooms::Membership' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2512,10 +3011,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Membership' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CollaborationArn') as collaboration_arn, + json_extract_path_text(detail.Properties, 'CollaborationCreatorAccountId') as collaboration_creator_account_id, + json_extract_path_text(detail.Properties, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier, + json_extract_path_text(detail.Properties, 'QueryLogStatus') as query_log_status, + json_extract_path_text(detail.Properties, 'DefaultResultConfiguration') as default_result_configuration, + json_extract_path_text(detail.Properties, 'PaymentConfiguration') as payment_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::CleanRooms::Membership' + AND detail.data__TypeName = 'AWS::CleanRooms::Membership' + AND listing.region = 'us-east-1' + memberships_list_only: + name: memberships_list_only + id: aws.cleanrooms.memberships_list_only + x-cfn-schema-name: Membership + x-cfn-type-name: AWS::CleanRooms::Membership + x-identifiers: + - MembershipIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Membership' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::Membership' + AND region = 'us-east-1' + membership_tags: + name: membership_tags + id: aws.cleanrooms.membership_tags + x-cfn-schema-name: Membership + x-cfn-type-name: AWS::CleanRooms::Membership + 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, '$.CollaborationArn') as collaboration_arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationCreatorAccountId') as collaboration_creator_account_id, + JSON_EXTRACT(detail.Properties, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier, + JSON_EXTRACT(detail.Properties, '$.QueryLogStatus') as query_log_status, + JSON_EXTRACT(detail.Properties, '$.DefaultResultConfiguration') as default_result_configuration, + JSON_EXTRACT(detail.Properties, '$.PaymentConfiguration') as payment_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::CleanRooms::Membership' + AND detail.data__TypeName = 'AWS::CleanRooms::Membership' + 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, 'CollaborationArn') as collaboration_arn, + json_extract_path_text(detail.Properties, 'CollaborationCreatorAccountId') as collaboration_creator_account_id, + json_extract_path_text(detail.Properties, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier, + json_extract_path_text(detail.Properties, 'QueryLogStatus') as query_log_status, + json_extract_path_text(detail.Properties, 'DefaultResultConfiguration') as default_result_configuration, + json_extract_path_text(detail.Properties, 'PaymentConfiguration') as payment_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::CleanRooms::Membership' + AND detail.data__TypeName = 'AWS::CleanRooms::Membership' + AND listing.region = 'us-east-1' privacy_budget_templates: name: privacy_budget_templates id: aws.cleanrooms.privacy_budget_templates @@ -2597,11 +3199,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, - JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationArn') as collaboration_arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AutoRefresh') as auto_refresh, + JSON_EXTRACT(detail.Properties, '$.PrivacyBudgetType') as privacy_budget_type, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.MembershipArn') as membership_arn, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier + 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::CleanRooms::PrivacyBudgetTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2625,11 +3240,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, - json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CollaborationArn') as collaboration_arn, + json_extract_path_text(detail.Properties, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AutoRefresh') as auto_refresh, + json_extract_path_text(detail.Properties, 'PrivacyBudgetType') as privacy_budget_type, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'MembershipArn') as membership_arn, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier + 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::CleanRooms::PrivacyBudgetTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' + AND listing.region = 'us-east-1' + privacy_budget_templates_list_only: + name: privacy_budget_templates_list_only + id: aws.cleanrooms.privacy_budget_templates_list_only + x-cfn-schema-name: PrivacyBudgetTemplate + x-cfn-type-name: AWS::CleanRooms::PrivacyBudgetTemplate + x-identifiers: + - PrivacyBudgetTemplateIdentifier + - MembershipIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, + JSON_EXTRACT(Properties, '$.MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, + json_extract_path_text(Properties, 'MembershipIdentifier') as membership_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' + AND region = 'us-east-1' + privacy_budget_template_tags: + name: privacy_budget_template_tags + id: aws.cleanrooms.privacy_budget_template_tags + x-cfn-schema-name: PrivacyBudgetTemplate + x-cfn-type-name: AWS::CleanRooms::PrivacyBudgetTemplate + 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, '$.CollaborationArn') as collaboration_arn, + JSON_EXTRACT(detail.Properties, '$.CollaborationIdentifier') as collaboration_identifier, + JSON_EXTRACT(detail.Properties, '$.PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, + JSON_EXTRACT(detail.Properties, '$.AutoRefresh') as auto_refresh, + JSON_EXTRACT(detail.Properties, '$.PrivacyBudgetType') as privacy_budget_type, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.MembershipArn') as membership_arn, + JSON_EXTRACT(detail.Properties, '$.MembershipIdentifier') as membership_identifier + 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::CleanRooms::PrivacyBudgetTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' + 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, 'CollaborationArn') as collaboration_arn, + json_extract_path_text(detail.Properties, 'CollaborationIdentifier') as collaboration_identifier, + json_extract_path_text(detail.Properties, 'PrivacyBudgetTemplateIdentifier') as privacy_budget_template_identifier, + json_extract_path_text(detail.Properties, 'AutoRefresh') as auto_refresh, + json_extract_path_text(detail.Properties, 'PrivacyBudgetType') as privacy_budget_type, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'MembershipArn') as membership_arn, + json_extract_path_text(detail.Properties, 'MembershipIdentifier') as membership_identifier + 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::CleanRooms::PrivacyBudgetTemplate' + AND detail.data__TypeName = 'AWS::CleanRooms::PrivacyBudgetTemplate' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cleanroomsml.yaml b/providers/src/aws/v00.00.00000/services/cleanroomsml.yaml index a7ab10fd..47cfa6e6 100644 --- a/providers/src/aws/v00.00.00000/services/cleanroomsml.yaml +++ b/providers/src/aws/v00.00.00000/services/cleanroomsml.yaml @@ -708,10 +708,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrainingDatasetArn') as training_dataset_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrainingData') as training_data, + JSON_EXTRACT(detail.Properties, '$.TrainingDatasetArn') as training_dataset_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::CleanRoomsML::TrainingDataset' + AND detail.data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -732,10 +743,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrainingDatasetArn') as training_dataset_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrainingData') as training_data, + json_extract_path_text(detail.Properties, 'TrainingDatasetArn') as training_dataset_arn, + json_extract_path_text(detail.Properties, 'Status') as status + 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::CleanRoomsML::TrainingDataset' + AND detail.data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' + AND listing.region = 'us-east-1' + training_datasets_list_only: + name: training_datasets_list_only + id: aws.cleanroomsml.training_datasets_list_only + x-cfn-schema-name: TrainingDataset + x-cfn-type-name: AWS::CleanRoomsML::TrainingDataset + x-identifiers: + - TrainingDatasetArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrainingDatasetArn') as training_dataset_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrainingDatasetArn') as training_dataset_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' + AND region = 'us-east-1' + training_dataset_tags: + name: training_dataset_tags + id: aws.cleanroomsml.training_dataset_tags + x-cfn-schema-name: TrainingDataset + x-cfn-type-name: AWS::CleanRoomsML::TrainingDataset + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.TrainingData') as training_data, + JSON_EXTRACT(detail.Properties, '$.TrainingDatasetArn') as training_dataset_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::CleanRoomsML::TrainingDataset' + AND detail.data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'TrainingData') as training_data, + json_extract_path_text(detail.Properties, 'TrainingDatasetArn') as training_dataset_arn, + json_extract_path_text(detail.Properties, 'Status') as status + 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::CleanRoomsML::TrainingDataset' + AND detail.data__TypeName = 'AWS::CleanRoomsML::TrainingDataset' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cloud_control.yaml b/providers/src/aws/v00.00.00000/services/cloud_control.yaml index 443ebb5d..e91de1b5 100644 --- a/providers/src/aws/v00.00.00000/services/cloud_control.yaml +++ b/providers/src/aws/v00.00.00000/services/cloud_control.yaml @@ -525,6 +525,9 @@ components: x-stackQL-resources: resource: name: resource + x-cfn-schema-name: ResourceDescription + x-example-where-clause: WHERE region = 'us-east-1' AND data__TypeName = '' AND data__Identifier = '' + x-type: native methods: get_resource: operation: @@ -545,6 +548,10 @@ components: title: resource resources: name: resources + x-cfn-schema-name: ResourceDescriptions + x-example-where-clause: WHERE region = 'us-east-1' AND data__TypeName = '' + x-description: 'For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide.' + x-type: native methods: list_resources: operation: @@ -592,6 +599,10 @@ components: title: resources resource_request: name: resource_request + x-cfn-schema-name: ProgressEvent + x-example-where-clause: WHERE region = 'us-east-1' AND data__RequestToken = '' + x-description: 'For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide.' + x-type: native methods: get_resource_request: operation: @@ -612,6 +623,10 @@ components: title: resource_request resource_requests: name: resource_requests + x-cfn-schema-name: ResourceRequestStatusSummaries + x-example-where-clause: WHERE region = 'us-east-1' AND data__ResourceRequestStatusFilter = '' + x-description: 'For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide.' + x-type: native methods: list_resource_requests: operation: diff --git a/providers/src/aws/v00.00.00000/services/cloudformation.yaml b/providers/src/aws/v00.00.00000/services/cloudformation.yaml index 87e36d85..588e2f6d 100644 --- a/providers/src/aws/v00.00.00000/services/cloudformation.yaml +++ b/providers/src/aws/v00.00.00000/services/cloudformation.yaml @@ -2373,10 +2373,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookDefaultVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TypeVersionArn') as type_version_arn, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id + 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::CloudFormation::HookDefaultVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::HookDefaultVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2394,10 +2402,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookDefaultVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TypeVersionArn') as type_version_arn, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'VersionId') as version_id + 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::CloudFormation::HookDefaultVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::HookDefaultVersion' + AND listing.region = 'us-east-1' + hook_default_versions_list_only: + name: hook_default_versions_list_only + id: aws.cloudformation.hook_default_versions_list_only + x-cfn-schema-name: HookDefaultVersion + x-cfn-type-name: AWS::CloudFormation::HookDefaultVersion + 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::CloudFormation::HookDefaultVersion' + 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::CloudFormation::HookDefaultVersion' + AND region = 'us-east-1' hook_type_configs: name: hook_type_configs id: aws.cloudformation.hook_type_configs @@ -2473,10 +2520,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConfigurationArn') as configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookTypeConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TypeArn') as type_arn, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.ConfigurationArn') as configuration_arn, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.ConfigurationAlias') as configuration_alias + 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::CloudFormation::HookTypeConfig' + AND detail.data__TypeName = 'AWS::CloudFormation::HookTypeConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2495,10 +2551,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConfigurationArn') as configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookTypeConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TypeArn') as type_arn, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'ConfigurationArn') as configuration_arn, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'ConfigurationAlias') as configuration_alias + 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::CloudFormation::HookTypeConfig' + AND detail.data__TypeName = 'AWS::CloudFormation::HookTypeConfig' + AND listing.region = 'us-east-1' + hook_type_configs_list_only: + name: hook_type_configs_list_only + id: aws.cloudformation.hook_type_configs_list_only + x-cfn-schema-name: HookTypeConfig + x-cfn-type-name: AWS::CloudFormation::HookTypeConfig + x-identifiers: + - ConfigurationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConfigurationArn') as configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookTypeConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConfigurationArn') as configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookTypeConfig' + AND region = 'us-east-1' hook_versions: name: hook_versions id: aws.cloudformation.hook_versions @@ -2565,10 +2661,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.TypeArn') as type_arn, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.IsDefaultVersion') as is_default_version, + JSON_EXTRACT(detail.Properties, '$.LoggingConfig') as logging_config, + JSON_EXTRACT(detail.Properties, '$.SchemaHandlerPackage') as schema_handler_package, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id, + JSON_EXTRACT(detail.Properties, '$.Visibility') as visibility + 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::CloudFormation::HookVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::HookVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2591,10 +2700,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::HookVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'TypeArn') as type_arn, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'IsDefaultVersion') as is_default_version, + json_extract_path_text(detail.Properties, 'LoggingConfig') as logging_config, + json_extract_path_text(detail.Properties, 'SchemaHandlerPackage') as schema_handler_package, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'VersionId') as version_id, + json_extract_path_text(detail.Properties, 'Visibility') as visibility + 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::CloudFormation::HookVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::HookVersion' + AND listing.region = 'us-east-1' + hook_versions_list_only: + name: hook_versions_list_only + id: aws.cloudformation.hook_versions_list_only + x-cfn-schema-name: HookVersion + x-cfn-type-name: AWS::CloudFormation::HookVersion + 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::CloudFormation::HookVersion' + 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::CloudFormation::HookVersion' + AND region = 'us-east-1' module_default_versions: name: module_default_versions id: aws.cloudformation.module_default_versions @@ -2642,10 +2795,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::ModuleDefaultVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ModuleName') as module_name, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id + 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::CloudFormation::ModuleDefaultVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::ModuleDefaultVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2662,10 +2822,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::ModuleDefaultVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ModuleName') as module_name, + json_extract_path_text(detail.Properties, 'VersionId') as version_id + 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::CloudFormation::ModuleDefaultVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::ModuleDefaultVersion' + AND listing.region = 'us-east-1' + module_default_versions_list_only: + name: module_default_versions_list_only + id: aws.cloudformation.module_default_versions_list_only + x-cfn-schema-name: ModuleDefaultVersion + x-cfn-type-name: AWS::CloudFormation::ModuleDefaultVersion + 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::CloudFormation::ModuleDefaultVersion' + 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::CloudFormation::ModuleDefaultVersion' + AND region = 'us-east-1' module_versions: name: module_versions id: aws.cloudformation.module_versions @@ -2800,10 +2998,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PublicTypeArn') as public_type_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::PublicTypeVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.TypeVersionArn') as type_version_arn, + JSON_EXTRACT(detail.Properties, '$.PublicVersionNumber') as public_version_number, + JSON_EXTRACT(detail.Properties, '$.PublisherId') as publisher_id, + JSON_EXTRACT(detail.Properties, '$.PublicTypeArn') as public_type_arn, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.LogDeliveryBucket') as log_delivery_bucket, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::CloudFormation::PublicTypeVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::PublicTypeVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2825,10 +3035,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PublicTypeArn') as public_type_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::PublicTypeVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'TypeVersionArn') as type_version_arn, + json_extract_path_text(detail.Properties, 'PublicVersionNumber') as public_version_number, + json_extract_path_text(detail.Properties, 'PublisherId') as publisher_id, + json_extract_path_text(detail.Properties, 'PublicTypeArn') as public_type_arn, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'LogDeliveryBucket') as log_delivery_bucket, + json_extract_path_text(detail.Properties, 'Type') as type + 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::CloudFormation::PublicTypeVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::PublicTypeVersion' + AND listing.region = 'us-east-1' + public_type_versions_list_only: + name: public_type_versions_list_only + id: aws.cloudformation.public_type_versions_list_only + x-cfn-schema-name: PublicTypeVersion + x-cfn-type-name: AWS::CloudFormation::PublicTypeVersion + x-identifiers: + - PublicTypeArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PublicTypeArn') as public_type_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::PublicTypeVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PublicTypeArn') as public_type_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::PublicTypeVersion' + AND region = 'us-east-1' publishers: name: publishers id: aws.cloudformation.publishers @@ -2879,10 +3132,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PublisherId') as publisher_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Publisher' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AcceptTermsAndConditions') as accept_terms_and_conditions, + JSON_EXTRACT(detail.Properties, '$.PublisherId') as publisher_id, + JSON_EXTRACT(detail.Properties, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.PublisherStatus') as publisher_status, + JSON_EXTRACT(detail.Properties, '$.PublisherProfile') as publisher_profile, + JSON_EXTRACT(detail.Properties, '$.IdentityProvider') as identity_provider + 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::CloudFormation::Publisher' + AND detail.data__TypeName = 'AWS::CloudFormation::Publisher' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2902,10 +3165,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PublisherId') as publisher_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Publisher' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AcceptTermsAndConditions') as accept_terms_and_conditions, + json_extract_path_text(detail.Properties, 'PublisherId') as publisher_id, + json_extract_path_text(detail.Properties, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'PublisherStatus') as publisher_status, + json_extract_path_text(detail.Properties, 'PublisherProfile') as publisher_profile, + json_extract_path_text(detail.Properties, 'IdentityProvider') as identity_provider + 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::CloudFormation::Publisher' + AND detail.data__TypeName = 'AWS::CloudFormation::Publisher' + AND listing.region = 'us-east-1' + publishers_list_only: + name: publishers_list_only + id: aws.cloudformation.publishers_list_only + x-cfn-schema-name: Publisher + x-cfn-type-name: AWS::CloudFormation::Publisher + x-identifiers: + - PublisherId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PublisherId') as publisher_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Publisher' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PublisherId') as publisher_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Publisher' + AND region = 'us-east-1' resource_default_versions: name: resource_default_versions id: aws.cloudformation.resource_default_versions @@ -2980,10 +3284,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::ResourceDefaultVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.TypeVersionArn') as type_version_arn + 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::CloudFormation::ResourceDefaultVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::ResourceDefaultVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3001,10 +3313,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::ResourceDefaultVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VersionId') as version_id, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'TypeVersionArn') as type_version_arn + 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::CloudFormation::ResourceDefaultVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::ResourceDefaultVersion' + AND listing.region = 'us-east-1' + resource_default_versions_list_only: + name: resource_default_versions_list_only + id: aws.cloudformation.resource_default_versions_list_only + x-cfn-schema-name: ResourceDefaultVersion + x-cfn-type-name: AWS::CloudFormation::ResourceDefaultVersion + 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::CloudFormation::ResourceDefaultVersion' + 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::CloudFormation::ResourceDefaultVersion' + AND region = 'us-east-1' resource_versions: name: resource_versions id: aws.cloudformation.resource_versions @@ -3072,10 +3423,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::ResourceVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.TypeArn') as type_arn, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.IsDefaultVersion') as is_default_version, + JSON_EXTRACT(detail.Properties, '$.LoggingConfig') as logging_config, + JSON_EXTRACT(detail.Properties, '$.ProvisioningType') as provisioning_type, + JSON_EXTRACT(detail.Properties, '$.SchemaHandlerPackage') as schema_handler_package, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id, + JSON_EXTRACT(detail.Properties, '$.Visibility') as visibility + 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::CloudFormation::ResourceVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::ResourceVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3099,10 +3464,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::ResourceVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'TypeArn') as type_arn, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'IsDefaultVersion') as is_default_version, + json_extract_path_text(detail.Properties, 'LoggingConfig') as logging_config, + json_extract_path_text(detail.Properties, 'ProvisioningType') as provisioning_type, + json_extract_path_text(detail.Properties, 'SchemaHandlerPackage') as schema_handler_package, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'VersionId') as version_id, + json_extract_path_text(detail.Properties, 'Visibility') as visibility + 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::CloudFormation::ResourceVersion' + AND detail.data__TypeName = 'AWS::CloudFormation::ResourceVersion' + AND listing.region = 'us-east-1' + resource_versions_list_only: + name: resource_versions_list_only + id: aws.cloudformation.resource_versions_list_only + x-cfn-schema-name: ResourceVersion + x-cfn-type-name: AWS::CloudFormation::ResourceVersion + 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::CloudFormation::ResourceVersion' + 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::CloudFormation::ResourceVersion' + AND region = 'us-east-1' stacks: name: stacks id: aws.cloudformation.stacks @@ -3196,10 +3606,37 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StackId') as stack_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Stack' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.RoleARN') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Outputs') as outputs, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisableRollback') as disable_rollback, + JSON_EXTRACT(detail.Properties, '$.EnableTerminationProtection') as enable_termination_protection, + JSON_EXTRACT(detail.Properties, '$.NotificationARNs') as notification_arns, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.ParentId') as parent_id, + JSON_EXTRACT(detail.Properties, '$.RootId') as root_id, + JSON_EXTRACT(detail.Properties, '$.ChangeSetId') as change_set_id, + JSON_EXTRACT(detail.Properties, '$.StackName') as stack_name, + JSON_EXTRACT(detail.Properties, '$.StackId') as stack_id, + JSON_EXTRACT(detail.Properties, '$.StackPolicyBody') as stack_policy_body, + JSON_EXTRACT(detail.Properties, '$.StackPolicyURL') as stack_policy_url, + JSON_EXTRACT(detail.Properties, '$.StackStatus') as stack_status, + JSON_EXTRACT(detail.Properties, '$.StackStatusReason') as stack_status_reason, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.TemplateURL') as template_url, + JSON_EXTRACT(detail.Properties, '$.TimeoutInMinutes') as timeout_in_minutes, + JSON_EXTRACT(detail.Properties, '$.LastUpdateTime') as last_update_time, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::CloudFormation::Stack' + AND detail.data__TypeName = 'AWS::CloudFormation::Stack' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3236,10 +3673,155 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StackId') as stack_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Stack' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'RoleARN') as role_arn, + json_extract_path_text(detail.Properties, 'Outputs') as outputs, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisableRollback') as disable_rollback, + json_extract_path_text(detail.Properties, 'EnableTerminationProtection') as enable_termination_protection, + json_extract_path_text(detail.Properties, 'NotificationARNs') as notification_arns, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'ParentId') as parent_id, + json_extract_path_text(detail.Properties, 'RootId') as root_id, + json_extract_path_text(detail.Properties, 'ChangeSetId') as change_set_id, + json_extract_path_text(detail.Properties, 'StackName') as stack_name, + json_extract_path_text(detail.Properties, 'StackId') as stack_id, + json_extract_path_text(detail.Properties, 'StackPolicyBody') as stack_policy_body, + json_extract_path_text(detail.Properties, 'StackPolicyURL') as stack_policy_url, + json_extract_path_text(detail.Properties, 'StackStatus') as stack_status, + json_extract_path_text(detail.Properties, 'StackStatusReason') as stack_status_reason, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'TemplateURL') as template_url, + json_extract_path_text(detail.Properties, 'TimeoutInMinutes') as timeout_in_minutes, + json_extract_path_text(detail.Properties, 'LastUpdateTime') as last_update_time, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::CloudFormation::Stack' + AND detail.data__TypeName = 'AWS::CloudFormation::Stack' + AND listing.region = 'us-east-1' + stacks_list_only: + name: stacks_list_only + id: aws.cloudformation.stacks_list_only + x-cfn-schema-name: Stack + x-cfn-type-name: AWS::CloudFormation::Stack + x-identifiers: + - StackId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StackId') as stack_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Stack' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StackId') as stack_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::Stack' + AND region = 'us-east-1' + stack_tags: + name: stack_tags + id: aws.cloudformation.stack_tags + x-cfn-schema-name: Stack + x-cfn-type-name: AWS::CloudFormation::Stack + 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, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.RoleARN') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Outputs') as outputs, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisableRollback') as disable_rollback, + JSON_EXTRACT(detail.Properties, '$.EnableTerminationProtection') as enable_termination_protection, + JSON_EXTRACT(detail.Properties, '$.NotificationARNs') as notification_arns, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.ParentId') as parent_id, + JSON_EXTRACT(detail.Properties, '$.RootId') as root_id, + JSON_EXTRACT(detail.Properties, '$.ChangeSetId') as change_set_id, + JSON_EXTRACT(detail.Properties, '$.StackName') as stack_name, + JSON_EXTRACT(detail.Properties, '$.StackId') as stack_id, + JSON_EXTRACT(detail.Properties, '$.StackPolicyBody') as stack_policy_body, + JSON_EXTRACT(detail.Properties, '$.StackPolicyURL') as stack_policy_url, + JSON_EXTRACT(detail.Properties, '$.StackStatus') as stack_status, + JSON_EXTRACT(detail.Properties, '$.StackStatusReason') as stack_status_reason, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.TemplateURL') as template_url, + JSON_EXTRACT(detail.Properties, '$.TimeoutInMinutes') as timeout_in_minutes, + JSON_EXTRACT(detail.Properties, '$.LastUpdateTime') as last_update_time, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::CloudFormation::Stack' + AND detail.data__TypeName = 'AWS::CloudFormation::Stack' + 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, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'RoleARN') as role_arn, + json_extract_path_text(detail.Properties, 'Outputs') as outputs, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisableRollback') as disable_rollback, + json_extract_path_text(detail.Properties, 'EnableTerminationProtection') as enable_termination_protection, + json_extract_path_text(detail.Properties, 'NotificationARNs') as notification_arns, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'ParentId') as parent_id, + json_extract_path_text(detail.Properties, 'RootId') as root_id, + json_extract_path_text(detail.Properties, 'ChangeSetId') as change_set_id, + json_extract_path_text(detail.Properties, 'StackName') as stack_name, + json_extract_path_text(detail.Properties, 'StackId') as stack_id, + json_extract_path_text(detail.Properties, 'StackPolicyBody') as stack_policy_body, + json_extract_path_text(detail.Properties, 'StackPolicyURL') as stack_policy_url, + json_extract_path_text(detail.Properties, 'StackStatus') as stack_status, + json_extract_path_text(detail.Properties, 'StackStatusReason') as stack_status_reason, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'TemplateURL') as template_url, + json_extract_path_text(detail.Properties, 'TimeoutInMinutes') as timeout_in_minutes, + json_extract_path_text(detail.Properties, 'LastUpdateTime') as last_update_time, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::CloudFormation::Stack' + AND detail.data__TypeName = 'AWS::CloudFormation::Stack' + AND listing.region = 'us-east-1' stack_sets: name: stack_sets id: aws.cloudformation.stack_sets @@ -3326,10 +3908,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StackSetId') as stack_set_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::StackSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StackSetName') as stack_set_name, + JSON_EXTRACT(detail.Properties, '$.StackSetId') as stack_set_id, + JSON_EXTRACT(detail.Properties, '$.AdministrationRoleARN') as administration_role_arn, + JSON_EXTRACT(detail.Properties, '$.AutoDeployment') as auto_deployment, + JSON_EXTRACT(detail.Properties, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleName') as execution_role_name, + JSON_EXTRACT(detail.Properties, '$.OperationPreferences') as operation_preferences, + JSON_EXTRACT(detail.Properties, '$.StackInstancesGroup') as stack_instances_group, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.PermissionModel') as permission_model, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.TemplateURL') as template_url, + JSON_EXTRACT(detail.Properties, '$.CallAs') as call_as, + JSON_EXTRACT(detail.Properties, '$.ManagedExecution') as managed_execution + 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::CloudFormation::StackSet' + AND detail.data__TypeName = 'AWS::CloudFormation::StackSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3359,10 +3961,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StackSetId') as stack_set_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::StackSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StackSetName') as stack_set_name, + json_extract_path_text(detail.Properties, 'StackSetId') as stack_set_id, + json_extract_path_text(detail.Properties, 'AdministrationRoleARN') as administration_role_arn, + json_extract_path_text(detail.Properties, 'AutoDeployment') as auto_deployment, + json_extract_path_text(detail.Properties, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ExecutionRoleName') as execution_role_name, + json_extract_path_text(detail.Properties, 'OperationPreferences') as operation_preferences, + json_extract_path_text(detail.Properties, 'StackInstancesGroup') as stack_instances_group, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'PermissionModel') as permission_model, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'TemplateURL') as template_url, + json_extract_path_text(detail.Properties, 'CallAs') as call_as, + json_extract_path_text(detail.Properties, 'ManagedExecution') as managed_execution + 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::CloudFormation::StackSet' + AND detail.data__TypeName = 'AWS::CloudFormation::StackSet' + AND listing.region = 'us-east-1' + stack_sets_list_only: + name: stack_sets_list_only + id: aws.cloudformation.stack_sets_list_only + x-cfn-schema-name: StackSet + x-cfn-type-name: AWS::CloudFormation::StackSet + x-identifiers: + - StackSetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StackSetId') as stack_set_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::StackSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StackSetId') as stack_set_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::StackSet' + AND region = 'us-east-1' + stack_set_tags: + name: stack_set_tags + id: aws.cloudformation.stack_set_tags + x-cfn-schema-name: StackSet + x-cfn-type-name: AWS::CloudFormation::StackSet + 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, '$.StackSetName') as stack_set_name, + JSON_EXTRACT(detail.Properties, '$.StackSetId') as stack_set_id, + JSON_EXTRACT(detail.Properties, '$.AdministrationRoleARN') as administration_role_arn, + JSON_EXTRACT(detail.Properties, '$.AutoDeployment') as auto_deployment, + JSON_EXTRACT(detail.Properties, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleName') as execution_role_name, + JSON_EXTRACT(detail.Properties, '$.OperationPreferences') as operation_preferences, + JSON_EXTRACT(detail.Properties, '$.StackInstancesGroup') as stack_instances_group, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.PermissionModel') as permission_model, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.TemplateURL') as template_url, + JSON_EXTRACT(detail.Properties, '$.CallAs') as call_as, + JSON_EXTRACT(detail.Properties, '$.ManagedExecution') as managed_execution + 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::CloudFormation::StackSet' + AND detail.data__TypeName = 'AWS::CloudFormation::StackSet' + 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, 'StackSetName') as stack_set_name, + json_extract_path_text(detail.Properties, 'StackSetId') as stack_set_id, + json_extract_path_text(detail.Properties, 'AdministrationRoleARN') as administration_role_arn, + json_extract_path_text(detail.Properties, 'AutoDeployment') as auto_deployment, + json_extract_path_text(detail.Properties, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ExecutionRoleName') as execution_role_name, + json_extract_path_text(detail.Properties, 'OperationPreferences') as operation_preferences, + json_extract_path_text(detail.Properties, 'StackInstancesGroup') as stack_instances_group, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'PermissionModel') as permission_model, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'TemplateURL') as template_url, + json_extract_path_text(detail.Properties, 'CallAs') as call_as, + json_extract_path_text(detail.Properties, 'ManagedExecution') as managed_execution + 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::CloudFormation::StackSet' + AND detail.data__TypeName = 'AWS::CloudFormation::StackSet' + AND listing.region = 'us-east-1' type_activations: name: type_activations id: aws.cloudformation.type_activations @@ -3444,10 +4170,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::TypeActivation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.PublisherId') as publisher_id, + JSON_EXTRACT(detail.Properties, '$.LoggingConfig') as logging_config, + JSON_EXTRACT(detail.Properties, '$.PublicTypeArn') as public_type_arn, + JSON_EXTRACT(detail.Properties, '$.AutoUpdate') as auto_update, + JSON_EXTRACT(detail.Properties, '$.TypeNameAlias') as type_name_alias, + JSON_EXTRACT(detail.Properties, '$.VersionBump') as version_bump, + JSON_EXTRACT(detail.Properties, '$.MajorVersion') as major_version, + JSON_EXTRACT(detail.Properties, '$.TypeName') as type_name, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::CloudFormation::TypeActivation' + AND detail.data__TypeName = 'AWS::CloudFormation::TypeActivation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3472,10 +4213,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFormation::TypeActivation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'PublisherId') as publisher_id, + json_extract_path_text(detail.Properties, 'LoggingConfig') as logging_config, + json_extract_path_text(detail.Properties, 'PublicTypeArn') as public_type_arn, + json_extract_path_text(detail.Properties, 'AutoUpdate') as auto_update, + json_extract_path_text(detail.Properties, 'TypeNameAlias') as type_name_alias, + json_extract_path_text(detail.Properties, 'VersionBump') as version_bump, + json_extract_path_text(detail.Properties, 'MajorVersion') as major_version, + json_extract_path_text(detail.Properties, 'TypeName') as type_name, + json_extract_path_text(detail.Properties, 'Type') as type + 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::CloudFormation::TypeActivation' + AND detail.data__TypeName = 'AWS::CloudFormation::TypeActivation' + AND listing.region = 'us-east-1' + type_activations_list_only: + name: type_activations_list_only + id: aws.cloudformation.type_activations_list_only + x-cfn-schema-name: TypeActivation + x-cfn-type-name: AWS::CloudFormation::TypeActivation + 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::CloudFormation::TypeActivation' + 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::CloudFormation::TypeActivation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cloudfront.yaml b/providers/src/aws/v00.00.00000/services/cloudfront.yaml index 0049c8f6..d36c3a05 100644 --- a/providers/src/aws/v00.00.00000/services/cloudfront.yaml +++ b/providers/src/aws/v00.00.00000/services/cloudfront.yaml @@ -2957,10 +2957,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CachePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CachePolicyConfig') as cache_policy_config, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::CloudFront::CachePolicy' + AND detail.data__TypeName = 'AWS::CloudFront::CachePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2977,10 +2984,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CachePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CachePolicyConfig') as cache_policy_config, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::CloudFront::CachePolicy' + AND detail.data__TypeName = 'AWS::CloudFront::CachePolicy' + AND listing.region = 'us-east-1' + cache_policies_list_only: + name: cache_policies_list_only + id: aws.cloudfront.cache_policies_list_only + x-cfn-schema-name: CachePolicy + x-cfn-type-name: AWS::CloudFront::CachePolicy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CachePolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CachePolicy' + AND region = 'us-east-1' cloud_front_origin_access_identities: name: cloud_front_origin_access_identities id: aws.cloudfront.cloud_front_origin_access_identities @@ -3054,10 +3099,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CloudFrontOriginAccessIdentity' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CloudFrontOriginAccessIdentityConfig') as cloud_front_origin_access_identity_config, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.S3CanonicalUserId') as s3_canonical_user_id + 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::CloudFront::CloudFrontOriginAccessIdentity' + AND detail.data__TypeName = 'AWS::CloudFront::CloudFrontOriginAccessIdentity' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3074,10 +3126,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CloudFrontOriginAccessIdentity' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CloudFrontOriginAccessIdentityConfig') as cloud_front_origin_access_identity_config, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'S3CanonicalUserId') as s3_canonical_user_id + 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::CloudFront::CloudFrontOriginAccessIdentity' + AND detail.data__TypeName = 'AWS::CloudFront::CloudFrontOriginAccessIdentity' + AND listing.region = 'us-east-1' + cloud_front_origin_access_identities_list_only: + name: cloud_front_origin_access_identities_list_only + id: aws.cloudfront.cloud_front_origin_access_identities_list_only + x-cfn-schema-name: CloudFrontOriginAccessIdentity + x-cfn-type-name: AWS::CloudFront::CloudFrontOriginAccessIdentity + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CloudFrontOriginAccessIdentity' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::CloudFrontOriginAccessIdentity' + AND region = 'us-east-1' continuous_deployment_policies: name: continuous_deployment_policies id: aws.cloudfront.continuous_deployment_policies @@ -3151,10 +3241,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ContinuousDeploymentPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ContinuousDeploymentPolicyConfig') as continuous_deployment_policy_config, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::CloudFront::ContinuousDeploymentPolicy' + AND detail.data__TypeName = 'AWS::CloudFront::ContinuousDeploymentPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3171,10 +3268,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ContinuousDeploymentPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ContinuousDeploymentPolicyConfig') as continuous_deployment_policy_config, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::CloudFront::ContinuousDeploymentPolicy' + AND detail.data__TypeName = 'AWS::CloudFront::ContinuousDeploymentPolicy' + AND listing.region = 'us-east-1' + continuous_deployment_policies_list_only: + name: continuous_deployment_policies_list_only + id: aws.cloudfront.continuous_deployment_policies_list_only + x-cfn-schema-name: ContinuousDeploymentPolicy + x-cfn-type-name: AWS::CloudFront::ContinuousDeploymentPolicy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ContinuousDeploymentPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ContinuousDeploymentPolicy' + AND region = 'us-east-1' distributions: name: distributions id: aws.cloudfront.distributions @@ -3249,10 +3384,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Distribution' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DistributionConfig') as distribution_config, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CloudFront::Distribution' + AND detail.data__TypeName = 'AWS::CloudFront::Distribution' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3270,10 +3413,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Distribution' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DistributionConfig') as distribution_config, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CloudFront::Distribution' + AND detail.data__TypeName = 'AWS::CloudFront::Distribution' + AND listing.region = 'us-east-1' + distributions_list_only: + name: distributions_list_only + id: aws.cloudfront.distributions_list_only + x-cfn-schema-name: Distribution + x-cfn-type-name: AWS::CloudFront::Distribution + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Distribution' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Distribution' + AND region = 'us-east-1' + distribution_tags: + name: distribution_tags + id: aws.cloudfront.distribution_tags + x-cfn-schema-name: Distribution + x-cfn-type-name: AWS::CloudFront::Distribution + 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, '$.DistributionConfig') as distribution_config, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::CloudFront::Distribution' + AND detail.data__TypeName = 'AWS::CloudFront::Distribution' + 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, 'DistributionConfig') as distribution_config, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Id') as id + 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::CloudFront::Distribution' + AND detail.data__TypeName = 'AWS::CloudFront::Distribution' + AND listing.region = 'us-east-1' functions: name: functions id: aws.cloudfront.functions @@ -3351,10 +3582,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FunctionARN') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Function' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AutoPublish') as auto_publish, + JSON_EXTRACT(detail.Properties, '$.FunctionARN') as function_arn, + JSON_EXTRACT(detail.Properties, '$.FunctionCode') as function_code, + JSON_EXTRACT(detail.Properties, '$.FunctionConfig') as function_config, + JSON_EXTRACT(detail.Properties, '$.FunctionMetadata') as function_metadata, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Stage') as stage + 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::CloudFront::Function' + AND detail.data__TypeName = 'AWS::CloudFront::Function' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3375,10 +3617,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FunctionARN') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Function' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AutoPublish') as auto_publish, + json_extract_path_text(detail.Properties, 'FunctionARN') as function_arn, + json_extract_path_text(detail.Properties, 'FunctionCode') as function_code, + json_extract_path_text(detail.Properties, 'FunctionConfig') as function_config, + json_extract_path_text(detail.Properties, 'FunctionMetadata') as function_metadata, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Stage') as stage + 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::CloudFront::Function' + AND detail.data__TypeName = 'AWS::CloudFront::Function' + AND listing.region = 'us-east-1' + functions_list_only: + name: functions_list_only + id: aws.cloudfront.functions_list_only + x-cfn-schema-name: Function + x-cfn-type-name: AWS::CloudFront::Function + x-identifiers: + - FunctionARN + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FunctionARN') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Function' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FunctionARN') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::Function' + AND region = 'us-east-1' key_groups: name: key_groups id: aws.cloudfront.key_groups @@ -3452,10 +3736,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.KeyGroupConfig') as key_group_config, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::CloudFront::KeyGroup' + AND detail.data__TypeName = 'AWS::CloudFront::KeyGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3472,10 +3763,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'KeyGroupConfig') as key_group_config, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::CloudFront::KeyGroup' + AND detail.data__TypeName = 'AWS::CloudFront::KeyGroup' + AND listing.region = 'us-east-1' + key_groups_list_only: + name: key_groups_list_only + id: aws.cloudfront.key_groups_list_only + x-cfn-schema-name: KeyGroup + x-cfn-type-name: AWS::CloudFront::KeyGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyGroup' + AND region = 'us-east-1' key_value_stores: name: key_value_stores id: aws.cloudfront.key_value_stores @@ -3552,10 +3881,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyValueStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Comment') as comment, + JSON_EXTRACT(detail.Properties, '$.ImportSource') as import_source + 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::CloudFront::KeyValueStore' + AND detail.data__TypeName = 'AWS::CloudFront::KeyValueStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3575,10 +3914,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyValueStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Comment') as comment, + json_extract_path_text(detail.Properties, 'ImportSource') as import_source + 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::CloudFront::KeyValueStore' + AND detail.data__TypeName = 'AWS::CloudFront::KeyValueStore' + AND listing.region = 'us-east-1' + key_value_stores_list_only: + name: key_value_stores_list_only + id: aws.cloudfront.key_value_stores_list_only + x-cfn-schema-name: KeyValueStore + x-cfn-type-name: AWS::CloudFront::KeyValueStore + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyValueStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::KeyValueStore' + AND region = 'us-east-1' monitoring_subscriptions: name: monitoring_subscriptions id: aws.cloudfront.monitoring_subscriptions @@ -3717,10 +4097,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginAccessControl' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.OriginAccessControlConfig') as origin_access_control_config + 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::CloudFront::OriginAccessControl' + AND detail.data__TypeName = 'AWS::CloudFront::OriginAccessControl' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3736,10 +4122,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginAccessControl' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'OriginAccessControlConfig') as origin_access_control_config + 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::CloudFront::OriginAccessControl' + AND detail.data__TypeName = 'AWS::CloudFront::OriginAccessControl' + AND listing.region = 'us-east-1' + origin_access_controls_list_only: + name: origin_access_controls_list_only + id: aws.cloudfront.origin_access_controls_list_only + x-cfn-schema-name: OriginAccessControl + x-cfn-type-name: AWS::CloudFront::OriginAccessControl + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginAccessControl' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginAccessControl' + AND region = 'us-east-1' origin_request_policies: name: origin_request_policies id: aws.cloudfront.origin_request_policies @@ -3813,10 +4236,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginRequestPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.OriginRequestPolicyConfig') as origin_request_policy_config + 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::CloudFront::OriginRequestPolicy' + AND detail.data__TypeName = 'AWS::CloudFront::OriginRequestPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3833,10 +4263,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginRequestPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'OriginRequestPolicyConfig') as origin_request_policy_config + 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::CloudFront::OriginRequestPolicy' + AND detail.data__TypeName = 'AWS::CloudFront::OriginRequestPolicy' + AND listing.region = 'us-east-1' + origin_request_policies_list_only: + name: origin_request_policies_list_only + id: aws.cloudfront.origin_request_policies_list_only + x-cfn-schema-name: OriginRequestPolicy + x-cfn-type-name: AWS::CloudFront::OriginRequestPolicy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginRequestPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::OriginRequestPolicy' + AND region = 'us-east-1' public_keys: name: public_keys id: aws.cloudfront.public_keys @@ -3910,10 +4378,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::PublicKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PublicKeyConfig') as public_key_config + 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::CloudFront::PublicKey' + AND detail.data__TypeName = 'AWS::CloudFront::PublicKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3930,10 +4405,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::PublicKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PublicKeyConfig') as public_key_config + 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::CloudFront::PublicKey' + AND detail.data__TypeName = 'AWS::CloudFront::PublicKey' + AND listing.region = 'us-east-1' + public_keys_list_only: + name: public_keys_list_only + id: aws.cloudfront.public_keys_list_only + x-cfn-schema-name: PublicKey + x-cfn-type-name: AWS::CloudFront::PublicKey + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::PublicKey' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::PublicKey' + AND region = 'us-east-1' realtime_log_configs: name: realtime_log_configs id: aws.cloudfront.realtime_log_configs @@ -4009,10 +4522,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::RealtimeLogConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.EndPoints') as end_points, + JSON_EXTRACT(detail.Properties, '$.Fields') as fields, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SamplingRate') as sampling_rate + 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::CloudFront::RealtimeLogConfig' + AND detail.data__TypeName = 'AWS::CloudFront::RealtimeLogConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4031,10 +4553,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::RealtimeLogConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'EndPoints') as end_points, + json_extract_path_text(detail.Properties, 'Fields') as fields, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SamplingRate') as sampling_rate + 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::CloudFront::RealtimeLogConfig' + AND detail.data__TypeName = 'AWS::CloudFront::RealtimeLogConfig' + AND listing.region = 'us-east-1' + realtime_log_configs_list_only: + name: realtime_log_configs_list_only + id: aws.cloudfront.realtime_log_configs_list_only + x-cfn-schema-name: RealtimeLogConfig + x-cfn-type-name: AWS::CloudFront::RealtimeLogConfig + 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::CloudFront::RealtimeLogConfig' + 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::CloudFront::RealtimeLogConfig' + AND region = 'us-east-1' response_headers_policies: name: response_headers_policies id: aws.cloudfront.response_headers_policies @@ -4108,10 +4670,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ResponseHeadersPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.ResponseHeadersPolicyConfig') as response_headers_policy_config + 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::CloudFront::ResponseHeadersPolicy' + AND detail.data__TypeName = 'AWS::CloudFront::ResponseHeadersPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4128,10 +4697,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ResponseHeadersPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'ResponseHeadersPolicyConfig') as response_headers_policy_config + 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::CloudFront::ResponseHeadersPolicy' + AND detail.data__TypeName = 'AWS::CloudFront::ResponseHeadersPolicy' + AND listing.region = 'us-east-1' + response_headers_policies_list_only: + name: response_headers_policies_list_only + id: aws.cloudfront.response_headers_policies_list_only + x-cfn-schema-name: ResponseHeadersPolicy + x-cfn-type-name: AWS::CloudFront::ResponseHeadersPolicy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ResponseHeadersPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudFront::ResponseHeadersPolicy' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cloudhsm.yaml b/providers/src/aws/v00.00.00000/services/cloudhsm.yaml index 8cf35239..f8170f86 100644 --- a/providers/src/aws/v00.00.00000/services/cloudhsm.yaml +++ b/providers/src/aws/v00.00.00000/services/cloudhsm.yaml @@ -1907,6 +1907,9 @@ components: x-stackQL-resources: clusters: name: clusters + x-cfn-schema-name: Cluster + x-example-where-clause: WHERE region = 'us-east-1' + x-type: native methods: create_cluster: operation: @@ -1965,6 +1968,8 @@ components: title: clusters hsm: name: hsm + x-type: native + x-description: 'Contains information about a hardware security module (HSM) in an AWS CloudHSM cluster.' methods: create_hsm: operation: @@ -1993,6 +1998,9 @@ components: title: hsm backups: name: backups + x-cfn-schema-name: Backup + x-example-where-clause: WHERE region = 'us-east-1' + x-type: native methods: copy_backup_to_region: operation: @@ -2050,6 +2058,9 @@ components: title: backups tags: name: tags + x-cfn-schema-name: Tag + x-example-where-clause: WHERE region = 'us-east-1' AND data__ResourceId = '' + x-type: native methods: list_tags: operation: diff --git a/providers/src/aws/v00.00.00000/services/cloudtrail.yaml b/providers/src/aws/v00.00.00000/services/cloudtrail.yaml index 9d609e75..a074cbb9 100644 --- a/providers/src/aws/v00.00.00000/services/cloudtrail.yaml +++ b/providers/src/aws/v00.00.00000/services/cloudtrail.yaml @@ -1293,10 +1293,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ChannelArn') as channel_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Channel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Destinations') as destinations, + JSON_EXTRACT(detail.Properties, '$.ChannelArn') as channel_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CloudTrail::Channel' + AND detail.data__TypeName = 'AWS::CloudTrail::Channel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1315,10 +1324,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ChannelArn') as channel_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Channel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Destinations') as destinations, + json_extract_path_text(detail.Properties, 'ChannelArn') as channel_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CloudTrail::Channel' + AND detail.data__TypeName = 'AWS::CloudTrail::Channel' + AND listing.region = 'us-east-1' + channels_list_only: + name: channels_list_only + id: aws.cloudtrail.channels_list_only + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::CloudTrail::Channel + x-identifiers: + - ChannelArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ChannelArn') as channel_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Channel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ChannelArn') as channel_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Channel' + AND region = 'us-east-1' + channel_tags: + name: channel_tags + id: aws.cloudtrail.channel_tags + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::CloudTrail::Channel + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Destinations') as destinations, + JSON_EXTRACT(detail.Properties, '$.ChannelArn') as channel_arn + 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::CloudTrail::Channel' + AND detail.data__TypeName = 'AWS::CloudTrail::Channel' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Destinations') as destinations, + json_extract_path_text(detail.Properties, 'ChannelArn') as channel_arn + 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::CloudTrail::Channel' + AND detail.data__TypeName = 'AWS::CloudTrail::Channel' + AND listing.region = 'us-east-1' event_data_stores: name: event_data_stores id: aws.cloudtrail.event_data_stores @@ -1407,10 +1507,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EventDataStoreArn') as event_data_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::EventDataStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdvancedEventSelectors') as advanced_event_selectors, + JSON_EXTRACT(detail.Properties, '$.CreatedTimestamp') as created_timestamp, + JSON_EXTRACT(detail.Properties, '$.EventDataStoreArn') as event_data_store_arn, + JSON_EXTRACT(detail.Properties, '$.FederationEnabled') as federation_enabled, + JSON_EXTRACT(detail.Properties, '$.FederationRoleArn') as federation_role_arn, + JSON_EXTRACT(detail.Properties, '$.MultiRegionEnabled') as multi_region_enabled, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OrganizationEnabled') as organization_enabled, + JSON_EXTRACT(detail.Properties, '$.BillingMode') as billing_mode, + JSON_EXTRACT(detail.Properties, '$.RetentionPeriod') as retention_period, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TerminationProtectionEnabled') as termination_protection_enabled, + JSON_EXTRACT(detail.Properties, '$.UpdatedTimestamp') as updated_timestamp, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.InsightSelectors') as insight_selectors, + JSON_EXTRACT(detail.Properties, '$.InsightsDestination') as insights_destination, + JSON_EXTRACT(detail.Properties, '$.IngestionEnabled') as ingestion_enabled + 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::CloudTrail::EventDataStore' + AND detail.data__TypeName = 'AWS::CloudTrail::EventDataStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1442,10 +1564,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EventDataStoreArn') as event_data_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::EventDataStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdvancedEventSelectors') as advanced_event_selectors, + json_extract_path_text(detail.Properties, 'CreatedTimestamp') as created_timestamp, + json_extract_path_text(detail.Properties, 'EventDataStoreArn') as event_data_store_arn, + json_extract_path_text(detail.Properties, 'FederationEnabled') as federation_enabled, + json_extract_path_text(detail.Properties, 'FederationRoleArn') as federation_role_arn, + json_extract_path_text(detail.Properties, 'MultiRegionEnabled') as multi_region_enabled, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OrganizationEnabled') as organization_enabled, + json_extract_path_text(detail.Properties, 'BillingMode') as billing_mode, + json_extract_path_text(detail.Properties, 'RetentionPeriod') as retention_period, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TerminationProtectionEnabled') as termination_protection_enabled, + json_extract_path_text(detail.Properties, 'UpdatedTimestamp') as updated_timestamp, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'InsightSelectors') as insight_selectors, + json_extract_path_text(detail.Properties, 'InsightsDestination') as insights_destination, + json_extract_path_text(detail.Properties, 'IngestionEnabled') as ingestion_enabled + 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::CloudTrail::EventDataStore' + AND detail.data__TypeName = 'AWS::CloudTrail::EventDataStore' + AND listing.region = 'us-east-1' + event_data_stores_list_only: + name: event_data_stores_list_only + id: aws.cloudtrail.event_data_stores_list_only + x-cfn-schema-name: EventDataStore + x-cfn-type-name: AWS::CloudTrail::EventDataStore + x-identifiers: + - EventDataStoreArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EventDataStoreArn') as event_data_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::EventDataStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EventDataStoreArn') as event_data_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::EventDataStore' + AND region = 'us-east-1' + event_data_store_tags: + name: event_data_store_tags + id: aws.cloudtrail.event_data_store_tags + x-cfn-schema-name: EventDataStore + x-cfn-type-name: AWS::CloudTrail::EventDataStore + 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, '$.AdvancedEventSelectors') as advanced_event_selectors, + JSON_EXTRACT(detail.Properties, '$.CreatedTimestamp') as created_timestamp, + JSON_EXTRACT(detail.Properties, '$.EventDataStoreArn') as event_data_store_arn, + JSON_EXTRACT(detail.Properties, '$.FederationEnabled') as federation_enabled, + JSON_EXTRACT(detail.Properties, '$.FederationRoleArn') as federation_role_arn, + JSON_EXTRACT(detail.Properties, '$.MultiRegionEnabled') as multi_region_enabled, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OrganizationEnabled') as organization_enabled, + JSON_EXTRACT(detail.Properties, '$.BillingMode') as billing_mode, + JSON_EXTRACT(detail.Properties, '$.RetentionPeriod') as retention_period, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TerminationProtectionEnabled') as termination_protection_enabled, + JSON_EXTRACT(detail.Properties, '$.UpdatedTimestamp') as updated_timestamp, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.InsightSelectors') as insight_selectors, + JSON_EXTRACT(detail.Properties, '$.InsightsDestination') as insights_destination, + JSON_EXTRACT(detail.Properties, '$.IngestionEnabled') as ingestion_enabled + 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::CloudTrail::EventDataStore' + AND detail.data__TypeName = 'AWS::CloudTrail::EventDataStore' + 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, 'AdvancedEventSelectors') as advanced_event_selectors, + json_extract_path_text(detail.Properties, 'CreatedTimestamp') as created_timestamp, + json_extract_path_text(detail.Properties, 'EventDataStoreArn') as event_data_store_arn, + json_extract_path_text(detail.Properties, 'FederationEnabled') as federation_enabled, + json_extract_path_text(detail.Properties, 'FederationRoleArn') as federation_role_arn, + json_extract_path_text(detail.Properties, 'MultiRegionEnabled') as multi_region_enabled, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OrganizationEnabled') as organization_enabled, + json_extract_path_text(detail.Properties, 'BillingMode') as billing_mode, + json_extract_path_text(detail.Properties, 'RetentionPeriod') as retention_period, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TerminationProtectionEnabled') as termination_protection_enabled, + json_extract_path_text(detail.Properties, 'UpdatedTimestamp') as updated_timestamp, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'InsightSelectors') as insight_selectors, + json_extract_path_text(detail.Properties, 'InsightsDestination') as insights_destination, + json_extract_path_text(detail.Properties, 'IngestionEnabled') as ingestion_enabled + 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::CloudTrail::EventDataStore' + AND detail.data__TypeName = 'AWS::CloudTrail::EventDataStore' + AND listing.region = 'us-east-1' resource_policies: name: resource_policies id: aws.cloudtrail.resource_policies @@ -1613,10 +1865,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrailName') as trail_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Trail' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CloudWatchLogsLogGroupArn') as cloud_watch_logs_log_group_arn, + JSON_EXTRACT(detail.Properties, '$.CloudWatchLogsRoleArn') as cloud_watch_logs_role_arn, + JSON_EXTRACT(detail.Properties, '$.EnableLogFileValidation') as enable_log_file_validation, + JSON_EXTRACT(detail.Properties, '$.AdvancedEventSelectors') as advanced_event_selectors, + JSON_EXTRACT(detail.Properties, '$.EventSelectors') as event_selectors, + JSON_EXTRACT(detail.Properties, '$.IncludeGlobalServiceEvents') as include_global_service_events, + JSON_EXTRACT(detail.Properties, '$.IsLogging') as is_logging, + JSON_EXTRACT(detail.Properties, '$.IsMultiRegionTrail') as is_multi_region_trail, + JSON_EXTRACT(detail.Properties, '$.IsOrganizationTrail') as is_organization_trail, + JSON_EXTRACT(detail.Properties, '$.KMSKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.S3BucketName') as s3_bucket_name, + JSON_EXTRACT(detail.Properties, '$.S3KeyPrefix') as s3_key_prefix, + JSON_EXTRACT(detail.Properties, '$.SnsTopicName') as sns_topic_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrailName') as trail_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.InsightSelectors') as insight_selectors + 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::CloudTrail::Trail' + AND detail.data__TypeName = 'AWS::CloudTrail::Trail' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1648,10 +1922,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrailName') as trail_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Trail' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CloudWatchLogsLogGroupArn') as cloud_watch_logs_log_group_arn, + json_extract_path_text(detail.Properties, 'CloudWatchLogsRoleArn') as cloud_watch_logs_role_arn, + json_extract_path_text(detail.Properties, 'EnableLogFileValidation') as enable_log_file_validation, + json_extract_path_text(detail.Properties, 'AdvancedEventSelectors') as advanced_event_selectors, + json_extract_path_text(detail.Properties, 'EventSelectors') as event_selectors, + json_extract_path_text(detail.Properties, 'IncludeGlobalServiceEvents') as include_global_service_events, + json_extract_path_text(detail.Properties, 'IsLogging') as is_logging, + json_extract_path_text(detail.Properties, 'IsMultiRegionTrail') as is_multi_region_trail, + json_extract_path_text(detail.Properties, 'IsOrganizationTrail') as is_organization_trail, + json_extract_path_text(detail.Properties, 'KMSKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'S3BucketName') as s3_bucket_name, + json_extract_path_text(detail.Properties, 'S3KeyPrefix') as s3_key_prefix, + json_extract_path_text(detail.Properties, 'SnsTopicName') as sns_topic_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrailName') as trail_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'InsightSelectors') as insight_selectors + 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::CloudTrail::Trail' + AND detail.data__TypeName = 'AWS::CloudTrail::Trail' + AND listing.region = 'us-east-1' + trails_list_only: + name: trails_list_only + id: aws.cloudtrail.trails_list_only + x-cfn-schema-name: Trail + x-cfn-type-name: AWS::CloudTrail::Trail + x-identifiers: + - TrailName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrailName') as trail_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Trail' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrailName') as trail_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudTrail::Trail' + AND region = 'us-east-1' + trail_tags: + name: trail_tags + id: aws.cloudtrail.trail_tags + x-cfn-schema-name: Trail + x-cfn-type-name: AWS::CloudTrail::Trail + 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, '$.CloudWatchLogsLogGroupArn') as cloud_watch_logs_log_group_arn, + JSON_EXTRACT(detail.Properties, '$.CloudWatchLogsRoleArn') as cloud_watch_logs_role_arn, + JSON_EXTRACT(detail.Properties, '$.EnableLogFileValidation') as enable_log_file_validation, + JSON_EXTRACT(detail.Properties, '$.AdvancedEventSelectors') as advanced_event_selectors, + JSON_EXTRACT(detail.Properties, '$.EventSelectors') as event_selectors, + JSON_EXTRACT(detail.Properties, '$.IncludeGlobalServiceEvents') as include_global_service_events, + JSON_EXTRACT(detail.Properties, '$.IsLogging') as is_logging, + JSON_EXTRACT(detail.Properties, '$.IsMultiRegionTrail') as is_multi_region_trail, + JSON_EXTRACT(detail.Properties, '$.IsOrganizationTrail') as is_organization_trail, + JSON_EXTRACT(detail.Properties, '$.KMSKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.S3BucketName') as s3_bucket_name, + JSON_EXTRACT(detail.Properties, '$.S3KeyPrefix') as s3_key_prefix, + JSON_EXTRACT(detail.Properties, '$.SnsTopicName') as sns_topic_name, + JSON_EXTRACT(detail.Properties, '$.TrailName') as trail_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.InsightSelectors') as insight_selectors + 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::CloudTrail::Trail' + AND detail.data__TypeName = 'AWS::CloudTrail::Trail' + 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, 'CloudWatchLogsLogGroupArn') as cloud_watch_logs_log_group_arn, + json_extract_path_text(detail.Properties, 'CloudWatchLogsRoleArn') as cloud_watch_logs_role_arn, + json_extract_path_text(detail.Properties, 'EnableLogFileValidation') as enable_log_file_validation, + json_extract_path_text(detail.Properties, 'AdvancedEventSelectors') as advanced_event_selectors, + json_extract_path_text(detail.Properties, 'EventSelectors') as event_selectors, + json_extract_path_text(detail.Properties, 'IncludeGlobalServiceEvents') as include_global_service_events, + json_extract_path_text(detail.Properties, 'IsLogging') as is_logging, + json_extract_path_text(detail.Properties, 'IsMultiRegionTrail') as is_multi_region_trail, + json_extract_path_text(detail.Properties, 'IsOrganizationTrail') as is_organization_trail, + json_extract_path_text(detail.Properties, 'KMSKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'S3BucketName') as s3_bucket_name, + json_extract_path_text(detail.Properties, 'S3KeyPrefix') as s3_key_prefix, + json_extract_path_text(detail.Properties, 'SnsTopicName') as sns_topic_name, + json_extract_path_text(detail.Properties, 'TrailName') as trail_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'InsightSelectors') as insight_selectors + 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::CloudTrail::Trail' + AND detail.data__TypeName = 'AWS::CloudTrail::Trail' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cloudwatch.yaml b/providers/src/aws/v00.00.00000/services/cloudwatch.yaml index 6c8a6941..044a2ac4 100644 --- a/providers/src/aws/v00.00.00000/services/cloudwatch.yaml +++ b/providers/src/aws/v00.00.00000/services/cloudwatch.yaml @@ -1881,10 +1881,37 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AlarmName') as alarm_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::Alarm' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ThresholdMetricId') as threshold_metric_id, + JSON_EXTRACT(detail.Properties, '$.EvaluateLowSampleCountPercentile') as evaluate_low_sample_count_percentile, + JSON_EXTRACT(detail.Properties, '$.ExtendedStatistic') as extended_statistic, + JSON_EXTRACT(detail.Properties, '$.ComparisonOperator') as comparison_operator, + JSON_EXTRACT(detail.Properties, '$.TreatMissingData') as treat_missing_data, + JSON_EXTRACT(detail.Properties, '$.Dimensions') as dimensions, + JSON_EXTRACT(detail.Properties, '$.Period') as period, + JSON_EXTRACT(detail.Properties, '$.EvaluationPeriods') as evaluation_periods, + JSON_EXTRACT(detail.Properties, '$.Unit') as unit, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.OKActions') as ok_actions, + JSON_EXTRACT(detail.Properties, '$.AlarmActions') as alarm_actions, + JSON_EXTRACT(detail.Properties, '$.MetricName') as metric_name, + JSON_EXTRACT(detail.Properties, '$.ActionsEnabled') as actions_enabled, + JSON_EXTRACT(detail.Properties, '$.Metrics') as metrics, + JSON_EXTRACT(detail.Properties, '$.AlarmDescription') as alarm_description, + JSON_EXTRACT(detail.Properties, '$.AlarmName') as alarm_name, + JSON_EXTRACT(detail.Properties, '$.Statistic') as statistic, + JSON_EXTRACT(detail.Properties, '$.InsufficientDataActions') as insufficient_data_actions, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DatapointsToAlarm') as datapoints_to_alarm, + JSON_EXTRACT(detail.Properties, '$.Threshold') as threshold, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CloudWatch::Alarm' + AND detail.data__TypeName = 'AWS::CloudWatch::Alarm' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1921,10 +1948,155 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AlarmName') as alarm_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::Alarm' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ThresholdMetricId') as threshold_metric_id, + json_extract_path_text(detail.Properties, 'EvaluateLowSampleCountPercentile') as evaluate_low_sample_count_percentile, + json_extract_path_text(detail.Properties, 'ExtendedStatistic') as extended_statistic, + json_extract_path_text(detail.Properties, 'ComparisonOperator') as comparison_operator, + json_extract_path_text(detail.Properties, 'TreatMissingData') as treat_missing_data, + json_extract_path_text(detail.Properties, 'Dimensions') as dimensions, + json_extract_path_text(detail.Properties, 'Period') as period, + json_extract_path_text(detail.Properties, 'EvaluationPeriods') as evaluation_periods, + json_extract_path_text(detail.Properties, 'Unit') as unit, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'OKActions') as ok_actions, + json_extract_path_text(detail.Properties, 'AlarmActions') as alarm_actions, + json_extract_path_text(detail.Properties, 'MetricName') as metric_name, + json_extract_path_text(detail.Properties, 'ActionsEnabled') as actions_enabled, + json_extract_path_text(detail.Properties, 'Metrics') as metrics, + json_extract_path_text(detail.Properties, 'AlarmDescription') as alarm_description, + json_extract_path_text(detail.Properties, 'AlarmName') as alarm_name, + json_extract_path_text(detail.Properties, 'Statistic') as statistic, + json_extract_path_text(detail.Properties, 'InsufficientDataActions') as insufficient_data_actions, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DatapointsToAlarm') as datapoints_to_alarm, + json_extract_path_text(detail.Properties, 'Threshold') as threshold, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CloudWatch::Alarm' + AND detail.data__TypeName = 'AWS::CloudWatch::Alarm' + AND listing.region = 'us-east-1' + alarms_list_only: + name: alarms_list_only + id: aws.cloudwatch.alarms_list_only + x-cfn-schema-name: Alarm + x-cfn-type-name: AWS::CloudWatch::Alarm + x-identifiers: + - AlarmName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AlarmName') as alarm_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::Alarm' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AlarmName') as alarm_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::Alarm' + AND region = 'us-east-1' + alarm_tags: + name: alarm_tags + id: aws.cloudwatch.alarm_tags + x-cfn-schema-name: Alarm + x-cfn-type-name: AWS::CloudWatch::Alarm + 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, '$.ThresholdMetricId') as threshold_metric_id, + JSON_EXTRACT(detail.Properties, '$.EvaluateLowSampleCountPercentile') as evaluate_low_sample_count_percentile, + JSON_EXTRACT(detail.Properties, '$.ExtendedStatistic') as extended_statistic, + JSON_EXTRACT(detail.Properties, '$.ComparisonOperator') as comparison_operator, + JSON_EXTRACT(detail.Properties, '$.TreatMissingData') as treat_missing_data, + JSON_EXTRACT(detail.Properties, '$.Dimensions') as dimensions, + JSON_EXTRACT(detail.Properties, '$.Period') as period, + JSON_EXTRACT(detail.Properties, '$.EvaluationPeriods') as evaluation_periods, + JSON_EXTRACT(detail.Properties, '$.Unit') as unit, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.OKActions') as ok_actions, + JSON_EXTRACT(detail.Properties, '$.AlarmActions') as alarm_actions, + JSON_EXTRACT(detail.Properties, '$.MetricName') as metric_name, + JSON_EXTRACT(detail.Properties, '$.ActionsEnabled') as actions_enabled, + JSON_EXTRACT(detail.Properties, '$.Metrics') as metrics, + JSON_EXTRACT(detail.Properties, '$.AlarmDescription') as alarm_description, + JSON_EXTRACT(detail.Properties, '$.AlarmName') as alarm_name, + JSON_EXTRACT(detail.Properties, '$.Statistic') as statistic, + JSON_EXTRACT(detail.Properties, '$.InsufficientDataActions') as insufficient_data_actions, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DatapointsToAlarm') as datapoints_to_alarm, + JSON_EXTRACT(detail.Properties, '$.Threshold') as threshold + 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::CloudWatch::Alarm' + AND detail.data__TypeName = 'AWS::CloudWatch::Alarm' + 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, 'ThresholdMetricId') as threshold_metric_id, + json_extract_path_text(detail.Properties, 'EvaluateLowSampleCountPercentile') as evaluate_low_sample_count_percentile, + json_extract_path_text(detail.Properties, 'ExtendedStatistic') as extended_statistic, + json_extract_path_text(detail.Properties, 'ComparisonOperator') as comparison_operator, + json_extract_path_text(detail.Properties, 'TreatMissingData') as treat_missing_data, + json_extract_path_text(detail.Properties, 'Dimensions') as dimensions, + json_extract_path_text(detail.Properties, 'Period') as period, + json_extract_path_text(detail.Properties, 'EvaluationPeriods') as evaluation_periods, + json_extract_path_text(detail.Properties, 'Unit') as unit, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'OKActions') as ok_actions, + json_extract_path_text(detail.Properties, 'AlarmActions') as alarm_actions, + json_extract_path_text(detail.Properties, 'MetricName') as metric_name, + json_extract_path_text(detail.Properties, 'ActionsEnabled') as actions_enabled, + json_extract_path_text(detail.Properties, 'Metrics') as metrics, + json_extract_path_text(detail.Properties, 'AlarmDescription') as alarm_description, + json_extract_path_text(detail.Properties, 'AlarmName') as alarm_name, + json_extract_path_text(detail.Properties, 'Statistic') as statistic, + json_extract_path_text(detail.Properties, 'InsufficientDataActions') as insufficient_data_actions, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DatapointsToAlarm') as datapoints_to_alarm, + json_extract_path_text(detail.Properties, 'Threshold') as threshold + 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::CloudWatch::Alarm' + AND detail.data__TypeName = 'AWS::CloudWatch::Alarm' + AND listing.region = 'us-east-1' composite_alarms: name: composite_alarms id: aws.cloudwatch.composite_alarms @@ -2007,10 +2179,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AlarmName') as alarm_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::CompositeAlarm' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AlarmName') as alarm_name, + JSON_EXTRACT(detail.Properties, '$.AlarmRule') as alarm_rule, + JSON_EXTRACT(detail.Properties, '$.AlarmDescription') as alarm_description, + JSON_EXTRACT(detail.Properties, '$.ActionsEnabled') as actions_enabled, + JSON_EXTRACT(detail.Properties, '$.OKActions') as ok_actions, + JSON_EXTRACT(detail.Properties, '$.AlarmActions') as alarm_actions, + JSON_EXTRACT(detail.Properties, '$.InsufficientDataActions') as insufficient_data_actions, + JSON_EXTRACT(detail.Properties, '$.ActionsSuppressor') as actions_suppressor, + JSON_EXTRACT(detail.Properties, '$.ActionsSuppressorWaitPeriod') as actions_suppressor_wait_period, + JSON_EXTRACT(detail.Properties, '$.ActionsSuppressorExtensionPeriod') as actions_suppressor_extension_period, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CloudWatch::CompositeAlarm' + AND detail.data__TypeName = 'AWS::CloudWatch::CompositeAlarm' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2036,10 +2224,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AlarmName') as alarm_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::CompositeAlarm' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AlarmName') as alarm_name, + json_extract_path_text(detail.Properties, 'AlarmRule') as alarm_rule, + json_extract_path_text(detail.Properties, 'AlarmDescription') as alarm_description, + json_extract_path_text(detail.Properties, 'ActionsEnabled') as actions_enabled, + json_extract_path_text(detail.Properties, 'OKActions') as ok_actions, + json_extract_path_text(detail.Properties, 'AlarmActions') as alarm_actions, + json_extract_path_text(detail.Properties, 'InsufficientDataActions') as insufficient_data_actions, + json_extract_path_text(detail.Properties, 'ActionsSuppressor') as actions_suppressor, + json_extract_path_text(detail.Properties, 'ActionsSuppressorWaitPeriod') as actions_suppressor_wait_period, + json_extract_path_text(detail.Properties, 'ActionsSuppressorExtensionPeriod') as actions_suppressor_extension_period, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CloudWatch::CompositeAlarm' + AND detail.data__TypeName = 'AWS::CloudWatch::CompositeAlarm' + AND listing.region = 'us-east-1' + composite_alarms_list_only: + name: composite_alarms_list_only + id: aws.cloudwatch.composite_alarms_list_only + x-cfn-schema-name: CompositeAlarm + x-cfn-type-name: AWS::CloudWatch::CompositeAlarm + x-identifiers: + - AlarmName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AlarmName') as alarm_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::CompositeAlarm' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AlarmName') as alarm_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::CompositeAlarm' + AND region = 'us-east-1' + composite_alarm_tags: + name: composite_alarm_tags + id: aws.cloudwatch.composite_alarm_tags + x-cfn-schema-name: CompositeAlarm + x-cfn-type-name: AWS::CloudWatch::CompositeAlarm + 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, '$.AlarmName') as alarm_name, + JSON_EXTRACT(detail.Properties, '$.AlarmRule') as alarm_rule, + JSON_EXTRACT(detail.Properties, '$.AlarmDescription') as alarm_description, + JSON_EXTRACT(detail.Properties, '$.ActionsEnabled') as actions_enabled, + JSON_EXTRACT(detail.Properties, '$.OKActions') as ok_actions, + JSON_EXTRACT(detail.Properties, '$.AlarmActions') as alarm_actions, + JSON_EXTRACT(detail.Properties, '$.InsufficientDataActions') as insufficient_data_actions, + JSON_EXTRACT(detail.Properties, '$.ActionsSuppressor') as actions_suppressor, + JSON_EXTRACT(detail.Properties, '$.ActionsSuppressorWaitPeriod') as actions_suppressor_wait_period, + JSON_EXTRACT(detail.Properties, '$.ActionsSuppressorExtensionPeriod') as actions_suppressor_extension_period + 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::CloudWatch::CompositeAlarm' + AND detail.data__TypeName = 'AWS::CloudWatch::CompositeAlarm' + 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, 'AlarmName') as alarm_name, + json_extract_path_text(detail.Properties, 'AlarmRule') as alarm_rule, + json_extract_path_text(detail.Properties, 'AlarmDescription') as alarm_description, + json_extract_path_text(detail.Properties, 'ActionsEnabled') as actions_enabled, + json_extract_path_text(detail.Properties, 'OKActions') as ok_actions, + json_extract_path_text(detail.Properties, 'AlarmActions') as alarm_actions, + json_extract_path_text(detail.Properties, 'InsufficientDataActions') as insufficient_data_actions, + json_extract_path_text(detail.Properties, 'ActionsSuppressor') as actions_suppressor, + json_extract_path_text(detail.Properties, 'ActionsSuppressorWaitPeriod') as actions_suppressor_wait_period, + json_extract_path_text(detail.Properties, 'ActionsSuppressorExtensionPeriod') as actions_suppressor_extension_period + 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::CloudWatch::CompositeAlarm' + AND detail.data__TypeName = 'AWS::CloudWatch::CompositeAlarm' + AND listing.region = 'us-east-1' metric_streams: name: metric_streams id: aws.cloudwatch.metric_streams @@ -2123,10 +2423,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::MetricStream' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.ExcludeFilters') as exclude_filters, + JSON_EXTRACT(detail.Properties, '$.FirehoseArn') as firehose_arn, + JSON_EXTRACT(detail.Properties, '$.IncludeFilters') as include_filters, + JSON_EXTRACT(detail.Properties, '$.LastUpdateDate') as last_update_date, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.OutputFormat') as output_format, + JSON_EXTRACT(detail.Properties, '$.StatisticsConfigurations') as statistics_configurations, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.IncludeLinkedAccountsMetrics') as include_linked_accounts_metrics + 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::CloudWatch::MetricStream' + AND detail.data__TypeName = 'AWS::CloudWatch::MetricStream' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2153,10 +2470,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::MetricStream' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'ExcludeFilters') as exclude_filters, + json_extract_path_text(detail.Properties, 'FirehoseArn') as firehose_arn, + json_extract_path_text(detail.Properties, 'IncludeFilters') as include_filters, + json_extract_path_text(detail.Properties, 'LastUpdateDate') as last_update_date, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'OutputFormat') as output_format, + json_extract_path_text(detail.Properties, 'StatisticsConfigurations') as statistics_configurations, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'IncludeLinkedAccountsMetrics') as include_linked_accounts_metrics + 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::CloudWatch::MetricStream' + AND detail.data__TypeName = 'AWS::CloudWatch::MetricStream' + AND listing.region = 'us-east-1' + metric_streams_list_only: + name: metric_streams_list_only + id: aws.cloudwatch.metric_streams_list_only + x-cfn-schema-name: MetricStream + x-cfn-type-name: AWS::CloudWatch::MetricStream + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::MetricStream' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CloudWatch::MetricStream' + AND region = 'us-east-1' + metric_stream_tags: + name: metric_stream_tags + id: aws.cloudwatch.metric_stream_tags + x-cfn-schema-name: MetricStream + x-cfn-type-name: AWS::CloudWatch::MetricStream + 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, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.ExcludeFilters') as exclude_filters, + JSON_EXTRACT(detail.Properties, '$.FirehoseArn') as firehose_arn, + JSON_EXTRACT(detail.Properties, '$.IncludeFilters') as include_filters, + JSON_EXTRACT(detail.Properties, '$.LastUpdateDate') as last_update_date, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.OutputFormat') as output_format, + JSON_EXTRACT(detail.Properties, '$.StatisticsConfigurations') as statistics_configurations, + JSON_EXTRACT(detail.Properties, '$.IncludeLinkedAccountsMetrics') as include_linked_accounts_metrics + 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::CloudWatch::MetricStream' + AND detail.data__TypeName = 'AWS::CloudWatch::MetricStream' + 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, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'ExcludeFilters') as exclude_filters, + json_extract_path_text(detail.Properties, 'FirehoseArn') as firehose_arn, + json_extract_path_text(detail.Properties, 'IncludeFilters') as include_filters, + json_extract_path_text(detail.Properties, 'LastUpdateDate') as last_update_date, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'OutputFormat') as output_format, + json_extract_path_text(detail.Properties, 'StatisticsConfigurations') as statistics_configurations, + json_extract_path_text(detail.Properties, 'IncludeLinkedAccountsMetrics') as include_linked_accounts_metrics + 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::CloudWatch::MetricStream' + AND detail.data__TypeName = 'AWS::CloudWatch::MetricStream' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codeartifact.yaml b/providers/src/aws/v00.00.00000/services/codeartifact.yaml index 3e5c93f7..548b4c46 100644 --- a/providers/src/aws/v00.00.00000/services/codeartifact.yaml +++ b/providers/src/aws/v00.00.00000/services/codeartifact.yaml @@ -980,10 +980,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeArtifact::Domain' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.PermissionsPolicyDocument') as permissions_policy_document, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeArtifact::Domain' + AND detail.data__TypeName = 'AWS::CodeArtifact::Domain' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1004,10 +1015,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeArtifact::Domain' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'PermissionsPolicyDocument') as permissions_policy_document, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeArtifact::Domain' + AND detail.data__TypeName = 'AWS::CodeArtifact::Domain' + AND listing.region = 'us-east-1' + domains_list_only: + name: domains_list_only + id: aws.codeartifact.domains_list_only + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::CodeArtifact::Domain + 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::CodeArtifact::Domain' + 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::CodeArtifact::Domain' + AND region = 'us-east-1' + domain_tags: + name: domain_tags + id: aws.codeartifact.domain_tags + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::CodeArtifact::Domain + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.PermissionsPolicyDocument') as permissions_policy_document, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeArtifact::Domain' + AND detail.data__TypeName = 'AWS::CodeArtifact::Domain' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'PermissionsPolicyDocument') as permissions_policy_document, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeArtifact::Domain' + AND detail.data__TypeName = 'AWS::CodeArtifact::Domain' + AND listing.region = 'us-east-1' package_groups: name: package_groups id: aws.codeartifact.package_groups @@ -1086,10 +1194,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeArtifact::PackageGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainOwner') as domain_owner, + JSON_EXTRACT(detail.Properties, '$.Pattern') as pattern, + JSON_EXTRACT(detail.Properties, '$.ContactInfo') as contact_info, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.OriginConfiguration') as origin_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeArtifact::PackageGroup' + AND detail.data__TypeName = 'AWS::CodeArtifact::PackageGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1111,10 +1231,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeArtifact::PackageGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainOwner') as domain_owner, + json_extract_path_text(detail.Properties, 'Pattern') as pattern, + json_extract_path_text(detail.Properties, 'ContactInfo') as contact_info, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'OriginConfiguration') as origin_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeArtifact::PackageGroup' + AND detail.data__TypeName = 'AWS::CodeArtifact::PackageGroup' + AND listing.region = 'us-east-1' + package_groups_list_only: + name: package_groups_list_only + id: aws.codeartifact.package_groups_list_only + x-cfn-schema-name: PackageGroup + x-cfn-type-name: AWS::CodeArtifact::PackageGroup + 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::CodeArtifact::PackageGroup' + 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::CodeArtifact::PackageGroup' + AND region = 'us-east-1' + package_group_tags: + name: package_group_tags + id: aws.codeartifact.package_group_tags + x-cfn-schema-name: PackageGroup + x-cfn-type-name: AWS::CodeArtifact::PackageGroup + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainOwner') as domain_owner, + JSON_EXTRACT(detail.Properties, '$.Pattern') as pattern, + JSON_EXTRACT(detail.Properties, '$.ContactInfo') as contact_info, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.OriginConfiguration') as origin_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeArtifact::PackageGroup' + AND detail.data__TypeName = 'AWS::CodeArtifact::PackageGroup' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainOwner') as domain_owner, + json_extract_path_text(detail.Properties, 'Pattern') as pattern, + json_extract_path_text(detail.Properties, 'ContactInfo') as contact_info, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'OriginConfiguration') as origin_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeArtifact::PackageGroup' + AND detail.data__TypeName = 'AWS::CodeArtifact::PackageGroup' + AND listing.region = 'us-east-1' repositories: name: repositories id: aws.codeartifact.repositories @@ -1195,10 +1415,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeArtifact::Repository' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainOwner') as domain_owner, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ExternalConnections') as external_connections, + JSON_EXTRACT(detail.Properties, '$.Upstreams') as upstreams, + JSON_EXTRACT(detail.Properties, '$.PermissionsPolicyDocument') as permissions_policy_document, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CodeArtifact::Repository' + AND detail.data__TypeName = 'AWS::CodeArtifact::Repository' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1222,10 +1456,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeArtifact::Repository' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainOwner') as domain_owner, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ExternalConnections') as external_connections, + json_extract_path_text(detail.Properties, 'Upstreams') as upstreams, + json_extract_path_text(detail.Properties, 'PermissionsPolicyDocument') as permissions_policy_document, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CodeArtifact::Repository' + AND detail.data__TypeName = 'AWS::CodeArtifact::Repository' + AND listing.region = 'us-east-1' + repositories_list_only: + name: repositories_list_only + id: aws.codeartifact.repositories_list_only + x-cfn-schema-name: Repository + x-cfn-type-name: AWS::CodeArtifact::Repository + 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::CodeArtifact::Repository' + 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::CodeArtifact::Repository' + AND region = 'us-east-1' + repository_tags: + name: repository_tags + id: aws.codeartifact.repository_tags + x-cfn-schema-name: Repository + x-cfn-type-name: AWS::CodeArtifact::Repository + 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, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainOwner') as domain_owner, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ExternalConnections') as external_connections, + JSON_EXTRACT(detail.Properties, '$.Upstreams') as upstreams, + JSON_EXTRACT(detail.Properties, '$.PermissionsPolicyDocument') as permissions_policy_document + 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::CodeArtifact::Repository' + AND detail.data__TypeName = 'AWS::CodeArtifact::Repository' + 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, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainOwner') as domain_owner, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ExternalConnections') as external_connections, + json_extract_path_text(detail.Properties, 'Upstreams') as upstreams, + json_extract_path_text(detail.Properties, 'PermissionsPolicyDocument') as permissions_policy_document + 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::CodeArtifact::Repository' + AND detail.data__TypeName = 'AWS::CodeArtifact::Repository' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codebuild.yaml b/providers/src/aws/v00.00.00000/services/codebuild.yaml index 896dacb8..ae8aaf93 100644 --- a/providers/src/aws/v00.00.00000/services/codebuild.yaml +++ b/providers/src/aws/v00.00.00000/services/codebuild.yaml @@ -636,10 +636,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeBuild::Fleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.BaseCapacity') as base_capacity, + JSON_EXTRACT(detail.Properties, '$.EnvironmentType') as environment_type, + JSON_EXTRACT(detail.Properties, '$.ComputeType') as compute_type, + JSON_EXTRACT(detail.Properties, '$.OverflowBehavior') as overflow_behavior, + JSON_EXTRACT(detail.Properties, '$.FleetServiceRole') as fleet_service_role, + JSON_EXTRACT(detail.Properties, '$.FleetVpcConfig') as fleet_vpc_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeBuild::Fleet' + AND detail.data__TypeName = 'AWS::CodeBuild::Fleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -662,10 +675,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeBuild::Fleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'BaseCapacity') as base_capacity, + json_extract_path_text(detail.Properties, 'EnvironmentType') as environment_type, + json_extract_path_text(detail.Properties, 'ComputeType') as compute_type, + json_extract_path_text(detail.Properties, 'OverflowBehavior') as overflow_behavior, + json_extract_path_text(detail.Properties, 'FleetServiceRole') as fleet_service_role, + json_extract_path_text(detail.Properties, 'FleetVpcConfig') as fleet_vpc_config, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeBuild::Fleet' + AND detail.data__TypeName = 'AWS::CodeBuild::Fleet' + AND listing.region = 'us-east-1' + fleets_list_only: + name: fleets_list_only + id: aws.codebuild.fleets_list_only + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::CodeBuild::Fleet + 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::CodeBuild::Fleet' + 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::CodeBuild::Fleet' + AND region = 'us-east-1' + fleet_tags: + name: fleet_tags + id: aws.codebuild.fleet_tags + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::CodeBuild::Fleet + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.BaseCapacity') as base_capacity, + JSON_EXTRACT(detail.Properties, '$.EnvironmentType') as environment_type, + JSON_EXTRACT(detail.Properties, '$.ComputeType') as compute_type, + JSON_EXTRACT(detail.Properties, '$.OverflowBehavior') as overflow_behavior, + JSON_EXTRACT(detail.Properties, '$.FleetServiceRole') as fleet_service_role, + JSON_EXTRACT(detail.Properties, '$.FleetVpcConfig') as fleet_vpc_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeBuild::Fleet' + AND detail.data__TypeName = 'AWS::CodeBuild::Fleet' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'BaseCapacity') as base_capacity, + json_extract_path_text(detail.Properties, 'EnvironmentType') as environment_type, + json_extract_path_text(detail.Properties, 'ComputeType') as compute_type, + json_extract_path_text(detail.Properties, 'OverflowBehavior') as overflow_behavior, + json_extract_path_text(detail.Properties, 'FleetServiceRole') as fleet_service_role, + json_extract_path_text(detail.Properties, 'FleetVpcConfig') as fleet_vpc_config, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeBuild::Fleet' + AND detail.data__TypeName = 'AWS::CodeBuild::Fleet' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codeconnections.yaml b/providers/src/aws/v00.00.00000/services/codeconnections.yaml index 7db8c9a7..96f7115a 100644 --- a/providers/src/aws/v00.00.00000/services/codeconnections.yaml +++ b/providers/src/aws/v00.00.00000/services/codeconnections.yaml @@ -617,10 +617,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectionArn') as connection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeConnections::Connection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectionName') as connection_name, + JSON_EXTRACT(detail.Properties, '$.ConnectionStatus') as connection_status, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.ProviderType') as provider_type, + JSON_EXTRACT(detail.Properties, '$.HostArn') as host_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CodeConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeConnections::Connection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -641,10 +652,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectionArn') as connection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeConnections::Connection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'ConnectionName') as connection_name, + json_extract_path_text(detail.Properties, 'ConnectionStatus') as connection_status, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'ProviderType') as provider_type, + json_extract_path_text(detail.Properties, 'HostArn') as host_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CodeConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeConnections::Connection' + AND listing.region = 'us-east-1' + connections_list_only: + name: connections_list_only + id: aws.codeconnections.connections_list_only + x-cfn-schema-name: Connection + x-cfn-type-name: AWS::CodeConnections::Connection + x-identifiers: + - ConnectionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectionArn') as connection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeConnections::Connection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectionArn') as connection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeConnections::Connection' + AND region = 'us-east-1' + connection_tags: + name: connection_tags + id: aws.codeconnections.connection_tags + x-cfn-schema-name: Connection + x-cfn-type-name: AWS::CodeConnections::Connection + 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, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectionName') as connection_name, + JSON_EXTRACT(detail.Properties, '$.ConnectionStatus') as connection_status, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.ProviderType') as provider_type, + JSON_EXTRACT(detail.Properties, '$.HostArn') as host_arn + 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::CodeConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeConnections::Connection' + 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, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'ConnectionName') as connection_name, + json_extract_path_text(detail.Properties, 'ConnectionStatus') as connection_status, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'ProviderType') as provider_type, + json_extract_path_text(detail.Properties, 'HostArn') as host_arn + 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::CodeConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeConnections::Connection' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codedeploy.yaml b/providers/src/aws/v00.00.00000/services/codedeploy.yaml index a8001498..d09aeaaa 100644 --- a/providers/src/aws/v00.00.00000/services/codedeploy.yaml +++ b/providers/src/aws/v00.00.00000/services/codedeploy.yaml @@ -697,10 +697,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationName') as application_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.ComputePlatform') as compute_platform, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CodeDeploy::Application' + AND detail.data__TypeName = 'AWS::CodeDeploy::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -717,10 +724,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationName') as application_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'ComputePlatform') as compute_platform, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CodeDeploy::Application' + AND detail.data__TypeName = 'AWS::CodeDeploy::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.codedeploy.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::CodeDeploy::Application + x-identifiers: + - ApplicationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationName') as application_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationName') as application_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.codedeploy.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::CodeDeploy::Application + 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, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.ComputePlatform') as compute_platform + 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::CodeDeploy::Application' + AND detail.data__TypeName = 'AWS::CodeDeploy::Application' + 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, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'ComputePlatform') as compute_platform + 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::CodeDeploy::Application' + AND detail.data__TypeName = 'AWS::CodeDeploy::Application' + AND listing.region = 'us-east-1' deployment_configs: name: deployment_configs id: aws.codedeploy.deployment_configs @@ -783,10 +875,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DeploymentConfigName') as deployment_config_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::DeploymentConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ComputePlatform') as compute_platform, + JSON_EXTRACT(detail.Properties, '$.DeploymentConfigName') as deployment_config_name, + JSON_EXTRACT(detail.Properties, '$.MinimumHealthyHosts') as minimum_healthy_hosts, + JSON_EXTRACT(detail.Properties, '$.ZonalConfig') as zonal_config, + JSON_EXTRACT(detail.Properties, '$.TrafficRoutingConfig') as traffic_routing_config + 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::CodeDeploy::DeploymentConfig' + AND detail.data__TypeName = 'AWS::CodeDeploy::DeploymentConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -805,10 +906,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DeploymentConfigName') as deployment_config_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::DeploymentConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ComputePlatform') as compute_platform, + json_extract_path_text(detail.Properties, 'DeploymentConfigName') as deployment_config_name, + json_extract_path_text(detail.Properties, 'MinimumHealthyHosts') as minimum_healthy_hosts, + json_extract_path_text(detail.Properties, 'ZonalConfig') as zonal_config, + json_extract_path_text(detail.Properties, 'TrafficRoutingConfig') as traffic_routing_config + 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::CodeDeploy::DeploymentConfig' + AND detail.data__TypeName = 'AWS::CodeDeploy::DeploymentConfig' + AND listing.region = 'us-east-1' + deployment_configs_list_only: + name: deployment_configs_list_only + id: aws.codedeploy.deployment_configs_list_only + x-cfn-schema-name: DeploymentConfig + x-cfn-type-name: AWS::CodeDeploy::DeploymentConfig + x-identifiers: + - DeploymentConfigName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DeploymentConfigName') as deployment_config_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::DeploymentConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DeploymentConfigName') as deployment_config_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeDeploy::DeploymentConfig' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codeguruprofiler.yaml b/providers/src/aws/v00.00.00000/services/codeguruprofiler.yaml index b57ba379..7be3ec5e 100644 --- a/providers/src/aws/v00.00.00000/services/codeguruprofiler.yaml +++ b/providers/src/aws/v00.00.00000/services/codeguruprofiler.yaml @@ -653,10 +653,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProfilingGroupName') as profiling_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProfilingGroupName') as profiling_group_name, + JSON_EXTRACT(detail.Properties, '$.ComputePlatform') as compute_platform, + JSON_EXTRACT(detail.Properties, '$.AgentPermissions') as agent_permissions, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectionNotificationConfiguration') as anomaly_detection_notification_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CodeGuruProfiler::ProfilingGroup' + AND detail.data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -676,10 +686,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProfilingGroupName') as profiling_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProfilingGroupName') as profiling_group_name, + json_extract_path_text(detail.Properties, 'ComputePlatform') as compute_platform, + json_extract_path_text(detail.Properties, 'AgentPermissions') as agent_permissions, + json_extract_path_text(detail.Properties, 'AnomalyDetectionNotificationConfiguration') as anomaly_detection_notification_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CodeGuruProfiler::ProfilingGroup' + AND detail.data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' + AND listing.region = 'us-east-1' + profiling_groups_list_only: + name: profiling_groups_list_only + id: aws.codeguruprofiler.profiling_groups_list_only + x-cfn-schema-name: ProfilingGroup + x-cfn-type-name: AWS::CodeGuruProfiler::ProfilingGroup + x-identifiers: + - ProfilingGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProfilingGroupName') as profiling_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProfilingGroupName') as profiling_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' + AND region = 'us-east-1' + profiling_group_tags: + name: profiling_group_tags + id: aws.codeguruprofiler.profiling_group_tags + x-cfn-schema-name: ProfilingGroup + x-cfn-type-name: AWS::CodeGuruProfiler::ProfilingGroup + 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, '$.ProfilingGroupName') as profiling_group_name, + JSON_EXTRACT(detail.Properties, '$.ComputePlatform') as compute_platform, + JSON_EXTRACT(detail.Properties, '$.AgentPermissions') as agent_permissions, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectionNotificationConfiguration') as anomaly_detection_notification_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeGuruProfiler::ProfilingGroup' + AND detail.data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' + 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, 'ProfilingGroupName') as profiling_group_name, + json_extract_path_text(detail.Properties, 'ComputePlatform') as compute_platform, + json_extract_path_text(detail.Properties, 'AgentPermissions') as agent_permissions, + json_extract_path_text(detail.Properties, 'AnomalyDetectionNotificationConfiguration') as anomaly_detection_notification_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeGuruProfiler::ProfilingGroup' + AND detail.data__TypeName = 'AWS::CodeGuruProfiler::ProfilingGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codegurureviewer.yaml b/providers/src/aws/v00.00.00000/services/codegurureviewer.yaml index b4914b92..2ea181a5 100644 --- a/providers/src/aws/v00.00.00000/services/codegurureviewer.yaml +++ b/providers/src/aws/v00.00.00000/services/codegurureviewer.yaml @@ -636,10 +636,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssociationArn') as association_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.AssociationArn') as association_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CodeGuruReviewer::RepositoryAssociation' + AND detail.data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -660,10 +671,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssociationArn') as association_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'AssociationArn') as association_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CodeGuruReviewer::RepositoryAssociation' + AND detail.data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' + AND listing.region = 'us-east-1' + repository_associations_list_only: + name: repository_associations_list_only + id: aws.codegurureviewer.repository_associations_list_only + x-cfn-schema-name: RepositoryAssociation + x-cfn-type-name: AWS::CodeGuruReviewer::RepositoryAssociation + x-identifiers: + - AssociationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssociationArn') as association_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssociationArn') as association_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' + AND region = 'us-east-1' + repository_association_tags: + name: repository_association_tags + id: aws.codegurureviewer.repository_association_tags + x-cfn-schema-name: RepositoryAssociation + x-cfn-type-name: AWS::CodeGuruReviewer::RepositoryAssociation + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.AssociationArn') as association_arn + 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::CodeGuruReviewer::RepositoryAssociation' + AND detail.data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'AssociationArn') as association_arn + 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::CodeGuruReviewer::RepositoryAssociation' + AND detail.data__TypeName = 'AWS::CodeGuruReviewer::RepositoryAssociation' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codepipeline.yaml b/providers/src/aws/v00.00.00000/services/codepipeline.yaml index cab975f2..38498890 100644 --- a/providers/src/aws/v00.00.00000/services/codepipeline.yaml +++ b/providers/src/aws/v00.00.00000/services/codepipeline.yaml @@ -691,12 +691,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Category') as category, - JSON_EXTRACT(Properties, '$.Provider') as provider, - JSON_EXTRACT(Properties, '$.Version') as version - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodePipeline::CustomActionType' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Category') as category, + JSON_EXTRACT(detail.Properties, '$.ConfigurationProperties') as configuration_properties, + JSON_EXTRACT(detail.Properties, '$.InputArtifactDetails') as input_artifact_details, + JSON_EXTRACT(detail.Properties, '$.OutputArtifactDetails') as output_artifact_details, + JSON_EXTRACT(detail.Properties, '$.Provider') as provider, + JSON_EXTRACT(detail.Properties, '$.Settings') as settings, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::CodePipeline::CustomActionType' + AND detail.data__TypeName = 'AWS::CodePipeline::CustomActionType' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -719,12 +730,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Category') as category, - json_extract_path_text(Properties, 'Provider') as provider, - json_extract_path_text(Properties, 'Version') as version - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodePipeline::CustomActionType' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Category') as category, + json_extract_path_text(detail.Properties, 'ConfigurationProperties') as configuration_properties, + json_extract_path_text(detail.Properties, 'InputArtifactDetails') as input_artifact_details, + json_extract_path_text(detail.Properties, 'OutputArtifactDetails') as output_artifact_details, + json_extract_path_text(detail.Properties, 'Provider') as provider, + json_extract_path_text(detail.Properties, 'Settings') as settings, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Id') as id + 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::CodePipeline::CustomActionType' + AND detail.data__TypeName = 'AWS::CodePipeline::CustomActionType' + AND listing.region = 'us-east-1' + custom_action_types_list_only: + name: custom_action_types_list_only + id: aws.codepipeline.custom_action_types_list_only + x-cfn-schema-name: CustomActionType + x-cfn-type-name: AWS::CodePipeline::CustomActionType + x-identifiers: + - Category + - Provider + - Version + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Category') as category, + JSON_EXTRACT(Properties, '$.Provider') as provider, + JSON_EXTRACT(Properties, '$.Version') as version + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodePipeline::CustomActionType' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Category') as category, + json_extract_path_text(Properties, 'Provider') as provider, + json_extract_path_text(Properties, 'Version') as version + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodePipeline::CustomActionType' + AND region = 'us-east-1' + custom_action_type_tags: + name: custom_action_type_tags + id: aws.codepipeline.custom_action_type_tags + x-cfn-schema-name: CustomActionType + x-cfn-type-name: AWS::CodePipeline::CustomActionType + 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, '$.Category') as category, + JSON_EXTRACT(detail.Properties, '$.ConfigurationProperties') as configuration_properties, + JSON_EXTRACT(detail.Properties, '$.InputArtifactDetails') as input_artifact_details, + JSON_EXTRACT(detail.Properties, '$.OutputArtifactDetails') as output_artifact_details, + JSON_EXTRACT(detail.Properties, '$.Provider') as provider, + JSON_EXTRACT(detail.Properties, '$.Settings') as settings, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::CodePipeline::CustomActionType' + AND detail.data__TypeName = 'AWS::CodePipeline::CustomActionType' + 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, 'Category') as category, + json_extract_path_text(detail.Properties, 'ConfigurationProperties') as configuration_properties, + json_extract_path_text(detail.Properties, 'InputArtifactDetails') as input_artifact_details, + json_extract_path_text(detail.Properties, 'OutputArtifactDetails') as output_artifact_details, + json_extract_path_text(detail.Properties, 'Provider') as provider, + json_extract_path_text(detail.Properties, 'Settings') as settings, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Id') as id + 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::CodePipeline::CustomActionType' + AND detail.data__TypeName = 'AWS::CodePipeline::CustomActionType' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codestarconnections.yaml b/providers/src/aws/v00.00.00000/services/codestarconnections.yaml index bc5254e0..bb47e15d 100644 --- a/providers/src/aws/v00.00.00000/services/codestarconnections.yaml +++ b/providers/src/aws/v00.00.00000/services/codestarconnections.yaml @@ -934,10 +934,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectionArn') as connection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::Connection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectionName') as connection_name, + JSON_EXTRACT(detail.Properties, '$.ConnectionStatus') as connection_status, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.ProviderType') as provider_type, + JSON_EXTRACT(detail.Properties, '$.HostArn') as host_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CodeStarConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeStarConnections::Connection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -958,10 +969,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectionArn') as connection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::Connection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'ConnectionName') as connection_name, + json_extract_path_text(detail.Properties, 'ConnectionStatus') as connection_status, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'ProviderType') as provider_type, + json_extract_path_text(detail.Properties, 'HostArn') as host_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CodeStarConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeStarConnections::Connection' + AND listing.region = 'us-east-1' + connections_list_only: + name: connections_list_only + id: aws.codestarconnections.connections_list_only + x-cfn-schema-name: Connection + x-cfn-type-name: AWS::CodeStarConnections::Connection + x-identifiers: + - ConnectionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectionArn') as connection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::Connection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectionArn') as connection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::Connection' + AND region = 'us-east-1' + connection_tags: + name: connection_tags + id: aws.codestarconnections.connection_tags + x-cfn-schema-name: Connection + x-cfn-type-name: AWS::CodeStarConnections::Connection + 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, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectionName') as connection_name, + JSON_EXTRACT(detail.Properties, '$.ConnectionStatus') as connection_status, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.ProviderType') as provider_type, + JSON_EXTRACT(detail.Properties, '$.HostArn') as host_arn + 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::CodeStarConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeStarConnections::Connection' + 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, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'ConnectionName') as connection_name, + json_extract_path_text(detail.Properties, 'ConnectionStatus') as connection_status, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'ProviderType') as provider_type, + json_extract_path_text(detail.Properties, 'HostArn') as host_arn + 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::CodeStarConnections::Connection' + AND detail.data__TypeName = 'AWS::CodeStarConnections::Connection' + AND listing.region = 'us-east-1' repository_links: name: repository_links id: aws.codestarconnections.repository_links @@ -1040,10 +1148,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RepositoryLinkArn') as repository_link_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.ProviderType') as provider_type, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKeyArn') as encryption_key_arn, + JSON_EXTRACT(detail.Properties, '$.RepositoryLinkId') as repository_link_id, + JSON_EXTRACT(detail.Properties, '$.RepositoryLinkArn') as repository_link_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CodeStarConnections::RepositoryLink' + AND detail.data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1065,10 +1185,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RepositoryLinkArn') as repository_link_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'ProviderType') as provider_type, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'EncryptionKeyArn') as encryption_key_arn, + json_extract_path_text(detail.Properties, 'RepositoryLinkId') as repository_link_id, + json_extract_path_text(detail.Properties, 'RepositoryLinkArn') as repository_link_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CodeStarConnections::RepositoryLink' + AND detail.data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' + AND listing.region = 'us-east-1' + repository_links_list_only: + name: repository_links_list_only + id: aws.codestarconnections.repository_links_list_only + x-cfn-schema-name: RepositoryLink + x-cfn-type-name: AWS::CodeStarConnections::RepositoryLink + x-identifiers: + - RepositoryLinkArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RepositoryLinkArn') as repository_link_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RepositoryLinkArn') as repository_link_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' + AND region = 'us-east-1' + repository_link_tags: + name: repository_link_tags + id: aws.codestarconnections.repository_link_tags + x-cfn-schema-name: RepositoryLink + x-cfn-type-name: AWS::CodeStarConnections::RepositoryLink + 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, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.ProviderType') as provider_type, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKeyArn') as encryption_key_arn, + JSON_EXTRACT(detail.Properties, '$.RepositoryLinkId') as repository_link_id, + JSON_EXTRACT(detail.Properties, '$.RepositoryLinkArn') as repository_link_arn + 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::CodeStarConnections::RepositoryLink' + AND detail.data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' + 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, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'ProviderType') as provider_type, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'EncryptionKeyArn') as encryption_key_arn, + json_extract_path_text(detail.Properties, 'RepositoryLinkId') as repository_link_id, + json_extract_path_text(detail.Properties, 'RepositoryLinkArn') as repository_link_arn + 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::CodeStarConnections::RepositoryLink' + AND detail.data__TypeName = 'AWS::CodeStarConnections::RepositoryLink' + AND listing.region = 'us-east-1' sync_configurations: name: sync_configurations id: aws.codestarconnections.sync_configurations @@ -1151,11 +1371,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResourceName') as resource_name, - JSON_EXTRACT(Properties, '$.SyncType') as sync_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::SyncConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.ResourceName') as resource_name, + JSON_EXTRACT(detail.Properties, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.ProviderType') as provider_type, + JSON_EXTRACT(detail.Properties, '$.Branch') as branch, + JSON_EXTRACT(detail.Properties, '$.ConfigFile') as config_file, + JSON_EXTRACT(detail.Properties, '$.SyncType') as sync_type, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.PublishDeploymentStatus') as publish_deployment_status, + JSON_EXTRACT(detail.Properties, '$.TriggerResourceUpdateOn') as trigger_resource_update_on, + JSON_EXTRACT(detail.Properties, '$.RepositoryLinkId') as repository_link_id + 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::CodeStarConnections::SyncConfiguration' + AND detail.data__TypeName = 'AWS::CodeStarConnections::SyncConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1180,11 +1414,59 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResourceName') as resource_name, - json_extract_path_text(Properties, 'SyncType') as sync_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::SyncConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'ResourceName') as resource_name, + json_extract_path_text(detail.Properties, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'ProviderType') as provider_type, + json_extract_path_text(detail.Properties, 'Branch') as branch, + json_extract_path_text(detail.Properties, 'ConfigFile') as config_file, + json_extract_path_text(detail.Properties, 'SyncType') as sync_type, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'PublishDeploymentStatus') as publish_deployment_status, + json_extract_path_text(detail.Properties, 'TriggerResourceUpdateOn') as trigger_resource_update_on, + json_extract_path_text(detail.Properties, 'RepositoryLinkId') as repository_link_id + 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::CodeStarConnections::SyncConfiguration' + AND detail.data__TypeName = 'AWS::CodeStarConnections::SyncConfiguration' + AND listing.region = 'us-east-1' + sync_configurations_list_only: + name: sync_configurations_list_only + id: aws.codestarconnections.sync_configurations_list_only + x-cfn-schema-name: SyncConfiguration + x-cfn-type-name: AWS::CodeStarConnections::SyncConfiguration + x-identifiers: + - ResourceName + - SyncType + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResourceName') as resource_name, + JSON_EXTRACT(Properties, '$.SyncType') as sync_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::SyncConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResourceName') as resource_name, + json_extract_path_text(Properties, 'SyncType') as sync_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarConnections::SyncConfiguration' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/codestarnotifications.yaml b/providers/src/aws/v00.00.00000/services/codestarnotifications.yaml index 24061297..d5aa3312 100644 --- a/providers/src/aws/v00.00.00000/services/codestarnotifications.yaml +++ b/providers/src/aws/v00.00.00000/services/codestarnotifications.yaml @@ -647,10 +647,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CodeStarNotifications::NotificationRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EventTypeId') as event_type_id, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.TargetAddress') as target_address, + JSON_EXTRACT(detail.Properties, '$.EventTypeIds') as event_type_ids, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DetailType') as detail_type, + JSON_EXTRACT(detail.Properties, '$.Resource') as resource, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeStarNotifications::NotificationRule' + AND detail.data__TypeName = 'AWS::CodeStarNotifications::NotificationRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -675,10 +690,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::CodeStarNotifications::NotificationRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EventTypeId') as event_type_id, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'TargetAddress') as target_address, + json_extract_path_text(detail.Properties, 'EventTypeIds') as event_type_ids, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DetailType') as detail_type, + json_extract_path_text(detail.Properties, 'Resource') as resource, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeStarNotifications::NotificationRule' + AND detail.data__TypeName = 'AWS::CodeStarNotifications::NotificationRule' + AND listing.region = 'us-east-1' + notification_rules_list_only: + name: notification_rules_list_only + id: aws.codestarnotifications.notification_rules_list_only + x-cfn-schema-name: NotificationRule + x-cfn-type-name: AWS::CodeStarNotifications::NotificationRule + 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::CodeStarNotifications::NotificationRule' + 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::CodeStarNotifications::NotificationRule' + AND region = 'us-east-1' + notification_rule_tags: + name: notification_rule_tags + id: aws.codestarnotifications.notification_rule_tags + x-cfn-schema-name: NotificationRule + x-cfn-type-name: AWS::CodeStarNotifications::NotificationRule + 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, '$.EventTypeId') as event_type_id, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.TargetAddress') as target_address, + JSON_EXTRACT(detail.Properties, '$.EventTypeIds') as event_type_ids, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DetailType') as detail_type, + JSON_EXTRACT(detail.Properties, '$.Resource') as resource, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::CodeStarNotifications::NotificationRule' + AND detail.data__TypeName = 'AWS::CodeStarNotifications::NotificationRule' + 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, 'EventTypeId') as event_type_id, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'TargetAddress') as target_address, + json_extract_path_text(detail.Properties, 'EventTypeIds') as event_type_ids, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DetailType') as detail_type, + json_extract_path_text(detail.Properties, 'Resource') as resource, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::CodeStarNotifications::NotificationRule' + AND detail.data__TypeName = 'AWS::CodeStarNotifications::NotificationRule' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cognito.yaml b/providers/src/aws/v00.00.00000/services/cognito.yaml index 091cf9e0..e58ba488 100644 --- a/providers/src/aws/v00.00.00000/services/cognito.yaml +++ b/providers/src/aws/v00.00.00000/services/cognito.yaml @@ -2060,10 +2060,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPool' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PushSync') as push_sync, + JSON_EXTRACT(detail.Properties, '$.CognitoIdentityProviders') as cognito_identity_providers, + JSON_EXTRACT(detail.Properties, '$.DeveloperProviderName') as developer_provider_name, + JSON_EXTRACT(detail.Properties, '$.CognitoStreams') as cognito_streams, + JSON_EXTRACT(detail.Properties, '$.SupportedLoginProviders') as supported_login_providers, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CognitoEvents') as cognito_events, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.IdentityPoolName') as identity_pool_name, + JSON_EXTRACT(detail.Properties, '$.AllowUnauthenticatedIdentities') as allow_unauthenticated_identities, + JSON_EXTRACT(detail.Properties, '$.SamlProviderARNs') as saml_provider_arns, + JSON_EXTRACT(detail.Properties, '$.OpenIdConnectProviderARNs') as open_id_connect_provider_arns, + JSON_EXTRACT(detail.Properties, '$.AllowClassicFlow') as allow_classic_flow + 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::Cognito::IdentityPool' + AND detail.data__TypeName = 'AWS::Cognito::IdentityPool' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2090,10 +2107,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPool' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PushSync') as push_sync, + json_extract_path_text(detail.Properties, 'CognitoIdentityProviders') as cognito_identity_providers, + json_extract_path_text(detail.Properties, 'DeveloperProviderName') as developer_provider_name, + json_extract_path_text(detail.Properties, 'CognitoStreams') as cognito_streams, + json_extract_path_text(detail.Properties, 'SupportedLoginProviders') as supported_login_providers, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CognitoEvents') as cognito_events, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'IdentityPoolName') as identity_pool_name, + json_extract_path_text(detail.Properties, 'AllowUnauthenticatedIdentities') as allow_unauthenticated_identities, + json_extract_path_text(detail.Properties, 'SamlProviderARNs') as saml_provider_arns, + json_extract_path_text(detail.Properties, 'OpenIdConnectProviderARNs') as open_id_connect_provider_arns, + json_extract_path_text(detail.Properties, 'AllowClassicFlow') as allow_classic_flow + 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::Cognito::IdentityPool' + AND detail.data__TypeName = 'AWS::Cognito::IdentityPool' + AND listing.region = 'us-east-1' + identity_pools_list_only: + name: identity_pools_list_only + id: aws.cognito.identity_pools_list_only + x-cfn-schema-name: IdentityPool + x-cfn-type-name: AWS::Cognito::IdentityPool + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPool' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPool' + AND region = 'us-east-1' identity_pool_principal_tags: name: identity_pool_principal_tags id: aws.cognito.identity_pool_principal_tags @@ -2169,11 +2234,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IdentityPoolId') as identity_pool_id, - JSON_EXTRACT(Properties, '$.IdentityProviderName') as identity_provider_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolPrincipalTag' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IdentityPoolId') as identity_pool_id, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderName') as identity_provider_name, + JSON_EXTRACT(detail.Properties, '$.UseDefaults') as use_defaults, + JSON_EXTRACT(detail.Properties, '$.PrincipalTags') as principal_tags + 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::Cognito::IdentityPoolPrincipalTag' + AND detail.data__TypeName = 'AWS::Cognito::IdentityPoolPrincipalTag' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2191,11 +2263,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IdentityPoolId') as identity_pool_id, - json_extract_path_text(Properties, 'IdentityProviderName') as identity_provider_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolPrincipalTag' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IdentityPoolId') as identity_pool_id, + json_extract_path_text(detail.Properties, 'IdentityProviderName') as identity_provider_name, + json_extract_path_text(detail.Properties, 'UseDefaults') as use_defaults, + json_extract_path_text(detail.Properties, 'PrincipalTags') as principal_tags + 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::Cognito::IdentityPoolPrincipalTag' + AND detail.data__TypeName = 'AWS::Cognito::IdentityPoolPrincipalTag' + AND listing.region = 'us-east-1' + identity_pool_principal_tags_list_only: + name: identity_pool_principal_tags_list_only + id: aws.cognito.identity_pool_principal_tags_list_only + x-cfn-schema-name: IdentityPoolPrincipalTag + x-cfn-type-name: AWS::Cognito::IdentityPoolPrincipalTag + x-identifiers: + - IdentityPoolId + - IdentityProviderName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IdentityPoolId') as identity_pool_id, + JSON_EXTRACT(Properties, '$.IdentityProviderName') as identity_provider_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolPrincipalTag' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IdentityPoolId') as identity_pool_id, + json_extract_path_text(Properties, 'IdentityProviderName') as identity_provider_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolPrincipalTag' + AND region = 'us-east-1' identity_pool_role_attachments: name: identity_pool_role_attachments id: aws.cognito.identity_pool_role_attachments @@ -2270,10 +2383,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolRoleAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IdentityPoolId') as identity_pool_id, + JSON_EXTRACT(detail.Properties, '$.Roles') as roles, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.RoleMappings') as role_mappings + 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::Cognito::IdentityPoolRoleAttachment' + AND detail.data__TypeName = 'AWS::Cognito::IdentityPoolRoleAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2291,10 +2412,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolRoleAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IdentityPoolId') as identity_pool_id, + json_extract_path_text(detail.Properties, 'Roles') as roles, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'RoleMappings') as role_mappings + 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::Cognito::IdentityPoolRoleAttachment' + AND detail.data__TypeName = 'AWS::Cognito::IdentityPoolRoleAttachment' + AND listing.region = 'us-east-1' + identity_pool_role_attachments_list_only: + name: identity_pool_role_attachments_list_only + id: aws.cognito.identity_pool_role_attachments_list_only + x-cfn-schema-name: IdentityPoolRoleAttachment + x-cfn-type-name: AWS::Cognito::IdentityPoolRoleAttachment + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolRoleAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::IdentityPoolRoleAttachment' + AND region = 'us-east-1' log_delivery_configurations: name: log_delivery_configurations id: aws.cognito.log_delivery_configurations @@ -2474,10 +2634,42 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPool' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.UserPoolName') as user_pool_name, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies, + JSON_EXTRACT(detail.Properties, '$.AccountRecoverySetting') as account_recovery_setting, + JSON_EXTRACT(detail.Properties, '$.AdminCreateUserConfig') as admin_create_user_config, + JSON_EXTRACT(detail.Properties, '$.AliasAttributes') as alias_attributes, + JSON_EXTRACT(detail.Properties, '$.UsernameAttributes') as username_attributes, + JSON_EXTRACT(detail.Properties, '$.AutoVerifiedAttributes') as auto_verified_attributes, + JSON_EXTRACT(detail.Properties, '$.DeviceConfiguration') as device_configuration, + JSON_EXTRACT(detail.Properties, '$.EmailConfiguration') as email_configuration, + JSON_EXTRACT(detail.Properties, '$.EmailVerificationMessage') as email_verification_message, + JSON_EXTRACT(detail.Properties, '$.EmailVerificationSubject') as email_verification_subject, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.LambdaConfig') as lambda_config, + JSON_EXTRACT(detail.Properties, '$.MfaConfiguration') as mfa_configuration, + JSON_EXTRACT(detail.Properties, '$.EnabledMfas') as enabled_mfas, + JSON_EXTRACT(detail.Properties, '$.SmsAuthenticationMessage') as sms_authentication_message, + JSON_EXTRACT(detail.Properties, '$.SmsConfiguration') as sms_configuration, + JSON_EXTRACT(detail.Properties, '$.SmsVerificationMessage') as sms_verification_message, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.UsernameConfiguration') as username_configuration, + JSON_EXTRACT(detail.Properties, '$.UserAttributeUpdateSettings') as user_attribute_update_settings, + JSON_EXTRACT(detail.Properties, '$.UserPoolTags') as user_pool_tags, + JSON_EXTRACT(detail.Properties, '$.VerificationMessageTemplate') as verification_message_template, + JSON_EXTRACT(detail.Properties, '$.UserPoolAddOns') as user_pool_add_ons, + JSON_EXTRACT(detail.Properties, '$.ProviderName') as provider_name, + JSON_EXTRACT(detail.Properties, '$.ProviderURL') as provider_url, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.UserPoolId') as user_pool_id + 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::Cognito::UserPool' + AND detail.data__TypeName = 'AWS::Cognito::UserPool' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2519,10 +2711,73 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserPoolId') as user_pool_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPool' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'UserPoolName') as user_pool_name, + json_extract_path_text(detail.Properties, 'Policies') as policies, + json_extract_path_text(detail.Properties, 'AccountRecoverySetting') as account_recovery_setting, + json_extract_path_text(detail.Properties, 'AdminCreateUserConfig') as admin_create_user_config, + json_extract_path_text(detail.Properties, 'AliasAttributes') as alias_attributes, + json_extract_path_text(detail.Properties, 'UsernameAttributes') as username_attributes, + json_extract_path_text(detail.Properties, 'AutoVerifiedAttributes') as auto_verified_attributes, + json_extract_path_text(detail.Properties, 'DeviceConfiguration') as device_configuration, + json_extract_path_text(detail.Properties, 'EmailConfiguration') as email_configuration, + json_extract_path_text(detail.Properties, 'EmailVerificationMessage') as email_verification_message, + json_extract_path_text(detail.Properties, 'EmailVerificationSubject') as email_verification_subject, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'LambdaConfig') as lambda_config, + json_extract_path_text(detail.Properties, 'MfaConfiguration') as mfa_configuration, + json_extract_path_text(detail.Properties, 'EnabledMfas') as enabled_mfas, + json_extract_path_text(detail.Properties, 'SmsAuthenticationMessage') as sms_authentication_message, + json_extract_path_text(detail.Properties, 'SmsConfiguration') as sms_configuration, + json_extract_path_text(detail.Properties, 'SmsVerificationMessage') as sms_verification_message, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'UsernameConfiguration') as username_configuration, + json_extract_path_text(detail.Properties, 'UserAttributeUpdateSettings') as user_attribute_update_settings, + json_extract_path_text(detail.Properties, 'UserPoolTags') as user_pool_tags, + json_extract_path_text(detail.Properties, 'VerificationMessageTemplate') as verification_message_template, + json_extract_path_text(detail.Properties, 'UserPoolAddOns') as user_pool_add_ons, + json_extract_path_text(detail.Properties, 'ProviderName') as provider_name, + json_extract_path_text(detail.Properties, 'ProviderURL') as provider_url, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'UserPoolId') as user_pool_id + 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::Cognito::UserPool' + AND detail.data__TypeName = 'AWS::Cognito::UserPool' + AND listing.region = 'us-east-1' + user_pools_list_only: + name: user_pools_list_only + id: aws.cognito.user_pools_list_only + x-cfn-schema-name: UserPool + x-cfn-type-name: AWS::Cognito::UserPool + x-identifiers: + - UserPoolId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPool' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserPoolId') as user_pool_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPool' + AND region = 'us-east-1' user_pool_clients: name: user_pool_clients id: aws.cognito.user_pool_clients @@ -2619,11 +2874,39 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id, - JSON_EXTRACT(Properties, '$.ClientId') as client_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolClient' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClientName') as client_name, + JSON_EXTRACT(detail.Properties, '$.ExplicitAuthFlows') as explicit_auth_flows, + JSON_EXTRACT(detail.Properties, '$.GenerateSecret') as generate_secret, + JSON_EXTRACT(detail.Properties, '$.ReadAttributes') as read_attributes, + JSON_EXTRACT(detail.Properties, '$.AuthSessionValidity') as auth_session_validity, + JSON_EXTRACT(detail.Properties, '$.RefreshTokenValidity') as refresh_token_validity, + JSON_EXTRACT(detail.Properties, '$.AccessTokenValidity') as access_token_validity, + JSON_EXTRACT(detail.Properties, '$.IdTokenValidity') as id_token_validity, + JSON_EXTRACT(detail.Properties, '$.TokenValidityUnits') as token_validity_units, + JSON_EXTRACT(detail.Properties, '$.UserPoolId') as user_pool_id, + JSON_EXTRACT(detail.Properties, '$.WriteAttributes') as write_attributes, + JSON_EXTRACT(detail.Properties, '$.AllowedOAuthFlows') as allowed_oauth_flows, + JSON_EXTRACT(detail.Properties, '$.AllowedOAuthFlowsUserPoolClient') as allowed_oauth_flows_user_pool_client, + JSON_EXTRACT(detail.Properties, '$.AllowedOAuthScopes') as allowed_oauth_scopes, + JSON_EXTRACT(detail.Properties, '$.CallbackURLs') as callback_urls, + JSON_EXTRACT(detail.Properties, '$.DefaultRedirectURI') as default_redirect_uri, + JSON_EXTRACT(detail.Properties, '$.LogoutURLs') as logout_urls, + JSON_EXTRACT(detail.Properties, '$.SupportedIdentityProviders') as supported_identity_providers, + JSON_EXTRACT(detail.Properties, '$.AnalyticsConfiguration') as analytics_configuration, + JSON_EXTRACT(detail.Properties, '$.PreventUserExistenceErrors') as prevent_user_existence_errors, + JSON_EXTRACT(detail.Properties, '$.EnableTokenRevocation') as enable_token_revocation, + JSON_EXTRACT(detail.Properties, '$.EnablePropagateAdditionalUserContextData') as enable_propagate_additional_user_context_data, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ClientSecret') as client_secret, + JSON_EXTRACT(detail.Properties, '$.ClientId') as client_id + 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::Cognito::UserPoolClient' + AND detail.data__TypeName = 'AWS::Cognito::UserPoolClient' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2662,11 +2945,73 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserPoolId') as user_pool_id, - json_extract_path_text(Properties, 'ClientId') as client_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolClient' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClientName') as client_name, + json_extract_path_text(detail.Properties, 'ExplicitAuthFlows') as explicit_auth_flows, + json_extract_path_text(detail.Properties, 'GenerateSecret') as generate_secret, + json_extract_path_text(detail.Properties, 'ReadAttributes') as read_attributes, + json_extract_path_text(detail.Properties, 'AuthSessionValidity') as auth_session_validity, + json_extract_path_text(detail.Properties, 'RefreshTokenValidity') as refresh_token_validity, + json_extract_path_text(detail.Properties, 'AccessTokenValidity') as access_token_validity, + json_extract_path_text(detail.Properties, 'IdTokenValidity') as id_token_validity, + json_extract_path_text(detail.Properties, 'TokenValidityUnits') as token_validity_units, + json_extract_path_text(detail.Properties, 'UserPoolId') as user_pool_id, + json_extract_path_text(detail.Properties, 'WriteAttributes') as write_attributes, + json_extract_path_text(detail.Properties, 'AllowedOAuthFlows') as allowed_oauth_flows, + json_extract_path_text(detail.Properties, 'AllowedOAuthFlowsUserPoolClient') as allowed_oauth_flows_user_pool_client, + json_extract_path_text(detail.Properties, 'AllowedOAuthScopes') as allowed_oauth_scopes, + json_extract_path_text(detail.Properties, 'CallbackURLs') as callback_urls, + json_extract_path_text(detail.Properties, 'DefaultRedirectURI') as default_redirect_uri, + json_extract_path_text(detail.Properties, 'LogoutURLs') as logout_urls, + json_extract_path_text(detail.Properties, 'SupportedIdentityProviders') as supported_identity_providers, + json_extract_path_text(detail.Properties, 'AnalyticsConfiguration') as analytics_configuration, + json_extract_path_text(detail.Properties, 'PreventUserExistenceErrors') as prevent_user_existence_errors, + json_extract_path_text(detail.Properties, 'EnableTokenRevocation') as enable_token_revocation, + json_extract_path_text(detail.Properties, 'EnablePropagateAdditionalUserContextData') as enable_propagate_additional_user_context_data, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ClientSecret') as client_secret, + json_extract_path_text(detail.Properties, 'ClientId') as client_id + 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::Cognito::UserPoolClient' + AND detail.data__TypeName = 'AWS::Cognito::UserPoolClient' + AND listing.region = 'us-east-1' + user_pool_clients_list_only: + name: user_pool_clients_list_only + id: aws.cognito.user_pool_clients_list_only + x-cfn-schema-name: UserPoolClient + x-cfn-type-name: AWS::Cognito::UserPoolClient + x-identifiers: + - UserPoolId + - ClientId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id, + JSON_EXTRACT(Properties, '$.ClientId') as client_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolClient' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserPoolId') as user_pool_id, + json_extract_path_text(Properties, 'ClientId') as client_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolClient' + AND region = 'us-east-1' user_pool_groups: name: user_pool_groups id: aws.cognito.user_pool_groups @@ -2743,11 +3088,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id, - JSON_EXTRACT(Properties, '$.GroupName') as group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.Precedence') as precedence, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.UserPoolId') as user_pool_id + 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::Cognito::UserPoolGroup' + AND detail.data__TypeName = 'AWS::Cognito::UserPoolGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2766,11 +3119,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserPoolId') as user_pool_id, - json_extract_path_text(Properties, 'GroupName') as group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'Precedence') as precedence, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'UserPoolId') as user_pool_id + 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::Cognito::UserPoolGroup' + AND detail.data__TypeName = 'AWS::Cognito::UserPoolGroup' + AND listing.region = 'us-east-1' + user_pool_groups_list_only: + name: user_pool_groups_list_only + id: aws.cognito.user_pool_groups_list_only + x-cfn-schema-name: UserPoolGroup + x-cfn-type-name: AWS::Cognito::UserPoolGroup + x-identifiers: + - UserPoolId + - GroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id, + JSON_EXTRACT(Properties, '$.GroupName') as group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserPoolId') as user_pool_id, + json_extract_path_text(Properties, 'GroupName') as group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolGroup' + AND region = 'us-east-1' user_pool_risk_configuration_attachments: name: user_pool_risk_configuration_attachments id: aws.cognito.user_pool_risk_configuration_attachments @@ -2923,11 +3318,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id, - JSON_EXTRACT(Properties, '$.Username') as username - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolUser' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DesiredDeliveryMediums') as desired_delivery_mediums, + JSON_EXTRACT(detail.Properties, '$.ForceAliasCreation') as force_alias_creation, + JSON_EXTRACT(detail.Properties, '$.UserAttributes') as user_attributes, + JSON_EXTRACT(detail.Properties, '$.MessageAction') as message_action, + JSON_EXTRACT(detail.Properties, '$.Username') as username, + JSON_EXTRACT(detail.Properties, '$.UserPoolId') as user_pool_id, + JSON_EXTRACT(detail.Properties, '$.ValidationData') as validation_data, + JSON_EXTRACT(detail.Properties, '$.ClientMetadata') as client_metadata + 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::Cognito::UserPoolUser' + AND detail.data__TypeName = 'AWS::Cognito::UserPoolUser' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2949,11 +3355,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserPoolId') as user_pool_id, - json_extract_path_text(Properties, 'Username') as username - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolUser' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DesiredDeliveryMediums') as desired_delivery_mediums, + json_extract_path_text(detail.Properties, 'ForceAliasCreation') as force_alias_creation, + json_extract_path_text(detail.Properties, 'UserAttributes') as user_attributes, + json_extract_path_text(detail.Properties, 'MessageAction') as message_action, + json_extract_path_text(detail.Properties, 'Username') as username, + json_extract_path_text(detail.Properties, 'UserPoolId') as user_pool_id, + json_extract_path_text(detail.Properties, 'ValidationData') as validation_data, + json_extract_path_text(detail.Properties, 'ClientMetadata') as client_metadata + 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::Cognito::UserPoolUser' + AND detail.data__TypeName = 'AWS::Cognito::UserPoolUser' + AND listing.region = 'us-east-1' + user_pool_users_list_only: + name: user_pool_users_list_only + id: aws.cognito.user_pool_users_list_only + x-cfn-schema-name: UserPoolUser + x-cfn-type-name: AWS::Cognito::UserPoolUser + x-identifiers: + - UserPoolId + - Username + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserPoolId') as user_pool_id, + JSON_EXTRACT(Properties, '$.Username') as username + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolUser' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserPoolId') as user_pool_id, + json_extract_path_text(Properties, 'Username') as username + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Cognito::UserPoolUser' + AND region = 'us-east-1' user_pool_user_to_group_attachments: name: user_pool_user_to_group_attachments id: aws.cognito.user_pool_user_to_group_attachments diff --git a/providers/src/aws/v00.00.00000/services/comprehend.yaml b/providers/src/aws/v00.00.00000/services/comprehend.yaml index b52ff336..91314199 100644 --- a/providers/src/aws/v00.00.00000/services/comprehend.yaml +++ b/providers/src/aws/v00.00.00000/services/comprehend.yaml @@ -1038,10 +1038,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Comprehend::DocumentClassifier' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DataAccessRoleArn') as data_access_role_arn, + JSON_EXTRACT(detail.Properties, '$.InputDataConfig') as input_data_config, + JSON_EXTRACT(detail.Properties, '$.OutputDataConfig') as output_data_config, + JSON_EXTRACT(detail.Properties, '$.LanguageCode') as language_code, + JSON_EXTRACT(detail.Properties, '$.ModelKmsKeyId') as model_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.ModelPolicy') as model_policy, + JSON_EXTRACT(detail.Properties, '$.DocumentClassifierName') as document_classifier_name, + JSON_EXTRACT(detail.Properties, '$.Mode') as mode, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VersionName') as version_name, + JSON_EXTRACT(detail.Properties, '$.VolumeKmsKeyId') as volume_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Comprehend::DocumentClassifier' + AND detail.data__TypeName = 'AWS::Comprehend::DocumentClassifier' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1068,10 +1085,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Comprehend::DocumentClassifier' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DataAccessRoleArn') as data_access_role_arn, + json_extract_path_text(detail.Properties, 'InputDataConfig') as input_data_config, + json_extract_path_text(detail.Properties, 'OutputDataConfig') as output_data_config, + json_extract_path_text(detail.Properties, 'LanguageCode') as language_code, + json_extract_path_text(detail.Properties, 'ModelKmsKeyId') as model_kms_key_id, + json_extract_path_text(detail.Properties, 'ModelPolicy') as model_policy, + json_extract_path_text(detail.Properties, 'DocumentClassifierName') as document_classifier_name, + json_extract_path_text(detail.Properties, 'Mode') as mode, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VersionName') as version_name, + json_extract_path_text(detail.Properties, 'VolumeKmsKeyId') as volume_kms_key_id, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Comprehend::DocumentClassifier' + AND detail.data__TypeName = 'AWS::Comprehend::DocumentClassifier' + AND listing.region = 'us-east-1' + document_classifiers_list_only: + name: document_classifiers_list_only + id: aws.comprehend.document_classifiers_list_only + x-cfn-schema-name: DocumentClassifier + x-cfn-type-name: AWS::Comprehend::DocumentClassifier + 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::Comprehend::DocumentClassifier' + 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::Comprehend::DocumentClassifier' + AND region = 'us-east-1' + document_classifier_tags: + name: document_classifier_tags + id: aws.comprehend.document_classifier_tags + x-cfn-schema-name: DocumentClassifier + x-cfn-type-name: AWS::Comprehend::DocumentClassifier + 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, '$.DataAccessRoleArn') as data_access_role_arn, + JSON_EXTRACT(detail.Properties, '$.InputDataConfig') as input_data_config, + JSON_EXTRACT(detail.Properties, '$.OutputDataConfig') as output_data_config, + JSON_EXTRACT(detail.Properties, '$.LanguageCode') as language_code, + JSON_EXTRACT(detail.Properties, '$.ModelKmsKeyId') as model_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.ModelPolicy') as model_policy, + JSON_EXTRACT(detail.Properties, '$.DocumentClassifierName') as document_classifier_name, + JSON_EXTRACT(detail.Properties, '$.Mode') as mode, + JSON_EXTRACT(detail.Properties, '$.VersionName') as version_name, + JSON_EXTRACT(detail.Properties, '$.VolumeKmsKeyId') as volume_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Comprehend::DocumentClassifier' + AND detail.data__TypeName = 'AWS::Comprehend::DocumentClassifier' + 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, 'DataAccessRoleArn') as data_access_role_arn, + json_extract_path_text(detail.Properties, 'InputDataConfig') as input_data_config, + json_extract_path_text(detail.Properties, 'OutputDataConfig') as output_data_config, + json_extract_path_text(detail.Properties, 'LanguageCode') as language_code, + json_extract_path_text(detail.Properties, 'ModelKmsKeyId') as model_kms_key_id, + json_extract_path_text(detail.Properties, 'ModelPolicy') as model_policy, + json_extract_path_text(detail.Properties, 'DocumentClassifierName') as document_classifier_name, + json_extract_path_text(detail.Properties, 'Mode') as mode, + json_extract_path_text(detail.Properties, 'VersionName') as version_name, + json_extract_path_text(detail.Properties, 'VolumeKmsKeyId') as volume_kms_key_id, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Comprehend::DocumentClassifier' + AND detail.data__TypeName = 'AWS::Comprehend::DocumentClassifier' + AND listing.region = 'us-east-1' flywheels: name: flywheels id: aws.comprehend.flywheels @@ -1151,10 +1283,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Comprehend::Flywheel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ActiveModelArn') as active_model_arn, + JSON_EXTRACT(detail.Properties, '$.DataAccessRoleArn') as data_access_role_arn, + JSON_EXTRACT(detail.Properties, '$.DataLakeS3Uri') as data_lake_s3_uri, + JSON_EXTRACT(detail.Properties, '$.DataSecurityConfig') as data_security_config, + JSON_EXTRACT(detail.Properties, '$.FlywheelName') as flywheel_name, + JSON_EXTRACT(detail.Properties, '$.ModelType') as model_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TaskConfig') as task_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Comprehend::Flywheel' + AND detail.data__TypeName = 'AWS::Comprehend::Flywheel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1177,10 +1322,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Comprehend::Flywheel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ActiveModelArn') as active_model_arn, + json_extract_path_text(detail.Properties, 'DataAccessRoleArn') as data_access_role_arn, + json_extract_path_text(detail.Properties, 'DataLakeS3Uri') as data_lake_s3_uri, + json_extract_path_text(detail.Properties, 'DataSecurityConfig') as data_security_config, + json_extract_path_text(detail.Properties, 'FlywheelName') as flywheel_name, + json_extract_path_text(detail.Properties, 'ModelType') as model_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TaskConfig') as task_config, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Comprehend::Flywheel' + AND detail.data__TypeName = 'AWS::Comprehend::Flywheel' + AND listing.region = 'us-east-1' + flywheels_list_only: + name: flywheels_list_only + id: aws.comprehend.flywheels_list_only + x-cfn-schema-name: Flywheel + x-cfn-type-name: AWS::Comprehend::Flywheel + 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::Comprehend::Flywheel' + 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::Comprehend::Flywheel' + AND region = 'us-east-1' + flywheel_tags: + name: flywheel_tags + id: aws.comprehend.flywheel_tags + x-cfn-schema-name: Flywheel + x-cfn-type-name: AWS::Comprehend::Flywheel + 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, '$.ActiveModelArn') as active_model_arn, + JSON_EXTRACT(detail.Properties, '$.DataAccessRoleArn') as data_access_role_arn, + JSON_EXTRACT(detail.Properties, '$.DataLakeS3Uri') as data_lake_s3_uri, + JSON_EXTRACT(detail.Properties, '$.DataSecurityConfig') as data_security_config, + JSON_EXTRACT(detail.Properties, '$.FlywheelName') as flywheel_name, + JSON_EXTRACT(detail.Properties, '$.ModelType') as model_type, + JSON_EXTRACT(detail.Properties, '$.TaskConfig') as task_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Comprehend::Flywheel' + AND detail.data__TypeName = 'AWS::Comprehend::Flywheel' + 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, 'ActiveModelArn') as active_model_arn, + json_extract_path_text(detail.Properties, 'DataAccessRoleArn') as data_access_role_arn, + json_extract_path_text(detail.Properties, 'DataLakeS3Uri') as data_lake_s3_uri, + json_extract_path_text(detail.Properties, 'DataSecurityConfig') as data_security_config, + json_extract_path_text(detail.Properties, 'FlywheelName') as flywheel_name, + json_extract_path_text(detail.Properties, 'ModelType') as model_type, + json_extract_path_text(detail.Properties, 'TaskConfig') as task_config, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Comprehend::Flywheel' + AND detail.data__TypeName = 'AWS::Comprehend::Flywheel' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/config.yaml b/providers/src/aws/v00.00.00000/services/config.yaml index be7537cf..09f5824f 100644 --- a/providers/src/aws/v00.00.00000/services/config.yaml +++ b/providers/src/aws/v00.00.00000/services/config.yaml @@ -1437,11 +1437,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AuthorizedAccountId') as authorized_account_id, - JSON_EXTRACT(Properties, '$.AuthorizedAwsRegion') as authorized_aws_region - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::AggregationAuthorization' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AuthorizedAccountId') as authorized_account_id, + JSON_EXTRACT(detail.Properties, '$.AuthorizedAwsRegion') as authorized_aws_region, + JSON_EXTRACT(detail.Properties, '$.AggregationAuthorizationArn') as aggregation_authorization_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Config::AggregationAuthorization' + AND detail.data__TypeName = 'AWS::Config::AggregationAuthorization' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1459,11 +1466,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AuthorizedAccountId') as authorized_account_id, - json_extract_path_text(Properties, 'AuthorizedAwsRegion') as authorized_aws_region - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::AggregationAuthorization' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AuthorizedAccountId') as authorized_account_id, + json_extract_path_text(detail.Properties, 'AuthorizedAwsRegion') as authorized_aws_region, + json_extract_path_text(detail.Properties, 'AggregationAuthorizationArn') as aggregation_authorization_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Config::AggregationAuthorization' + AND detail.data__TypeName = 'AWS::Config::AggregationAuthorization' + AND listing.region = 'us-east-1' + aggregation_authorizations_list_only: + name: aggregation_authorizations_list_only + id: aws.config.aggregation_authorizations_list_only + x-cfn-schema-name: AggregationAuthorization + x-cfn-type-name: AWS::Config::AggregationAuthorization + x-identifiers: + - AuthorizedAccountId + - AuthorizedAwsRegion + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AuthorizedAccountId') as authorized_account_id, + JSON_EXTRACT(Properties, '$.AuthorizedAwsRegion') as authorized_aws_region + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::AggregationAuthorization' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AuthorizedAccountId') as authorized_account_id, + json_extract_path_text(Properties, 'AuthorizedAwsRegion') as authorized_aws_region + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::AggregationAuthorization' + AND region = 'us-east-1' + aggregation_authorization_tags: + name: aggregation_authorization_tags + id: aws.config.aggregation_authorization_tags + x-cfn-schema-name: AggregationAuthorization + x-cfn-type-name: AWS::Config::AggregationAuthorization + 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, '$.AuthorizedAccountId') as authorized_account_id, + JSON_EXTRACT(detail.Properties, '$.AuthorizedAwsRegion') as authorized_aws_region, + JSON_EXTRACT(detail.Properties, '$.AggregationAuthorizationArn') as aggregation_authorization_arn + 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::Config::AggregationAuthorization' + AND detail.data__TypeName = 'AWS::Config::AggregationAuthorization' + 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, 'AuthorizedAccountId') as authorized_account_id, + json_extract_path_text(detail.Properties, 'AuthorizedAwsRegion') as authorized_aws_region, + json_extract_path_text(detail.Properties, 'AggregationAuthorizationArn') as aggregation_authorization_arn + 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::Config::AggregationAuthorization' + AND detail.data__TypeName = 'AWS::Config::AggregationAuthorization' + AND listing.region = 'us-east-1' config_rules: name: config_rules id: aws.config.config_rules @@ -1544,10 +1641,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConfigRuleName') as config_rule_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConfigRuleId') as config_rule_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.ConfigRuleName') as config_rule_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Compliance') as compliance, + JSON_EXTRACT(detail.Properties, '$.MaximumExecutionFrequency') as maximum_execution_frequency, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.InputParameters') as input_parameters, + JSON_EXTRACT(detail.Properties, '$.EvaluationModes') as evaluation_modes + 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::Config::ConfigRule' + AND detail.data__TypeName = 'AWS::Config::ConfigRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1571,10 +1682,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConfigRuleName') as config_rule_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConfigRuleId') as config_rule_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'ConfigRuleName') as config_rule_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Compliance') as compliance, + json_extract_path_text(detail.Properties, 'MaximumExecutionFrequency') as maximum_execution_frequency, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'InputParameters') as input_parameters, + json_extract_path_text(detail.Properties, 'EvaluationModes') as evaluation_modes + 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::Config::ConfigRule' + AND detail.data__TypeName = 'AWS::Config::ConfigRule' + AND listing.region = 'us-east-1' + config_rules_list_only: + name: config_rules_list_only + id: aws.config.config_rules_list_only + x-cfn-schema-name: ConfigRule + x-cfn-type-name: AWS::Config::ConfigRule + x-identifiers: + - ConfigRuleName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConfigRuleName') as config_rule_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConfigRuleName') as config_rule_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigRule' + AND region = 'us-east-1' configuration_aggregators: name: configuration_aggregators id: aws.config.configuration_aggregators @@ -1650,10 +1806,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConfigurationAggregatorName') as configuration_aggregator_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigurationAggregator' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountAggregationSources') as account_aggregation_sources, + JSON_EXTRACT(detail.Properties, '$.ConfigurationAggregatorName') as configuration_aggregator_name, + JSON_EXTRACT(detail.Properties, '$.ConfigurationAggregatorArn') as configuration_aggregator_arn, + JSON_EXTRACT(detail.Properties, '$.OrganizationAggregationSource') as organization_aggregation_source, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Config::ConfigurationAggregator' + AND detail.data__TypeName = 'AWS::Config::ConfigurationAggregator' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1672,10 +1837,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConfigurationAggregatorName') as configuration_aggregator_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigurationAggregator' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountAggregationSources') as account_aggregation_sources, + json_extract_path_text(detail.Properties, 'ConfigurationAggregatorName') as configuration_aggregator_name, + json_extract_path_text(detail.Properties, 'ConfigurationAggregatorArn') as configuration_aggregator_arn, + json_extract_path_text(detail.Properties, 'OrganizationAggregationSource') as organization_aggregation_source, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Config::ConfigurationAggregator' + AND detail.data__TypeName = 'AWS::Config::ConfigurationAggregator' + AND listing.region = 'us-east-1' + configuration_aggregators_list_only: + name: configuration_aggregators_list_only + id: aws.config.configuration_aggregators_list_only + x-cfn-schema-name: ConfigurationAggregator + x-cfn-type-name: AWS::Config::ConfigurationAggregator + x-identifiers: + - ConfigurationAggregatorName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConfigurationAggregatorName') as configuration_aggregator_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigurationAggregator' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConfigurationAggregatorName') as configuration_aggregator_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConfigurationAggregator' + AND region = 'us-east-1' + configuration_aggregator_tags: + name: configuration_aggregator_tags + id: aws.config.configuration_aggregator_tags + x-cfn-schema-name: ConfigurationAggregator + x-cfn-type-name: AWS::Config::ConfigurationAggregator + 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, '$.AccountAggregationSources') as account_aggregation_sources, + JSON_EXTRACT(detail.Properties, '$.ConfigurationAggregatorName') as configuration_aggregator_name, + JSON_EXTRACT(detail.Properties, '$.ConfigurationAggregatorArn') as configuration_aggregator_arn, + JSON_EXTRACT(detail.Properties, '$.OrganizationAggregationSource') as organization_aggregation_source + 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::Config::ConfigurationAggregator' + AND detail.data__TypeName = 'AWS::Config::ConfigurationAggregator' + 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, 'AccountAggregationSources') as account_aggregation_sources, + json_extract_path_text(detail.Properties, 'ConfigurationAggregatorName') as configuration_aggregator_name, + json_extract_path_text(detail.Properties, 'ConfigurationAggregatorArn') as configuration_aggregator_arn, + json_extract_path_text(detail.Properties, 'OrganizationAggregationSource') as organization_aggregation_source + 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::Config::ConfigurationAggregator' + AND detail.data__TypeName = 'AWS::Config::ConfigurationAggregator' + AND listing.region = 'us-east-1' conformance_packs: name: conformance_packs id: aws.config.conformance_packs @@ -1753,10 +2009,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConformancePackName') as conformance_pack_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConformancePack' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConformancePackName') as conformance_pack_name, + JSON_EXTRACT(detail.Properties, '$.DeliveryS3Bucket') as delivery_s3_bucket, + JSON_EXTRACT(detail.Properties, '$.DeliveryS3KeyPrefix') as delivery_s3_key_prefix, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.TemplateS3Uri') as template_s3_uri, + JSON_EXTRACT(detail.Properties, '$.TemplateSSMDocumentDetails') as template_ssm_document_details, + JSON_EXTRACT(detail.Properties, '$.ConformancePackInputParameters') as conformance_pack_input_parameters + 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::Config::ConformancePack' + AND detail.data__TypeName = 'AWS::Config::ConformancePack' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1777,10 +2044,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConformancePackName') as conformance_pack_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConformancePack' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConformancePackName') as conformance_pack_name, + json_extract_path_text(detail.Properties, 'DeliveryS3Bucket') as delivery_s3_bucket, + json_extract_path_text(detail.Properties, 'DeliveryS3KeyPrefix') as delivery_s3_key_prefix, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'TemplateS3Uri') as template_s3_uri, + json_extract_path_text(detail.Properties, 'TemplateSSMDocumentDetails') as template_ssm_document_details, + json_extract_path_text(detail.Properties, 'ConformancePackInputParameters') as conformance_pack_input_parameters + 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::Config::ConformancePack' + AND detail.data__TypeName = 'AWS::Config::ConformancePack' + AND listing.region = 'us-east-1' + conformance_packs_list_only: + name: conformance_packs_list_only + id: aws.config.conformance_packs_list_only + x-cfn-schema-name: ConformancePack + x-cfn-type-name: AWS::Config::ConformancePack + x-identifiers: + - ConformancePackName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConformancePackName') as conformance_pack_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConformancePack' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConformancePackName') as conformance_pack_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::ConformancePack' + AND region = 'us-east-1' organization_conformance_packs: name: organization_conformance_packs id: aws.config.organization_conformance_packs @@ -1858,10 +2167,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.OrganizationConformancePackName') as organization_conformance_pack_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::OrganizationConformancePack' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.OrganizationConformancePackName') as organization_conformance_pack_name, + JSON_EXTRACT(detail.Properties, '$.TemplateS3Uri') as template_s3_uri, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.DeliveryS3Bucket') as delivery_s3_bucket, + JSON_EXTRACT(detail.Properties, '$.DeliveryS3KeyPrefix') as delivery_s3_key_prefix, + JSON_EXTRACT(detail.Properties, '$.ConformancePackInputParameters') as conformance_pack_input_parameters, + JSON_EXTRACT(detail.Properties, '$.ExcludedAccounts') as excluded_accounts + 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::Config::OrganizationConformancePack' + AND detail.data__TypeName = 'AWS::Config::OrganizationConformancePack' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1882,10 +2202,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'OrganizationConformancePackName') as organization_conformance_pack_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::OrganizationConformancePack' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'OrganizationConformancePackName') as organization_conformance_pack_name, + json_extract_path_text(detail.Properties, 'TemplateS3Uri') as template_s3_uri, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'DeliveryS3Bucket') as delivery_s3_bucket, + json_extract_path_text(detail.Properties, 'DeliveryS3KeyPrefix') as delivery_s3_key_prefix, + json_extract_path_text(detail.Properties, 'ConformancePackInputParameters') as conformance_pack_input_parameters, + json_extract_path_text(detail.Properties, 'ExcludedAccounts') as excluded_accounts + 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::Config::OrganizationConformancePack' + AND detail.data__TypeName = 'AWS::Config::OrganizationConformancePack' + AND listing.region = 'us-east-1' + organization_conformance_packs_list_only: + name: organization_conformance_packs_list_only + id: aws.config.organization_conformance_packs_list_only + x-cfn-schema-name: OrganizationConformancePack + x-cfn-type-name: AWS::Config::OrganizationConformancePack + x-identifiers: + - OrganizationConformancePackName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.OrganizationConformancePackName') as organization_conformance_pack_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::OrganizationConformancePack' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'OrganizationConformancePackName') as organization_conformance_pack_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::OrganizationConformancePack' + AND region = 'us-east-1' stored_queries: name: stored_queries id: aws.config.stored_queries @@ -1962,10 +2324,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.QueryName') as query_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::StoredQuery' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.QueryArn') as query_arn, + JSON_EXTRACT(detail.Properties, '$.QueryId') as query_id, + JSON_EXTRACT(detail.Properties, '$.QueryName') as query_name, + JSON_EXTRACT(detail.Properties, '$.QueryDescription') as query_description, + JSON_EXTRACT(detail.Properties, '$.QueryExpression') as query_expression, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Config::StoredQuery' + AND detail.data__TypeName = 'AWS::Config::StoredQuery' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1985,10 +2357,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'QueryName') as query_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::StoredQuery' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'QueryArn') as query_arn, + json_extract_path_text(detail.Properties, 'QueryId') as query_id, + json_extract_path_text(detail.Properties, 'QueryName') as query_name, + json_extract_path_text(detail.Properties, 'QueryDescription') as query_description, + json_extract_path_text(detail.Properties, 'QueryExpression') as query_expression, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Config::StoredQuery' + AND detail.data__TypeName = 'AWS::Config::StoredQuery' + AND listing.region = 'us-east-1' + stored_queries_list_only: + name: stored_queries_list_only + id: aws.config.stored_queries_list_only + x-cfn-schema-name: StoredQuery + x-cfn-type-name: AWS::Config::StoredQuery + x-identifiers: + - QueryName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.QueryName') as query_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::StoredQuery' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'QueryName') as query_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Config::StoredQuery' + AND region = 'us-east-1' + stored_query_tags: + name: stored_query_tags + id: aws.config.stored_query_tags + x-cfn-schema-name: StoredQuery + x-cfn-type-name: AWS::Config::StoredQuery + 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, '$.QueryArn') as query_arn, + JSON_EXTRACT(detail.Properties, '$.QueryId') as query_id, + JSON_EXTRACT(detail.Properties, '$.QueryName') as query_name, + JSON_EXTRACT(detail.Properties, '$.QueryDescription') as query_description, + JSON_EXTRACT(detail.Properties, '$.QueryExpression') as query_expression + 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::Config::StoredQuery' + AND detail.data__TypeName = 'AWS::Config::StoredQuery' + 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, 'QueryArn') as query_arn, + json_extract_path_text(detail.Properties, 'QueryId') as query_id, + json_extract_path_text(detail.Properties, 'QueryName') as query_name, + json_extract_path_text(detail.Properties, 'QueryDescription') as query_description, + json_extract_path_text(detail.Properties, 'QueryExpression') as query_expression + 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::Config::StoredQuery' + AND detail.data__TypeName = 'AWS::Config::StoredQuery' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/connect.yaml b/providers/src/aws/v00.00.00000/services/connect.yaml index c058cbb2..b0e07b19 100644 --- a/providers/src/aws/v00.00.00000/services/connect.yaml +++ b/providers/src/aws/v00.00.00000/services/connect.yaml @@ -4800,11 +4800,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceId') as instance_id, - JSON_EXTRACT(Properties, '$.Origin') as origin - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ApprovedOrigin' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Origin') as origin, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id + 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::Connect::ApprovedOrigin' + AND detail.data__TypeName = 'AWS::Connect::ApprovedOrigin' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4820,11 +4825,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceId') as instance_id, - json_extract_path_text(Properties, 'Origin') as origin - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ApprovedOrigin' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Origin') as origin, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id + 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::Connect::ApprovedOrigin' + AND detail.data__TypeName = 'AWS::Connect::ApprovedOrigin' + AND listing.region = 'us-east-1' + approved_origins_list_only: + name: approved_origins_list_only + id: aws.connect.approved_origins_list_only + x-cfn-schema-name: ApprovedOrigin + x-cfn-type-name: AWS::Connect::ApprovedOrigin + x-identifiers: + - InstanceId + - Origin + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(Properties, '$.Origin') as origin + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ApprovedOrigin' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceId') as instance_id, + json_extract_path_text(Properties, 'Origin') as origin + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ApprovedOrigin' + AND region = 'us-east-1' contact_flows: name: contact_flows id: aws.connect.contact_flows @@ -4903,10 +4947,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ContactFlowArn') as contact_flow_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ContactFlowArn') as contact_flow_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::ContactFlow' + AND detail.data__TypeName = 'AWS::Connect::ContactFlow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4928,10 +4984,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ContactFlowArn') as contact_flow_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ContactFlowArn') as contact_flow_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::ContactFlow' + AND detail.data__TypeName = 'AWS::Connect::ContactFlow' + AND listing.region = 'us-east-1' + contact_flows_list_only: + name: contact_flows_list_only + id: aws.connect.contact_flows_list_only + x-cfn-schema-name: ContactFlow + x-cfn-type-name: AWS::Connect::ContactFlow + x-identifiers: + - ContactFlowArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ContactFlowArn') as contact_flow_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlow' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ContactFlowArn') as contact_flow_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlow' + AND region = 'us-east-1' + contact_flow_tags: + name: contact_flow_tags + id: aws.connect.contact_flow_tags + x-cfn-schema-name: ContactFlow + x-cfn-type-name: AWS::Connect::ContactFlow + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ContactFlowArn') as contact_flow_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::Connect::ContactFlow' + AND detail.data__TypeName = 'AWS::Connect::ContactFlow' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ContactFlowArn') as contact_flow_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Type') as type + 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::Connect::ContactFlow' + AND detail.data__TypeName = 'AWS::Connect::ContactFlow' + AND listing.region = 'us-east-1' contact_flow_modules: name: contact_flow_modules id: aws.connect.contact_flow_modules @@ -5010,10 +5166,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ContactFlowModuleArn') as contact_flow_module_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlowModule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ContactFlowModuleArn') as contact_flow_module_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::ContactFlowModule' + AND detail.data__TypeName = 'AWS::Connect::ContactFlowModule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5035,10 +5203,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ContactFlowModuleArn') as contact_flow_module_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlowModule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ContactFlowModuleArn') as contact_flow_module_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::ContactFlowModule' + AND detail.data__TypeName = 'AWS::Connect::ContactFlowModule' + AND listing.region = 'us-east-1' + contact_flow_modules_list_only: + name: contact_flow_modules_list_only + id: aws.connect.contact_flow_modules_list_only + x-cfn-schema-name: ContactFlowModule + x-cfn-type-name: AWS::Connect::ContactFlowModule + x-identifiers: + - ContactFlowModuleArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ContactFlowModuleArn') as contact_flow_module_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlowModule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ContactFlowModuleArn') as contact_flow_module_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ContactFlowModule' + AND region = 'us-east-1' + contact_flow_module_tags: + name: contact_flow_module_tags + id: aws.connect.contact_flow_module_tags + x-cfn-schema-name: ContactFlowModule + x-cfn-type-name: AWS::Connect::ContactFlowModule + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ContactFlowModuleArn') as contact_flow_module_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Connect::ContactFlowModule' + AND detail.data__TypeName = 'AWS::Connect::ContactFlowModule' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ContactFlowModuleArn') as contact_flow_module_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Connect::ContactFlowModule' + AND detail.data__TypeName = 'AWS::Connect::ContactFlowModule' + AND listing.region = 'us-east-1' evaluation_forms: name: evaluation_forms id: aws.connect.evaluation_forms @@ -5117,10 +5385,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EvaluationFormArn') as evaluation_form_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::EvaluationForm' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Title') as title, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EvaluationFormArn') as evaluation_form_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Items') as items, + JSON_EXTRACT(detail.Properties, '$.ScoringStrategy') as scoring_strategy, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::EvaluationForm' + AND detail.data__TypeName = 'AWS::Connect::EvaluationForm' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5142,10 +5422,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EvaluationFormArn') as evaluation_form_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::EvaluationForm' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Title') as title, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EvaluationFormArn') as evaluation_form_arn, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Items') as items, + json_extract_path_text(detail.Properties, 'ScoringStrategy') as scoring_strategy, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::EvaluationForm' + AND detail.data__TypeName = 'AWS::Connect::EvaluationForm' + AND listing.region = 'us-east-1' + evaluation_forms_list_only: + name: evaluation_forms_list_only + id: aws.connect.evaluation_forms_list_only + x-cfn-schema-name: EvaluationForm + x-cfn-type-name: AWS::Connect::EvaluationForm + x-identifiers: + - EvaluationFormArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EvaluationFormArn') as evaluation_form_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::EvaluationForm' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EvaluationFormArn') as evaluation_form_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::EvaluationForm' + AND region = 'us-east-1' + evaluation_form_tags: + name: evaluation_form_tags + id: aws.connect.evaluation_form_tags + x-cfn-schema-name: EvaluationForm + x-cfn-type-name: AWS::Connect::EvaluationForm + 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, '$.Title') as title, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EvaluationFormArn') as evaluation_form_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Items') as items, + JSON_EXTRACT(detail.Properties, '$.ScoringStrategy') as scoring_strategy, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Connect::EvaluationForm' + AND detail.data__TypeName = 'AWS::Connect::EvaluationForm' + 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, 'Title') as title, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EvaluationFormArn') as evaluation_form_arn, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Items') as items, + json_extract_path_text(detail.Properties, 'ScoringStrategy') as scoring_strategy, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Connect::EvaluationForm' + AND detail.data__TypeName = 'AWS::Connect::EvaluationForm' + AND listing.region = 'us-east-1' hours_of_operations: name: hours_of_operations id: aws.connect.hours_of_operations @@ -5223,10 +5603,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.HoursOfOperationArn') as hours_of_operation_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::HoursOfOperation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TimeZone') as time_zone, + JSON_EXTRACT(detail.Properties, '$.Config') as config, + JSON_EXTRACT(detail.Properties, '$.HoursOfOperationArn') as hours_of_operation_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::HoursOfOperation' + AND detail.data__TypeName = 'AWS::Connect::HoursOfOperation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5247,10 +5638,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'HoursOfOperationArn') as hours_of_operation_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::HoursOfOperation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TimeZone') as time_zone, + json_extract_path_text(detail.Properties, 'Config') as config, + json_extract_path_text(detail.Properties, 'HoursOfOperationArn') as hours_of_operation_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::HoursOfOperation' + AND detail.data__TypeName = 'AWS::Connect::HoursOfOperation' + AND listing.region = 'us-east-1' + hours_of_operations_list_only: + name: hours_of_operations_list_only + id: aws.connect.hours_of_operations_list_only + x-cfn-schema-name: HoursOfOperation + x-cfn-type-name: AWS::Connect::HoursOfOperation + x-identifiers: + - HoursOfOperationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.HoursOfOperationArn') as hours_of_operation_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::HoursOfOperation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'HoursOfOperationArn') as hours_of_operation_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::HoursOfOperation' + AND region = 'us-east-1' + hours_of_operation_tags: + name: hours_of_operation_tags + id: aws.connect.hours_of_operation_tags + x-cfn-schema-name: HoursOfOperation + x-cfn-type-name: AWS::Connect::HoursOfOperation + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TimeZone') as time_zone, + JSON_EXTRACT(detail.Properties, '$.Config') as config, + JSON_EXTRACT(detail.Properties, '$.HoursOfOperationArn') as hours_of_operation_arn + 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::Connect::HoursOfOperation' + AND detail.data__TypeName = 'AWS::Connect::HoursOfOperation' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TimeZone') as time_zone, + json_extract_path_text(detail.Properties, 'Config') as config, + json_extract_path_text(detail.Properties, 'HoursOfOperationArn') as hours_of_operation_arn + 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::Connect::HoursOfOperation' + AND detail.data__TypeName = 'AWS::Connect::HoursOfOperation' + AND listing.region = 'us-east-1' instances: name: instances id: aws.connect.instances @@ -5331,10 +5819,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Instance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.IdentityManagementType') as identity_management_type, + JSON_EXTRACT(detail.Properties, '$.InstanceAlias') as instance_alias, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.ServiceRole') as service_role, + JSON_EXTRACT(detail.Properties, '$.InstanceStatus') as instance_status, + JSON_EXTRACT(detail.Properties, '$.DirectoryId') as directory_id, + JSON_EXTRACT(detail.Properties, '$.Attributes') as attributes, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::Instance' + AND detail.data__TypeName = 'AWS::Connect::Instance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5358,10 +5860,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Instance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'IdentityManagementType') as identity_management_type, + json_extract_path_text(detail.Properties, 'InstanceAlias') as instance_alias, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'ServiceRole') as service_role, + json_extract_path_text(detail.Properties, 'InstanceStatus') as instance_status, + json_extract_path_text(detail.Properties, 'DirectoryId') as directory_id, + json_extract_path_text(detail.Properties, 'Attributes') as attributes, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::Instance' + AND detail.data__TypeName = 'AWS::Connect::Instance' + AND listing.region = 'us-east-1' + instances_list_only: + name: instances_list_only + id: aws.connect.instances_list_only + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::Connect::Instance + 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::Connect::Instance' + 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::Connect::Instance' + AND region = 'us-east-1' + instance_tags: + name: instance_tags + id: aws.connect.instance_tags + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::Connect::Instance + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.IdentityManagementType') as identity_management_type, + JSON_EXTRACT(detail.Properties, '$.InstanceAlias') as instance_alias, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.ServiceRole') as service_role, + JSON_EXTRACT(detail.Properties, '$.InstanceStatus') as instance_status, + JSON_EXTRACT(detail.Properties, '$.DirectoryId') as directory_id, + JSON_EXTRACT(detail.Properties, '$.Attributes') as attributes + 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::Connect::Instance' + AND detail.data__TypeName = 'AWS::Connect::Instance' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'IdentityManagementType') as identity_management_type, + json_extract_path_text(detail.Properties, 'InstanceAlias') as instance_alias, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'ServiceRole') as service_role, + json_extract_path_text(detail.Properties, 'InstanceStatus') as instance_status, + json_extract_path_text(detail.Properties, 'DirectoryId') as directory_id, + json_extract_path_text(detail.Properties, 'Attributes') as attributes + 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::Connect::Instance' + AND detail.data__TypeName = 'AWS::Connect::Instance' + AND listing.region = 'us-east-1' instance_storage_configs: name: instance_storage_configs id: aws.connect.instance_storage_configs @@ -5442,12 +6050,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, - JSON_EXTRACT(Properties, '$.AssociationId') as association_id, - JSON_EXTRACT(Properties, '$.ResourceType') as resource_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::InstanceStorageConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id, + JSON_EXTRACT(detail.Properties, '$.StorageType') as storage_type, + JSON_EXTRACT(detail.Properties, '$.S3Config') as s3_config, + JSON_EXTRACT(detail.Properties, '$.KinesisVideoStreamConfig') as kinesis_video_stream_config, + JSON_EXTRACT(detail.Properties, '$.KinesisStreamConfig') as kinesis_stream_config, + JSON_EXTRACT(detail.Properties, '$.KinesisFirehoseConfig') as kinesis_firehose_config + 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::Connect::InstanceStorageConfig' + AND detail.data__TypeName = 'AWS::Connect::InstanceStorageConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5469,12 +6087,59 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceArn') as instance_arn, - json_extract_path_text(Properties, 'AssociationId') as association_id, - json_extract_path_text(Properties, 'ResourceType') as resource_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::InstanceStorageConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id, + json_extract_path_text(detail.Properties, 'StorageType') as storage_type, + json_extract_path_text(detail.Properties, 'S3Config') as s3_config, + json_extract_path_text(detail.Properties, 'KinesisVideoStreamConfig') as kinesis_video_stream_config, + json_extract_path_text(detail.Properties, 'KinesisStreamConfig') as kinesis_stream_config, + json_extract_path_text(detail.Properties, 'KinesisFirehoseConfig') as kinesis_firehose_config + 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::Connect::InstanceStorageConfig' + AND detail.data__TypeName = 'AWS::Connect::InstanceStorageConfig' + AND listing.region = 'us-east-1' + instance_storage_configs_list_only: + name: instance_storage_configs_list_only + id: aws.connect.instance_storage_configs_list_only + x-cfn-schema-name: InstanceStorageConfig + x-cfn-type-name: AWS::Connect::InstanceStorageConfig + x-identifiers: + - InstanceArn + - AssociationId + - ResourceType + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(Properties, '$.AssociationId') as association_id, + JSON_EXTRACT(Properties, '$.ResourceType') as resource_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::InstanceStorageConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(Properties, 'AssociationId') as association_id, + json_extract_path_text(Properties, 'ResourceType') as resource_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::InstanceStorageConfig' + AND region = 'us-east-1' integration_associations: name: integration_associations id: aws.connect.integration_associations @@ -5538,12 +6203,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceId') as instance_id, - JSON_EXTRACT(Properties, '$.IntegrationType') as integration_type, - JSON_EXTRACT(Properties, '$.IntegrationArn') as integration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::IntegrationAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IntegrationAssociationId') as integration_association_id, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.IntegrationArn') as integration_arn, + JSON_EXTRACT(detail.Properties, '$.IntegrationType') as integration_type + 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::Connect::IntegrationAssociation' + AND detail.data__TypeName = 'AWS::Connect::IntegrationAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5561,12 +6232,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceId') as instance_id, - json_extract_path_text(Properties, 'IntegrationType') as integration_type, - json_extract_path_text(Properties, 'IntegrationArn') as integration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::IntegrationAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IntegrationAssociationId') as integration_association_id, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'IntegrationArn') as integration_arn, + json_extract_path_text(detail.Properties, 'IntegrationType') as integration_type + 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::Connect::IntegrationAssociation' + AND detail.data__TypeName = 'AWS::Connect::IntegrationAssociation' + AND listing.region = 'us-east-1' + integration_associations_list_only: + name: integration_associations_list_only + id: aws.connect.integration_associations_list_only + x-cfn-schema-name: IntegrationAssociation + x-cfn-type-name: AWS::Connect::IntegrationAssociation + x-identifiers: + - InstanceId + - IntegrationType + - IntegrationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(Properties, '$.IntegrationType') as integration_type, + JSON_EXTRACT(Properties, '$.IntegrationArn') as integration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::IntegrationAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceId') as instance_id, + json_extract_path_text(Properties, 'IntegrationType') as integration_type, + json_extract_path_text(Properties, 'IntegrationArn') as integration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::IntegrationAssociation' + AND region = 'us-east-1' predefined_attributes: name: predefined_attributes id: aws.connect.predefined_attributes @@ -5643,11 +6357,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::PredefinedAttribute' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Values') as _values, + JSON_EXTRACT(detail.Properties, '$.LastModifiedRegion') as last_modified_region, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::Connect::PredefinedAttribute' + AND detail.data__TypeName = 'AWS::Connect::PredefinedAttribute' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5666,11 +6388,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceArn') as instance_arn, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::PredefinedAttribute' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Values') as _values, + json_extract_path_text(detail.Properties, 'LastModifiedRegion') as last_modified_region, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::Connect::PredefinedAttribute' + AND detail.data__TypeName = 'AWS::Connect::PredefinedAttribute' + AND listing.region = 'us-east-1' + predefined_attributes_list_only: + name: predefined_attributes_list_only + id: aws.connect.predefined_attributes_list_only + x-cfn-schema-name: PredefinedAttribute + x-cfn-type-name: AWS::Connect::PredefinedAttribute + x-identifiers: + - InstanceArn + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::PredefinedAttribute' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::PredefinedAttribute' + AND region = 'us-east-1' prompts: name: prompts id: aws.connect.prompts @@ -5747,10 +6511,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PromptArn') as prompt_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Prompt' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.S3Uri') as s3_uri, + JSON_EXTRACT(detail.Properties, '$.PromptArn') as prompt_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::Prompt' + AND detail.data__TypeName = 'AWS::Connect::Prompt' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5770,10 +6544,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PromptArn') as prompt_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Prompt' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'S3Uri') as s3_uri, + json_extract_path_text(detail.Properties, 'PromptArn') as prompt_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::Prompt' + AND detail.data__TypeName = 'AWS::Connect::Prompt' + AND listing.region = 'us-east-1' + prompts_list_only: + name: prompts_list_only + id: aws.connect.prompts_list_only + x-cfn-schema-name: Prompt + x-cfn-type-name: AWS::Connect::Prompt + x-identifiers: + - PromptArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PromptArn') as prompt_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Prompt' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PromptArn') as prompt_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Prompt' + AND region = 'us-east-1' + prompt_tags: + name: prompt_tags + id: aws.connect.prompt_tags + x-cfn-schema-name: Prompt + x-cfn-type-name: AWS::Connect::Prompt + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.S3Uri') as s3_uri, + JSON_EXTRACT(detail.Properties, '$.PromptArn') as prompt_arn + 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::Connect::Prompt' + AND detail.data__TypeName = 'AWS::Connect::Prompt' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'S3Uri') as s3_uri, + json_extract_path_text(detail.Properties, 'PromptArn') as prompt_arn + 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::Connect::Prompt' + AND detail.data__TypeName = 'AWS::Connect::Prompt' + AND listing.region = 'us-east-1' queues: name: queues id: aws.connect.queues @@ -5855,10 +6723,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.QueueArn') as queue_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Queue' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.HoursOfOperationArn') as hours_of_operation_arn, + JSON_EXTRACT(detail.Properties, '$.MaxContacts') as max_contacts, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OutboundCallerConfig') as outbound_caller_config, + JSON_EXTRACT(detail.Properties, '$.QueueArn') as queue_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.QuickConnectArns') as quick_connect_arns, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::Connect::Queue' + AND detail.data__TypeName = 'AWS::Connect::Queue' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5883,10 +6766,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'QueueArn') as queue_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Queue' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'HoursOfOperationArn') as hours_of_operation_arn, + json_extract_path_text(detail.Properties, 'MaxContacts') as max_contacts, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OutboundCallerConfig') as outbound_caller_config, + json_extract_path_text(detail.Properties, 'QueueArn') as queue_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'QuickConnectArns') as quick_connect_arns, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type + 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::Connect::Queue' + AND detail.data__TypeName = 'AWS::Connect::Queue' + AND listing.region = 'us-east-1' + queues_list_only: + name: queues_list_only + id: aws.connect.queues_list_only + x-cfn-schema-name: Queue + x-cfn-type-name: AWS::Connect::Queue + x-identifiers: + - QueueArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.QueueArn') as queue_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Queue' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'QueueArn') as queue_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::Queue' + AND region = 'us-east-1' + queue_tags: + name: queue_tags + id: aws.connect.queue_tags + x-cfn-schema-name: Queue + x-cfn-type-name: AWS::Connect::Queue + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.HoursOfOperationArn') as hours_of_operation_arn, + JSON_EXTRACT(detail.Properties, '$.MaxContacts') as max_contacts, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OutboundCallerConfig') as outbound_caller_config, + JSON_EXTRACT(detail.Properties, '$.QueueArn') as queue_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.QuickConnectArns') as quick_connect_arns, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::Connect::Queue' + AND detail.data__TypeName = 'AWS::Connect::Queue' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'HoursOfOperationArn') as hours_of_operation_arn, + json_extract_path_text(detail.Properties, 'MaxContacts') as max_contacts, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OutboundCallerConfig') as outbound_caller_config, + json_extract_path_text(detail.Properties, 'QueueArn') as queue_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'QuickConnectArns') as quick_connect_arns, + json_extract_path_text(detail.Properties, 'Type') as type + 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::Connect::Queue' + AND detail.data__TypeName = 'AWS::Connect::Queue' + AND listing.region = 'us-east-1' quick_connects: name: quick_connects id: aws.connect.quick_connects @@ -5964,10 +6956,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.QuickConnectArn') as quick_connect_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::QuickConnect' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.QuickConnectConfig') as quick_connect_config, + JSON_EXTRACT(detail.Properties, '$.QuickConnectArn') as quick_connect_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.QuickConnectType') as quick_connect_type + 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::Connect::QuickConnect' + AND detail.data__TypeName = 'AWS::Connect::QuickConnect' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5988,10 +6991,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'QuickConnectArn') as quick_connect_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::QuickConnect' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'QuickConnectConfig') as quick_connect_config, + json_extract_path_text(detail.Properties, 'QuickConnectArn') as quick_connect_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'QuickConnectType') as quick_connect_type + 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::Connect::QuickConnect' + AND detail.data__TypeName = 'AWS::Connect::QuickConnect' + AND listing.region = 'us-east-1' + quick_connects_list_only: + name: quick_connects_list_only + id: aws.connect.quick_connects_list_only + x-cfn-schema-name: QuickConnect + x-cfn-type-name: AWS::Connect::QuickConnect + x-identifiers: + - QuickConnectArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.QuickConnectArn') as quick_connect_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::QuickConnect' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'QuickConnectArn') as quick_connect_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::QuickConnect' + AND region = 'us-east-1' + quick_connect_tags: + name: quick_connect_tags + id: aws.connect.quick_connect_tags + x-cfn-schema-name: QuickConnect + x-cfn-type-name: AWS::Connect::QuickConnect + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.QuickConnectConfig') as quick_connect_config, + JSON_EXTRACT(detail.Properties, '$.QuickConnectArn') as quick_connect_arn, + JSON_EXTRACT(detail.Properties, '$.QuickConnectType') as quick_connect_type + 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::Connect::QuickConnect' + AND detail.data__TypeName = 'AWS::Connect::QuickConnect' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'QuickConnectConfig') as quick_connect_config, + json_extract_path_text(detail.Properties, 'QuickConnectArn') as quick_connect_arn, + json_extract_path_text(detail.Properties, 'QuickConnectType') as quick_connect_type + 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::Connect::QuickConnect' + AND detail.data__TypeName = 'AWS::Connect::QuickConnect' + AND listing.region = 'us-east-1' routing_profiles: name: routing_profiles id: aws.connect.routing_profiles @@ -6071,10 +7171,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RoutingProfileArn') as routing_profile_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::RoutingProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MediaConcurrencies') as media_concurrencies, + JSON_EXTRACT(detail.Properties, '$.DefaultOutboundQueueArn') as default_outbound_queue_arn, + JSON_EXTRACT(detail.Properties, '$.RoutingProfileArn') as routing_profile_arn, + JSON_EXTRACT(detail.Properties, '$.QueueConfigs') as queue_configs, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AgentAvailabilityTimer') as agent_availability_timer + 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::Connect::RoutingProfile' + AND detail.data__TypeName = 'AWS::Connect::RoutingProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6097,10 +7210,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RoutingProfileArn') as routing_profile_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::RoutingProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MediaConcurrencies') as media_concurrencies, + json_extract_path_text(detail.Properties, 'DefaultOutboundQueueArn') as default_outbound_queue_arn, + json_extract_path_text(detail.Properties, 'RoutingProfileArn') as routing_profile_arn, + json_extract_path_text(detail.Properties, 'QueueConfigs') as queue_configs, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AgentAvailabilityTimer') as agent_availability_timer + 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::Connect::RoutingProfile' + AND detail.data__TypeName = 'AWS::Connect::RoutingProfile' + AND listing.region = 'us-east-1' + routing_profiles_list_only: + name: routing_profiles_list_only + id: aws.connect.routing_profiles_list_only + x-cfn-schema-name: RoutingProfile + x-cfn-type-name: AWS::Connect::RoutingProfile + x-identifiers: + - RoutingProfileArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RoutingProfileArn') as routing_profile_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::RoutingProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RoutingProfileArn') as routing_profile_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::RoutingProfile' + AND region = 'us-east-1' + routing_profile_tags: + name: routing_profile_tags + id: aws.connect.routing_profile_tags + x-cfn-schema-name: RoutingProfile + x-cfn-type-name: AWS::Connect::RoutingProfile + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MediaConcurrencies') as media_concurrencies, + JSON_EXTRACT(detail.Properties, '$.DefaultOutboundQueueArn') as default_outbound_queue_arn, + JSON_EXTRACT(detail.Properties, '$.RoutingProfileArn') as routing_profile_arn, + JSON_EXTRACT(detail.Properties, '$.QueueConfigs') as queue_configs, + JSON_EXTRACT(detail.Properties, '$.AgentAvailabilityTimer') as agent_availability_timer + 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::Connect::RoutingProfile' + AND detail.data__TypeName = 'AWS::Connect::RoutingProfile' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MediaConcurrencies') as media_concurrencies, + json_extract_path_text(detail.Properties, 'DefaultOutboundQueueArn') as default_outbound_queue_arn, + json_extract_path_text(detail.Properties, 'RoutingProfileArn') as routing_profile_arn, + json_extract_path_text(detail.Properties, 'QueueConfigs') as queue_configs, + json_extract_path_text(detail.Properties, 'AgentAvailabilityTimer') as agent_availability_timer + 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::Connect::RoutingProfile' + AND detail.data__TypeName = 'AWS::Connect::RoutingProfile' + AND listing.region = 'us-east-1' rules: name: rules id: aws.connect.rules @@ -6253,11 +7469,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceId') as instance_id, - JSON_EXTRACT(Properties, '$.AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Key') as key, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id + 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::Connect::SecurityKey' + AND detail.data__TypeName = 'AWS::Connect::SecurityKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6274,11 +7496,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceId') as instance_id, - json_extract_path_text(Properties, 'AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Key') as key, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id + 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::Connect::SecurityKey' + AND detail.data__TypeName = 'AWS::Connect::SecurityKey' + AND listing.region = 'us-east-1' + security_keys_list_only: + name: security_keys_list_only + id: aws.connect.security_keys_list_only + x-cfn-schema-name: SecurityKey + x-cfn-type-name: AWS::Connect::SecurityKey + x-identifiers: + - InstanceId + - AssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(Properties, '$.AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityKey' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceId') as instance_id, + json_extract_path_text(Properties, 'AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityKey' + AND region = 'us-east-1' security_profiles: name: security_profiles id: aws.connect.security_profiles @@ -6362,10 +7624,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SecurityProfileArn') as security_profile_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AllowedAccessControlTags') as allowed_access_control_tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileArn') as security_profile_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileName') as security_profile_name, + JSON_EXTRACT(detail.Properties, '$.TagRestrictedResources') as tag_restricted_resources, + JSON_EXTRACT(detail.Properties, '$.HierarchyRestrictedResources') as hierarchy_restricted_resources, + JSON_EXTRACT(detail.Properties, '$.AllowedAccessControlHierarchyGroupId') as allowed_access_control_hierarchy_group_id, + JSON_EXTRACT(detail.Properties, '$.Applications') as applications, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LastModifiedRegion') as last_modified_region, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::Connect::SecurityProfile' + AND detail.data__TypeName = 'AWS::Connect::SecurityProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6392,10 +7671,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SecurityProfileArn') as security_profile_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AllowedAccessControlTags') as allowed_access_control_tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'SecurityProfileArn') as security_profile_arn, + json_extract_path_text(detail.Properties, 'SecurityProfileName') as security_profile_name, + json_extract_path_text(detail.Properties, 'TagRestrictedResources') as tag_restricted_resources, + json_extract_path_text(detail.Properties, 'HierarchyRestrictedResources') as hierarchy_restricted_resources, + json_extract_path_text(detail.Properties, 'AllowedAccessControlHierarchyGroupId') as allowed_access_control_hierarchy_group_id, + json_extract_path_text(detail.Properties, 'Applications') as applications, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LastModifiedRegion') as last_modified_region, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::Connect::SecurityProfile' + AND detail.data__TypeName = 'AWS::Connect::SecurityProfile' + AND listing.region = 'us-east-1' + security_profiles_list_only: + name: security_profiles_list_only + id: aws.connect.security_profiles_list_only + x-cfn-schema-name: SecurityProfile + x-cfn-type-name: AWS::Connect::SecurityProfile + x-identifiers: + - SecurityProfileArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SecurityProfileArn') as security_profile_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SecurityProfileArn') as security_profile_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::SecurityProfile' + AND region = 'us-east-1' + security_profile_tags: + name: security_profile_tags + id: aws.connect.security_profile_tags + x-cfn-schema-name: SecurityProfile + x-cfn-type-name: AWS::Connect::SecurityProfile + 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, '$.AllowedAccessControlTags') as allowed_access_control_tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileArn') as security_profile_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileName') as security_profile_name, + JSON_EXTRACT(detail.Properties, '$.TagRestrictedResources') as tag_restricted_resources, + JSON_EXTRACT(detail.Properties, '$.HierarchyRestrictedResources') as hierarchy_restricted_resources, + JSON_EXTRACT(detail.Properties, '$.AllowedAccessControlHierarchyGroupId') as allowed_access_control_hierarchy_group_id, + JSON_EXTRACT(detail.Properties, '$.Applications') as applications, + JSON_EXTRACT(detail.Properties, '$.LastModifiedRegion') as last_modified_region, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::Connect::SecurityProfile' + AND detail.data__TypeName = 'AWS::Connect::SecurityProfile' + 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, 'AllowedAccessControlTags') as allowed_access_control_tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'SecurityProfileArn') as security_profile_arn, + json_extract_path_text(detail.Properties, 'SecurityProfileName') as security_profile_name, + json_extract_path_text(detail.Properties, 'TagRestrictedResources') as tag_restricted_resources, + json_extract_path_text(detail.Properties, 'HierarchyRestrictedResources') as hierarchy_restricted_resources, + json_extract_path_text(detail.Properties, 'AllowedAccessControlHierarchyGroupId') as allowed_access_control_hierarchy_group_id, + json_extract_path_text(detail.Properties, 'Applications') as applications, + json_extract_path_text(detail.Properties, 'LastModifiedRegion') as last_modified_region, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::Connect::SecurityProfile' + AND detail.data__TypeName = 'AWS::Connect::SecurityProfile' + AND listing.region = 'us-east-1' task_templates: name: task_templates id: aws.connect.task_templates @@ -6477,10 +7871,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::TaskTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ContactFlowArn') as contact_flow_arn, + JSON_EXTRACT(detail.Properties, '$.Constraints') as constraints, + JSON_EXTRACT(detail.Properties, '$.Defaults') as defaults, + JSON_EXTRACT(detail.Properties, '$.Fields') as fields, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::TaskTemplate' + AND detail.data__TypeName = 'AWS::Connect::TaskTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6505,10 +7914,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::Connect::TaskTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ContactFlowArn') as contact_flow_arn, + json_extract_path_text(detail.Properties, 'Constraints') as constraints, + json_extract_path_text(detail.Properties, 'Defaults') as defaults, + json_extract_path_text(detail.Properties, 'Fields') as fields, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::TaskTemplate' + AND detail.data__TypeName = 'AWS::Connect::TaskTemplate' + AND listing.region = 'us-east-1' + task_templates_list_only: + name: task_templates_list_only + id: aws.connect.task_templates_list_only + x-cfn-schema-name: TaskTemplate + x-cfn-type-name: AWS::Connect::TaskTemplate + 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::Connect::TaskTemplate' + 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::Connect::TaskTemplate' + AND region = 'us-east-1' + task_template_tags: + name: task_template_tags + id: aws.connect.task_template_tags + x-cfn-schema-name: TaskTemplate + x-cfn-type-name: AWS::Connect::TaskTemplate + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ContactFlowArn') as contact_flow_arn, + JSON_EXTRACT(detail.Properties, '$.Constraints') as constraints, + JSON_EXTRACT(detail.Properties, '$.Defaults') as defaults, + JSON_EXTRACT(detail.Properties, '$.Fields') as fields, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token + 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::Connect::TaskTemplate' + AND detail.data__TypeName = 'AWS::Connect::TaskTemplate' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ContactFlowArn') as contact_flow_arn, + json_extract_path_text(detail.Properties, 'Constraints') as constraints, + json_extract_path_text(detail.Properties, 'Defaults') as defaults, + json_extract_path_text(detail.Properties, 'Fields') as fields, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token + 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::Connect::TaskTemplate' + AND detail.data__TypeName = 'AWS::Connect::TaskTemplate' + AND listing.region = 'us-east-1' traffic_distribution_groups: name: traffic_distribution_groups id: aws.connect.traffic_distribution_groups @@ -6586,10 +8104,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrafficDistributionGroupArn') as traffic_distribution_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::TrafficDistributionGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.TrafficDistributionGroupArn') as traffic_distribution_group_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default + 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::Connect::TrafficDistributionGroup' + AND detail.data__TypeName = 'AWS::Connect::TrafficDistributionGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6610,10 +8139,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrafficDistributionGroupArn') as traffic_distribution_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::TrafficDistributionGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'TrafficDistributionGroupArn') as traffic_distribution_group_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default + 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::Connect::TrafficDistributionGroup' + AND detail.data__TypeName = 'AWS::Connect::TrafficDistributionGroup' + AND listing.region = 'us-east-1' + traffic_distribution_groups_list_only: + name: traffic_distribution_groups_list_only + id: aws.connect.traffic_distribution_groups_list_only + x-cfn-schema-name: TrafficDistributionGroup + x-cfn-type-name: AWS::Connect::TrafficDistributionGroup + x-identifiers: + - TrafficDistributionGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrafficDistributionGroupArn') as traffic_distribution_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::TrafficDistributionGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrafficDistributionGroupArn') as traffic_distribution_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::TrafficDistributionGroup' + AND region = 'us-east-1' + traffic_distribution_group_tags: + name: traffic_distribution_group_tags + id: aws.connect.traffic_distribution_group_tags + x-cfn-schema-name: TrafficDistributionGroup + x-cfn-type-name: AWS::Connect::TrafficDistributionGroup + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.TrafficDistributionGroupArn') as traffic_distribution_group_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default + 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::Connect::TrafficDistributionGroup' + AND detail.data__TypeName = 'AWS::Connect::TrafficDistributionGroup' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'TrafficDistributionGroupArn') as traffic_distribution_group_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default + 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::Connect::TrafficDistributionGroup' + AND detail.data__TypeName = 'AWS::Connect::TrafficDistributionGroup' + AND listing.region = 'us-east-1' users: name: users id: aws.connect.users @@ -6696,10 +8322,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserArn') as user_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::User' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.DirectoryUserId') as directory_user_id, + JSON_EXTRACT(detail.Properties, '$.HierarchyGroupArn') as hierarchy_group_arn, + JSON_EXTRACT(detail.Properties, '$.Username') as username, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.RoutingProfileArn') as routing_profile_arn, + JSON_EXTRACT(detail.Properties, '$.IdentityInfo') as identity_info, + JSON_EXTRACT(detail.Properties, '$.PhoneConfig') as phone_config, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileArns') as security_profile_arns, + JSON_EXTRACT(detail.Properties, '$.UserArn') as user_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UserProficiencies') as user_proficiencies + 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::Connect::User' + AND detail.data__TypeName = 'AWS::Connect::User' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6725,10 +8367,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserArn') as user_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::User' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'DirectoryUserId') as directory_user_id, + json_extract_path_text(detail.Properties, 'HierarchyGroupArn') as hierarchy_group_arn, + json_extract_path_text(detail.Properties, 'Username') as username, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'RoutingProfileArn') as routing_profile_arn, + json_extract_path_text(detail.Properties, 'IdentityInfo') as identity_info, + json_extract_path_text(detail.Properties, 'PhoneConfig') as phone_config, + json_extract_path_text(detail.Properties, 'SecurityProfileArns') as security_profile_arns, + json_extract_path_text(detail.Properties, 'UserArn') as user_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UserProficiencies') as user_proficiencies + 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::Connect::User' + AND detail.data__TypeName = 'AWS::Connect::User' + AND listing.region = 'us-east-1' + users_list_only: + name: users_list_only + id: aws.connect.users_list_only + x-cfn-schema-name: User + x-cfn-type-name: AWS::Connect::User + x-identifiers: + - UserArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserArn') as user_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::User' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserArn') as user_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::User' + AND region = 'us-east-1' + user_tags: + name: user_tags + id: aws.connect.user_tags + x-cfn-schema-name: User + x-cfn-type-name: AWS::Connect::User + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.DirectoryUserId') as directory_user_id, + JSON_EXTRACT(detail.Properties, '$.HierarchyGroupArn') as hierarchy_group_arn, + JSON_EXTRACT(detail.Properties, '$.Username') as username, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.RoutingProfileArn') as routing_profile_arn, + JSON_EXTRACT(detail.Properties, '$.IdentityInfo') as identity_info, + JSON_EXTRACT(detail.Properties, '$.PhoneConfig') as phone_config, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileArns') as security_profile_arns, + JSON_EXTRACT(detail.Properties, '$.UserArn') as user_arn, + JSON_EXTRACT(detail.Properties, '$.UserProficiencies') as user_proficiencies + 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::Connect::User' + AND detail.data__TypeName = 'AWS::Connect::User' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'DirectoryUserId') as directory_user_id, + json_extract_path_text(detail.Properties, 'HierarchyGroupArn') as hierarchy_group_arn, + json_extract_path_text(detail.Properties, 'Username') as username, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'RoutingProfileArn') as routing_profile_arn, + json_extract_path_text(detail.Properties, 'IdentityInfo') as identity_info, + json_extract_path_text(detail.Properties, 'PhoneConfig') as phone_config, + json_extract_path_text(detail.Properties, 'SecurityProfileArns') as security_profile_arns, + json_extract_path_text(detail.Properties, 'UserArn') as user_arn, + json_extract_path_text(detail.Properties, 'UserProficiencies') as user_proficiencies + 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::Connect::User' + AND detail.data__TypeName = 'AWS::Connect::User' + AND listing.region = 'us-east-1' user_hierarchy_groups: name: user_hierarchy_groups id: aws.connect.user_hierarchy_groups @@ -6804,10 +8558,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserHierarchyGroupArn') as user_hierarchy_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::UserHierarchyGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.UserHierarchyGroupArn') as user_hierarchy_group_arn, + JSON_EXTRACT(detail.Properties, '$.ParentGroupArn') as parent_group_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::UserHierarchyGroup' + AND detail.data__TypeName = 'AWS::Connect::UserHierarchyGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6826,10 +8589,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserHierarchyGroupArn') as user_hierarchy_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::UserHierarchyGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'UserHierarchyGroupArn') as user_hierarchy_group_arn, + json_extract_path_text(detail.Properties, 'ParentGroupArn') as parent_group_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::UserHierarchyGroup' + AND detail.data__TypeName = 'AWS::Connect::UserHierarchyGroup' + AND listing.region = 'us-east-1' + user_hierarchy_groups_list_only: + name: user_hierarchy_groups_list_only + id: aws.connect.user_hierarchy_groups_list_only + x-cfn-schema-name: UserHierarchyGroup + x-cfn-type-name: AWS::Connect::UserHierarchyGroup + x-identifiers: + - UserHierarchyGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserHierarchyGroupArn') as user_hierarchy_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::UserHierarchyGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserHierarchyGroupArn') as user_hierarchy_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::UserHierarchyGroup' + AND region = 'us-east-1' + user_hierarchy_group_tags: + name: user_hierarchy_group_tags + id: aws.connect.user_hierarchy_group_tags + x-cfn-schema-name: UserHierarchyGroup + x-cfn-type-name: AWS::Connect::UserHierarchyGroup + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.UserHierarchyGroupArn') as user_hierarchy_group_arn, + JSON_EXTRACT(detail.Properties, '$.ParentGroupArn') as parent_group_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::Connect::UserHierarchyGroup' + AND detail.data__TypeName = 'AWS::Connect::UserHierarchyGroup' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'UserHierarchyGroupArn') as user_hierarchy_group_arn, + json_extract_path_text(detail.Properties, 'ParentGroupArn') as parent_group_arn, + json_extract_path_text(detail.Properties, 'Name') as name + 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::Connect::UserHierarchyGroup' + AND detail.data__TypeName = 'AWS::Connect::UserHierarchyGroup' + AND listing.region = 'us-east-1' views: name: views id: aws.connect.views @@ -6909,10 +8763,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ViewArn') as view_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::View' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ViewArn') as view_arn, + JSON_EXTRACT(detail.Properties, '$.ViewId') as view_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Template') as template, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.ViewContentSha256') as view_content_sha256, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Connect::View' + AND detail.data__TypeName = 'AWS::Connect::View' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6935,10 +8802,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ViewArn') as view_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::View' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ViewArn') as view_arn, + json_extract_path_text(detail.Properties, 'ViewId') as view_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Template') as template, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'ViewContentSha256') as view_content_sha256, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Connect::View' + AND detail.data__TypeName = 'AWS::Connect::View' + AND listing.region = 'us-east-1' + views_list_only: + name: views_list_only + id: aws.connect.views_list_only + x-cfn-schema-name: View + x-cfn-type-name: AWS::Connect::View + x-identifiers: + - ViewArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ViewArn') as view_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::View' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ViewArn') as view_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::View' + AND region = 'us-east-1' + view_tags: + name: view_tags + id: aws.connect.view_tags + x-cfn-schema-name: View + x-cfn-type-name: AWS::Connect::View + 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, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ViewArn') as view_arn, + JSON_EXTRACT(detail.Properties, '$.ViewId') as view_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Template') as template, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.ViewContentSha256') as view_content_sha256 + 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::Connect::View' + AND detail.data__TypeName = 'AWS::Connect::View' + 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, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ViewArn') as view_arn, + json_extract_path_text(detail.Properties, 'ViewId') as view_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Template') as template, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'ViewContentSha256') as view_content_sha256 + 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::Connect::View' + AND detail.data__TypeName = 'AWS::Connect::View' + AND listing.region = 'us-east-1' view_versions: name: view_versions id: aws.connect.view_versions @@ -7001,10 +8971,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ViewVersionArn') as view_version_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ViewVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ViewArn') as view_arn, + JSON_EXTRACT(detail.Properties, '$.ViewVersionArn') as view_version_arn, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description, + JSON_EXTRACT(detail.Properties, '$.ViewContentSha256') as view_content_sha256, + JSON_EXTRACT(detail.Properties, '$.Version') as version + 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::Connect::ViewVersion' + AND detail.data__TypeName = 'AWS::Connect::ViewVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7023,10 +9002,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ViewVersionArn') as view_version_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ViewVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ViewArn') as view_arn, + json_extract_path_text(detail.Properties, 'ViewVersionArn') as view_version_arn, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description, + json_extract_path_text(detail.Properties, 'ViewContentSha256') as view_content_sha256, + json_extract_path_text(detail.Properties, 'Version') as version + 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::Connect::ViewVersion' + AND detail.data__TypeName = 'AWS::Connect::ViewVersion' + AND listing.region = 'us-east-1' + view_versions_list_only: + name: view_versions_list_only + id: aws.connect.view_versions_list_only + x-cfn-schema-name: ViewVersion + x-cfn-type-name: AWS::Connect::ViewVersion + x-identifiers: + - ViewVersionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ViewVersionArn') as view_version_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ViewVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ViewVersionArn') as view_version_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Connect::ViewVersion' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/connectcampaigns.yaml b/providers/src/aws/v00.00.00000/services/connectcampaigns.yaml index a7a8d667..70bf4052 100644 --- a/providers/src/aws/v00.00.00000/services/connectcampaigns.yaml +++ b/providers/src/aws/v00.00.00000/services/connectcampaigns.yaml @@ -711,10 +711,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ConnectCampaigns::Campaign' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectInstanceArn') as connect_instance_arn, + JSON_EXTRACT(detail.Properties, '$.DialerConfig') as dialer_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OutboundCallConfig') as outbound_call_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ConnectCampaigns::Campaign' + AND detail.data__TypeName = 'AWS::ConnectCampaigns::Campaign' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -734,10 +744,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::ConnectCampaigns::Campaign' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectInstanceArn') as connect_instance_arn, + json_extract_path_text(detail.Properties, 'DialerConfig') as dialer_config, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OutboundCallConfig') as outbound_call_config, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ConnectCampaigns::Campaign' + AND detail.data__TypeName = 'AWS::ConnectCampaigns::Campaign' + AND listing.region = 'us-east-1' + campaigns_list_only: + name: campaigns_list_only + id: aws.connectcampaigns.campaigns_list_only + x-cfn-schema-name: Campaign + x-cfn-type-name: AWS::ConnectCampaigns::Campaign + 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::ConnectCampaigns::Campaign' + 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::ConnectCampaigns::Campaign' + AND region = 'us-east-1' + campaign_tags: + name: campaign_tags + id: aws.connectcampaigns.campaign_tags + x-cfn-schema-name: Campaign + x-cfn-type-name: AWS::ConnectCampaigns::Campaign + 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, '$.ConnectInstanceArn') as connect_instance_arn, + JSON_EXTRACT(detail.Properties, '$.DialerConfig') as dialer_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OutboundCallConfig') as outbound_call_config + 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::ConnectCampaigns::Campaign' + AND detail.data__TypeName = 'AWS::ConnectCampaigns::Campaign' + 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, 'ConnectInstanceArn') as connect_instance_arn, + json_extract_path_text(detail.Properties, 'DialerConfig') as dialer_config, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OutboundCallConfig') as outbound_call_config + 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::ConnectCampaigns::Campaign' + AND detail.data__TypeName = 'AWS::ConnectCampaigns::Campaign' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/controltower.yaml b/providers/src/aws/v00.00.00000/services/controltower.yaml index 9e4de6f7..58f4d192 100644 --- a/providers/src/aws/v00.00.00000/services/controltower.yaml +++ b/providers/src/aws/v00.00.00000/services/controltower.yaml @@ -1057,10 +1057,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnabledBaselineIdentifier') as enabled_baseline_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledBaseline' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BaselineIdentifier') as baseline_identifier, + JSON_EXTRACT(detail.Properties, '$.BaselineVersion') as baseline_version, + JSON_EXTRACT(detail.Properties, '$.EnabledBaselineIdentifier') as enabled_baseline_identifier, + JSON_EXTRACT(detail.Properties, '$.TargetIdentifier') as target_identifier, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ControlTower::EnabledBaseline' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledBaseline' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1080,10 +1090,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnabledBaselineIdentifier') as enabled_baseline_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledBaseline' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BaselineIdentifier') as baseline_identifier, + json_extract_path_text(detail.Properties, 'BaselineVersion') as baseline_version, + json_extract_path_text(detail.Properties, 'EnabledBaselineIdentifier') as enabled_baseline_identifier, + json_extract_path_text(detail.Properties, 'TargetIdentifier') as target_identifier, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ControlTower::EnabledBaseline' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledBaseline' + AND listing.region = 'us-east-1' + enabled_baselines_list_only: + name: enabled_baselines_list_only + id: aws.controltower.enabled_baselines_list_only + x-cfn-schema-name: EnabledBaseline + x-cfn-type-name: AWS::ControlTower::EnabledBaseline + x-identifiers: + - EnabledBaselineIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnabledBaselineIdentifier') as enabled_baseline_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledBaseline' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnabledBaselineIdentifier') as enabled_baseline_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledBaseline' + AND region = 'us-east-1' + enabled_baseline_tags: + name: enabled_baseline_tags + id: aws.controltower.enabled_baseline_tags + x-cfn-schema-name: EnabledBaseline + x-cfn-type-name: AWS::ControlTower::EnabledBaseline + 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, '$.BaselineIdentifier') as baseline_identifier, + JSON_EXTRACT(detail.Properties, '$.BaselineVersion') as baseline_version, + JSON_EXTRACT(detail.Properties, '$.EnabledBaselineIdentifier') as enabled_baseline_identifier, + JSON_EXTRACT(detail.Properties, '$.TargetIdentifier') as target_identifier, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters + 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::ControlTower::EnabledBaseline' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledBaseline' + 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, 'BaselineIdentifier') as baseline_identifier, + json_extract_path_text(detail.Properties, 'BaselineVersion') as baseline_version, + json_extract_path_text(detail.Properties, 'EnabledBaselineIdentifier') as enabled_baseline_identifier, + json_extract_path_text(detail.Properties, 'TargetIdentifier') as target_identifier, + json_extract_path_text(detail.Properties, 'Parameters') as parameters + 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::ControlTower::EnabledBaseline' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledBaseline' + AND listing.region = 'us-east-1' enabled_controls: name: enabled_controls id: aws.controltower.enabled_controls @@ -1159,11 +1263,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TargetIdentifier') as target_identifier, - JSON_EXTRACT(Properties, '$.ControlIdentifier') as control_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledControl' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ControlIdentifier') as control_identifier, + JSON_EXTRACT(detail.Properties, '$.TargetIdentifier') as target_identifier, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ControlTower::EnabledControl' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledControl' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1181,11 +1292,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TargetIdentifier') as target_identifier, - json_extract_path_text(Properties, 'ControlIdentifier') as control_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledControl' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ControlIdentifier') as control_identifier, + json_extract_path_text(detail.Properties, 'TargetIdentifier') as target_identifier, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ControlTower::EnabledControl' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledControl' + AND listing.region = 'us-east-1' + enabled_controls_list_only: + name: enabled_controls_list_only + id: aws.controltower.enabled_controls_list_only + x-cfn-schema-name: EnabledControl + x-cfn-type-name: AWS::ControlTower::EnabledControl + x-identifiers: + - TargetIdentifier + - ControlIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TargetIdentifier') as target_identifier, + JSON_EXTRACT(Properties, '$.ControlIdentifier') as control_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledControl' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TargetIdentifier') as target_identifier, + json_extract_path_text(Properties, 'ControlIdentifier') as control_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::EnabledControl' + AND region = 'us-east-1' + enabled_control_tags: + name: enabled_control_tags + id: aws.controltower.enabled_control_tags + x-cfn-schema-name: EnabledControl + x-cfn-type-name: AWS::ControlTower::EnabledControl + 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, '$.ControlIdentifier') as control_identifier, + JSON_EXTRACT(detail.Properties, '$.TargetIdentifier') as target_identifier, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters + 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::ControlTower::EnabledControl' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledControl' + 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, 'ControlIdentifier') as control_identifier, + json_extract_path_text(detail.Properties, 'TargetIdentifier') as target_identifier, + json_extract_path_text(detail.Properties, 'Parameters') as parameters + 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::ControlTower::EnabledControl' + AND detail.data__TypeName = 'AWS::ControlTower::EnabledControl' + AND listing.region = 'us-east-1' landing_zones: name: landing_zones id: aws.controltower.landing_zones @@ -1264,10 +1465,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LandingZoneIdentifier') as landing_zone_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::LandingZone' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LandingZoneIdentifier') as landing_zone_identifier, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.LatestAvailableVersion') as latest_available_version, + JSON_EXTRACT(detail.Properties, '$.DriftStatus') as drift_status, + JSON_EXTRACT(detail.Properties, '$.Manifest') as manifest, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ControlTower::LandingZone' + AND detail.data__TypeName = 'AWS::ControlTower::LandingZone' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1289,10 +1502,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LandingZoneIdentifier') as landing_zone_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::LandingZone' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LandingZoneIdentifier') as landing_zone_identifier, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'LatestAvailableVersion') as latest_available_version, + json_extract_path_text(detail.Properties, 'DriftStatus') as drift_status, + json_extract_path_text(detail.Properties, 'Manifest') as manifest, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ControlTower::LandingZone' + AND detail.data__TypeName = 'AWS::ControlTower::LandingZone' + AND listing.region = 'us-east-1' + landing_zones_list_only: + name: landing_zones_list_only + id: aws.controltower.landing_zones_list_only + x-cfn-schema-name: LandingZone + x-cfn-type-name: AWS::ControlTower::LandingZone + x-identifiers: + - LandingZoneIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LandingZoneIdentifier') as landing_zone_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::LandingZone' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LandingZoneIdentifier') as landing_zone_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ControlTower::LandingZone' + AND region = 'us-east-1' + landing_zone_tags: + name: landing_zone_tags + id: aws.controltower.landing_zone_tags + x-cfn-schema-name: LandingZone + x-cfn-type-name: AWS::ControlTower::LandingZone + 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, '$.LandingZoneIdentifier') as landing_zone_identifier, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.LatestAvailableVersion') as latest_available_version, + JSON_EXTRACT(detail.Properties, '$.DriftStatus') as drift_status, + JSON_EXTRACT(detail.Properties, '$.Manifest') as manifest, + JSON_EXTRACT(detail.Properties, '$.Version') as version + 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::ControlTower::LandingZone' + AND detail.data__TypeName = 'AWS::ControlTower::LandingZone' + 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, 'LandingZoneIdentifier') as landing_zone_identifier, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'LatestAvailableVersion') as latest_available_version, + json_extract_path_text(detail.Properties, 'DriftStatus') as drift_status, + json_extract_path_text(detail.Properties, 'Manifest') as manifest, + json_extract_path_text(detail.Properties, 'Version') as version + 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::ControlTower::LandingZone' + AND detail.data__TypeName = 'AWS::ControlTower::LandingZone' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/cur.yaml b/providers/src/aws/v00.00.00000/services/cur.yaml index 6a89f32f..998c0968 100644 --- a/providers/src/aws/v00.00.00000/services/cur.yaml +++ b/providers/src/aws/v00.00.00000/services/cur.yaml @@ -714,10 +714,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ReportName') as report_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CUR::ReportDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ReportName') as report_name, + JSON_EXTRACT(detail.Properties, '$.TimeUnit') as time_unit, + JSON_EXTRACT(detail.Properties, '$.Format') as _format, + JSON_EXTRACT(detail.Properties, '$.Compression') as compression, + JSON_EXTRACT(detail.Properties, '$.AdditionalSchemaElements') as additional_schema_elements, + JSON_EXTRACT(detail.Properties, '$.S3Bucket') as s3_bucket, + JSON_EXTRACT(detail.Properties, '$.S3Prefix') as s3_prefix, + JSON_EXTRACT(detail.Properties, '$.S3Region') as s3_region, + JSON_EXTRACT(detail.Properties, '$.AdditionalArtifacts') as additional_artifacts, + JSON_EXTRACT(detail.Properties, '$.RefreshClosedReports') as refresh_closed_reports, + JSON_EXTRACT(detail.Properties, '$.ReportVersioning') as report_versioning, + JSON_EXTRACT(detail.Properties, '$.BillingViewArn') as billing_view_arn + 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::CUR::ReportDefinition' + AND detail.data__TypeName = 'AWS::CUR::ReportDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -743,10 +759,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ReportName') as report_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CUR::ReportDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ReportName') as report_name, + json_extract_path_text(detail.Properties, 'TimeUnit') as time_unit, + json_extract_path_text(detail.Properties, 'Format') as _format, + json_extract_path_text(detail.Properties, 'Compression') as compression, + json_extract_path_text(detail.Properties, 'AdditionalSchemaElements') as additional_schema_elements, + json_extract_path_text(detail.Properties, 'S3Bucket') as s3_bucket, + json_extract_path_text(detail.Properties, 'S3Prefix') as s3_prefix, + json_extract_path_text(detail.Properties, 'S3Region') as s3_region, + json_extract_path_text(detail.Properties, 'AdditionalArtifacts') as additional_artifacts, + json_extract_path_text(detail.Properties, 'RefreshClosedReports') as refresh_closed_reports, + json_extract_path_text(detail.Properties, 'ReportVersioning') as report_versioning, + json_extract_path_text(detail.Properties, 'BillingViewArn') as billing_view_arn + 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::CUR::ReportDefinition' + AND detail.data__TypeName = 'AWS::CUR::ReportDefinition' + AND listing.region = 'us-east-1' + report_definitions_list_only: + name: report_definitions_list_only + id: aws.cur.report_definitions_list_only + x-cfn-schema-name: ReportDefinition + x-cfn-type-name: AWS::CUR::ReportDefinition + x-identifiers: + - ReportName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ReportName') as report_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CUR::ReportDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ReportName') as report_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CUR::ReportDefinition' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/customerprofiles.yaml b/providers/src/aws/v00.00.00000/services/customerprofiles.yaml index 244a1fc4..c16d583a 100644 --- a/providers/src/aws/v00.00.00000/services/customerprofiles.yaml +++ b/providers/src/aws/v00.00.00000/services/customerprofiles.yaml @@ -2147,11 +2147,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name, - JSON_EXTRACT(Properties, '$.CalculatedAttributeName') as calculated_attribute_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.CalculatedAttributeName') as calculated_attribute_name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AttributeDetails') as attribute_details, + JSON_EXTRACT(detail.Properties, '$.Conditions') as conditions, + JSON_EXTRACT(detail.Properties, '$.Statistic') as statistic, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::CustomerProfiles::CalculatedAttributeDefinition' + AND detail.data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2175,11 +2188,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name, - json_extract_path_text(Properties, 'CalculatedAttributeName') as calculated_attribute_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'CalculatedAttributeName') as calculated_attribute_name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AttributeDetails') as attribute_details, + json_extract_path_text(detail.Properties, 'Conditions') as conditions, + json_extract_path_text(detail.Properties, 'Statistic') as statistic, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::CustomerProfiles::CalculatedAttributeDefinition' + AND detail.data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' + AND listing.region = 'us-east-1' + calculated_attribute_definitions_list_only: + name: calculated_attribute_definitions_list_only + id: aws.customerprofiles.calculated_attribute_definitions_list_only + x-cfn-schema-name: CalculatedAttributeDefinition + x-cfn-type-name: AWS::CustomerProfiles::CalculatedAttributeDefinition + x-identifiers: + - DomainName + - CalculatedAttributeName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(Properties, '$.CalculatedAttributeName') as calculated_attribute_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name, + json_extract_path_text(Properties, 'CalculatedAttributeName') as calculated_attribute_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' + AND region = 'us-east-1' + calculated_attribute_definition_tags: + name: calculated_attribute_definition_tags + id: aws.customerprofiles.calculated_attribute_definition_tags + x-cfn-schema-name: CalculatedAttributeDefinition + x-cfn-type-name: AWS::CustomerProfiles::CalculatedAttributeDefinition + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.CalculatedAttributeName') as calculated_attribute_name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AttributeDetails') as attribute_details, + JSON_EXTRACT(detail.Properties, '$.Conditions') as conditions, + JSON_EXTRACT(detail.Properties, '$.Statistic') as statistic, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at + 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::CustomerProfiles::CalculatedAttributeDefinition' + AND detail.data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'CalculatedAttributeName') as calculated_attribute_name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AttributeDetails') as attribute_details, + json_extract_path_text(detail.Properties, 'Conditions') as conditions, + json_extract_path_text(detail.Properties, 'Statistic') as statistic, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at + 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::CustomerProfiles::CalculatedAttributeDefinition' + AND detail.data__TypeName = 'AWS::CustomerProfiles::CalculatedAttributeDefinition' + AND listing.region = 'us-east-1' domains: name: domains id: aws.customerprofiles.domains @@ -2260,10 +2381,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Domain' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DeadLetterQueueUrl') as dead_letter_queue_url, + JSON_EXTRACT(detail.Properties, '$.DefaultEncryptionKey') as default_encryption_key, + JSON_EXTRACT(detail.Properties, '$.DefaultExpirationDays') as default_expiration_days, + JSON_EXTRACT(detail.Properties, '$.Matching') as matching, + JSON_EXTRACT(detail.Properties, '$.RuleBasedMatching') as rule_based_matching, + JSON_EXTRACT(detail.Properties, '$.Stats') as stats, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at + 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::CustomerProfiles::Domain' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Domain' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2287,10 +2422,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Domain' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DeadLetterQueueUrl') as dead_letter_queue_url, + json_extract_path_text(detail.Properties, 'DefaultEncryptionKey') as default_encryption_key, + json_extract_path_text(detail.Properties, 'DefaultExpirationDays') as default_expiration_days, + json_extract_path_text(detail.Properties, 'Matching') as matching, + json_extract_path_text(detail.Properties, 'RuleBasedMatching') as rule_based_matching, + json_extract_path_text(detail.Properties, 'Stats') as stats, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at + 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::CustomerProfiles::Domain' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Domain' + AND listing.region = 'us-east-1' + domains_list_only: + name: domains_list_only + id: aws.customerprofiles.domains_list_only + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::CustomerProfiles::Domain + x-identifiers: + - DomainName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Domain' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Domain' + AND region = 'us-east-1' + domain_tags: + name: domain_tags + id: aws.customerprofiles.domain_tags + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::CustomerProfiles::Domain + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DeadLetterQueueUrl') as dead_letter_queue_url, + JSON_EXTRACT(detail.Properties, '$.DefaultEncryptionKey') as default_encryption_key, + JSON_EXTRACT(detail.Properties, '$.DefaultExpirationDays') as default_expiration_days, + JSON_EXTRACT(detail.Properties, '$.Matching') as matching, + JSON_EXTRACT(detail.Properties, '$.RuleBasedMatching') as rule_based_matching, + JSON_EXTRACT(detail.Properties, '$.Stats') as stats, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at + 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::CustomerProfiles::Domain' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Domain' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DeadLetterQueueUrl') as dead_letter_queue_url, + json_extract_path_text(detail.Properties, 'DefaultEncryptionKey') as default_encryption_key, + json_extract_path_text(detail.Properties, 'DefaultExpirationDays') as default_expiration_days, + json_extract_path_text(detail.Properties, 'Matching') as matching, + json_extract_path_text(detail.Properties, 'RuleBasedMatching') as rule_based_matching, + json_extract_path_text(detail.Properties, 'Stats') as stats, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at + 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::CustomerProfiles::Domain' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Domain' + AND listing.region = 'us-east-1' event_streams: name: event_streams id: aws.customerprofiles.event_streams @@ -2370,11 +2611,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name, - JSON_EXTRACT(Properties, '$.EventStreamName') as event_stream_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::EventStream' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.EventStreamName') as event_stream_name, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.EventStreamArn') as event_stream_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.DestinationDetails') as destination_details + 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::CustomerProfiles::EventStream' + AND detail.data__TypeName = 'AWS::CustomerProfiles::EventStream' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2396,11 +2648,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name, - json_extract_path_text(Properties, 'EventStreamName') as event_stream_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::EventStream' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'EventStreamName') as event_stream_name, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'EventStreamArn') as event_stream_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'DestinationDetails') as destination_details + 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::CustomerProfiles::EventStream' + AND detail.data__TypeName = 'AWS::CustomerProfiles::EventStream' + AND listing.region = 'us-east-1' + event_streams_list_only: + name: event_streams_list_only + id: aws.customerprofiles.event_streams_list_only + x-cfn-schema-name: EventStream + x-cfn-type-name: AWS::CustomerProfiles::EventStream + x-identifiers: + - DomainName + - EventStreamName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(Properties, '$.EventStreamName') as event_stream_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::EventStream' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name, + json_extract_path_text(Properties, 'EventStreamName') as event_stream_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::EventStream' + AND region = 'us-east-1' + event_stream_tags: + name: event_stream_tags + id: aws.customerprofiles.event_stream_tags + x-cfn-schema-name: EventStream + x-cfn-type-name: AWS::CustomerProfiles::EventStream + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.EventStreamName') as event_stream_name, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.EventStreamArn') as event_stream_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.DestinationDetails') as destination_details + 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::CustomerProfiles::EventStream' + AND detail.data__TypeName = 'AWS::CustomerProfiles::EventStream' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'EventStreamName') as event_stream_name, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'EventStreamArn') as event_stream_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'DestinationDetails') as destination_details + 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::CustomerProfiles::EventStream' + AND detail.data__TypeName = 'AWS::CustomerProfiles::EventStream' + AND listing.region = 'us-east-1' integrations: name: integrations id: aws.customerprofiles.integrations @@ -2480,11 +2834,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name, - JSON_EXTRACT(Properties, '$.Uri') as uri - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Integration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.FlowDefinition') as flow_definition, + JSON_EXTRACT(detail.Properties, '$.ObjectTypeName') as object_type_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ObjectTypeNames') as object_type_names + 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::CustomerProfiles::Integration' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Integration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2506,11 +2871,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name, - json_extract_path_text(Properties, 'Uri') as uri - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Integration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'FlowDefinition') as flow_definition, + json_extract_path_text(detail.Properties, 'ObjectTypeName') as object_type_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ObjectTypeNames') as object_type_names + 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::CustomerProfiles::Integration' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Integration' + AND listing.region = 'us-east-1' + integrations_list_only: + name: integrations_list_only + id: aws.customerprofiles.integrations_list_only + x-cfn-schema-name: Integration + x-cfn-type-name: AWS::CustomerProfiles::Integration + x-identifiers: + - DomainName + - Uri + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(Properties, '$.Uri') as uri + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Integration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name, + json_extract_path_text(Properties, 'Uri') as uri + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::Integration' + AND region = 'us-east-1' + integration_tags: + name: integration_tags + id: aws.customerprofiles.integration_tags + x-cfn-schema-name: Integration + x-cfn-type-name: AWS::CustomerProfiles::Integration + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.FlowDefinition') as flow_definition, + JSON_EXTRACT(detail.Properties, '$.ObjectTypeName') as object_type_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.ObjectTypeNames') as object_type_names + 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::CustomerProfiles::Integration' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Integration' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'FlowDefinition') as flow_definition, + json_extract_path_text(detail.Properties, 'ObjectTypeName') as object_type_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'ObjectTypeNames') as object_type_names + 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::CustomerProfiles::Integration' + AND detail.data__TypeName = 'AWS::CustomerProfiles::Integration' + AND listing.region = 'us-east-1' object_types: name: object_types id: aws.customerprofiles.object_types @@ -2595,11 +3062,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainName') as domain_name, - JSON_EXTRACT(Properties, '$.ObjectTypeName') as object_type_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::ObjectType' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.ObjectTypeName') as object_type_name, + JSON_EXTRACT(detail.Properties, '$.AllowProfileCreation') as allow_profile_creation, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.ExpirationDays') as expiration_days, + JSON_EXTRACT(detail.Properties, '$.Fields') as fields, + JSON_EXTRACT(detail.Properties, '$.Keys') as keys, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.SourceLastUpdatedTimestampFormat') as source_last_updated_timestamp_format, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TemplateId') as template_id + 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::CustomerProfiles::ObjectType' + AND detail.data__TypeName = 'AWS::CustomerProfiles::ObjectType' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2626,11 +3109,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainName') as domain_name, - json_extract_path_text(Properties, 'ObjectTypeName') as object_type_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::ObjectType' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'ObjectTypeName') as object_type_name, + json_extract_path_text(detail.Properties, 'AllowProfileCreation') as allow_profile_creation, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'ExpirationDays') as expiration_days, + json_extract_path_text(detail.Properties, 'Fields') as fields, + json_extract_path_text(detail.Properties, 'Keys') as keys, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'SourceLastUpdatedTimestampFormat') as source_last_updated_timestamp_format, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TemplateId') as template_id + 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::CustomerProfiles::ObjectType' + AND detail.data__TypeName = 'AWS::CustomerProfiles::ObjectType' + AND listing.region = 'us-east-1' + object_types_list_only: + name: object_types_list_only + id: aws.customerprofiles.object_types_list_only + x-cfn-schema-name: ObjectType + x-cfn-type-name: AWS::CustomerProfiles::ObjectType + x-identifiers: + - DomainName + - ObjectTypeName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(Properties, '$.ObjectTypeName') as object_type_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::ObjectType' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainName') as domain_name, + json_extract_path_text(Properties, 'ObjectTypeName') as object_type_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::CustomerProfiles::ObjectType' + AND region = 'us-east-1' + object_type_tags: + name: object_type_tags + id: aws.customerprofiles.object_type_tags + x-cfn-schema-name: ObjectType + x-cfn-type-name: AWS::CustomerProfiles::ObjectType + 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, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.ObjectTypeName') as object_type_name, + JSON_EXTRACT(detail.Properties, '$.AllowProfileCreation') as allow_profile_creation, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.ExpirationDays') as expiration_days, + JSON_EXTRACT(detail.Properties, '$.Fields') as fields, + JSON_EXTRACT(detail.Properties, '$.Keys') as keys, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.SourceLastUpdatedTimestampFormat') as source_last_updated_timestamp_format, + JSON_EXTRACT(detail.Properties, '$.TemplateId') as template_id + 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::CustomerProfiles::ObjectType' + AND detail.data__TypeName = 'AWS::CustomerProfiles::ObjectType' + 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, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'ObjectTypeName') as object_type_name, + json_extract_path_text(detail.Properties, 'AllowProfileCreation') as allow_profile_creation, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'ExpirationDays') as expiration_days, + json_extract_path_text(detail.Properties, 'Fields') as fields, + json_extract_path_text(detail.Properties, 'Keys') as keys, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'SourceLastUpdatedTimestampFormat') as source_last_updated_timestamp_format, + json_extract_path_text(detail.Properties, 'TemplateId') as template_id + 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::CustomerProfiles::ObjectType' + AND detail.data__TypeName = 'AWS::CustomerProfiles::ObjectType' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/databrew.yaml b/providers/src/aws/v00.00.00000/services/databrew.yaml index 930da6e9..67f16f79 100644 --- a/providers/src/aws/v00.00.00000/services/databrew.yaml +++ b/providers/src/aws/v00.00.00000/services/databrew.yaml @@ -2191,10 +2191,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Dataset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Format') as _format, + JSON_EXTRACT(detail.Properties, '$.FormatOptions') as format_options, + JSON_EXTRACT(detail.Properties, '$.Input') as input, + JSON_EXTRACT(detail.Properties, '$.PathOptions') as path_options, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DataBrew::Dataset' + AND detail.data__TypeName = 'AWS::DataBrew::Dataset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2214,10 +2224,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Dataset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Format') as _format, + json_extract_path_text(detail.Properties, 'FormatOptions') as format_options, + json_extract_path_text(detail.Properties, 'Input') as input, + json_extract_path_text(detail.Properties, 'PathOptions') as path_options, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DataBrew::Dataset' + AND detail.data__TypeName = 'AWS::DataBrew::Dataset' + AND listing.region = 'us-east-1' + datasets_list_only: + name: datasets_list_only + id: aws.databrew.datasets_list_only + x-cfn-schema-name: Dataset + x-cfn-type-name: AWS::DataBrew::Dataset + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Dataset' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Dataset' + AND region = 'us-east-1' + dataset_tags: + name: dataset_tags + id: aws.databrew.dataset_tags + x-cfn-schema-name: Dataset + x-cfn-type-name: AWS::DataBrew::Dataset + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Format') as _format, + JSON_EXTRACT(detail.Properties, '$.FormatOptions') as format_options, + JSON_EXTRACT(detail.Properties, '$.Input') as input, + JSON_EXTRACT(detail.Properties, '$.PathOptions') as path_options + 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::DataBrew::Dataset' + AND detail.data__TypeName = 'AWS::DataBrew::Dataset' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Format') as _format, + json_extract_path_text(detail.Properties, 'FormatOptions') as format_options, + json_extract_path_text(detail.Properties, 'Input') as input, + json_extract_path_text(detail.Properties, 'PathOptions') as path_options + 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::DataBrew::Dataset' + AND detail.data__TypeName = 'AWS::DataBrew::Dataset' + AND listing.region = 'us-east-1' recipes: name: recipes id: aws.databrew.recipes @@ -2292,10 +2396,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Recipe' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Steps') as steps, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DataBrew::Recipe' + AND detail.data__TypeName = 'AWS::DataBrew::Recipe' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2313,10 +2425,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Recipe' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Steps') as steps, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DataBrew::Recipe' + AND detail.data__TypeName = 'AWS::DataBrew::Recipe' + AND listing.region = 'us-east-1' + recipes_list_only: + name: recipes_list_only + id: aws.databrew.recipes_list_only + x-cfn-schema-name: Recipe + x-cfn-type-name: AWS::DataBrew::Recipe + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Recipe' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Recipe' + AND region = 'us-east-1' + recipe_tags: + name: recipe_tags + id: aws.databrew.recipe_tags + x-cfn-schema-name: Recipe + x-cfn-type-name: AWS::DataBrew::Recipe + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Steps') as steps + 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::DataBrew::Recipe' + AND detail.data__TypeName = 'AWS::DataBrew::Recipe' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Steps') as steps + 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::DataBrew::Recipe' + AND detail.data__TypeName = 'AWS::DataBrew::Recipe' + AND listing.region = 'us-east-1' jobs: name: jobs id: aws.databrew.jobs @@ -2407,10 +2607,34 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Job' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKeyArn') as encryption_key_arn, + JSON_EXTRACT(detail.Properties, '$.EncryptionMode') as encryption_mode, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.LogSubscription') as log_subscription, + JSON_EXTRACT(detail.Properties, '$.MaxCapacity') as max_capacity, + JSON_EXTRACT(detail.Properties, '$.MaxRetries') as max_retries, + JSON_EXTRACT(detail.Properties, '$.Outputs') as outputs, + JSON_EXTRACT(detail.Properties, '$.DataCatalogOutputs') as data_catalog_outputs, + JSON_EXTRACT(detail.Properties, '$.DatabaseOutputs') as database_outputs, + JSON_EXTRACT(detail.Properties, '$.OutputLocation') as output_location, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name, + JSON_EXTRACT(detail.Properties, '$.Recipe') as recipe, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Timeout') as timeout, + JSON_EXTRACT(detail.Properties, '$.JobSample') as job_sample, + JSON_EXTRACT(detail.Properties, '$.ProfileConfiguration') as profile_configuration, + JSON_EXTRACT(detail.Properties, '$.ValidationConfigurations') as validation_configurations + 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::DataBrew::Job' + AND detail.data__TypeName = 'AWS::DataBrew::Job' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2444,10 +2668,146 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Job' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'EncryptionKeyArn') as encryption_key_arn, + json_extract_path_text(detail.Properties, 'EncryptionMode') as encryption_mode, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'LogSubscription') as log_subscription, + json_extract_path_text(detail.Properties, 'MaxCapacity') as max_capacity, + json_extract_path_text(detail.Properties, 'MaxRetries') as max_retries, + json_extract_path_text(detail.Properties, 'Outputs') as outputs, + json_extract_path_text(detail.Properties, 'DataCatalogOutputs') as data_catalog_outputs, + json_extract_path_text(detail.Properties, 'DatabaseOutputs') as database_outputs, + json_extract_path_text(detail.Properties, 'OutputLocation') as output_location, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name, + json_extract_path_text(detail.Properties, 'Recipe') as recipe, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Timeout') as timeout, + json_extract_path_text(detail.Properties, 'JobSample') as job_sample, + json_extract_path_text(detail.Properties, 'ProfileConfiguration') as profile_configuration, + json_extract_path_text(detail.Properties, 'ValidationConfigurations') as validation_configurations + 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::DataBrew::Job' + AND detail.data__TypeName = 'AWS::DataBrew::Job' + AND listing.region = 'us-east-1' + jobs_list_only: + name: jobs_list_only + id: aws.databrew.jobs_list_only + x-cfn-schema-name: Job + x-cfn-type-name: AWS::DataBrew::Job + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Job' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Job' + AND region = 'us-east-1' + job_tags: + name: job_tags + id: aws.databrew.job_tags + x-cfn-schema-name: Job + x-cfn-type-name: AWS::DataBrew::Job + 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, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKeyArn') as encryption_key_arn, + JSON_EXTRACT(detail.Properties, '$.EncryptionMode') as encryption_mode, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.LogSubscription') as log_subscription, + JSON_EXTRACT(detail.Properties, '$.MaxCapacity') as max_capacity, + JSON_EXTRACT(detail.Properties, '$.MaxRetries') as max_retries, + JSON_EXTRACT(detail.Properties, '$.Outputs') as outputs, + JSON_EXTRACT(detail.Properties, '$.DataCatalogOutputs') as data_catalog_outputs, + JSON_EXTRACT(detail.Properties, '$.DatabaseOutputs') as database_outputs, + JSON_EXTRACT(detail.Properties, '$.OutputLocation') as output_location, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name, + JSON_EXTRACT(detail.Properties, '$.Recipe') as recipe, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Timeout') as timeout, + JSON_EXTRACT(detail.Properties, '$.JobSample') as job_sample, + JSON_EXTRACT(detail.Properties, '$.ProfileConfiguration') as profile_configuration, + JSON_EXTRACT(detail.Properties, '$.ValidationConfigurations') as validation_configurations + 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::DataBrew::Job' + AND detail.data__TypeName = 'AWS::DataBrew::Job' + 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, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'EncryptionKeyArn') as encryption_key_arn, + json_extract_path_text(detail.Properties, 'EncryptionMode') as encryption_mode, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'LogSubscription') as log_subscription, + json_extract_path_text(detail.Properties, 'MaxCapacity') as max_capacity, + json_extract_path_text(detail.Properties, 'MaxRetries') as max_retries, + json_extract_path_text(detail.Properties, 'Outputs') as outputs, + json_extract_path_text(detail.Properties, 'DataCatalogOutputs') as data_catalog_outputs, + json_extract_path_text(detail.Properties, 'DatabaseOutputs') as database_outputs, + json_extract_path_text(detail.Properties, 'OutputLocation') as output_location, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name, + json_extract_path_text(detail.Properties, 'Recipe') as recipe, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Timeout') as timeout, + json_extract_path_text(detail.Properties, 'JobSample') as job_sample, + json_extract_path_text(detail.Properties, 'ProfileConfiguration') as profile_configuration, + json_extract_path_text(detail.Properties, 'ValidationConfigurations') as validation_configurations + 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::DataBrew::Job' + AND detail.data__TypeName = 'AWS::DataBrew::Job' + AND listing.region = 'us-east-1' projects: name: projects id: aws.databrew.projects @@ -2524,10 +2884,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Project' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RecipeName') as recipe_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Sample') as sample, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DataBrew::Project' + AND detail.data__TypeName = 'AWS::DataBrew::Project' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2547,10 +2917,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Project' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RecipeName') as recipe_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Sample') as sample, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DataBrew::Project' + AND detail.data__TypeName = 'AWS::DataBrew::Project' + AND listing.region = 'us-east-1' + projects_list_only: + name: projects_list_only + id: aws.databrew.projects_list_only + x-cfn-schema-name: Project + x-cfn-type-name: AWS::DataBrew::Project + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Project' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Project' + AND region = 'us-east-1' + project_tags: + name: project_tags + id: aws.databrew.project_tags + x-cfn-schema-name: Project + x-cfn-type-name: AWS::DataBrew::Project + 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, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RecipeName') as recipe_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Sample') as sample + 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::DataBrew::Project' + AND detail.data__TypeName = 'AWS::DataBrew::Project' + 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, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RecipeName') as recipe_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Sample') as sample + 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::DataBrew::Project' + AND detail.data__TypeName = 'AWS::DataBrew::Project' + AND listing.region = 'us-east-1' rulesets: name: rulesets id: aws.databrew.rulesets @@ -2626,10 +3090,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Ruleset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DataBrew::Ruleset' + AND detail.data__TypeName = 'AWS::DataBrew::Ruleset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2648,10 +3121,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Ruleset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DataBrew::Ruleset' + AND detail.data__TypeName = 'AWS::DataBrew::Ruleset' + AND listing.region = 'us-east-1' + rulesets_list_only: + name: rulesets_list_only + id: aws.databrew.rulesets_list_only + x-cfn-schema-name: Ruleset + x-cfn-type-name: AWS::DataBrew::Ruleset + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Ruleset' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Ruleset' + AND region = 'us-east-1' + ruleset_tags: + name: ruleset_tags + id: aws.databrew.ruleset_tags + x-cfn-schema-name: Ruleset + x-cfn-type-name: AWS::DataBrew::Ruleset + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules + 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::DataBrew::Ruleset' + AND detail.data__TypeName = 'AWS::DataBrew::Ruleset' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'Rules') as rules + 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::DataBrew::Ruleset' + AND detail.data__TypeName = 'AWS::DataBrew::Ruleset' + AND listing.region = 'us-east-1' schedules: name: schedules id: aws.databrew.schedules @@ -2726,10 +3290,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Schedule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.JobNames') as job_names, + JSON_EXTRACT(detail.Properties, '$.CronExpression') as cron_expression, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DataBrew::Schedule' + AND detail.data__TypeName = 'AWS::DataBrew::Schedule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2747,10 +3319,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Schedule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'JobNames') as job_names, + json_extract_path_text(detail.Properties, 'CronExpression') as cron_expression, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DataBrew::Schedule' + AND detail.data__TypeName = 'AWS::DataBrew::Schedule' + AND listing.region = 'us-east-1' + schedules_list_only: + name: schedules_list_only + id: aws.databrew.schedules_list_only + x-cfn-schema-name: Schedule + x-cfn-type-name: AWS::DataBrew::Schedule + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Schedule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataBrew::Schedule' + AND region = 'us-east-1' + schedule_tags: + name: schedule_tags + id: aws.databrew.schedule_tags + x-cfn-schema-name: Schedule + x-cfn-type-name: AWS::DataBrew::Schedule + 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, '$.JobNames') as job_names, + JSON_EXTRACT(detail.Properties, '$.CronExpression') as cron_expression, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::DataBrew::Schedule' + AND detail.data__TypeName = 'AWS::DataBrew::Schedule' + 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, 'JobNames') as job_names, + json_extract_path_text(detail.Properties, 'CronExpression') as cron_expression, + json_extract_path_text(detail.Properties, 'Name') as name + 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::DataBrew::Schedule' + AND detail.data__TypeName = 'AWS::DataBrew::Schedule' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/datapipeline.yaml b/providers/src/aws/v00.00.00000/services/datapipeline.yaml index 447923f4..7a5cb458 100644 --- a/providers/src/aws/v00.00.00000/services/datapipeline.yaml +++ b/providers/src/aws/v00.00.00000/services/datapipeline.yaml @@ -713,10 +713,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PipelineId') as pipeline_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataPipeline::Pipeline' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Activate') as activate, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ParameterObjects') as parameter_objects, + JSON_EXTRACT(detail.Properties, '$.ParameterValues') as parameter_values, + JSON_EXTRACT(detail.Properties, '$.PipelineObjects') as pipeline_objects, + JSON_EXTRACT(detail.Properties, '$.PipelineTags') as pipeline_tags, + JSON_EXTRACT(detail.Properties, '$.PipelineId') as pipeline_id + 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::DataPipeline::Pipeline' + AND detail.data__TypeName = 'AWS::DataPipeline::Pipeline' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -738,10 +750,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PipelineId') as pipeline_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataPipeline::Pipeline' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Activate') as activate, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ParameterObjects') as parameter_objects, + json_extract_path_text(detail.Properties, 'ParameterValues') as parameter_values, + json_extract_path_text(detail.Properties, 'PipelineObjects') as pipeline_objects, + json_extract_path_text(detail.Properties, 'PipelineTags') as pipeline_tags, + json_extract_path_text(detail.Properties, 'PipelineId') as pipeline_id + 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::DataPipeline::Pipeline' + AND detail.data__TypeName = 'AWS::DataPipeline::Pipeline' + AND listing.region = 'us-east-1' + pipelines_list_only: + name: pipelines_list_only + id: aws.datapipeline.pipelines_list_only + x-cfn-schema-name: Pipeline + x-cfn-type-name: AWS::DataPipeline::Pipeline + x-identifiers: + - PipelineId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PipelineId') as pipeline_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataPipeline::Pipeline' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PipelineId') as pipeline_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataPipeline::Pipeline' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/datasync.yaml b/providers/src/aws/v00.00.00000/services/datasync.yaml index e48b391a..e64c8bca 100644 --- a/providers/src/aws/v00.00.00000/services/datasync.yaml +++ b/providers/src/aws/v00.00.00000/services/datasync.yaml @@ -3484,10 +3484,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AgentArn') as agent_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Agent' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AgentName') as agent_name, + JSON_EXTRACT(detail.Properties, '$.ActivationKey') as activation_key, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.SubnetArns') as subnet_arns, + JSON_EXTRACT(detail.Properties, '$.VpcEndpointId') as vpc_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.EndpointType') as endpoint_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AgentArn') as agent_arn + 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::DataSync::Agent' + AND detail.data__TypeName = 'AWS::DataSync::Agent' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3509,10 +3521,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AgentArn') as agent_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Agent' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AgentName') as agent_name, + json_extract_path_text(detail.Properties, 'ActivationKey') as activation_key, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'SubnetArns') as subnet_arns, + json_extract_path_text(detail.Properties, 'VpcEndpointId') as vpc_endpoint_id, + json_extract_path_text(detail.Properties, 'EndpointType') as endpoint_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AgentArn') as agent_arn + 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::DataSync::Agent' + AND detail.data__TypeName = 'AWS::DataSync::Agent' + AND listing.region = 'us-east-1' + agents_list_only: + name: agents_list_only + id: aws.datasync.agents_list_only + x-cfn-schema-name: Agent + x-cfn-type-name: AWS::DataSync::Agent + x-identifiers: + - AgentArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AgentArn') as agent_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Agent' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AgentArn') as agent_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Agent' + AND region = 'us-east-1' + agent_tags: + name: agent_tags + id: aws.datasync.agent_tags + x-cfn-schema-name: Agent + x-cfn-type-name: AWS::DataSync::Agent + 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, '$.AgentName') as agent_name, + JSON_EXTRACT(detail.Properties, '$.ActivationKey') as activation_key, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.SubnetArns') as subnet_arns, + JSON_EXTRACT(detail.Properties, '$.VpcEndpointId') as vpc_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.EndpointType') as endpoint_type, + JSON_EXTRACT(detail.Properties, '$.AgentArn') as agent_arn + 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::DataSync::Agent' + AND detail.data__TypeName = 'AWS::DataSync::Agent' + 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, 'AgentName') as agent_name, + json_extract_path_text(detail.Properties, 'ActivationKey') as activation_key, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'SubnetArns') as subnet_arns, + json_extract_path_text(detail.Properties, 'VpcEndpointId') as vpc_endpoint_id, + json_extract_path_text(detail.Properties, 'EndpointType') as endpoint_type, + json_extract_path_text(detail.Properties, 'AgentArn') as agent_arn + 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::DataSync::Agent' + AND detail.data__TypeName = 'AWS::DataSync::Agent' + AND listing.region = 'us-east-1' location_azure_blobs: name: location_azure_blobs id: aws.datasync.location_azure_blobs @@ -3593,10 +3705,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationAzureBlob' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.AzureBlobAuthenticationType') as azure_blob_authentication_type, + JSON_EXTRACT(detail.Properties, '$.AzureBlobSasConfiguration') as azure_blob_sas_configuration, + JSON_EXTRACT(detail.Properties, '$.AzureBlobContainerUrl') as azure_blob_container_url, + JSON_EXTRACT(detail.Properties, '$.AzureBlobType') as azure_blob_type, + JSON_EXTRACT(detail.Properties, '$.AzureAccessTier') as azure_access_tier, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationAzureBlob' + AND detail.data__TypeName = 'AWS::DataSync::LocationAzureBlob' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3620,10 +3746,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationAzureBlob' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'AzureBlobAuthenticationType') as azure_blob_authentication_type, + json_extract_path_text(detail.Properties, 'AzureBlobSasConfiguration') as azure_blob_sas_configuration, + json_extract_path_text(detail.Properties, 'AzureBlobContainerUrl') as azure_blob_container_url, + json_extract_path_text(detail.Properties, 'AzureBlobType') as azure_blob_type, + json_extract_path_text(detail.Properties, 'AzureAccessTier') as azure_access_tier, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationAzureBlob' + AND detail.data__TypeName = 'AWS::DataSync::LocationAzureBlob' + AND listing.region = 'us-east-1' + location_azure_blobs_list_only: + name: location_azure_blobs_list_only + id: aws.datasync.location_azure_blobs_list_only + x-cfn-schema-name: LocationAzureBlob + x-cfn-type-name: AWS::DataSync::LocationAzureBlob + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationAzureBlob' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationAzureBlob' + AND region = 'us-east-1' + location_azure_blob_tags: + name: location_azure_blob_tags + id: aws.datasync.location_azure_blob_tags + x-cfn-schema-name: LocationAzureBlob + x-cfn-type-name: AWS::DataSync::LocationAzureBlob + 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, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.AzureBlobAuthenticationType') as azure_blob_authentication_type, + JSON_EXTRACT(detail.Properties, '$.AzureBlobSasConfiguration') as azure_blob_sas_configuration, + JSON_EXTRACT(detail.Properties, '$.AzureBlobContainerUrl') as azure_blob_container_url, + JSON_EXTRACT(detail.Properties, '$.AzureBlobType') as azure_blob_type, + JSON_EXTRACT(detail.Properties, '$.AzureAccessTier') as azure_access_tier, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationAzureBlob' + AND detail.data__TypeName = 'AWS::DataSync::LocationAzureBlob' + 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, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'AzureBlobAuthenticationType') as azure_blob_authentication_type, + json_extract_path_text(detail.Properties, 'AzureBlobSasConfiguration') as azure_blob_sas_configuration, + json_extract_path_text(detail.Properties, 'AzureBlobContainerUrl') as azure_blob_container_url, + json_extract_path_text(detail.Properties, 'AzureBlobType') as azure_blob_type, + json_extract_path_text(detail.Properties, 'AzureAccessTier') as azure_access_tier, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationAzureBlob' + AND detail.data__TypeName = 'AWS::DataSync::LocationAzureBlob' + AND listing.region = 'us-east-1' location_efs: name: location_efs id: aws.datasync.location_efs @@ -3703,10 +3935,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationEFS' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Ec2Config') as ec2_config, + JSON_EXTRACT(detail.Properties, '$.EfsFilesystemArn') as efs_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.AccessPointArn') as access_point_arn, + JSON_EXTRACT(detail.Properties, '$.FileSystemAccessRoleArn') as file_system_access_role_arn, + JSON_EXTRACT(detail.Properties, '$.InTransitEncryption') as in_transit_encryption, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationEFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationEFS' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3729,10 +3974,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationEFS' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Ec2Config') as ec2_config, + json_extract_path_text(detail.Properties, 'EfsFilesystemArn') as efs_filesystem_arn, + json_extract_path_text(detail.Properties, 'AccessPointArn') as access_point_arn, + json_extract_path_text(detail.Properties, 'FileSystemAccessRoleArn') as file_system_access_role_arn, + json_extract_path_text(detail.Properties, 'InTransitEncryption') as in_transit_encryption, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationEFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationEFS' + AND listing.region = 'us-east-1' + location_efs_list_only: + name: location_efs_list_only + id: aws.datasync.location_efs_list_only + x-cfn-schema-name: LocationEFS + x-cfn-type-name: AWS::DataSync::LocationEFS + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationEFS' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationEFS' + AND region = 'us-east-1' + location_efs_tags: + name: location_efs_tags + id: aws.datasync.location_efs_tags + x-cfn-schema-name: LocationEFS + x-cfn-type-name: AWS::DataSync::LocationEFS + 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, '$.Ec2Config') as ec2_config, + JSON_EXTRACT(detail.Properties, '$.EfsFilesystemArn') as efs_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.AccessPointArn') as access_point_arn, + JSON_EXTRACT(detail.Properties, '$.FileSystemAccessRoleArn') as file_system_access_role_arn, + JSON_EXTRACT(detail.Properties, '$.InTransitEncryption') as in_transit_encryption, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationEFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationEFS' + 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, 'Ec2Config') as ec2_config, + json_extract_path_text(detail.Properties, 'EfsFilesystemArn') as efs_filesystem_arn, + json_extract_path_text(detail.Properties, 'AccessPointArn') as access_point_arn, + json_extract_path_text(detail.Properties, 'FileSystemAccessRoleArn') as file_system_access_role_arn, + json_extract_path_text(detail.Properties, 'InTransitEncryption') as in_transit_encryption, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationEFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationEFS' + AND listing.region = 'us-east-1' locationf_sx_lustres: name: locationf_sx_lustres id: aws.datasync.locationf_sx_lustres @@ -3809,10 +4157,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxLustre' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxLustre' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxLustre' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3832,10 +4190,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxLustre' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxLustre' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxLustre' + AND listing.region = 'us-east-1' + locationf_sx_lustres_list_only: + name: locationf_sx_lustres_list_only + id: aws.datasync.locationf_sx_lustres_list_only + x-cfn-schema-name: LocationFSxLustre + x-cfn-type-name: AWS::DataSync::LocationFSxLustre + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxLustre' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxLustre' + AND region = 'us-east-1' + locationf_sx_lustre_tags: + name: locationf_sx_lustre_tags + id: aws.datasync.locationf_sx_lustre_tags + x-cfn-schema-name: LocationFSxLustre + x-cfn-type-name: AWS::DataSync::LocationFSxLustre + 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, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxLustre' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxLustre' + 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, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxLustre' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxLustre' + AND listing.region = 'us-east-1' locationf_sx_ontaps: name: locationf_sx_ontaps id: aws.datasync.locationf_sx_ontaps @@ -3914,10 +4366,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxONTAP' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StorageVirtualMachineArn') as storage_virtual_machine_arn, + JSON_EXTRACT(detail.Properties, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxONTAP' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxONTAP' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3939,10 +4403,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxONTAP' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StorageVirtualMachineArn') as storage_virtual_machine_arn, + json_extract_path_text(detail.Properties, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxONTAP' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxONTAP' + AND listing.region = 'us-east-1' + locationf_sx_ontaps_list_only: + name: locationf_sx_ontaps_list_only + id: aws.datasync.locationf_sx_ontaps_list_only + x-cfn-schema-name: LocationFSxONTAP + x-cfn-type-name: AWS::DataSync::LocationFSxONTAP + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxONTAP' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxONTAP' + AND region = 'us-east-1' + locationf_sx_ontap_tags: + name: locationf_sx_ontap_tags + id: aws.datasync.locationf_sx_ontap_tags + x-cfn-schema-name: LocationFSxONTAP + x-cfn-type-name: AWS::DataSync::LocationFSxONTAP + 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, '$.StorageVirtualMachineArn') as storage_virtual_machine_arn, + JSON_EXTRACT(detail.Properties, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxONTAP' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxONTAP' + 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, 'StorageVirtualMachineArn') as storage_virtual_machine_arn, + json_extract_path_text(detail.Properties, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxONTAP' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxONTAP' + AND listing.region = 'us-east-1' locationf_sx_open_zfs: name: locationf_sx_open_zfs id: aws.datasync.locationf_sx_open_zfs @@ -4020,10 +4584,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxOpenZFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4044,10 +4619,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxOpenZFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' + AND listing.region = 'us-east-1' + locationf_sx_open_zfs_list_only: + name: locationf_sx_open_zfs_list_only + id: aws.datasync.locationf_sx_open_zfs_list_only + x-cfn-schema-name: LocationFSxOpenZFS + x-cfn-type-name: AWS::DataSync::LocationFSxOpenZFS + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' + AND region = 'us-east-1' + locationf_sx_open_zfs_tags: + name: locationf_sx_open_zfs_tags + id: aws.datasync.locationf_sx_open_zfs_tags + x-cfn-schema-name: LocationFSxOpenZFS + x-cfn-type-name: AWS::DataSync::LocationFSxOpenZFS + 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, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxOpenZFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' + 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, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxOpenZFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxOpenZFS' + AND listing.region = 'us-east-1' locationf_sx_windows: name: locationf_sx_windows id: aws.datasync.locationf_sx_windows @@ -4127,10 +4799,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxWindows' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.User') as user, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxWindows' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxWindows' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4153,10 +4838,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxWindows' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'User') as user, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxWindows' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxWindows' + AND listing.region = 'us-east-1' + locationf_sx_windows_list_only: + name: locationf_sx_windows_list_only + id: aws.datasync.locationf_sx_windows_list_only + x-cfn-schema-name: LocationFSxWindows + x-cfn-type-name: AWS::DataSync::LocationFSxWindows + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxWindows' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationFSxWindows' + AND region = 'us-east-1' + locationf_sx_windows_tags: + name: locationf_sx_windows_tags + id: aws.datasync.locationf_sx_windows_tags + x-cfn-schema-name: LocationFSxWindows + x-cfn-type-name: AWS::DataSync::LocationFSxWindows + 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, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.FsxFilesystemArn') as fsx_filesystem_arn, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupArns') as security_group_arns, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.User') as user, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationFSxWindows' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxWindows' + 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, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'FsxFilesystemArn') as fsx_filesystem_arn, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'SecurityGroupArns') as security_group_arns, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'User') as user, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationFSxWindows' + AND detail.data__TypeName = 'AWS::DataSync::LocationFSxWindows' + AND listing.region = 'us-east-1' location_hdfs: name: location_hdfs id: aws.datasync.location_hdfs @@ -4242,10 +5030,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationHDFS' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.NameNodes') as name_nodes, + JSON_EXTRACT(detail.Properties, '$.BlockSize') as block_size, + JSON_EXTRACT(detail.Properties, '$.ReplicationFactor') as replication_factor, + JSON_EXTRACT(detail.Properties, '$.KmsKeyProviderUri') as kms_key_provider_uri, + JSON_EXTRACT(detail.Properties, '$.QopConfiguration') as qop_configuration, + JSON_EXTRACT(detail.Properties, '$.AuthenticationType') as authentication_type, + JSON_EXTRACT(detail.Properties, '$.SimpleUser') as simple_user, + JSON_EXTRACT(detail.Properties, '$.KerberosPrincipal') as kerberos_principal, + JSON_EXTRACT(detail.Properties, '$.KerberosKeytab') as kerberos_keytab, + JSON_EXTRACT(detail.Properties, '$.KerberosKrb5Conf') as kerberos_krb5_conf, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationHDFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationHDFS' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4274,10 +5081,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationHDFS' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'NameNodes') as name_nodes, + json_extract_path_text(detail.Properties, 'BlockSize') as block_size, + json_extract_path_text(detail.Properties, 'ReplicationFactor') as replication_factor, + json_extract_path_text(detail.Properties, 'KmsKeyProviderUri') as kms_key_provider_uri, + json_extract_path_text(detail.Properties, 'QopConfiguration') as qop_configuration, + json_extract_path_text(detail.Properties, 'AuthenticationType') as authentication_type, + json_extract_path_text(detail.Properties, 'SimpleUser') as simple_user, + json_extract_path_text(detail.Properties, 'KerberosPrincipal') as kerberos_principal, + json_extract_path_text(detail.Properties, 'KerberosKeytab') as kerberos_keytab, + json_extract_path_text(detail.Properties, 'KerberosKrb5Conf') as kerberos_krb5_conf, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationHDFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationHDFS' + AND listing.region = 'us-east-1' + location_hdfs_list_only: + name: location_hdfs_list_only + id: aws.datasync.location_hdfs_list_only + x-cfn-schema-name: LocationHDFS + x-cfn-type-name: AWS::DataSync::LocationHDFS + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationHDFS' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationHDFS' + AND region = 'us-east-1' + location_hdfs_tags: + name: location_hdfs_tags + id: aws.datasync.location_hdfs_tags + x-cfn-schema-name: LocationHDFS + x-cfn-type-name: AWS::DataSync::LocationHDFS + 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, '$.NameNodes') as name_nodes, + JSON_EXTRACT(detail.Properties, '$.BlockSize') as block_size, + JSON_EXTRACT(detail.Properties, '$.ReplicationFactor') as replication_factor, + JSON_EXTRACT(detail.Properties, '$.KmsKeyProviderUri') as kms_key_provider_uri, + JSON_EXTRACT(detail.Properties, '$.QopConfiguration') as qop_configuration, + JSON_EXTRACT(detail.Properties, '$.AuthenticationType') as authentication_type, + JSON_EXTRACT(detail.Properties, '$.SimpleUser') as simple_user, + JSON_EXTRACT(detail.Properties, '$.KerberosPrincipal') as kerberos_principal, + JSON_EXTRACT(detail.Properties, '$.KerberosKeytab') as kerberos_keytab, + JSON_EXTRACT(detail.Properties, '$.KerberosKrb5Conf') as kerberos_krb5_conf, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationHDFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationHDFS' + 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, 'NameNodes') as name_nodes, + json_extract_path_text(detail.Properties, 'BlockSize') as block_size, + json_extract_path_text(detail.Properties, 'ReplicationFactor') as replication_factor, + json_extract_path_text(detail.Properties, 'KmsKeyProviderUri') as kms_key_provider_uri, + json_extract_path_text(detail.Properties, 'QopConfiguration') as qop_configuration, + json_extract_path_text(detail.Properties, 'AuthenticationType') as authentication_type, + json_extract_path_text(detail.Properties, 'SimpleUser') as simple_user, + json_extract_path_text(detail.Properties, 'KerberosPrincipal') as kerberos_principal, + json_extract_path_text(detail.Properties, 'KerberosKeytab') as kerberos_keytab, + json_extract_path_text(detail.Properties, 'KerberosKrb5Conf') as kerberos_krb5_conf, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationHDFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationHDFS' + AND listing.region = 'us-east-1' location_nfs: name: location_nfs id: aws.datasync.location_nfs @@ -4355,10 +5283,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationNFS' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MountOptions') as mount_options, + JSON_EXTRACT(detail.Properties, '$.OnPremConfig') as on_prem_config, + JSON_EXTRACT(detail.Properties, '$.ServerHostname') as server_hostname, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationNFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationNFS' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4379,10 +5318,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationNFS' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MountOptions') as mount_options, + json_extract_path_text(detail.Properties, 'OnPremConfig') as on_prem_config, + json_extract_path_text(detail.Properties, 'ServerHostname') as server_hostname, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationNFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationNFS' + AND listing.region = 'us-east-1' + location_nfs_list_only: + name: location_nfs_list_only + id: aws.datasync.location_nfs_list_only + x-cfn-schema-name: LocationNFS + x-cfn-type-name: AWS::DataSync::LocationNFS + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationNFS' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationNFS' + AND region = 'us-east-1' + location_nfs_tags: + name: location_nfs_tags + id: aws.datasync.location_nfs_tags + x-cfn-schema-name: LocationNFS + x-cfn-type-name: AWS::DataSync::LocationNFS + 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, '$.MountOptions') as mount_options, + JSON_EXTRACT(detail.Properties, '$.OnPremConfig') as on_prem_config, + JSON_EXTRACT(detail.Properties, '$.ServerHostname') as server_hostname, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationNFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationNFS' + 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, 'MountOptions') as mount_options, + json_extract_path_text(detail.Properties, 'OnPremConfig') as on_prem_config, + json_extract_path_text(detail.Properties, 'ServerHostname') as server_hostname, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationNFS' + AND detail.data__TypeName = 'AWS::DataSync::LocationNFS' + AND listing.region = 'us-east-1' location_object_storages: name: location_object_storages id: aws.datasync.location_object_storages @@ -4465,10 +5501,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationObjectStorage' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessKey') as access_key, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.SecretKey') as secret_key, + JSON_EXTRACT(detail.Properties, '$.ServerCertificate') as server_certificate, + JSON_EXTRACT(detail.Properties, '$.ServerHostname') as server_hostname, + JSON_EXTRACT(detail.Properties, '$.ServerPort') as server_port, + JSON_EXTRACT(detail.Properties, '$.ServerProtocol') as server_protocol, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationObjectStorage' + AND detail.data__TypeName = 'AWS::DataSync::LocationObjectStorage' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4494,10 +5546,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationObjectStorage' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessKey') as access_key, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'SecretKey') as secret_key, + json_extract_path_text(detail.Properties, 'ServerCertificate') as server_certificate, + json_extract_path_text(detail.Properties, 'ServerHostname') as server_hostname, + json_extract_path_text(detail.Properties, 'ServerPort') as server_port, + json_extract_path_text(detail.Properties, 'ServerProtocol') as server_protocol, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationObjectStorage' + AND detail.data__TypeName = 'AWS::DataSync::LocationObjectStorage' + AND listing.region = 'us-east-1' + location_object_storages_list_only: + name: location_object_storages_list_only + id: aws.datasync.location_object_storages_list_only + x-cfn-schema-name: LocationObjectStorage + x-cfn-type-name: AWS::DataSync::LocationObjectStorage + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationObjectStorage' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationObjectStorage' + AND region = 'us-east-1' + location_object_storage_tags: + name: location_object_storage_tags + id: aws.datasync.location_object_storage_tags + x-cfn-schema-name: LocationObjectStorage + x-cfn-type-name: AWS::DataSync::LocationObjectStorage + 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, '$.AccessKey') as access_key, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.SecretKey') as secret_key, + JSON_EXTRACT(detail.Properties, '$.ServerCertificate') as server_certificate, + JSON_EXTRACT(detail.Properties, '$.ServerHostname') as server_hostname, + JSON_EXTRACT(detail.Properties, '$.ServerPort') as server_port, + JSON_EXTRACT(detail.Properties, '$.ServerProtocol') as server_protocol, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationObjectStorage' + AND detail.data__TypeName = 'AWS::DataSync::LocationObjectStorage' + 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, 'AccessKey') as access_key, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'SecretKey') as secret_key, + json_extract_path_text(detail.Properties, 'ServerCertificate') as server_certificate, + json_extract_path_text(detail.Properties, 'ServerHostname') as server_hostname, + json_extract_path_text(detail.Properties, 'ServerPort') as server_port, + json_extract_path_text(detail.Properties, 'ServerProtocol') as server_protocol, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationObjectStorage' + AND detail.data__TypeName = 'AWS::DataSync::LocationObjectStorage' + AND listing.region = 'us-east-1' location_s3s: name: location_s3s id: aws.datasync.location_s3s @@ -4575,10 +5739,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationS3' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.S3Config') as s3_config, + JSON_EXTRACT(detail.Properties, '$.S3BucketArn') as s3_bucket_arn, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.S3StorageClass') as s3_storage_class, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationS3' + AND detail.data__TypeName = 'AWS::DataSync::LocationS3' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4599,10 +5774,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationS3' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'S3Config') as s3_config, + json_extract_path_text(detail.Properties, 'S3BucketArn') as s3_bucket_arn, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'S3StorageClass') as s3_storage_class, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationS3' + AND detail.data__TypeName = 'AWS::DataSync::LocationS3' + AND listing.region = 'us-east-1' + location_s3s_list_only: + name: location_s3s_list_only + id: aws.datasync.location_s3s_list_only + x-cfn-schema-name: LocationS3 + x-cfn-type-name: AWS::DataSync::LocationS3 + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationS3' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationS3' + AND region = 'us-east-1' + location_s3_tags: + name: location_s3_tags + id: aws.datasync.location_s3_tags + x-cfn-schema-name: LocationS3 + x-cfn-type-name: AWS::DataSync::LocationS3 + 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, '$.S3Config') as s3_config, + JSON_EXTRACT(detail.Properties, '$.S3BucketArn') as s3_bucket_arn, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.S3StorageClass') as s3_storage_class, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationS3' + AND detail.data__TypeName = 'AWS::DataSync::LocationS3' + 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, 'S3Config') as s3_config, + json_extract_path_text(detail.Properties, 'S3BucketArn') as s3_bucket_arn, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'S3StorageClass') as s3_storage_class, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationS3' + AND detail.data__TypeName = 'AWS::DataSync::LocationS3' + AND listing.region = 'us-east-1' location_smbs: name: location_smbs id: aws.datasync.location_smbs @@ -4683,10 +5955,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationSMB' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.MountOptions') as mount_options, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.ServerHostname') as server_hostname, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.User') as user, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationSMB' + AND detail.data__TypeName = 'AWS::DataSync::LocationSMB' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4710,10 +5996,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationArn') as location_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationSMB' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'MountOptions') as mount_options, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'ServerHostname') as server_hostname, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'User') as user, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationSMB' + AND detail.data__TypeName = 'AWS::DataSync::LocationSMB' + AND listing.region = 'us-east-1' + location_smbs_list_only: + name: location_smbs_list_only + id: aws.datasync.location_smbs_list_only + x-cfn-schema-name: LocationSMB + x-cfn-type-name: AWS::DataSync::LocationSMB + x-identifiers: + - LocationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationSMB' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationArn') as location_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::LocationSMB' + AND region = 'us-east-1' + location_smb_tags: + name: location_smb_tags + id: aws.datasync.location_smb_tags + x-cfn-schema-name: LocationSMB + x-cfn-type-name: AWS::DataSync::LocationSMB + 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, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.MountOptions') as mount_options, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.ServerHostname') as server_hostname, + JSON_EXTRACT(detail.Properties, '$.Subdirectory') as subdirectory, + JSON_EXTRACT(detail.Properties, '$.User') as user, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.LocationUri') as location_uri + 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::DataSync::LocationSMB' + AND detail.data__TypeName = 'AWS::DataSync::LocationSMB' + 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, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'MountOptions') as mount_options, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'ServerHostname') as server_hostname, + json_extract_path_text(detail.Properties, 'Subdirectory') as subdirectory, + json_extract_path_text(detail.Properties, 'User') as user, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'LocationUri') as location_uri + 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::DataSync::LocationSMB' + AND detail.data__TypeName = 'AWS::DataSync::LocationSMB' + AND listing.region = 'us-east-1' storage_systems: name: storage_systems id: aws.datasync.storage_systems @@ -4794,10 +6186,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StorageSystemArn') as storage_system_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::StorageSystem' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ServerConfiguration') as server_configuration, + JSON_EXTRACT(detail.Properties, '$.ServerCredentials') as server_credentials, + JSON_EXTRACT(detail.Properties, '$.SecretsManagerArn') as secrets_manager_arn, + JSON_EXTRACT(detail.Properties, '$.SystemType') as system_type, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.StorageSystemArn') as storage_system_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectivityStatus') as connectivity_status + 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::DataSync::StorageSystem' + AND detail.data__TypeName = 'AWS::DataSync::StorageSystem' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4821,10 +6227,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StorageSystemArn') as storage_system_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::StorageSystem' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ServerConfiguration') as server_configuration, + json_extract_path_text(detail.Properties, 'ServerCredentials') as server_credentials, + json_extract_path_text(detail.Properties, 'SecretsManagerArn') as secrets_manager_arn, + json_extract_path_text(detail.Properties, 'SystemType') as system_type, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'StorageSystemArn') as storage_system_arn, + json_extract_path_text(detail.Properties, 'ConnectivityStatus') as connectivity_status + 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::DataSync::StorageSystem' + AND detail.data__TypeName = 'AWS::DataSync::StorageSystem' + AND listing.region = 'us-east-1' + storage_systems_list_only: + name: storage_systems_list_only + id: aws.datasync.storage_systems_list_only + x-cfn-schema-name: StorageSystem + x-cfn-type-name: AWS::DataSync::StorageSystem + x-identifiers: + - StorageSystemArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StorageSystemArn') as storage_system_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::StorageSystem' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StorageSystemArn') as storage_system_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::StorageSystem' + AND region = 'us-east-1' + storage_system_tags: + name: storage_system_tags + id: aws.datasync.storage_system_tags + x-cfn-schema-name: StorageSystem + x-cfn-type-name: AWS::DataSync::StorageSystem + 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, '$.ServerConfiguration') as server_configuration, + JSON_EXTRACT(detail.Properties, '$.ServerCredentials') as server_credentials, + JSON_EXTRACT(detail.Properties, '$.SecretsManagerArn') as secrets_manager_arn, + JSON_EXTRACT(detail.Properties, '$.SystemType') as system_type, + JSON_EXTRACT(detail.Properties, '$.AgentArns') as agent_arns, + JSON_EXTRACT(detail.Properties, '$.CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StorageSystemArn') as storage_system_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectivityStatus') as connectivity_status + 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::DataSync::StorageSystem' + AND detail.data__TypeName = 'AWS::DataSync::StorageSystem' + 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, 'ServerConfiguration') as server_configuration, + json_extract_path_text(detail.Properties, 'ServerCredentials') as server_credentials, + json_extract_path_text(detail.Properties, 'SecretsManagerArn') as secrets_manager_arn, + json_extract_path_text(detail.Properties, 'SystemType') as system_type, + json_extract_path_text(detail.Properties, 'AgentArns') as agent_arns, + json_extract_path_text(detail.Properties, 'CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StorageSystemArn') as storage_system_arn, + json_extract_path_text(detail.Properties, 'ConnectivityStatus') as connectivity_status + 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::DataSync::StorageSystem' + AND detail.data__TypeName = 'AWS::DataSync::StorageSystem' + AND listing.region = 'us-east-1' tasks: name: tasks id: aws.datasync.tasks @@ -4910,10 +6422,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TaskArn') as task_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Task' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Excludes') as excludes, + JSON_EXTRACT(detail.Properties, '$.Includes') as includes, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + JSON_EXTRACT(detail.Properties, '$.DestinationLocationArn') as destination_location_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Options') as options, + JSON_EXTRACT(detail.Properties, '$.TaskReportConfig') as task_report_config, + JSON_EXTRACT(detail.Properties, '$.ManifestConfig') as manifest_config, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.SourceLocationArn') as source_location_arn, + JSON_EXTRACT(detail.Properties, '$.TaskArn') as task_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SourceNetworkInterfaceArns') as source_network_interface_arns, + JSON_EXTRACT(detail.Properties, '$.DestinationNetworkInterfaceArns') as destination_network_interface_arns + 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::DataSync::Task' + AND detail.data__TypeName = 'AWS::DataSync::Task' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4942,10 +6473,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TaskArn') as task_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Task' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Excludes') as excludes, + json_extract_path_text(detail.Properties, 'Includes') as includes, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + json_extract_path_text(detail.Properties, 'DestinationLocationArn') as destination_location_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Options') as options, + json_extract_path_text(detail.Properties, 'TaskReportConfig') as task_report_config, + json_extract_path_text(detail.Properties, 'ManifestConfig') as manifest_config, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'SourceLocationArn') as source_location_arn, + json_extract_path_text(detail.Properties, 'TaskArn') as task_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SourceNetworkInterfaceArns') as source_network_interface_arns, + json_extract_path_text(detail.Properties, 'DestinationNetworkInterfaceArns') as destination_network_interface_arns + 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::DataSync::Task' + AND detail.data__TypeName = 'AWS::DataSync::Task' + AND listing.region = 'us-east-1' + tasks_list_only: + name: tasks_list_only + id: aws.datasync.tasks_list_only + x-cfn-schema-name: Task + x-cfn-type-name: AWS::DataSync::Task + x-identifiers: + - TaskArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TaskArn') as task_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Task' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TaskArn') as task_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataSync::Task' + AND region = 'us-east-1' + task_tags: + name: task_tags + id: aws.datasync.task_tags + x-cfn-schema-name: Task + x-cfn-type-name: AWS::DataSync::Task + 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, '$.Excludes') as excludes, + JSON_EXTRACT(detail.Properties, '$.Includes') as includes, + JSON_EXTRACT(detail.Properties, '$.CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + JSON_EXTRACT(detail.Properties, '$.DestinationLocationArn') as destination_location_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Options') as options, + JSON_EXTRACT(detail.Properties, '$.TaskReportConfig') as task_report_config, + JSON_EXTRACT(detail.Properties, '$.ManifestConfig') as manifest_config, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.SourceLocationArn') as source_location_arn, + JSON_EXTRACT(detail.Properties, '$.TaskArn') as task_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SourceNetworkInterfaceArns') as source_network_interface_arns, + JSON_EXTRACT(detail.Properties, '$.DestinationNetworkInterfaceArns') as destination_network_interface_arns + 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::DataSync::Task' + AND detail.data__TypeName = 'AWS::DataSync::Task' + 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, 'Excludes') as excludes, + json_extract_path_text(detail.Properties, 'Includes') as includes, + json_extract_path_text(detail.Properties, 'CloudWatchLogGroupArn') as cloud_watch_log_group_arn, + json_extract_path_text(detail.Properties, 'DestinationLocationArn') as destination_location_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Options') as options, + json_extract_path_text(detail.Properties, 'TaskReportConfig') as task_report_config, + json_extract_path_text(detail.Properties, 'ManifestConfig') as manifest_config, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'SourceLocationArn') as source_location_arn, + json_extract_path_text(detail.Properties, 'TaskArn') as task_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SourceNetworkInterfaceArns') as source_network_interface_arns, + json_extract_path_text(detail.Properties, 'DestinationNetworkInterfaceArns') as destination_network_interface_arns + 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::DataSync::Task' + AND detail.data__TypeName = 'AWS::DataSync::Task' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/datazone.yaml b/providers/src/aws/v00.00.00000/services/datazone.yaml index f315013f..dad2159c 100644 --- a/providers/src/aws/v00.00.00000/services/datazone.yaml +++ b/providers/src/aws/v00.00.00000/services/datazone.yaml @@ -2680,11 +2680,36 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::DataSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssetFormsInput') as asset_forms_input, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.EnableSetting') as enable_setting, + JSON_EXTRACT(detail.Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.LastRunAssetCount') as last_run_asset_count, + JSON_EXTRACT(detail.Properties, '$.LastRunAt') as last_run_at, + JSON_EXTRACT(detail.Properties, '$.LastRunStatus') as last_run_status, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.ProjectIdentifier') as project_identifier, + JSON_EXTRACT(detail.Properties, '$.PublishOnImport') as publish_on_import, + JSON_EXTRACT(detail.Properties, '$.Recommendation') as recommendation, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::DataZone::DataSource' + AND detail.data__TypeName = 'AWS::DataZone::DataSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2720,11 +2745,70 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::DataSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssetFormsInput') as asset_forms_input, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'EnableSetting') as enable_setting, + json_extract_path_text(detail.Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'LastRunAssetCount') as last_run_asset_count, + json_extract_path_text(detail.Properties, 'LastRunAt') as last_run_at, + json_extract_path_text(detail.Properties, 'LastRunStatus') as last_run_status, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'ProjectIdentifier') as project_identifier, + json_extract_path_text(detail.Properties, 'PublishOnImport') as publish_on_import, + json_extract_path_text(detail.Properties, 'Recommendation') as recommendation, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::DataZone::DataSource' + AND detail.data__TypeName = 'AWS::DataZone::DataSource' + AND listing.region = 'us-east-1' + data_sources_list_only: + name: data_sources_list_only + id: aws.datazone.data_sources_list_only + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::DataZone::DataSource + x-identifiers: + - DomainId + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::DataSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::DataSource' + AND region = 'us-east-1' domains: name: domains id: aws.datazone.domains @@ -2808,10 +2892,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Domain' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainExecutionRole') as domain_execution_role, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.KmsKeyIdentifier') as kms_key_identifier, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.ManagedAccountId') as managed_account_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PortalUrl') as portal_url, + JSON_EXTRACT(detail.Properties, '$.SingleSignOn') as single_sign_on, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DataZone::Domain' + AND detail.data__TypeName = 'AWS::DataZone::Domain' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2838,10 +2939,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Domain' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainExecutionRole') as domain_execution_role, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'KmsKeyIdentifier') as kms_key_identifier, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'ManagedAccountId') as managed_account_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PortalUrl') as portal_url, + json_extract_path_text(detail.Properties, 'SingleSignOn') as single_sign_on, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DataZone::Domain' + AND detail.data__TypeName = 'AWS::DataZone::Domain' + AND listing.region = 'us-east-1' + domains_list_only: + name: domains_list_only + id: aws.datazone.domains_list_only + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::DataZone::Domain + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Domain' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Domain' + AND region = 'us-east-1' + domain_tags: + name: domain_tags + id: aws.datazone.domain_tags + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::DataZone::Domain + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainExecutionRole') as domain_execution_role, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.KmsKeyIdentifier') as kms_key_identifier, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.ManagedAccountId') as managed_account_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PortalUrl') as portal_url, + JSON_EXTRACT(detail.Properties, '$.SingleSignOn') as single_sign_on, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::DataZone::Domain' + AND detail.data__TypeName = 'AWS::DataZone::Domain' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainExecutionRole') as domain_execution_role, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'KmsKeyIdentifier') as kms_key_identifier, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'ManagedAccountId') as managed_account_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PortalUrl') as portal_url, + json_extract_path_text(detail.Properties, 'SingleSignOn') as single_sign_on, + json_extract_path_text(detail.Properties, 'Status') as status + 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::DataZone::Domain' + AND detail.data__TypeName = 'AWS::DataZone::Domain' + AND listing.region = 'us-east-1' environments: name: environments id: aws.datazone.environments @@ -2932,11 +3148,33 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.AwsAccountRegion') as aws_account_region, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentBlueprintId') as environment_blueprint_id, + JSON_EXTRACT(detail.Properties, '$.EnvironmentProfileId') as environment_profile_id, + JSON_EXTRACT(detail.Properties, '$.EnvironmentProfileIdentifier') as environment_profile_identifier, + JSON_EXTRACT(detail.Properties, '$.GlossaryTerms') as glossary_terms, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.ProjectIdentifier') as project_identifier, + JSON_EXTRACT(detail.Properties, '$.Provider') as provider, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.UserParameters') as user_parameters + 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::DataZone::Environment' + AND detail.data__TypeName = 'AWS::DataZone::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2969,11 +3207,67 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'AwsAccountRegion') as aws_account_region, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentBlueprintId') as environment_blueprint_id, + json_extract_path_text(detail.Properties, 'EnvironmentProfileId') as environment_profile_id, + json_extract_path_text(detail.Properties, 'EnvironmentProfileIdentifier') as environment_profile_identifier, + json_extract_path_text(detail.Properties, 'GlossaryTerms') as glossary_terms, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'ProjectIdentifier') as project_identifier, + json_extract_path_text(detail.Properties, 'Provider') as provider, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'UserParameters') as user_parameters + 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::DataZone::Environment' + AND detail.data__TypeName = 'AWS::DataZone::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.datazone.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::DataZone::Environment + x-identifiers: + - DomainId + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Environment' + AND region = 'us-east-1' environment_blueprint_configurations: name: environment_blueprint_configurations id: aws.datazone.environment_blueprint_configurations @@ -3055,11 +3349,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.EnvironmentBlueprintId') as environment_blueprint_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentBlueprintConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RegionalParameters') as regional_parameters, + JSON_EXTRACT(detail.Properties, '$.ProvisioningRoleArn') as provisioning_role_arn, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EnabledRegions') as enabled_regions, + JSON_EXTRACT(detail.Properties, '$.EnvironmentBlueprintIdentifier') as environment_blueprint_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentBlueprintId') as environment_blueprint_id, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.ManageAccessRoleArn') as manage_access_role_arn + 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::DataZone::EnvironmentBlueprintConfiguration' + AND detail.data__TypeName = 'AWS::DataZone::EnvironmentBlueprintConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3083,11 +3390,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'EnvironmentBlueprintId') as environment_blueprint_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentBlueprintConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RegionalParameters') as regional_parameters, + json_extract_path_text(detail.Properties, 'ProvisioningRoleArn') as provisioning_role_arn, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EnabledRegions') as enabled_regions, + json_extract_path_text(detail.Properties, 'EnvironmentBlueprintIdentifier') as environment_blueprint_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentBlueprintId') as environment_blueprint_id, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'ManageAccessRoleArn') as manage_access_role_arn + 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::DataZone::EnvironmentBlueprintConfiguration' + AND detail.data__TypeName = 'AWS::DataZone::EnvironmentBlueprintConfiguration' + AND listing.region = 'us-east-1' + environment_blueprint_configurations_list_only: + name: environment_blueprint_configurations_list_only + id: aws.datazone.environment_blueprint_configurations_list_only + x-cfn-schema-name: EnvironmentBlueprintConfiguration + x-cfn-type-name: AWS::DataZone::EnvironmentBlueprintConfiguration + x-identifiers: + - DomainId + - EnvironmentBlueprintId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.EnvironmentBlueprintId') as environment_blueprint_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentBlueprintConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'EnvironmentBlueprintId') as environment_blueprint_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentBlueprintConfiguration' + AND region = 'us-east-1' environment_profiles: name: environment_profiles id: aws.datazone.environment_profiles @@ -3174,11 +3528,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.AwsAccountRegion') as aws_account_region, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentBlueprintId') as environment_blueprint_id, + JSON_EXTRACT(detail.Properties, '$.EnvironmentBlueprintIdentifier') as environment_blueprint_identifier, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.ProjectIdentifier') as project_identifier, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.UserParameters') as user_parameters + 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::DataZone::EnvironmentProfile' + AND detail.data__TypeName = 'AWS::DataZone::EnvironmentProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3207,11 +3579,63 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'AwsAccountRegion') as aws_account_region, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentBlueprintId') as environment_blueprint_id, + json_extract_path_text(detail.Properties, 'EnvironmentBlueprintIdentifier') as environment_blueprint_identifier, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'ProjectIdentifier') as project_identifier, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'UserParameters') as user_parameters + 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::DataZone::EnvironmentProfile' + AND detail.data__TypeName = 'AWS::DataZone::EnvironmentProfile' + AND listing.region = 'us-east-1' + environment_profiles_list_only: + name: environment_profiles_list_only + id: aws.datazone.environment_profiles_list_only + x-cfn-schema-name: EnvironmentProfile + x-cfn-type-name: AWS::DataZone::EnvironmentProfile + x-identifiers: + - DomainId + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::EnvironmentProfile' + AND region = 'us-east-1' group_profiles: name: group_profiles id: aws.datazone.group_profiles @@ -3289,11 +3713,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::GroupProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.GroupIdentifier') as group_identifier, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::DataZone::GroupProfile' + AND detail.data__TypeName = 'AWS::DataZone::GroupProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3313,11 +3746,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::GroupProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'GroupIdentifier') as group_identifier, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Status') as status + 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::DataZone::GroupProfile' + AND detail.data__TypeName = 'AWS::DataZone::GroupProfile' + AND listing.region = 'us-east-1' + group_profiles_list_only: + name: group_profiles_list_only + id: aws.datazone.group_profiles_list_only + x-cfn-schema-name: GroupProfile + x-cfn-type-name: AWS::DataZone::GroupProfile + x-identifiers: + - DomainId + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::GroupProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::GroupProfile' + AND region = 'us-east-1' projects: name: projects id: aws.datazone.projects @@ -3398,11 +3874,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Project' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.GlossaryTerms') as glossary_terms, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::DataZone::Project' + AND detail.data__TypeName = 'AWS::DataZone::Project' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3425,11 +3913,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Project' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'GlossaryTerms') as glossary_terms, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Name') as name + 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::DataZone::Project' + AND detail.data__TypeName = 'AWS::DataZone::Project' + AND listing.region = 'us-east-1' + projects_list_only: + name: projects_list_only + id: aws.datazone.projects_list_only + x-cfn-schema-name: Project + x-cfn-type-name: AWS::DataZone::Project + x-identifiers: + - DomainId + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Project' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::Project' + AND region = 'us-east-1' project_memberships: name: project_memberships id: aws.datazone.project_memberships @@ -3507,13 +4041,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainIdentifier') as domain_identifier, - JSON_EXTRACT(Properties, '$.MemberIdentifier') as member_identifier, - JSON_EXTRACT(Properties, '$.MemberIdentifierType') as member_identifier_type, - JSON_EXTRACT(Properties, '$.ProjectIdentifier') as project_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::ProjectMembership' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProjectIdentifier') as project_identifier, + JSON_EXTRACT(detail.Properties, '$.Designation') as designation, + JSON_EXTRACT(detail.Properties, '$.Member') as member, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier + 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::DataZone::ProjectMembership' + AND detail.data__TypeName = 'AWS::DataZone::ProjectMembership' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3531,13 +4070,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainIdentifier') as domain_identifier, - json_extract_path_text(Properties, 'MemberIdentifier') as member_identifier, - json_extract_path_text(Properties, 'MemberIdentifierType') as member_identifier_type, - json_extract_path_text(Properties, 'ProjectIdentifier') as project_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::ProjectMembership' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProjectIdentifier') as project_identifier, + json_extract_path_text(detail.Properties, 'Designation') as designation, + json_extract_path_text(detail.Properties, 'Member') as member, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier + 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::DataZone::ProjectMembership' + AND detail.data__TypeName = 'AWS::DataZone::ProjectMembership' + AND listing.region = 'us-east-1' + project_memberships_list_only: + name: project_memberships_list_only + id: aws.datazone.project_memberships_list_only + x-cfn-schema-name: ProjectMembership + x-cfn-type-name: AWS::DataZone::ProjectMembership + x-identifiers: + - DomainIdentifier + - MemberIdentifier + - MemberIdentifierType + - ProjectIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(Properties, '$.MemberIdentifier') as member_identifier, + JSON_EXTRACT(Properties, '$.MemberIdentifierType') as member_identifier_type, + JSON_EXTRACT(Properties, '$.ProjectIdentifier') as project_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::ProjectMembership' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(Properties, 'MemberIdentifier') as member_identifier, + json_extract_path_text(Properties, 'MemberIdentifierType') as member_identifier_type, + json_extract_path_text(Properties, 'ProjectIdentifier') as project_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::ProjectMembership' + AND region = 'us-east-1' subscription_targets: name: subscription_targets id: aws.datazone.subscription_targets @@ -3627,12 +4211,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.EnvironmentId') as environment_id, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::SubscriptionTarget' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicableAssetTypes') as applicable_asset_types, + JSON_EXTRACT(detail.Properties, '$.AuthorizedPrincipals') as authorized_principals, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ManageAccessRole') as manage_access_role, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.Provider') as provider, + JSON_EXTRACT(detail.Properties, '$.SubscriptionTargetConfig') as subscription_target_config, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedBy') as updated_by + 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::DataZone::SubscriptionTarget' + AND detail.data__TypeName = 'AWS::DataZone::SubscriptionTarget' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3663,12 +4266,68 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'EnvironmentId') as environment_id, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::SubscriptionTarget' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicableAssetTypes') as applicable_asset_types, + json_extract_path_text(detail.Properties, 'AuthorizedPrincipals') as authorized_principals, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ManageAccessRole') as manage_access_role, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'Provider') as provider, + json_extract_path_text(detail.Properties, 'SubscriptionTargetConfig') as subscription_target_config, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'UpdatedBy') as updated_by + 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::DataZone::SubscriptionTarget' + AND detail.data__TypeName = 'AWS::DataZone::SubscriptionTarget' + AND listing.region = 'us-east-1' + subscription_targets_list_only: + name: subscription_targets_list_only + id: aws.datazone.subscription_targets_list_only + x-cfn-schema-name: SubscriptionTarget + x-cfn-type-name: AWS::DataZone::SubscriptionTarget + x-identifiers: + - DomainId + - EnvironmentId + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::SubscriptionTarget' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::SubscriptionTarget' + AND region = 'us-east-1' user_profiles: name: user_profiles id: aws.datazone.user_profiles @@ -3748,11 +4407,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::UserProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Details') as details, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.DomainIdentifier') as domain_identifier, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UserIdentifier') as user_identifier, + JSON_EXTRACT(detail.Properties, '$.UserType') as user_type + 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::DataZone::UserProfile' + AND detail.data__TypeName = 'AWS::DataZone::UserProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3774,11 +4444,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::UserProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Details') as details, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'DomainIdentifier') as domain_identifier, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UserIdentifier') as user_identifier, + json_extract_path_text(detail.Properties, 'UserType') as user_type + 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::DataZone::UserProfile' + AND detail.data__TypeName = 'AWS::DataZone::UserProfile' + AND listing.region = 'us-east-1' + user_profiles_list_only: + name: user_profiles_list_only + id: aws.datazone.user_profiles_list_only + x-cfn-schema-name: UserProfile + x-cfn-type-name: AWS::DataZone::UserProfile + x-identifiers: + - DomainId + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::UserProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DataZone::UserProfile' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/deadline.yaml b/providers/src/aws/v00.00.00000/services/deadline.yaml index e319e680..c98433ab 100644 --- a/providers/src/aws/v00.00.00000/services/deadline.yaml +++ b/providers/src/aws/v00.00.00000/services/deadline.yaml @@ -1793,10 +1793,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::Farm' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Deadline::Farm' + AND detail.data__TypeName = 'AWS::Deadline::Farm' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1815,10 +1824,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::Farm' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'FarmId') as farm_id, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Deadline::Farm' + AND detail.data__TypeName = 'AWS::Deadline::Farm' + AND listing.region = 'us-east-1' + farms_list_only: + name: farms_list_only + id: aws.deadline.farms_list_only + x-cfn-schema-name: Farm + x-cfn-type-name: AWS::Deadline::Farm + 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::Deadline::Farm' + 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::Deadline::Farm' + AND region = 'us-east-1' fleets: name: fleets id: aws.deadline.fleets @@ -1901,10 +1950,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::Fleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(detail.Properties, '$.FleetId') as fleet_id, + JSON_EXTRACT(detail.Properties, '$.MaxWorkerCount') as max_worker_count, + JSON_EXTRACT(detail.Properties, '$.MinWorkerCount') as min_worker_count, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.WorkerCount') as worker_count, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Deadline::Fleet' + AND detail.data__TypeName = 'AWS::Deadline::Fleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1930,10 +1995,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::Fleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'FarmId') as farm_id, + json_extract_path_text(detail.Properties, 'FleetId') as fleet_id, + json_extract_path_text(detail.Properties, 'MaxWorkerCount') as max_worker_count, + json_extract_path_text(detail.Properties, 'MinWorkerCount') as min_worker_count, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'WorkerCount') as worker_count, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Deadline::Fleet' + AND detail.data__TypeName = 'AWS::Deadline::Fleet' + AND listing.region = 'us-east-1' + fleets_list_only: + name: fleets_list_only + id: aws.deadline.fleets_list_only + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::Deadline::Fleet + 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::Deadline::Fleet' + 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::Deadline::Fleet' + AND region = 'us-east-1' license_endpoints: name: license_endpoints id: aws.deadline.license_endpoints @@ -1999,10 +2111,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::LicenseEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DnsName') as dns_name, + JSON_EXTRACT(detail.Properties, '$.LicenseEndpointId') as license_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Deadline::LicenseEndpoint' + AND detail.data__TypeName = 'AWS::Deadline::LicenseEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2024,10 +2148,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::LicenseEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DnsName') as dns_name, + json_extract_path_text(detail.Properties, 'LicenseEndpointId') as license_endpoint_id, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Deadline::LicenseEndpoint' + AND detail.data__TypeName = 'AWS::Deadline::LicenseEndpoint' + AND listing.region = 'us-east-1' + license_endpoints_list_only: + name: license_endpoints_list_only + id: aws.deadline.license_endpoints_list_only + x-cfn-schema-name: LicenseEndpoint + x-cfn-type-name: AWS::Deadline::LicenseEndpoint + 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::Deadline::LicenseEndpoint' + 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::Deadline::LicenseEndpoint' + AND region = 'us-east-1' metered_products: name: metered_products id: aws.deadline.metered_products @@ -2091,10 +2258,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::MeteredProduct' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LicenseEndpointId') as license_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.ProductId') as product_id, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.Vendor') as vendor, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Deadline::MeteredProduct' + AND detail.data__TypeName = 'AWS::Deadline::MeteredProduct' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2114,10 +2291,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::MeteredProduct' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LicenseEndpointId') as license_endpoint_id, + json_extract_path_text(detail.Properties, 'ProductId') as product_id, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'Vendor') as vendor, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Deadline::MeteredProduct' + AND detail.data__TypeName = 'AWS::Deadline::MeteredProduct' + AND listing.region = 'us-east-1' + metered_products_list_only: + name: metered_products_list_only + id: aws.deadline.metered_products_list_only + x-cfn-schema-name: MeteredProduct + x-cfn-type-name: AWS::Deadline::MeteredProduct + 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::Deadline::MeteredProduct' + 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::Deadline::MeteredProduct' + AND region = 'us-east-1' queues: name: queues id: aws.deadline.queues @@ -2199,10 +2417,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::Queue' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AllowedStorageProfileIds') as allowed_storage_profile_ids, + JSON_EXTRACT(detail.Properties, '$.DefaultBudgetAction') as default_budget_action, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(detail.Properties, '$.JobAttachmentSettings') as job_attachment_settings, + JSON_EXTRACT(detail.Properties, '$.JobRunAsUser') as job_run_as_user, + JSON_EXTRACT(detail.Properties, '$.QueueId') as queue_id, + JSON_EXTRACT(detail.Properties, '$.RequiredFileSystemLocationNames') as required_file_system_location_names, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Deadline::Queue' + AND detail.data__TypeName = 'AWS::Deadline::Queue' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2227,10 +2460,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::Queue' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AllowedStorageProfileIds') as allowed_storage_profile_ids, + json_extract_path_text(detail.Properties, 'DefaultBudgetAction') as default_budget_action, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'FarmId') as farm_id, + json_extract_path_text(detail.Properties, 'JobAttachmentSettings') as job_attachment_settings, + json_extract_path_text(detail.Properties, 'JobRunAsUser') as job_run_as_user, + json_extract_path_text(detail.Properties, 'QueueId') as queue_id, + json_extract_path_text(detail.Properties, 'RequiredFileSystemLocationNames') as required_file_system_location_names, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Deadline::Queue' + AND detail.data__TypeName = 'AWS::Deadline::Queue' + AND listing.region = 'us-east-1' + queues_list_only: + name: queues_list_only + id: aws.deadline.queues_list_only + x-cfn-schema-name: Queue + x-cfn-type-name: AWS::Deadline::Queue + 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::Deadline::Queue' + 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::Deadline::Queue' + AND region = 'us-east-1' queue_environments: name: queue_environments id: aws.deadline.queue_environments @@ -2310,12 +2589,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FarmId') as farm_id, - JSON_EXTRACT(Properties, '$.QueueId') as queue_id, - JSON_EXTRACT(Properties, '$.QueueEnvironmentId') as queue_environment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueEnvironment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.QueueEnvironmentId') as queue_environment_id, + JSON_EXTRACT(detail.Properties, '$.QueueId') as queue_id, + JSON_EXTRACT(detail.Properties, '$.Template') as template, + JSON_EXTRACT(detail.Properties, '$.TemplateType') as template_type + 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::Deadline::QueueEnvironment' + AND detail.data__TypeName = 'AWS::Deadline::QueueEnvironment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2336,12 +2624,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FarmId') as farm_id, - json_extract_path_text(Properties, 'QueueId') as queue_id, - json_extract_path_text(Properties, 'QueueEnvironmentId') as queue_environment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueEnvironment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FarmId') as farm_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'QueueEnvironmentId') as queue_environment_id, + json_extract_path_text(detail.Properties, 'QueueId') as queue_id, + json_extract_path_text(detail.Properties, 'Template') as template, + json_extract_path_text(detail.Properties, 'TemplateType') as template_type + 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::Deadline::QueueEnvironment' + AND detail.data__TypeName = 'AWS::Deadline::QueueEnvironment' + AND listing.region = 'us-east-1' + queue_environments_list_only: + name: queue_environments_list_only + id: aws.deadline.queue_environments_list_only + x-cfn-schema-name: QueueEnvironment + x-cfn-type-name: AWS::Deadline::QueueEnvironment + x-identifiers: + - FarmId + - QueueId + - QueueEnvironmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(Properties, '$.QueueId') as queue_id, + JSON_EXTRACT(Properties, '$.QueueEnvironmentId') as queue_environment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueEnvironment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FarmId') as farm_id, + json_extract_path_text(Properties, 'QueueId') as queue_id, + json_extract_path_text(Properties, 'QueueEnvironmentId') as queue_environment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueEnvironment' + AND region = 'us-east-1' queue_fleet_associations: name: queue_fleet_associations id: aws.deadline.queue_fleet_associations @@ -2404,12 +2738,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FarmId') as farm_id, - JSON_EXTRACT(Properties, '$.FleetId') as fleet_id, - JSON_EXTRACT(Properties, '$.QueueId') as queue_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueFleetAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(detail.Properties, '$.FleetId') as fleet_id, + JSON_EXTRACT(detail.Properties, '$.QueueId') as queue_id + 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::Deadline::QueueFleetAssociation' + AND detail.data__TypeName = 'AWS::Deadline::QueueFleetAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2426,12 +2765,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FarmId') as farm_id, - json_extract_path_text(Properties, 'FleetId') as fleet_id, - json_extract_path_text(Properties, 'QueueId') as queue_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueFleetAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FarmId') as farm_id, + json_extract_path_text(detail.Properties, 'FleetId') as fleet_id, + json_extract_path_text(detail.Properties, 'QueueId') as queue_id + 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::Deadline::QueueFleetAssociation' + AND detail.data__TypeName = 'AWS::Deadline::QueueFleetAssociation' + AND listing.region = 'us-east-1' + queue_fleet_associations_list_only: + name: queue_fleet_associations_list_only + id: aws.deadline.queue_fleet_associations_list_only + x-cfn-schema-name: QueueFleetAssociation + x-cfn-type-name: AWS::Deadline::QueueFleetAssociation + x-identifiers: + - FarmId + - FleetId + - QueueId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(Properties, '$.FleetId') as fleet_id, + JSON_EXTRACT(Properties, '$.QueueId') as queue_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueFleetAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FarmId') as farm_id, + json_extract_path_text(Properties, 'FleetId') as fleet_id, + json_extract_path_text(Properties, 'QueueId') as queue_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::QueueFleetAssociation' + AND region = 'us-east-1' storage_profiles: name: storage_profiles id: aws.deadline.storage_profiles @@ -2508,11 +2889,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FarmId') as farm_id, - JSON_EXTRACT(Properties, '$.StorageProfileId') as storage_profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::StorageProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(detail.Properties, '$.FileSystemLocations') as file_system_locations, + JSON_EXTRACT(detail.Properties, '$.OsFamily') as os_family, + JSON_EXTRACT(detail.Properties, '$.StorageProfileId') as storage_profile_id + 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::Deadline::StorageProfile' + AND detail.data__TypeName = 'AWS::Deadline::StorageProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2531,11 +2920,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FarmId') as farm_id, - json_extract_path_text(Properties, 'StorageProfileId') as storage_profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::StorageProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'FarmId') as farm_id, + json_extract_path_text(detail.Properties, 'FileSystemLocations') as file_system_locations, + json_extract_path_text(detail.Properties, 'OsFamily') as os_family, + json_extract_path_text(detail.Properties, 'StorageProfileId') as storage_profile_id + 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::Deadline::StorageProfile' + AND detail.data__TypeName = 'AWS::Deadline::StorageProfile' + AND listing.region = 'us-east-1' + storage_profiles_list_only: + name: storage_profiles_list_only + id: aws.deadline.storage_profiles_list_only + x-cfn-schema-name: StorageProfile + x-cfn-type-name: AWS::Deadline::StorageProfile + x-identifiers: + - FarmId + - StorageProfileId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FarmId') as farm_id, + JSON_EXTRACT(Properties, '$.StorageProfileId') as storage_profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::StorageProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FarmId') as farm_id, + json_extract_path_text(Properties, 'StorageProfileId') as storage_profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Deadline::StorageProfile' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/detective.yaml b/providers/src/aws/v00.00.00000/services/detective.yaml index 105a276b..8ccfbb5c 100644 --- a/providers/src/aws/v00.00.00000/services/detective.yaml +++ b/providers/src/aws/v00.00.00000/services/detective.yaml @@ -719,10 +719,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::Graph' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AutoEnableMembers') as auto_enable_members + 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::Detective::Graph' + AND detail.data__TypeName = 'AWS::Detective::Graph' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -739,10 +746,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::Graph' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AutoEnableMembers') as auto_enable_members + 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::Detective::Graph' + AND detail.data__TypeName = 'AWS::Detective::Graph' + AND listing.region = 'us-east-1' + graphs_list_only: + name: graphs_list_only + id: aws.detective.graphs_list_only + x-cfn-schema-name: Graph + x-cfn-type-name: AWS::Detective::Graph + 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::Detective::Graph' + 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::Detective::Graph' + AND region = 'us-east-1' + graph_tags: + name: graph_tags + id: aws.detective.graph_tags + x-cfn-schema-name: Graph + x-cfn-type-name: AWS::Detective::Graph + 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, '$.AutoEnableMembers') as auto_enable_members + 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::Detective::Graph' + AND detail.data__TypeName = 'AWS::Detective::Graph' + 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, 'AutoEnableMembers') as auto_enable_members + 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::Detective::Graph' + AND detail.data__TypeName = 'AWS::Detective::Graph' + AND listing.region = 'us-east-1' member_invitations: name: member_invitations id: aws.detective.member_invitations @@ -806,11 +898,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GraphArn') as graph_arn, - JSON_EXTRACT(Properties, '$.MemberId') as member_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::MemberInvitation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GraphArn') as graph_arn, + JSON_EXTRACT(detail.Properties, '$.MemberId') as member_id, + JSON_EXTRACT(detail.Properties, '$.MemberEmailAddress') as member_email_address, + JSON_EXTRACT(detail.Properties, '$.DisableEmailNotification') as disable_email_notification, + JSON_EXTRACT(detail.Properties, '$.Message') as message + 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::Detective::MemberInvitation' + AND detail.data__TypeName = 'AWS::Detective::MemberInvitation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -829,11 +929,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GraphArn') as graph_arn, - json_extract_path_text(Properties, 'MemberId') as member_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::MemberInvitation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GraphArn') as graph_arn, + json_extract_path_text(detail.Properties, 'MemberId') as member_id, + json_extract_path_text(detail.Properties, 'MemberEmailAddress') as member_email_address, + json_extract_path_text(detail.Properties, 'DisableEmailNotification') as disable_email_notification, + json_extract_path_text(detail.Properties, 'Message') as message + 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::Detective::MemberInvitation' + AND detail.data__TypeName = 'AWS::Detective::MemberInvitation' + AND listing.region = 'us-east-1' + member_invitations_list_only: + name: member_invitations_list_only + id: aws.detective.member_invitations_list_only + x-cfn-schema-name: MemberInvitation + x-cfn-type-name: AWS::Detective::MemberInvitation + x-identifiers: + - GraphArn + - MemberId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GraphArn') as graph_arn, + JSON_EXTRACT(Properties, '$.MemberId') as member_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::MemberInvitation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GraphArn') as graph_arn, + json_extract_path_text(Properties, 'MemberId') as member_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::MemberInvitation' + AND region = 'us-east-1' organization_admins: name: organization_admins id: aws.detective.organization_admins @@ -893,10 +1035,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::OrganizationAdmin' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.GraphArn') as graph_arn + 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::Detective::OrganizationAdmin' + AND detail.data__TypeName = 'AWS::Detective::OrganizationAdmin' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -912,10 +1060,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::OrganizationAdmin' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'GraphArn') as graph_arn + 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::Detective::OrganizationAdmin' + AND detail.data__TypeName = 'AWS::Detective::OrganizationAdmin' + AND listing.region = 'us-east-1' + organization_admins_list_only: + name: organization_admins_list_only + id: aws.detective.organization_admins_list_only + x-cfn-schema-name: OrganizationAdmin + x-cfn-type-name: AWS::Detective::OrganizationAdmin + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::OrganizationAdmin' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Detective::OrganizationAdmin' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/devopsguru.yaml b/providers/src/aws/v00.00.00000/services/devopsguru.yaml index a3cc78dc..992cd1ae 100644 --- a/providers/src/aws/v00.00.00000/services/devopsguru.yaml +++ b/providers/src/aws/v00.00.00000/services/devopsguru.yaml @@ -757,10 +757,15 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::LogAnomalyDetectionIntegration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id + 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::DevOpsGuru::LogAnomalyDetectionIntegration' + AND detail.data__TypeName = 'AWS::DevOpsGuru::LogAnomalyDetectionIntegration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -775,10 +780,46 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::LogAnomalyDetectionIntegration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id + 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::DevOpsGuru::LogAnomalyDetectionIntegration' + AND detail.data__TypeName = 'AWS::DevOpsGuru::LogAnomalyDetectionIntegration' + AND listing.region = 'us-east-1' + log_anomaly_detection_integrations_list_only: + name: log_anomaly_detection_integrations_list_only + id: aws.devopsguru.log_anomaly_detection_integrations_list_only + x-cfn-schema-name: LogAnomalyDetectionIntegration + x-cfn-type-name: AWS::DevOpsGuru::LogAnomalyDetectionIntegration + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::LogAnomalyDetectionIntegration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::LogAnomalyDetectionIntegration' + AND region = 'us-east-1' notification_channels: name: notification_channels id: aws.devopsguru.notification_channels @@ -838,10 +879,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::NotificationChannel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Config') as config, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::DevOpsGuru::NotificationChannel' + AND detail.data__TypeName = 'AWS::DevOpsGuru::NotificationChannel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -857,10 +904,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::NotificationChannel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Config') as config, + json_extract_path_text(detail.Properties, 'Id') as id + 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::DevOpsGuru::NotificationChannel' + AND detail.data__TypeName = 'AWS::DevOpsGuru::NotificationChannel' + AND listing.region = 'us-east-1' + notification_channels_list_only: + name: notification_channels_list_only + id: aws.devopsguru.notification_channels_list_only + x-cfn-schema-name: NotificationChannel + x-cfn-type-name: AWS::DevOpsGuru::NotificationChannel + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::NotificationChannel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::NotificationChannel' + AND region = 'us-east-1' resource_collections: name: resource_collections id: aws.devopsguru.resource_collections @@ -933,10 +1017,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResourceCollectionType') as resource_collection_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::ResourceCollection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceCollectionFilter') as resource_collection_filter, + JSON_EXTRACT(detail.Properties, '$.ResourceCollectionType') as resource_collection_type + 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::DevOpsGuru::ResourceCollection' + AND detail.data__TypeName = 'AWS::DevOpsGuru::ResourceCollection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -952,10 +1042,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResourceCollectionType') as resource_collection_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::ResourceCollection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceCollectionFilter') as resource_collection_filter, + json_extract_path_text(detail.Properties, 'ResourceCollectionType') as resource_collection_type + 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::DevOpsGuru::ResourceCollection' + AND detail.data__TypeName = 'AWS::DevOpsGuru::ResourceCollection' + AND listing.region = 'us-east-1' + resource_collections_list_only: + name: resource_collections_list_only + id: aws.devopsguru.resource_collections_list_only + x-cfn-schema-name: ResourceCollection + x-cfn-type-name: AWS::DevOpsGuru::ResourceCollection + x-identifiers: + - ResourceCollectionType + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResourceCollectionType') as resource_collection_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::ResourceCollection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResourceCollectionType') as resource_collection_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DevOpsGuru::ResourceCollection' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/directoryservice.yaml b/providers/src/aws/v00.00.00000/services/directoryservice.yaml index 138f51b8..9d24a57e 100644 --- a/providers/src/aws/v00.00.00000/services/directoryservice.yaml +++ b/providers/src/aws/v00.00.00000/services/directoryservice.yaml @@ -652,10 +652,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DirectoryId') as directory_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DirectoryService::SimpleAD' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DirectoryId') as directory_id, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.DnsIpAddresses') as dns_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.CreateAlias') as create_alias, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnableSso') as enable_sso, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.ShortName') as short_name, + JSON_EXTRACT(detail.Properties, '$.Size') as size, + JSON_EXTRACT(detail.Properties, '$.VpcSettings') as vpc_settings + 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::DirectoryService::SimpleAD' + AND detail.data__TypeName = 'AWS::DirectoryService::SimpleAD' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -680,10 +695,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DirectoryId') as directory_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DirectoryService::SimpleAD' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DirectoryId') as directory_id, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'DnsIpAddresses') as dns_ip_addresses, + json_extract_path_text(detail.Properties, 'CreateAlias') as create_alias, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnableSso') as enable_sso, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'ShortName') as short_name, + json_extract_path_text(detail.Properties, 'Size') as size, + json_extract_path_text(detail.Properties, 'VpcSettings') as vpc_settings + 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::DirectoryService::SimpleAD' + AND detail.data__TypeName = 'AWS::DirectoryService::SimpleAD' + AND listing.region = 'us-east-1' + simple_ads_list_only: + name: simple_ads_list_only + id: aws.directoryservice.simple_ads_list_only + x-cfn-schema-name: SimpleAD + x-cfn-type-name: AWS::DirectoryService::SimpleAD + x-identifiers: + - DirectoryId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DirectoryId') as directory_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DirectoryService::SimpleAD' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DirectoryId') as directory_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DirectoryService::SimpleAD' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/dms.yaml b/providers/src/aws/v00.00.00000/services/dms.yaml index 0053d6b7..7de4d9b1 100644 --- a/providers/src/aws/v00.00.00000/services/dms.yaml +++ b/providers/src/aws/v00.00.00000/services/dms.yaml @@ -1448,10 +1448,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DataProviderArn') as data_provider_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::DataProvider' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DataProviderName') as data_provider_name, + JSON_EXTRACT(detail.Properties, '$.DataProviderIdentifier') as data_provider_identifier, + JSON_EXTRACT(detail.Properties, '$.DataProviderArn') as data_provider_arn, + JSON_EXTRACT(detail.Properties, '$.DataProviderCreationTime') as data_provider_creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.ExactSettings') as exact_settings, + JSON_EXTRACT(detail.Properties, '$.Settings') as settings, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DMS::DataProvider' + AND detail.data__TypeName = 'AWS::DMS::DataProvider' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1474,10 +1487,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DataProviderArn') as data_provider_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::DataProvider' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DataProviderName') as data_provider_name, + json_extract_path_text(detail.Properties, 'DataProviderIdentifier') as data_provider_identifier, + json_extract_path_text(detail.Properties, 'DataProviderArn') as data_provider_arn, + json_extract_path_text(detail.Properties, 'DataProviderCreationTime') as data_provider_creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'ExactSettings') as exact_settings, + json_extract_path_text(detail.Properties, 'Settings') as settings, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DMS::DataProvider' + AND detail.data__TypeName = 'AWS::DMS::DataProvider' + AND listing.region = 'us-east-1' + data_providers_list_only: + name: data_providers_list_only + id: aws.dms.data_providers_list_only + x-cfn-schema-name: DataProvider + x-cfn-type-name: AWS::DMS::DataProvider + x-identifiers: + - DataProviderArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DataProviderArn') as data_provider_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::DataProvider' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DataProviderArn') as data_provider_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::DataProvider' + AND region = 'us-east-1' + data_provider_tags: + name: data_provider_tags + id: aws.dms.data_provider_tags + x-cfn-schema-name: DataProvider + x-cfn-type-name: AWS::DMS::DataProvider + 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, '$.DataProviderName') as data_provider_name, + JSON_EXTRACT(detail.Properties, '$.DataProviderIdentifier') as data_provider_identifier, + JSON_EXTRACT(detail.Properties, '$.DataProviderArn') as data_provider_arn, + JSON_EXTRACT(detail.Properties, '$.DataProviderCreationTime') as data_provider_creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.ExactSettings') as exact_settings, + JSON_EXTRACT(detail.Properties, '$.Settings') as settings + 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::DMS::DataProvider' + AND detail.data__TypeName = 'AWS::DMS::DataProvider' + 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, 'DataProviderName') as data_provider_name, + json_extract_path_text(detail.Properties, 'DataProviderIdentifier') as data_provider_identifier, + json_extract_path_text(detail.Properties, 'DataProviderArn') as data_provider_arn, + json_extract_path_text(detail.Properties, 'DataProviderCreationTime') as data_provider_creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'ExactSettings') as exact_settings, + json_extract_path_text(detail.Properties, 'Settings') as settings + 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::DMS::DataProvider' + AND detail.data__TypeName = 'AWS::DMS::DataProvider' + AND listing.region = 'us-east-1' instance_profiles: name: instance_profiles id: aws.dms.instance_profiles @@ -1560,10 +1676,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceProfileArn') as instance_profile_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::InstanceProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileArn') as instance_profile_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileIdentifier') as instance_profile_identifier, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileName') as instance_profile_name, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileCreationTime') as instance_profile_creation_time, + JSON_EXTRACT(detail.Properties, '$.SubnetGroupIdentifier') as subnet_group_identifier, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroups') as vpc_security_groups, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DMS::InstanceProfile' + AND detail.data__TypeName = 'AWS::DMS::InstanceProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1589,10 +1721,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceProfileArn') as instance_profile_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::InstanceProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceProfileArn') as instance_profile_arn, + json_extract_path_text(detail.Properties, 'InstanceProfileIdentifier') as instance_profile_identifier, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type, + json_extract_path_text(detail.Properties, 'InstanceProfileName') as instance_profile_name, + json_extract_path_text(detail.Properties, 'InstanceProfileCreationTime') as instance_profile_creation_time, + json_extract_path_text(detail.Properties, 'SubnetGroupIdentifier') as subnet_group_identifier, + json_extract_path_text(detail.Properties, 'VpcSecurityGroups') as vpc_security_groups, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DMS::InstanceProfile' + AND detail.data__TypeName = 'AWS::DMS::InstanceProfile' + AND listing.region = 'us-east-1' + instance_profiles_list_only: + name: instance_profiles_list_only + id: aws.dms.instance_profiles_list_only + x-cfn-schema-name: InstanceProfile + x-cfn-type-name: AWS::DMS::InstanceProfile + x-identifiers: + - InstanceProfileArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceProfileArn') as instance_profile_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::InstanceProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceProfileArn') as instance_profile_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::InstanceProfile' + AND region = 'us-east-1' + instance_profile_tags: + name: instance_profile_tags + id: aws.dms.instance_profile_tags + x-cfn-schema-name: InstanceProfile + x-cfn-type-name: AWS::DMS::InstanceProfile + 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, '$.InstanceProfileArn') as instance_profile_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileIdentifier') as instance_profile_identifier, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileName') as instance_profile_name, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileCreationTime') as instance_profile_creation_time, + JSON_EXTRACT(detail.Properties, '$.SubnetGroupIdentifier') as subnet_group_identifier, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroups') as vpc_security_groups + 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::DMS::InstanceProfile' + AND detail.data__TypeName = 'AWS::DMS::InstanceProfile' + 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, 'InstanceProfileArn') as instance_profile_arn, + json_extract_path_text(detail.Properties, 'InstanceProfileIdentifier') as instance_profile_identifier, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type, + json_extract_path_text(detail.Properties, 'InstanceProfileName') as instance_profile_name, + json_extract_path_text(detail.Properties, 'InstanceProfileCreationTime') as instance_profile_creation_time, + json_extract_path_text(detail.Properties, 'SubnetGroupIdentifier') as subnet_group_identifier, + json_extract_path_text(detail.Properties, 'VpcSecurityGroups') as vpc_security_groups + 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::DMS::InstanceProfile' + AND detail.data__TypeName = 'AWS::DMS::InstanceProfile' + AND listing.region = 'us-east-1' migration_projects: name: migration_projects id: aws.dms.migration_projects @@ -1676,10 +1920,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MigrationProjectArn') as migration_project_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::MigrationProject' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MigrationProjectName') as migration_project_name, + JSON_EXTRACT(detail.Properties, '$.MigrationProjectIdentifier') as migration_project_identifier, + JSON_EXTRACT(detail.Properties, '$.MigrationProjectArn') as migration_project_arn, + JSON_EXTRACT(detail.Properties, '$.MigrationProjectCreationTime') as migration_project_creation_time, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileIdentifier') as instance_profile_identifier, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileName') as instance_profile_name, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileArn') as instance_profile_arn, + JSON_EXTRACT(detail.Properties, '$.TransformationRules') as transformation_rules, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SchemaConversionApplicationAttributes') as schema_conversion_application_attributes, + JSON_EXTRACT(detail.Properties, '$.SourceDataProviderDescriptors') as source_data_provider_descriptors, + JSON_EXTRACT(detail.Properties, '$.TargetDataProviderDescriptors') as target_data_provider_descriptors, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DMS::MigrationProject' + AND detail.data__TypeName = 'AWS::DMS::MigrationProject' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1706,10 +1967,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MigrationProjectArn') as migration_project_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::MigrationProject' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MigrationProjectName') as migration_project_name, + json_extract_path_text(detail.Properties, 'MigrationProjectIdentifier') as migration_project_identifier, + json_extract_path_text(detail.Properties, 'MigrationProjectArn') as migration_project_arn, + json_extract_path_text(detail.Properties, 'MigrationProjectCreationTime') as migration_project_creation_time, + json_extract_path_text(detail.Properties, 'InstanceProfileIdentifier') as instance_profile_identifier, + json_extract_path_text(detail.Properties, 'InstanceProfileName') as instance_profile_name, + json_extract_path_text(detail.Properties, 'InstanceProfileArn') as instance_profile_arn, + json_extract_path_text(detail.Properties, 'TransformationRules') as transformation_rules, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SchemaConversionApplicationAttributes') as schema_conversion_application_attributes, + json_extract_path_text(detail.Properties, 'SourceDataProviderDescriptors') as source_data_provider_descriptors, + json_extract_path_text(detail.Properties, 'TargetDataProviderDescriptors') as target_data_provider_descriptors, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DMS::MigrationProject' + AND detail.data__TypeName = 'AWS::DMS::MigrationProject' + AND listing.region = 'us-east-1' + migration_projects_list_only: + name: migration_projects_list_only + id: aws.dms.migration_projects_list_only + x-cfn-schema-name: MigrationProject + x-cfn-type-name: AWS::DMS::MigrationProject + x-identifiers: + - MigrationProjectArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MigrationProjectArn') as migration_project_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::MigrationProject' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MigrationProjectArn') as migration_project_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::MigrationProject' + AND region = 'us-east-1' + migration_project_tags: + name: migration_project_tags + id: aws.dms.migration_project_tags + x-cfn-schema-name: MigrationProject + x-cfn-type-name: AWS::DMS::MigrationProject + 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, '$.MigrationProjectName') as migration_project_name, + JSON_EXTRACT(detail.Properties, '$.MigrationProjectIdentifier') as migration_project_identifier, + JSON_EXTRACT(detail.Properties, '$.MigrationProjectArn') as migration_project_arn, + JSON_EXTRACT(detail.Properties, '$.MigrationProjectCreationTime') as migration_project_creation_time, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileIdentifier') as instance_profile_identifier, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileName') as instance_profile_name, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileArn') as instance_profile_arn, + JSON_EXTRACT(detail.Properties, '$.TransformationRules') as transformation_rules, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SchemaConversionApplicationAttributes') as schema_conversion_application_attributes, + JSON_EXTRACT(detail.Properties, '$.SourceDataProviderDescriptors') as source_data_provider_descriptors, + JSON_EXTRACT(detail.Properties, '$.TargetDataProviderDescriptors') as target_data_provider_descriptors + 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::DMS::MigrationProject' + AND detail.data__TypeName = 'AWS::DMS::MigrationProject' + 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, 'MigrationProjectName') as migration_project_name, + json_extract_path_text(detail.Properties, 'MigrationProjectIdentifier') as migration_project_identifier, + json_extract_path_text(detail.Properties, 'MigrationProjectArn') as migration_project_arn, + json_extract_path_text(detail.Properties, 'MigrationProjectCreationTime') as migration_project_creation_time, + json_extract_path_text(detail.Properties, 'InstanceProfileIdentifier') as instance_profile_identifier, + json_extract_path_text(detail.Properties, 'InstanceProfileName') as instance_profile_name, + json_extract_path_text(detail.Properties, 'InstanceProfileArn') as instance_profile_arn, + json_extract_path_text(detail.Properties, 'TransformationRules') as transformation_rules, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SchemaConversionApplicationAttributes') as schema_conversion_application_attributes, + json_extract_path_text(detail.Properties, 'SourceDataProviderDescriptors') as source_data_provider_descriptors, + json_extract_path_text(detail.Properties, 'TargetDataProviderDescriptors') as target_data_provider_descriptors + 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::DMS::MigrationProject' + AND detail.data__TypeName = 'AWS::DMS::MigrationProject' + AND listing.region = 'us-east-1' replication_configs: name: replication_configs id: aws.dms.replication_configs @@ -1791,10 +2167,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ReplicationConfigArn') as replication_config_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::ReplicationConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfigIdentifier') as replication_config_identifier, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfigArn') as replication_config_arn, + JSON_EXTRACT(detail.Properties, '$.SourceEndpointArn') as source_endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.TargetEndpointArn') as target_endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.ReplicationType') as replication_type, + JSON_EXTRACT(detail.Properties, '$.ComputeConfig') as compute_config, + JSON_EXTRACT(detail.Properties, '$.ReplicationSettings') as replication_settings, + JSON_EXTRACT(detail.Properties, '$.SupplementalSettings') as supplemental_settings, + JSON_EXTRACT(detail.Properties, '$.ResourceIdentifier') as resource_identifier, + JSON_EXTRACT(detail.Properties, '$.TableMappings') as table_mappings, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::DMS::ReplicationConfig' + AND detail.data__TypeName = 'AWS::DMS::ReplicationConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1819,10 +2210,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ReplicationConfigArn') as replication_config_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::ReplicationConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ReplicationConfigIdentifier') as replication_config_identifier, + json_extract_path_text(detail.Properties, 'ReplicationConfigArn') as replication_config_arn, + json_extract_path_text(detail.Properties, 'SourceEndpointArn') as source_endpoint_arn, + json_extract_path_text(detail.Properties, 'TargetEndpointArn') as target_endpoint_arn, + json_extract_path_text(detail.Properties, 'ReplicationType') as replication_type, + json_extract_path_text(detail.Properties, 'ComputeConfig') as compute_config, + json_extract_path_text(detail.Properties, 'ReplicationSettings') as replication_settings, + json_extract_path_text(detail.Properties, 'SupplementalSettings') as supplemental_settings, + json_extract_path_text(detail.Properties, 'ResourceIdentifier') as resource_identifier, + json_extract_path_text(detail.Properties, 'TableMappings') as table_mappings, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::DMS::ReplicationConfig' + AND detail.data__TypeName = 'AWS::DMS::ReplicationConfig' + AND listing.region = 'us-east-1' + replication_configs_list_only: + name: replication_configs_list_only + id: aws.dms.replication_configs_list_only + x-cfn-schema-name: ReplicationConfig + x-cfn-type-name: AWS::DMS::ReplicationConfig + x-identifiers: + - ReplicationConfigArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ReplicationConfigArn') as replication_config_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::ReplicationConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ReplicationConfigArn') as replication_config_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DMS::ReplicationConfig' + AND region = 'us-east-1' + replication_config_tags: + name: replication_config_tags + id: aws.dms.replication_config_tags + x-cfn-schema-name: ReplicationConfig + x-cfn-type-name: AWS::DMS::ReplicationConfig + 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, '$.ReplicationConfigIdentifier') as replication_config_identifier, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfigArn') as replication_config_arn, + JSON_EXTRACT(detail.Properties, '$.SourceEndpointArn') as source_endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.TargetEndpointArn') as target_endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.ReplicationType') as replication_type, + JSON_EXTRACT(detail.Properties, '$.ComputeConfig') as compute_config, + JSON_EXTRACT(detail.Properties, '$.ReplicationSettings') as replication_settings, + JSON_EXTRACT(detail.Properties, '$.SupplementalSettings') as supplemental_settings, + JSON_EXTRACT(detail.Properties, '$.ResourceIdentifier') as resource_identifier, + JSON_EXTRACT(detail.Properties, '$.TableMappings') as table_mappings + 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::DMS::ReplicationConfig' + AND detail.data__TypeName = 'AWS::DMS::ReplicationConfig' + 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, 'ReplicationConfigIdentifier') as replication_config_identifier, + json_extract_path_text(detail.Properties, 'ReplicationConfigArn') as replication_config_arn, + json_extract_path_text(detail.Properties, 'SourceEndpointArn') as source_endpoint_arn, + json_extract_path_text(detail.Properties, 'TargetEndpointArn') as target_endpoint_arn, + json_extract_path_text(detail.Properties, 'ReplicationType') as replication_type, + json_extract_path_text(detail.Properties, 'ComputeConfig') as compute_config, + json_extract_path_text(detail.Properties, 'ReplicationSettings') as replication_settings, + json_extract_path_text(detail.Properties, 'SupplementalSettings') as supplemental_settings, + json_extract_path_text(detail.Properties, 'ResourceIdentifier') as resource_identifier, + json_extract_path_text(detail.Properties, 'TableMappings') as table_mappings + 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::DMS::ReplicationConfig' + AND detail.data__TypeName = 'AWS::DMS::ReplicationConfig' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/docdbelastic.yaml b/providers/src/aws/v00.00.00000/services/docdbelastic.yaml index b462bd95..c76910f9 100644 --- a/providers/src/aws/v00.00.00000/services/docdbelastic.yaml +++ b/providers/src/aws/v00.00.00000/services/docdbelastic.yaml @@ -711,10 +711,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DocDBElastic::Cluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.ClusterEndpoint') as cluster_endpoint, + JSON_EXTRACT(detail.Properties, '$.AdminUserName') as admin_user_name, + JSON_EXTRACT(detail.Properties, '$.AdminUserPassword') as admin_user_password, + JSON_EXTRACT(detail.Properties, '$.ShardCapacity') as shard_capacity, + JSON_EXTRACT(detail.Properties, '$.ShardCount') as shard_count, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.ShardInstanceCount') as shard_instance_count, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AuthType') as auth_type + 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::DocDBElastic::Cluster' + AND detail.data__TypeName = 'AWS::DocDBElastic::Cluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -744,10 +764,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DocDBElastic::Cluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'ClusterEndpoint') as cluster_endpoint, + json_extract_path_text(detail.Properties, 'AdminUserName') as admin_user_name, + json_extract_path_text(detail.Properties, 'AdminUserPassword') as admin_user_password, + json_extract_path_text(detail.Properties, 'ShardCapacity') as shard_capacity, + json_extract_path_text(detail.Properties, 'ShardCount') as shard_count, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'ShardInstanceCount') as shard_instance_count, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AuthType') as auth_type + 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::DocDBElastic::Cluster' + AND detail.data__TypeName = 'AWS::DocDBElastic::Cluster' + AND listing.region = 'us-east-1' + clusters_list_only: + name: clusters_list_only + id: aws.docdbelastic.clusters_list_only + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::DocDBElastic::Cluster + x-identifiers: + - ClusterArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DocDBElastic::Cluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DocDBElastic::Cluster' + AND region = 'us-east-1' + cluster_tags: + name: cluster_tags + id: aws.docdbelastic.cluster_tags + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::DocDBElastic::Cluster + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.ClusterEndpoint') as cluster_endpoint, + JSON_EXTRACT(detail.Properties, '$.AdminUserName') as admin_user_name, + JSON_EXTRACT(detail.Properties, '$.AdminUserPassword') as admin_user_password, + JSON_EXTRACT(detail.Properties, '$.ShardCapacity') as shard_capacity, + JSON_EXTRACT(detail.Properties, '$.ShardCount') as shard_count, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.ShardInstanceCount') as shard_instance_count, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.AuthType') as auth_type + 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::DocDBElastic::Cluster' + AND detail.data__TypeName = 'AWS::DocDBElastic::Cluster' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'ClusterEndpoint') as cluster_endpoint, + json_extract_path_text(detail.Properties, 'AdminUserName') as admin_user_name, + json_extract_path_text(detail.Properties, 'AdminUserPassword') as admin_user_password, + json_extract_path_text(detail.Properties, 'ShardCapacity') as shard_capacity, + json_extract_path_text(detail.Properties, 'ShardCount') as shard_count, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'ShardInstanceCount') as shard_instance_count, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'AuthType') as auth_type + 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::DocDBElastic::Cluster' + AND detail.data__TypeName = 'AWS::DocDBElastic::Cluster' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/dynamodb.yaml b/providers/src/aws/v00.00.00000/services/dynamodb.yaml index 9b7f1f14..185a20f3 100644 --- a/providers/src/aws/v00.00.00000/services/dynamodb.yaml +++ b/providers/src/aws/v00.00.00000/services/dynamodb.yaml @@ -1609,10 +1609,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::GlobalTable' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StreamArn') as stream_arn, + JSON_EXTRACT(detail.Properties, '$.AttributeDefinitions') as attribute_definitions, + JSON_EXTRACT(detail.Properties, '$.BillingMode') as billing_mode, + JSON_EXTRACT(detail.Properties, '$.GlobalSecondaryIndexes') as global_secondary_indexes, + JSON_EXTRACT(detail.Properties, '$.KeySchema') as key_schema, + JSON_EXTRACT(detail.Properties, '$.LocalSecondaryIndexes') as local_secondary_indexes, + JSON_EXTRACT(detail.Properties, '$.WriteProvisionedThroughputSettings') as write_provisioned_throughput_settings, + JSON_EXTRACT(detail.Properties, '$.WriteOnDemandThroughputSettings') as write_on_demand_throughput_settings, + JSON_EXTRACT(detail.Properties, '$.Replicas') as replicas, + JSON_EXTRACT(detail.Properties, '$.SSESpecification') as sse_specification, + JSON_EXTRACT(detail.Properties, '$.StreamSpecification') as stream_specification, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.TableId') as table_id, + JSON_EXTRACT(detail.Properties, '$.TimeToLiveSpecification') as time_to_live_specification + 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::DynamoDB::GlobalTable' + AND detail.data__TypeName = 'AWS::DynamoDB::GlobalTable' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1641,10 +1660,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::GlobalTable' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StreamArn') as stream_arn, + json_extract_path_text(detail.Properties, 'AttributeDefinitions') as attribute_definitions, + json_extract_path_text(detail.Properties, 'BillingMode') as billing_mode, + json_extract_path_text(detail.Properties, 'GlobalSecondaryIndexes') as global_secondary_indexes, + json_extract_path_text(detail.Properties, 'KeySchema') as key_schema, + json_extract_path_text(detail.Properties, 'LocalSecondaryIndexes') as local_secondary_indexes, + json_extract_path_text(detail.Properties, 'WriteProvisionedThroughputSettings') as write_provisioned_throughput_settings, + json_extract_path_text(detail.Properties, 'WriteOnDemandThroughputSettings') as write_on_demand_throughput_settings, + json_extract_path_text(detail.Properties, 'Replicas') as replicas, + json_extract_path_text(detail.Properties, 'SSESpecification') as sse_specification, + json_extract_path_text(detail.Properties, 'StreamSpecification') as stream_specification, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'TableId') as table_id, + json_extract_path_text(detail.Properties, 'TimeToLiveSpecification') as time_to_live_specification + 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::DynamoDB::GlobalTable' + AND detail.data__TypeName = 'AWS::DynamoDB::GlobalTable' + AND listing.region = 'us-east-1' + global_tables_list_only: + name: global_tables_list_only + id: aws.dynamodb.global_tables_list_only + x-cfn-schema-name: GlobalTable + x-cfn-type-name: AWS::DynamoDB::GlobalTable + x-identifiers: + - TableName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::GlobalTable' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::GlobalTable' + AND region = 'us-east-1' tables: name: tables id: aws.dynamodb.tables @@ -1736,10 +1805,35 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::Table' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.OnDemandThroughput') as on_demand_throughput, + JSON_EXTRACT(detail.Properties, '$.SSESpecification') as sse_specification, + JSON_EXTRACT(detail.Properties, '$.KinesisStreamSpecification') as kinesis_stream_specification, + JSON_EXTRACT(detail.Properties, '$.StreamSpecification') as stream_specification, + JSON_EXTRACT(detail.Properties, '$.ContributorInsightsSpecification') as contributor_insights_specification, + JSON_EXTRACT(detail.Properties, '$.ImportSourceSpecification') as import_source_specification, + JSON_EXTRACT(detail.Properties, '$.PointInTimeRecoverySpecification') as point_in_time_recovery_specification, + JSON_EXTRACT(detail.Properties, '$.ProvisionedThroughput') as provisioned_throughput, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.AttributeDefinitions') as attribute_definitions, + JSON_EXTRACT(detail.Properties, '$.BillingMode') as billing_mode, + JSON_EXTRACT(detail.Properties, '$.GlobalSecondaryIndexes') as global_secondary_indexes, + JSON_EXTRACT(detail.Properties, '$.ResourcePolicy') as resource_policy, + JSON_EXTRACT(detail.Properties, '$.KeySchema') as key_schema, + JSON_EXTRACT(detail.Properties, '$.LocalSecondaryIndexes') as local_secondary_indexes, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StreamArn') as stream_arn, + JSON_EXTRACT(detail.Properties, '$.DeletionProtectionEnabled') as deletion_protection_enabled, + JSON_EXTRACT(detail.Properties, '$.TableClass') as table_class, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TimeToLiveSpecification') as time_to_live_specification + 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::DynamoDB::Table' + AND detail.data__TypeName = 'AWS::DynamoDB::Table' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1774,10 +1868,149 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::Table' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'OnDemandThroughput') as on_demand_throughput, + json_extract_path_text(detail.Properties, 'SSESpecification') as sse_specification, + json_extract_path_text(detail.Properties, 'KinesisStreamSpecification') as kinesis_stream_specification, + json_extract_path_text(detail.Properties, 'StreamSpecification') as stream_specification, + json_extract_path_text(detail.Properties, 'ContributorInsightsSpecification') as contributor_insights_specification, + json_extract_path_text(detail.Properties, 'ImportSourceSpecification') as import_source_specification, + json_extract_path_text(detail.Properties, 'PointInTimeRecoverySpecification') as point_in_time_recovery_specification, + json_extract_path_text(detail.Properties, 'ProvisionedThroughput') as provisioned_throughput, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'AttributeDefinitions') as attribute_definitions, + json_extract_path_text(detail.Properties, 'BillingMode') as billing_mode, + json_extract_path_text(detail.Properties, 'GlobalSecondaryIndexes') as global_secondary_indexes, + json_extract_path_text(detail.Properties, 'ResourcePolicy') as resource_policy, + json_extract_path_text(detail.Properties, 'KeySchema') as key_schema, + json_extract_path_text(detail.Properties, 'LocalSecondaryIndexes') as local_secondary_indexes, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StreamArn') as stream_arn, + json_extract_path_text(detail.Properties, 'DeletionProtectionEnabled') as deletion_protection_enabled, + json_extract_path_text(detail.Properties, 'TableClass') as table_class, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TimeToLiveSpecification') as time_to_live_specification + 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::DynamoDB::Table' + AND detail.data__TypeName = 'AWS::DynamoDB::Table' + AND listing.region = 'us-east-1' + tables_list_only: + name: tables_list_only + id: aws.dynamodb.tables_list_only + x-cfn-schema-name: Table + x-cfn-type-name: AWS::DynamoDB::Table + x-identifiers: + - TableName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::Table' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::DynamoDB::Table' + AND region = 'us-east-1' + table_tags: + name: table_tags + id: aws.dynamodb.table_tags + x-cfn-schema-name: Table + x-cfn-type-name: AWS::DynamoDB::Table + 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, '$.OnDemandThroughput') as on_demand_throughput, + JSON_EXTRACT(detail.Properties, '$.SSESpecification') as sse_specification, + JSON_EXTRACT(detail.Properties, '$.KinesisStreamSpecification') as kinesis_stream_specification, + JSON_EXTRACT(detail.Properties, '$.StreamSpecification') as stream_specification, + JSON_EXTRACT(detail.Properties, '$.ContributorInsightsSpecification') as contributor_insights_specification, + JSON_EXTRACT(detail.Properties, '$.ImportSourceSpecification') as import_source_specification, + JSON_EXTRACT(detail.Properties, '$.PointInTimeRecoverySpecification') as point_in_time_recovery_specification, + JSON_EXTRACT(detail.Properties, '$.ProvisionedThroughput') as provisioned_throughput, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.AttributeDefinitions') as attribute_definitions, + JSON_EXTRACT(detail.Properties, '$.BillingMode') as billing_mode, + JSON_EXTRACT(detail.Properties, '$.GlobalSecondaryIndexes') as global_secondary_indexes, + JSON_EXTRACT(detail.Properties, '$.ResourcePolicy') as resource_policy, + JSON_EXTRACT(detail.Properties, '$.KeySchema') as key_schema, + JSON_EXTRACT(detail.Properties, '$.LocalSecondaryIndexes') as local_secondary_indexes, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StreamArn') as stream_arn, + JSON_EXTRACT(detail.Properties, '$.DeletionProtectionEnabled') as deletion_protection_enabled, + JSON_EXTRACT(detail.Properties, '$.TableClass') as table_class, + JSON_EXTRACT(detail.Properties, '$.TimeToLiveSpecification') as time_to_live_specification + 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::DynamoDB::Table' + AND detail.data__TypeName = 'AWS::DynamoDB::Table' + 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, 'OnDemandThroughput') as on_demand_throughput, + json_extract_path_text(detail.Properties, 'SSESpecification') as sse_specification, + json_extract_path_text(detail.Properties, 'KinesisStreamSpecification') as kinesis_stream_specification, + json_extract_path_text(detail.Properties, 'StreamSpecification') as stream_specification, + json_extract_path_text(detail.Properties, 'ContributorInsightsSpecification') as contributor_insights_specification, + json_extract_path_text(detail.Properties, 'ImportSourceSpecification') as import_source_specification, + json_extract_path_text(detail.Properties, 'PointInTimeRecoverySpecification') as point_in_time_recovery_specification, + json_extract_path_text(detail.Properties, 'ProvisionedThroughput') as provisioned_throughput, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'AttributeDefinitions') as attribute_definitions, + json_extract_path_text(detail.Properties, 'BillingMode') as billing_mode, + json_extract_path_text(detail.Properties, 'GlobalSecondaryIndexes') as global_secondary_indexes, + json_extract_path_text(detail.Properties, 'ResourcePolicy') as resource_policy, + json_extract_path_text(detail.Properties, 'KeySchema') as key_schema, + json_extract_path_text(detail.Properties, 'LocalSecondaryIndexes') as local_secondary_indexes, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StreamArn') as stream_arn, + json_extract_path_text(detail.Properties, 'DeletionProtectionEnabled') as deletion_protection_enabled, + json_extract_path_text(detail.Properties, 'TableClass') as table_class, + json_extract_path_text(detail.Properties, 'TimeToLiveSpecification') as time_to_live_specification + 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::DynamoDB::Table' + AND detail.data__TypeName = 'AWS::DynamoDB::Table' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ec2.yaml b/providers/src/aws/v00.00.00000/services/ec2.yaml index cd9a5c5d..2ff1cec8 100644 --- a/providers/src/aws/v00.00.00000/services/ec2.yaml +++ b/providers/src/aws/v00.00.00000/services/ec2.yaml @@ -13814,10 +13814,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Tenancy') as tenancy, + JSON_EXTRACT(detail.Properties, '$.EndDateType') as end_date_type, + JSON_EXTRACT(detail.Properties, '$.TagSpecifications') as tag_specifications, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.TotalInstanceCount') as total_instance_count, + JSON_EXTRACT(detail.Properties, '$.EndDate') as end_date, + JSON_EXTRACT(detail.Properties, '$.EbsOptimized') as ebs_optimized, + JSON_EXTRACT(detail.Properties, '$.OutPostArn') as out_post_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceCount') as instance_count, + JSON_EXTRACT(detail.Properties, '$.PlacementGroupArn') as placement_group_arn, + JSON_EXTRACT(detail.Properties, '$.AvailableInstanceCount') as available_instance_count, + JSON_EXTRACT(detail.Properties, '$.InstancePlatform') as instance_platform, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.EphemeralStorage') as ephemeral_storage, + JSON_EXTRACT(detail.Properties, '$.InstanceMatchCriteria') as instance_match_criteria + 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::EC2::CapacityReservation' + AND detail.data__TypeName = 'AWS::EC2::CapacityReservation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -13847,10 +13867,61 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Tenancy') as tenancy, + json_extract_path_text(detail.Properties, 'EndDateType') as end_date_type, + json_extract_path_text(detail.Properties, 'TagSpecifications') as tag_specifications, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'TotalInstanceCount') as total_instance_count, + json_extract_path_text(detail.Properties, 'EndDate') as end_date, + json_extract_path_text(detail.Properties, 'EbsOptimized') as ebs_optimized, + json_extract_path_text(detail.Properties, 'OutPostArn') as out_post_arn, + json_extract_path_text(detail.Properties, 'InstanceCount') as instance_count, + json_extract_path_text(detail.Properties, 'PlacementGroupArn') as placement_group_arn, + json_extract_path_text(detail.Properties, 'AvailableInstanceCount') as available_instance_count, + json_extract_path_text(detail.Properties, 'InstancePlatform') as instance_platform, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'EphemeralStorage') as ephemeral_storage, + json_extract_path_text(detail.Properties, 'InstanceMatchCriteria') as instance_match_criteria + 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::EC2::CapacityReservation' + AND detail.data__TypeName = 'AWS::EC2::CapacityReservation' + AND listing.region = 'us-east-1' + capacity_reservations_list_only: + name: capacity_reservations_list_only + id: aws.ec2.capacity_reservations_list_only + x-cfn-schema-name: CapacityReservation + x-cfn-type-name: AWS::EC2::CapacityReservation + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservation' + AND region = 'us-east-1' capacity_reservation_fleets: name: capacity_reservation_fleets id: aws.ec2.capacity_reservation_fleets @@ -13931,10 +14002,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CapacityReservationFleetId') as capacity_reservation_fleet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservationFleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AllocationStrategy') as allocation_strategy, + JSON_EXTRACT(detail.Properties, '$.TagSpecifications') as tag_specifications, + JSON_EXTRACT(detail.Properties, '$.InstanceTypeSpecifications') as instance_type_specifications, + JSON_EXTRACT(detail.Properties, '$.TotalTargetCapacity') as total_target_capacity, + JSON_EXTRACT(detail.Properties, '$.EndDate') as end_date, + JSON_EXTRACT(detail.Properties, '$.InstanceMatchCriteria') as instance_match_criteria, + JSON_EXTRACT(detail.Properties, '$.CapacityReservationFleetId') as capacity_reservation_fleet_id, + JSON_EXTRACT(detail.Properties, '$.Tenancy') as tenancy, + JSON_EXTRACT(detail.Properties, '$.RemoveEndDate') as remove_end_date, + JSON_EXTRACT(detail.Properties, '$.NoRemoveEndDate') as no_remove_end_date + 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::EC2::CapacityReservationFleet' + AND detail.data__TypeName = 'AWS::EC2::CapacityReservationFleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -13958,10 +14043,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CapacityReservationFleetId') as capacity_reservation_fleet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservationFleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AllocationStrategy') as allocation_strategy, + json_extract_path_text(detail.Properties, 'TagSpecifications') as tag_specifications, + json_extract_path_text(detail.Properties, 'InstanceTypeSpecifications') as instance_type_specifications, + json_extract_path_text(detail.Properties, 'TotalTargetCapacity') as total_target_capacity, + json_extract_path_text(detail.Properties, 'EndDate') as end_date, + json_extract_path_text(detail.Properties, 'InstanceMatchCriteria') as instance_match_criteria, + json_extract_path_text(detail.Properties, 'CapacityReservationFleetId') as capacity_reservation_fleet_id, + json_extract_path_text(detail.Properties, 'Tenancy') as tenancy, + json_extract_path_text(detail.Properties, 'RemoveEndDate') as remove_end_date, + json_extract_path_text(detail.Properties, 'NoRemoveEndDate') as no_remove_end_date + 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::EC2::CapacityReservationFleet' + AND detail.data__TypeName = 'AWS::EC2::CapacityReservationFleet' + AND listing.region = 'us-east-1' + capacity_reservation_fleets_list_only: + name: capacity_reservation_fleets_list_only + id: aws.ec2.capacity_reservation_fleets_list_only + x-cfn-schema-name: CapacityReservationFleet + x-cfn-type-name: AWS::EC2::CapacityReservationFleet + x-identifiers: + - CapacityReservationFleetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CapacityReservationFleetId') as capacity_reservation_fleet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservationFleet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CapacityReservationFleetId') as capacity_reservation_fleet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CapacityReservationFleet' + AND region = 'us-east-1' carrier_gateways: name: carrier_gateways id: aws.ec2.carrier_gateways @@ -14037,10 +14167,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CarrierGatewayId') as carrier_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CarrierGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CarrierGatewayId') as carrier_gateway_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::CarrierGateway' + AND detail.data__TypeName = 'AWS::EC2::CarrierGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14059,10 +14198,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CarrierGatewayId') as carrier_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CarrierGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CarrierGatewayId') as carrier_gateway_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::CarrierGateway' + AND detail.data__TypeName = 'AWS::EC2::CarrierGateway' + AND listing.region = 'us-east-1' + carrier_gateways_list_only: + name: carrier_gateways_list_only + id: aws.ec2.carrier_gateways_list_only + x-cfn-schema-name: CarrierGateway + x-cfn-type-name: AWS::EC2::CarrierGateway + x-identifiers: + - CarrierGatewayId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CarrierGatewayId') as carrier_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CarrierGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CarrierGatewayId') as carrier_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CarrierGateway' + AND region = 'us-east-1' + carrier_gateway_tags: + name: carrier_gateway_tags + id: aws.ec2.carrier_gateway_tags + x-cfn-schema-name: CarrierGateway + x-cfn-type-name: AWS::EC2::CarrierGateway + 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, '$.CarrierGatewayId') as carrier_gateway_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id + 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::EC2::CarrierGateway' + AND detail.data__TypeName = 'AWS::EC2::CarrierGateway' + 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, 'CarrierGatewayId') as carrier_gateway_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id + 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::EC2::CarrierGateway' + AND detail.data__TypeName = 'AWS::EC2::CarrierGateway' + AND listing.region = 'us-east-1' customer_gateways: name: customer_gateways id: aws.ec2.customer_gateways @@ -14141,10 +14371,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CustomerGatewayId') as customer_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CustomerGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.CustomerGatewayId') as customer_gateway_id, + JSON_EXTRACT(detail.Properties, '$.IpAddress') as ip_address, + JSON_EXTRACT(detail.Properties, '$.BgpAsnExtended') as bgp_asn_extended, + JSON_EXTRACT(detail.Properties, '$.BgpAsn') as bgp_asn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.DeviceName') as device_name + 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::EC2::CustomerGateway' + AND detail.data__TypeName = 'AWS::EC2::CustomerGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14166,10 +14408,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CustomerGatewayId') as customer_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CustomerGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'CustomerGatewayId') as customer_gateway_id, + json_extract_path_text(detail.Properties, 'IpAddress') as ip_address, + json_extract_path_text(detail.Properties, 'BgpAsnExtended') as bgp_asn_extended, + json_extract_path_text(detail.Properties, 'BgpAsn') as bgp_asn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'DeviceName') as device_name + 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::EC2::CustomerGateway' + AND detail.data__TypeName = 'AWS::EC2::CustomerGateway' + AND listing.region = 'us-east-1' + customer_gateways_list_only: + name: customer_gateways_list_only + id: aws.ec2.customer_gateways_list_only + x-cfn-schema-name: CustomerGateway + x-cfn-type-name: AWS::EC2::CustomerGateway + x-identifiers: + - CustomerGatewayId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CustomerGatewayId') as customer_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CustomerGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CustomerGatewayId') as customer_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::CustomerGateway' + AND region = 'us-east-1' + customer_gateway_tags: + name: customer_gateway_tags + id: aws.ec2.customer_gateway_tags + x-cfn-schema-name: CustomerGateway + x-cfn-type-name: AWS::EC2::CustomerGateway + 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, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.CustomerGatewayId') as customer_gateway_id, + JSON_EXTRACT(detail.Properties, '$.IpAddress') as ip_address, + JSON_EXTRACT(detail.Properties, '$.BgpAsnExtended') as bgp_asn_extended, + JSON_EXTRACT(detail.Properties, '$.BgpAsn') as bgp_asn, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.DeviceName') as device_name + 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::EC2::CustomerGateway' + AND detail.data__TypeName = 'AWS::EC2::CustomerGateway' + 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, 'Type') as type, + json_extract_path_text(detail.Properties, 'CustomerGatewayId') as customer_gateway_id, + json_extract_path_text(detail.Properties, 'IpAddress') as ip_address, + json_extract_path_text(detail.Properties, 'BgpAsnExtended') as bgp_asn_extended, + json_extract_path_text(detail.Properties, 'BgpAsn') as bgp_asn, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'DeviceName') as device_name + 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::EC2::CustomerGateway' + AND detail.data__TypeName = 'AWS::EC2::CustomerGateway' + AND listing.region = 'us-east-1' dhcp_options: name: dhcp_options id: aws.ec2.dhcp_options @@ -14248,10 +14590,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DhcpOptionsId') as dhcp_options_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::DHCPOptions' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DhcpOptionsId') as dhcp_options_id, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainNameServers') as domain_name_servers, + JSON_EXTRACT(detail.Properties, '$.NetbiosNameServers') as netbios_name_servers, + JSON_EXTRACT(detail.Properties, '$.NetbiosNodeType') as netbios_node_type, + JSON_EXTRACT(detail.Properties, '$.NtpServers') as ntp_servers, + JSON_EXTRACT(detail.Properties, '$.Ipv6AddressPreferredLeaseTime') as ipv6_address_preferred_lease_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::DHCPOptions' + AND detail.data__TypeName = 'AWS::EC2::DHCPOptions' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14273,10 +14627,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DhcpOptionsId') as dhcp_options_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::DHCPOptions' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DhcpOptionsId') as dhcp_options_id, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainNameServers') as domain_name_servers, + json_extract_path_text(detail.Properties, 'NetbiosNameServers') as netbios_name_servers, + json_extract_path_text(detail.Properties, 'NetbiosNodeType') as netbios_node_type, + json_extract_path_text(detail.Properties, 'NtpServers') as ntp_servers, + json_extract_path_text(detail.Properties, 'Ipv6AddressPreferredLeaseTime') as ipv6_address_preferred_lease_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::DHCPOptions' + AND detail.data__TypeName = 'AWS::EC2::DHCPOptions' + AND listing.region = 'us-east-1' + dhcp_options_list_only: + name: dhcp_options_list_only + id: aws.ec2.dhcp_options_list_only + x-cfn-schema-name: DHCPOptions + x-cfn-type-name: AWS::EC2::DHCPOptions + x-identifiers: + - DhcpOptionsId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DhcpOptionsId') as dhcp_options_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::DHCPOptions' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DhcpOptionsId') as dhcp_options_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::DHCPOptions' + AND region = 'us-east-1' + dhcp_options_tags: + name: dhcp_options_tags + id: aws.ec2.dhcp_options_tags + x-cfn-schema-name: DHCPOptions + x-cfn-type-name: AWS::EC2::DHCPOptions + 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, '$.DhcpOptionsId') as dhcp_options_id, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DomainNameServers') as domain_name_servers, + JSON_EXTRACT(detail.Properties, '$.NetbiosNameServers') as netbios_name_servers, + JSON_EXTRACT(detail.Properties, '$.NetbiosNodeType') as netbios_node_type, + JSON_EXTRACT(detail.Properties, '$.NtpServers') as ntp_servers, + JSON_EXTRACT(detail.Properties, '$.Ipv6AddressPreferredLeaseTime') as ipv6_address_preferred_lease_time + 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::EC2::DHCPOptions' + AND detail.data__TypeName = 'AWS::EC2::DHCPOptions' + 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, 'DhcpOptionsId') as dhcp_options_id, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DomainNameServers') as domain_name_servers, + json_extract_path_text(detail.Properties, 'NetbiosNameServers') as netbios_name_servers, + json_extract_path_text(detail.Properties, 'NetbiosNodeType') as netbios_node_type, + json_extract_path_text(detail.Properties, 'NtpServers') as ntp_servers, + json_extract_path_text(detail.Properties, 'Ipv6AddressPreferredLeaseTime') as ipv6_address_preferred_lease_time + 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::EC2::DHCPOptions' + AND detail.data__TypeName = 'AWS::EC2::DHCPOptions' + AND listing.region = 'us-east-1' ec2fleets: name: ec2fleets id: aws.ec2.ec2fleets @@ -14360,10 +14814,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FleetId') as fleet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EC2Fleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TargetCapacitySpecification') as target_capacity_specification, + JSON_EXTRACT(detail.Properties, '$.OnDemandOptions') as on_demand_options, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.ExcessCapacityTerminationPolicy') as excess_capacity_termination_policy, + JSON_EXTRACT(detail.Properties, '$.TagSpecifications') as tag_specifications, + JSON_EXTRACT(detail.Properties, '$.SpotOptions') as spot_options, + JSON_EXTRACT(detail.Properties, '$.ValidFrom') as valid_from, + JSON_EXTRACT(detail.Properties, '$.ReplaceUnhealthyInstances') as replace_unhealthy_instances, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplateConfigs') as launch_template_configs, + JSON_EXTRACT(detail.Properties, '$.FleetId') as fleet_id, + JSON_EXTRACT(detail.Properties, '$.TerminateInstancesWithExpiration') as terminate_instances_with_expiration, + JSON_EXTRACT(detail.Properties, '$.ValidUntil') as valid_until, + JSON_EXTRACT(detail.Properties, '$.Context') as context + 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::EC2::EC2Fleet' + AND detail.data__TypeName = 'AWS::EC2::EC2Fleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14390,10 +14861,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FleetId') as fleet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EC2Fleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TargetCapacitySpecification') as target_capacity_specification, + json_extract_path_text(detail.Properties, 'OnDemandOptions') as on_demand_options, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'ExcessCapacityTerminationPolicy') as excess_capacity_termination_policy, + json_extract_path_text(detail.Properties, 'TagSpecifications') as tag_specifications, + json_extract_path_text(detail.Properties, 'SpotOptions') as spot_options, + json_extract_path_text(detail.Properties, 'ValidFrom') as valid_from, + json_extract_path_text(detail.Properties, 'ReplaceUnhealthyInstances') as replace_unhealthy_instances, + json_extract_path_text(detail.Properties, 'LaunchTemplateConfigs') as launch_template_configs, + json_extract_path_text(detail.Properties, 'FleetId') as fleet_id, + json_extract_path_text(detail.Properties, 'TerminateInstancesWithExpiration') as terminate_instances_with_expiration, + json_extract_path_text(detail.Properties, 'ValidUntil') as valid_until, + json_extract_path_text(detail.Properties, 'Context') as context + 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::EC2::EC2Fleet' + AND detail.data__TypeName = 'AWS::EC2::EC2Fleet' + AND listing.region = 'us-east-1' + ec2fleets_list_only: + name: ec2fleets_list_only + id: aws.ec2.ec2fleets_list_only + x-cfn-schema-name: EC2Fleet + x-cfn-type-name: AWS::EC2::EC2Fleet + x-identifiers: + - FleetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FleetId') as fleet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EC2Fleet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FleetId') as fleet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EC2Fleet' + AND region = 'us-east-1' egress_only_internet_gateways: name: egress_only_internet_gateways id: aws.ec2.egress_only_internet_gateways @@ -14453,10 +14972,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EgressOnlyInternetGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::EgressOnlyInternetGateway' + AND detail.data__TypeName = 'AWS::EC2::EgressOnlyInternetGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14472,10 +14997,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EgressOnlyInternetGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::EgressOnlyInternetGateway' + AND detail.data__TypeName = 'AWS::EC2::EgressOnlyInternetGateway' + AND listing.region = 'us-east-1' + egress_only_internet_gateways_list_only: + name: egress_only_internet_gateways_list_only + id: aws.ec2.egress_only_internet_gateways_list_only + x-cfn-schema-name: EgressOnlyInternetGateway + x-cfn-type-name: AWS::EC2::EgressOnlyInternetGateway + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EgressOnlyInternetGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EgressOnlyInternetGateway' + AND region = 'us-east-1' eips: name: eips id: aws.ec2.eips @@ -14555,11 +15117,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PublicIp') as public_ip, - JSON_EXTRACT(Properties, '$.AllocationId') as allocation_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIP' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PublicIp') as public_ip, + JSON_EXTRACT(detail.Properties, '$.AllocationId') as allocation_id, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.NetworkBorderGroup') as network_border_group, + JSON_EXTRACT(detail.Properties, '$.TransferAddress') as transfer_address, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.PublicIpv4Pool') as public_ipv4_pool, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::EIP' + AND detail.data__TypeName = 'AWS::EC2::EIP' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14581,11 +15154,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PublicIp') as public_ip, - json_extract_path_text(Properties, 'AllocationId') as allocation_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIP' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PublicIp') as public_ip, + json_extract_path_text(detail.Properties, 'AllocationId') as allocation_id, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'NetworkBorderGroup') as network_border_group, + json_extract_path_text(detail.Properties, 'TransferAddress') as transfer_address, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'PublicIpv4Pool') as public_ipv4_pool, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::EIP' + AND detail.data__TypeName = 'AWS::EC2::EIP' + AND listing.region = 'us-east-1' + eips_list_only: + name: eips_list_only + id: aws.ec2.eips_list_only + x-cfn-schema-name: EIP + x-cfn-type-name: AWS::EC2::EIP + x-identifiers: + - PublicIp + - AllocationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PublicIp') as public_ip, + JSON_EXTRACT(Properties, '$.AllocationId') as allocation_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIP' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PublicIp') as public_ip, + json_extract_path_text(Properties, 'AllocationId') as allocation_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIP' + AND region = 'us-east-1' + eip_tags: + name: eip_tags + id: aws.ec2.eip_tags + x-cfn-schema-name: EIP + x-cfn-type-name: AWS::EC2::EIP + 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, '$.PublicIp') as public_ip, + JSON_EXTRACT(detail.Properties, '$.AllocationId') as allocation_id, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.NetworkBorderGroup') as network_border_group, + JSON_EXTRACT(detail.Properties, '$.TransferAddress') as transfer_address, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.PublicIpv4Pool') as public_ipv4_pool + 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::EC2::EIP' + AND detail.data__TypeName = 'AWS::EC2::EIP' + 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, 'PublicIp') as public_ip, + json_extract_path_text(detail.Properties, 'AllocationId') as allocation_id, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'NetworkBorderGroup') as network_border_group, + json_extract_path_text(detail.Properties, 'TransferAddress') as transfer_address, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'PublicIpv4Pool') as public_ipv4_pool + 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::EC2::EIP' + AND detail.data__TypeName = 'AWS::EC2::EIP' + AND listing.region = 'us-east-1' eip_associations: name: eip_associations id: aws.ec2.eip_associations @@ -14649,10 +15324,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIPAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.AllocationId') as allocation_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceId') as network_interface_id, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.EIP') as e_ip + 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::EC2::EIPAssociation' + AND detail.data__TypeName = 'AWS::EC2::EIPAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14672,10 +15357,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIPAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'AllocationId') as allocation_id, + json_extract_path_text(detail.Properties, 'NetworkInterfaceId') as network_interface_id, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'EIP') as e_ip + 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::EC2::EIPAssociation' + AND detail.data__TypeName = 'AWS::EC2::EIPAssociation' + AND listing.region = 'us-east-1' + eip_associations_list_only: + name: eip_associations_list_only + id: aws.ec2.eip_associations_list_only + x-cfn-schema-name: EIPAssociation + x-cfn-type-name: AWS::EC2::EIPAssociation + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIPAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EIPAssociation' + AND region = 'us-east-1' enclave_certificate_iam_role_associations: name: enclave_certificate_iam_role_associations id: aws.ec2.enclave_certificate_iam_role_associations @@ -14739,11 +15465,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CertificateArn') as certificate_arn, - JSON_EXTRACT(Properties, '$.RoleArn') as role_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EnclaveCertificateIamRoleAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.CertificateS3BucketName') as certificate_s3_bucket_name, + JSON_EXTRACT(detail.Properties, '$.CertificateS3ObjectKey') as certificate_s3_object_key, + JSON_EXTRACT(detail.Properties, '$.EncryptionKmsKeyId') as encryption_kms_key_id + 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::EC2::EnclaveCertificateIamRoleAssociation' + AND detail.data__TypeName = 'AWS::EC2::EnclaveCertificateIamRoleAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14762,16 +15496,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CertificateArn') as certificate_arn, - json_extract_path_text(Properties, 'RoleArn') as role_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EnclaveCertificateIamRoleAssociation' - AND region = 'us-east-1' - flow_logs: - name: flow_logs - id: aws.ec2.flow_logs - x-cfn-schema-name: FlowLog - x-cfn-type-name: AWS::EC2::FlowLog + detail.region, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'CertificateS3BucketName') as certificate_s3_bucket_name, + json_extract_path_text(detail.Properties, 'CertificateS3ObjectKey') as certificate_s3_object_key, + json_extract_path_text(detail.Properties, 'EncryptionKmsKeyId') as encryption_kms_key_id + 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::EC2::EnclaveCertificateIamRoleAssociation' + AND detail.data__TypeName = 'AWS::EC2::EnclaveCertificateIamRoleAssociation' + AND listing.region = 'us-east-1' + enclave_certificate_iam_role_associations_list_only: + name: enclave_certificate_iam_role_associations_list_only + id: aws.ec2.enclave_certificate_iam_role_associations_list_only + x-cfn-schema-name: EnclaveCertificateIamRoleAssociation + x-cfn-type-name: AWS::EC2::EnclaveCertificateIamRoleAssociation + x-identifiers: + - CertificateArn + - RoleArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(Properties, '$.RoleArn') as role_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EnclaveCertificateIamRoleAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(Properties, 'RoleArn') as role_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::EnclaveCertificateIamRoleAssociation' + AND region = 'us-east-1' + flow_logs: + name: flow_logs + id: aws.ec2.flow_logs + x-cfn-schema-name: FlowLog + x-cfn-type-name: AWS::EC2::FlowLog x-identifiers: - Id x-type: cloud_control @@ -14850,10 +15626,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::FlowLog' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DeliverCrossAccountRole') as deliver_cross_account_role, + JSON_EXTRACT(detail.Properties, '$.DeliverLogsPermissionArn') as deliver_logs_permission_arn, + JSON_EXTRACT(detail.Properties, '$.LogDestination') as log_destination, + JSON_EXTRACT(detail.Properties, '$.LogDestinationType') as log_destination_type, + JSON_EXTRACT(detail.Properties, '$.LogFormat') as log_format, + JSON_EXTRACT(detail.Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(detail.Properties, '$.MaxAggregationInterval') as max_aggregation_interval, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrafficType') as traffic_type, + JSON_EXTRACT(detail.Properties, '$.DestinationOptions') as destination_options + 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::EC2::FlowLog' + AND detail.data__TypeName = 'AWS::EC2::FlowLog' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14880,10 +15673,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::FlowLog' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DeliverCrossAccountRole') as deliver_cross_account_role, + json_extract_path_text(detail.Properties, 'DeliverLogsPermissionArn') as deliver_logs_permission_arn, + json_extract_path_text(detail.Properties, 'LogDestination') as log_destination, + json_extract_path_text(detail.Properties, 'LogDestinationType') as log_destination_type, + json_extract_path_text(detail.Properties, 'LogFormat') as log_format, + json_extract_path_text(detail.Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(detail.Properties, 'MaxAggregationInterval') as max_aggregation_interval, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrafficType') as traffic_type, + json_extract_path_text(detail.Properties, 'DestinationOptions') as destination_options + 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::EC2::FlowLog' + AND detail.data__TypeName = 'AWS::EC2::FlowLog' + AND listing.region = 'us-east-1' + flow_logs_list_only: + name: flow_logs_list_only + id: aws.ec2.flow_logs_list_only + x-cfn-schema-name: FlowLog + x-cfn-type-name: AWS::EC2::FlowLog + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::FlowLog' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::FlowLog' + AND region = 'us-east-1' + flow_log_tags: + name: flow_log_tags + id: aws.ec2.flow_log_tags + x-cfn-schema-name: FlowLog + x-cfn-type-name: AWS::EC2::FlowLog + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DeliverCrossAccountRole') as deliver_cross_account_role, + JSON_EXTRACT(detail.Properties, '$.DeliverLogsPermissionArn') as deliver_logs_permission_arn, + JSON_EXTRACT(detail.Properties, '$.LogDestination') as log_destination, + JSON_EXTRACT(detail.Properties, '$.LogDestinationType') as log_destination_type, + JSON_EXTRACT(detail.Properties, '$.LogFormat') as log_format, + JSON_EXTRACT(detail.Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(detail.Properties, '$.MaxAggregationInterval') as max_aggregation_interval, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.TrafficType') as traffic_type, + JSON_EXTRACT(detail.Properties, '$.DestinationOptions') as destination_options + 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::EC2::FlowLog' + AND detail.data__TypeName = 'AWS::EC2::FlowLog' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'DeliverCrossAccountRole') as deliver_cross_account_role, + json_extract_path_text(detail.Properties, 'DeliverLogsPermissionArn') as deliver_logs_permission_arn, + json_extract_path_text(detail.Properties, 'LogDestination') as log_destination, + json_extract_path_text(detail.Properties, 'LogDestinationType') as log_destination_type, + json_extract_path_text(detail.Properties, 'LogFormat') as log_format, + json_extract_path_text(detail.Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(detail.Properties, 'MaxAggregationInterval') as max_aggregation_interval, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'TrafficType') as traffic_type, + json_extract_path_text(detail.Properties, 'DestinationOptions') as destination_options + 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::EC2::FlowLog' + AND detail.data__TypeName = 'AWS::EC2::FlowLog' + AND listing.region = 'us-east-1' gateway_route_table_associations: name: gateway_route_table_associations id: aws.ec2.gateway_route_table_associations @@ -15044,10 +15952,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.HostId') as host_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Host' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.HostId') as host_id, + JSON_EXTRACT(detail.Properties, '$.AutoPlacement') as auto_placement, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.HostRecovery') as host_recovery, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.InstanceFamily') as instance_family, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.HostMaintenance') as host_maintenance, + JSON_EXTRACT(detail.Properties, '$.AssetId') as asset_id + 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::EC2::Host' + AND detail.data__TypeName = 'AWS::EC2::Host' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15070,10 +15991,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'HostId') as host_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Host' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'HostId') as host_id, + json_extract_path_text(detail.Properties, 'AutoPlacement') as auto_placement, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'HostRecovery') as host_recovery, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'InstanceFamily') as instance_family, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'HostMaintenance') as host_maintenance, + json_extract_path_text(detail.Properties, 'AssetId') as asset_id + 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::EC2::Host' + AND detail.data__TypeName = 'AWS::EC2::Host' + AND listing.region = 'us-east-1' + hosts_list_only: + name: hosts_list_only + id: aws.ec2.hosts_list_only + x-cfn-schema-name: Host + x-cfn-type-name: AWS::EC2::Host + x-identifiers: + - HostId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.HostId') as host_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Host' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'HostId') as host_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Host' + AND region = 'us-east-1' network_interfaces: name: network_interfaces id: aws.ec2.network_interfaces @@ -15166,10 +16131,36 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterface' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddresses') as private_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + JSON_EXTRACT(detail.Properties, '$.PrimaryPrivateIpAddress') as primary_private_ip_address, + JSON_EXTRACT(detail.Properties, '$.Ipv4Prefixes') as ipv4_prefixes, + JSON_EXTRACT(detail.Properties, '$.Ipv4PrefixCount') as ipv4_prefix_count, + JSON_EXTRACT(detail.Properties, '$.GroupSet') as group_set, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.Ipv6Prefixes') as ipv6_prefixes, + JSON_EXTRACT(detail.Properties, '$.Ipv6PrefixCount') as ipv6_prefix_count, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.SourceDestCheck') as source_dest_check, + JSON_EXTRACT(detail.Properties, '$.InterfaceType') as interface_type, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.Ipv6AddressCount') as ipv6_address_count, + JSON_EXTRACT(detail.Properties, '$.EnablePrimaryIpv6') as enable_primary_ipv6, + JSON_EXTRACT(detail.Properties, '$.PrimaryIpv6Address') as primary_ipv6_address, + JSON_EXTRACT(detail.Properties, '$.ConnectionTrackingSpecification') as connection_tracking_specification, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::NetworkInterface' + AND detail.data__TypeName = 'AWS::EC2::NetworkInterface' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15205,10 +16196,152 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterface' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'PrivateIpAddresses') as private_ip_addresses, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + json_extract_path_text(detail.Properties, 'PrimaryPrivateIpAddress') as primary_private_ip_address, + json_extract_path_text(detail.Properties, 'Ipv4Prefixes') as ipv4_prefixes, + json_extract_path_text(detail.Properties, 'Ipv4PrefixCount') as ipv4_prefix_count, + json_extract_path_text(detail.Properties, 'GroupSet') as group_set, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'Ipv6Prefixes') as ipv6_prefixes, + json_extract_path_text(detail.Properties, 'Ipv6PrefixCount') as ipv6_prefix_count, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'SourceDestCheck') as source_dest_check, + json_extract_path_text(detail.Properties, 'InterfaceType') as interface_type, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + json_extract_path_text(detail.Properties, 'Ipv6AddressCount') as ipv6_address_count, + json_extract_path_text(detail.Properties, 'EnablePrimaryIpv6') as enable_primary_ipv6, + json_extract_path_text(detail.Properties, 'PrimaryIpv6Address') as primary_ipv6_address, + json_extract_path_text(detail.Properties, 'ConnectionTrackingSpecification') as connection_tracking_specification, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::NetworkInterface' + AND detail.data__TypeName = 'AWS::EC2::NetworkInterface' + AND listing.region = 'us-east-1' + network_interfaces_list_only: + name: network_interfaces_list_only + id: aws.ec2.network_interfaces_list_only + x-cfn-schema-name: NetworkInterface + x-cfn-type-name: AWS::EC2::NetworkInterface + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterface' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterface' + AND region = 'us-east-1' + network_interface_tags: + name: network_interface_tags + id: aws.ec2.network_interface_tags + x-cfn-schema-name: NetworkInterface + x-cfn-type-name: AWS::EC2::NetworkInterface + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddresses') as private_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + JSON_EXTRACT(detail.Properties, '$.PrimaryPrivateIpAddress') as primary_private_ip_address, + JSON_EXTRACT(detail.Properties, '$.Ipv4Prefixes') as ipv4_prefixes, + JSON_EXTRACT(detail.Properties, '$.Ipv4PrefixCount') as ipv4_prefix_count, + JSON_EXTRACT(detail.Properties, '$.GroupSet') as group_set, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.Ipv6Prefixes') as ipv6_prefixes, + JSON_EXTRACT(detail.Properties, '$.Ipv6PrefixCount') as ipv6_prefix_count, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.SourceDestCheck') as source_dest_check, + JSON_EXTRACT(detail.Properties, '$.InterfaceType') as interface_type, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.Ipv6AddressCount') as ipv6_address_count, + JSON_EXTRACT(detail.Properties, '$.EnablePrimaryIpv6') as enable_primary_ipv6, + JSON_EXTRACT(detail.Properties, '$.PrimaryIpv6Address') as primary_ipv6_address, + JSON_EXTRACT(detail.Properties, '$.ConnectionTrackingSpecification') as connection_tracking_specification, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::NetworkInterface' + AND detail.data__TypeName = 'AWS::EC2::NetworkInterface' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'PrivateIpAddresses') as private_ip_addresses, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + json_extract_path_text(detail.Properties, 'PrimaryPrivateIpAddress') as primary_private_ip_address, + json_extract_path_text(detail.Properties, 'Ipv4Prefixes') as ipv4_prefixes, + json_extract_path_text(detail.Properties, 'Ipv4PrefixCount') as ipv4_prefix_count, + json_extract_path_text(detail.Properties, 'GroupSet') as group_set, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'Ipv6Prefixes') as ipv6_prefixes, + json_extract_path_text(detail.Properties, 'Ipv6PrefixCount') as ipv6_prefix_count, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'SourceDestCheck') as source_dest_check, + json_extract_path_text(detail.Properties, 'InterfaceType') as interface_type, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + json_extract_path_text(detail.Properties, 'Ipv6AddressCount') as ipv6_address_count, + json_extract_path_text(detail.Properties, 'EnablePrimaryIpv6') as enable_primary_ipv6, + json_extract_path_text(detail.Properties, 'PrimaryIpv6Address') as primary_ipv6_address, + json_extract_path_text(detail.Properties, 'ConnectionTrackingSpecification') as connection_tracking_specification, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::NetworkInterface' + AND detail.data__TypeName = 'AWS::EC2::NetworkInterface' + AND listing.region = 'us-east-1' volumes: name: volumes id: aws.ec2.volumes @@ -15292,10 +16425,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VolumeId') as volume_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Volume' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MultiAttachEnabled') as multi_attach_enabled, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Encrypted') as encrypted, + JSON_EXTRACT(detail.Properties, '$.Size') as size, + JSON_EXTRACT(detail.Properties, '$.AutoEnableIO') as auto_enable_io, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.Throughput') as throughput, + JSON_EXTRACT(detail.Properties, '$.Iops') as iops, + JSON_EXTRACT(detail.Properties, '$.SnapshotId') as snapshot_id, + JSON_EXTRACT(detail.Properties, '$.VolumeType') as volume_type, + JSON_EXTRACT(detail.Properties, '$.VolumeId') as volume_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::Volume' + AND detail.data__TypeName = 'AWS::EC2::Volume' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15322,10 +16472,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VolumeId') as volume_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Volume' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MultiAttachEnabled') as multi_attach_enabled, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Encrypted') as encrypted, + json_extract_path_text(detail.Properties, 'Size') as size, + json_extract_path_text(detail.Properties, 'AutoEnableIO') as auto_enable_io, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'Throughput') as throughput, + json_extract_path_text(detail.Properties, 'Iops') as iops, + json_extract_path_text(detail.Properties, 'SnapshotId') as snapshot_id, + json_extract_path_text(detail.Properties, 'VolumeType') as volume_type, + json_extract_path_text(detail.Properties, 'VolumeId') as volume_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::Volume' + AND detail.data__TypeName = 'AWS::EC2::Volume' + AND listing.region = 'us-east-1' + volumes_list_only: + name: volumes_list_only + id: aws.ec2.volumes_list_only + x-cfn-schema-name: Volume + x-cfn-type-name: AWS::EC2::Volume + x-identifiers: + - VolumeId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VolumeId') as volume_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Volume' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VolumeId') as volume_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Volume' + AND region = 'us-east-1' + volume_tags: + name: volume_tags + id: aws.ec2.volume_tags + x-cfn-schema-name: Volume + x-cfn-type-name: AWS::EC2::Volume + 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, '$.MultiAttachEnabled') as multi_attach_enabled, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Encrypted') as encrypted, + JSON_EXTRACT(detail.Properties, '$.Size') as size, + JSON_EXTRACT(detail.Properties, '$.AutoEnableIO') as auto_enable_io, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.Throughput') as throughput, + JSON_EXTRACT(detail.Properties, '$.Iops') as iops, + JSON_EXTRACT(detail.Properties, '$.SnapshotId') as snapshot_id, + JSON_EXTRACT(detail.Properties, '$.VolumeType') as volume_type, + JSON_EXTRACT(detail.Properties, '$.VolumeId') as volume_id + 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::EC2::Volume' + AND detail.data__TypeName = 'AWS::EC2::Volume' + 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, 'MultiAttachEnabled') as multi_attach_enabled, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Encrypted') as encrypted, + json_extract_path_text(detail.Properties, 'Size') as size, + json_extract_path_text(detail.Properties, 'AutoEnableIO') as auto_enable_io, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'Throughput') as throughput, + json_extract_path_text(detail.Properties, 'Iops') as iops, + json_extract_path_text(detail.Properties, 'SnapshotId') as snapshot_id, + json_extract_path_text(detail.Properties, 'VolumeType') as volume_type, + json_extract_path_text(detail.Properties, 'VolumeId') as volume_id + 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::EC2::Volume' + AND detail.data__TypeName = 'AWS::EC2::Volume' + AND listing.region = 'us-east-1' instances: name: instances id: aws.ec2.instances @@ -15443,10 +16708,61 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceId') as instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Instance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Tenancy') as tenancy, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.PrivateDnsName') as private_dns_name, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.UserData') as user_data, + JSON_EXTRACT(detail.Properties, '$.BlockDeviceMappings') as block_device_mappings, + JSON_EXTRACT(detail.Properties, '$.IamInstanceProfile') as iam_instance_profile, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.KernelId') as kernel_id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.EbsOptimized') as ebs_optimized, + JSON_EXTRACT(detail.Properties, '$.PropagateTagsToVolumeOnCreation') as propagate_tags_to_volume_on_creation, + JSON_EXTRACT(detail.Properties, '$.ElasticGpuSpecifications') as elastic_gpu_specifications, + JSON_EXTRACT(detail.Properties, '$.ElasticInferenceAccelerators') as elastic_inference_accelerators, + JSON_EXTRACT(detail.Properties, '$.Volumes') as volumes, + JSON_EXTRACT(detail.Properties, '$.PrivateIp') as private_ip, + JSON_EXTRACT(detail.Properties, '$.Ipv6AddressCount') as ipv6_address_count, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.EnclaveOptions') as enclave_options, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaces') as network_interfaces, + JSON_EXTRACT(detail.Properties, '$.ImageId') as image_id, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.Monitoring') as monitoring, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AdditionalInfo') as additional_info, + JSON_EXTRACT(detail.Properties, '$.HibernationOptions') as hibernation_options, + JSON_EXTRACT(detail.Properties, '$.LicenseSpecifications') as license_specifications, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.PublicIp') as public_ip, + JSON_EXTRACT(detail.Properties, '$.InstanceInitiatedShutdownBehavior') as instance_initiated_shutdown_behavior, + JSON_EXTRACT(detail.Properties, '$.CpuOptions') as cpu_options, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.PrivateDnsNameOptions') as private_dns_name_options, + JSON_EXTRACT(detail.Properties, '$.HostId') as host_id, + JSON_EXTRACT(detail.Properties, '$.HostResourceGroupArn') as host_resource_group_arn, + JSON_EXTRACT(detail.Properties, '$.PublicDnsName') as public_dns_name, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.DisableApiTermination') as disable_api_termination, + JSON_EXTRACT(detail.Properties, '$.KeyName') as key_name, + JSON_EXTRACT(detail.Properties, '$.RamdiskId') as ramdisk_id, + JSON_EXTRACT(detail.Properties, '$.SourceDestCheck') as source_dest_check, + JSON_EXTRACT(detail.Properties, '$.PlacementGroupName') as placement_group_name, + JSON_EXTRACT(detail.Properties, '$.SsmAssociations') as ssm_associations, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Affinity') as affinity, + JSON_EXTRACT(detail.Properties, '$.CreditSpecification') as credit_specification + 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::EC2::Instance' + AND detail.data__TypeName = 'AWS::EC2::Instance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15507,10 +16823,227 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceId') as instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Instance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Tenancy') as tenancy, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'PrivateDnsName') as private_dns_name, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'UserData') as user_data, + json_extract_path_text(detail.Properties, 'BlockDeviceMappings') as block_device_mappings, + json_extract_path_text(detail.Properties, 'IamInstanceProfile') as iam_instance_profile, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'KernelId') as kernel_id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'EbsOptimized') as ebs_optimized, + json_extract_path_text(detail.Properties, 'PropagateTagsToVolumeOnCreation') as propagate_tags_to_volume_on_creation, + json_extract_path_text(detail.Properties, 'ElasticGpuSpecifications') as elastic_gpu_specifications, + json_extract_path_text(detail.Properties, 'ElasticInferenceAccelerators') as elastic_inference_accelerators, + json_extract_path_text(detail.Properties, 'Volumes') as volumes, + json_extract_path_text(detail.Properties, 'PrivateIp') as private_ip, + json_extract_path_text(detail.Properties, 'Ipv6AddressCount') as ipv6_address_count, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'EnclaveOptions') as enclave_options, + json_extract_path_text(detail.Properties, 'NetworkInterfaces') as network_interfaces, + json_extract_path_text(detail.Properties, 'ImageId') as image_id, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'Monitoring') as monitoring, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AdditionalInfo') as additional_info, + json_extract_path_text(detail.Properties, 'HibernationOptions') as hibernation_options, + json_extract_path_text(detail.Properties, 'LicenseSpecifications') as license_specifications, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'PublicIp') as public_ip, + json_extract_path_text(detail.Properties, 'InstanceInitiatedShutdownBehavior') as instance_initiated_shutdown_behavior, + json_extract_path_text(detail.Properties, 'CpuOptions') as cpu_options, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'PrivateDnsNameOptions') as private_dns_name_options, + json_extract_path_text(detail.Properties, 'HostId') as host_id, + json_extract_path_text(detail.Properties, 'HostResourceGroupArn') as host_resource_group_arn, + json_extract_path_text(detail.Properties, 'PublicDnsName') as public_dns_name, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'DisableApiTermination') as disable_api_termination, + json_extract_path_text(detail.Properties, 'KeyName') as key_name, + json_extract_path_text(detail.Properties, 'RamdiskId') as ramdisk_id, + json_extract_path_text(detail.Properties, 'SourceDestCheck') as source_dest_check, + json_extract_path_text(detail.Properties, 'PlacementGroupName') as placement_group_name, + json_extract_path_text(detail.Properties, 'SsmAssociations') as ssm_associations, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Affinity') as affinity, + json_extract_path_text(detail.Properties, 'CreditSpecification') as credit_specification + 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::EC2::Instance' + AND detail.data__TypeName = 'AWS::EC2::Instance' + AND listing.region = 'us-east-1' + instances_list_only: + name: instances_list_only + id: aws.ec2.instances_list_only + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::EC2::Instance + x-identifiers: + - InstanceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceId') as instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Instance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceId') as instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Instance' + AND region = 'us-east-1' + instance_tags: + name: instance_tags + id: aws.ec2.instance_tags + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::EC2::Instance + 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, '$.Tenancy') as tenancy, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.PrivateDnsName') as private_dns_name, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.UserData') as user_data, + JSON_EXTRACT(detail.Properties, '$.BlockDeviceMappings') as block_device_mappings, + JSON_EXTRACT(detail.Properties, '$.IamInstanceProfile') as iam_instance_profile, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.KernelId') as kernel_id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.EbsOptimized') as ebs_optimized, + JSON_EXTRACT(detail.Properties, '$.PropagateTagsToVolumeOnCreation') as propagate_tags_to_volume_on_creation, + JSON_EXTRACT(detail.Properties, '$.ElasticGpuSpecifications') as elastic_gpu_specifications, + JSON_EXTRACT(detail.Properties, '$.ElasticInferenceAccelerators') as elastic_inference_accelerators, + JSON_EXTRACT(detail.Properties, '$.Volumes') as volumes, + JSON_EXTRACT(detail.Properties, '$.PrivateIp') as private_ip, + JSON_EXTRACT(detail.Properties, '$.Ipv6AddressCount') as ipv6_address_count, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.EnclaveOptions') as enclave_options, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaces') as network_interfaces, + JSON_EXTRACT(detail.Properties, '$.ImageId') as image_id, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.Monitoring') as monitoring, + JSON_EXTRACT(detail.Properties, '$.AdditionalInfo') as additional_info, + JSON_EXTRACT(detail.Properties, '$.HibernationOptions') as hibernation_options, + JSON_EXTRACT(detail.Properties, '$.LicenseSpecifications') as license_specifications, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.PublicIp') as public_ip, + JSON_EXTRACT(detail.Properties, '$.InstanceInitiatedShutdownBehavior') as instance_initiated_shutdown_behavior, + JSON_EXTRACT(detail.Properties, '$.CpuOptions') as cpu_options, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.PrivateDnsNameOptions') as private_dns_name_options, + JSON_EXTRACT(detail.Properties, '$.HostId') as host_id, + JSON_EXTRACT(detail.Properties, '$.HostResourceGroupArn') as host_resource_group_arn, + JSON_EXTRACT(detail.Properties, '$.PublicDnsName') as public_dns_name, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.DisableApiTermination') as disable_api_termination, + JSON_EXTRACT(detail.Properties, '$.KeyName') as key_name, + JSON_EXTRACT(detail.Properties, '$.RamdiskId') as ramdisk_id, + JSON_EXTRACT(detail.Properties, '$.SourceDestCheck') as source_dest_check, + JSON_EXTRACT(detail.Properties, '$.PlacementGroupName') as placement_group_name, + JSON_EXTRACT(detail.Properties, '$.SsmAssociations') as ssm_associations, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Affinity') as affinity, + JSON_EXTRACT(detail.Properties, '$.CreditSpecification') as credit_specification + 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::EC2::Instance' + AND detail.data__TypeName = 'AWS::EC2::Instance' + 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, 'Tenancy') as tenancy, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'PrivateDnsName') as private_dns_name, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'UserData') as user_data, + json_extract_path_text(detail.Properties, 'BlockDeviceMappings') as block_device_mappings, + json_extract_path_text(detail.Properties, 'IamInstanceProfile') as iam_instance_profile, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'KernelId') as kernel_id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'EbsOptimized') as ebs_optimized, + json_extract_path_text(detail.Properties, 'PropagateTagsToVolumeOnCreation') as propagate_tags_to_volume_on_creation, + json_extract_path_text(detail.Properties, 'ElasticGpuSpecifications') as elastic_gpu_specifications, + json_extract_path_text(detail.Properties, 'ElasticInferenceAccelerators') as elastic_inference_accelerators, + json_extract_path_text(detail.Properties, 'Volumes') as volumes, + json_extract_path_text(detail.Properties, 'PrivateIp') as private_ip, + json_extract_path_text(detail.Properties, 'Ipv6AddressCount') as ipv6_address_count, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'EnclaveOptions') as enclave_options, + json_extract_path_text(detail.Properties, 'NetworkInterfaces') as network_interfaces, + json_extract_path_text(detail.Properties, 'ImageId') as image_id, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'Monitoring') as monitoring, + json_extract_path_text(detail.Properties, 'AdditionalInfo') as additional_info, + json_extract_path_text(detail.Properties, 'HibernationOptions') as hibernation_options, + json_extract_path_text(detail.Properties, 'LicenseSpecifications') as license_specifications, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'PublicIp') as public_ip, + json_extract_path_text(detail.Properties, 'InstanceInitiatedShutdownBehavior') as instance_initiated_shutdown_behavior, + json_extract_path_text(detail.Properties, 'CpuOptions') as cpu_options, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'PrivateDnsNameOptions') as private_dns_name_options, + json_extract_path_text(detail.Properties, 'HostId') as host_id, + json_extract_path_text(detail.Properties, 'HostResourceGroupArn') as host_resource_group_arn, + json_extract_path_text(detail.Properties, 'PublicDnsName') as public_dns_name, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'DisableApiTermination') as disable_api_termination, + json_extract_path_text(detail.Properties, 'KeyName') as key_name, + json_extract_path_text(detail.Properties, 'RamdiskId') as ramdisk_id, + json_extract_path_text(detail.Properties, 'SourceDestCheck') as source_dest_check, + json_extract_path_text(detail.Properties, 'PlacementGroupName') as placement_group_name, + json_extract_path_text(detail.Properties, 'SsmAssociations') as ssm_associations, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Affinity') as affinity, + json_extract_path_text(detail.Properties, 'CreditSpecification') as credit_specification + 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::EC2::Instance' + AND detail.data__TypeName = 'AWS::EC2::Instance' + AND listing.region = 'us-east-1' instance_connect_endpoints: name: instance_connect_endpoints id: aws.ec2.instance_connect_endpoints @@ -15587,10 +17120,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.PreserveClientIp') as preserve_client_ip, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids + 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::EC2::InstanceConnectEndpoint' + AND detail.data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15610,10 +17153,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'PreserveClientIp') as preserve_client_ip, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids + 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::EC2::InstanceConnectEndpoint' + AND detail.data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' + AND listing.region = 'us-east-1' + instance_connect_endpoints_list_only: + name: instance_connect_endpoints_list_only + id: aws.ec2.instance_connect_endpoints_list_only + x-cfn-schema-name: InstanceConnectEndpoint + x-cfn-type-name: AWS::EC2::InstanceConnectEndpoint + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' + AND region = 'us-east-1' + instance_connect_endpoint_tags: + name: instance_connect_endpoint_tags + id: aws.ec2.instance_connect_endpoint_tags + x-cfn-schema-name: InstanceConnectEndpoint + x-cfn-type-name: AWS::EC2::InstanceConnectEndpoint + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.PreserveClientIp') as preserve_client_ip, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids + 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::EC2::InstanceConnectEndpoint' + AND detail.data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'PreserveClientIp') as preserve_client_ip, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids + 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::EC2::InstanceConnectEndpoint' + AND detail.data__TypeName = 'AWS::EC2::InstanceConnectEndpoint' + AND listing.region = 'us-east-1' internet_gateways: name: internet_gateways id: aws.ec2.internet_gateways @@ -15686,10 +17323,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InternetGatewayId') as internet_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InternetGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InternetGatewayId') as internet_gateway_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::InternetGateway' + AND detail.data__TypeName = 'AWS::EC2::InternetGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15705,10 +17348,92 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InternetGatewayId') as internet_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InternetGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InternetGatewayId') as internet_gateway_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::InternetGateway' + AND detail.data__TypeName = 'AWS::EC2::InternetGateway' + AND listing.region = 'us-east-1' + internet_gateways_list_only: + name: internet_gateways_list_only + id: aws.ec2.internet_gateways_list_only + x-cfn-schema-name: InternetGateway + x-cfn-type-name: AWS::EC2::InternetGateway + x-identifiers: + - InternetGatewayId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InternetGatewayId') as internet_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InternetGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InternetGatewayId') as internet_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::InternetGateway' + AND region = 'us-east-1' + internet_gateway_tags: + name: internet_gateway_tags + id: aws.ec2.internet_gateway_tags + x-cfn-schema-name: InternetGateway + x-cfn-type-name: AWS::EC2::InternetGateway + 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, '$.InternetGatewayId') as internet_gateway_id + 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::EC2::InternetGateway' + AND detail.data__TypeName = 'AWS::EC2::InternetGateway' + 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, 'InternetGatewayId') as internet_gateway_id + 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::EC2::InternetGateway' + AND detail.data__TypeName = 'AWS::EC2::InternetGateway' + AND listing.region = 'us-east-1' ipams: name: ipams id: aws.ec2.ipams @@ -15791,10 +17516,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpamId') as ipam_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAM' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpamId') as ipam_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DefaultResourceDiscoveryId') as default_resource_discovery_id, + JSON_EXTRACT(detail.Properties, '$.DefaultResourceDiscoveryAssociationId') as default_resource_discovery_association_id, + JSON_EXTRACT(detail.Properties, '$.ResourceDiscoveryAssociationCount') as resource_discovery_association_count, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PublicDefaultScopeId') as public_default_scope_id, + JSON_EXTRACT(detail.Properties, '$.PrivateDefaultScopeId') as private_default_scope_id, + JSON_EXTRACT(detail.Properties, '$.ScopeCount') as scope_count, + JSON_EXTRACT(detail.Properties, '$.OperatingRegions') as operating_regions, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::IPAM' + AND detail.data__TypeName = 'AWS::EC2::IPAM' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15820,11 +17561,123 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpamId') as ipam_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAM' - AND region = 'us-east-1' - ipam_allocations: + detail.region, + json_extract_path_text(detail.Properties, 'IpamId') as ipam_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DefaultResourceDiscoveryId') as default_resource_discovery_id, + json_extract_path_text(detail.Properties, 'DefaultResourceDiscoveryAssociationId') as default_resource_discovery_association_id, + json_extract_path_text(detail.Properties, 'ResourceDiscoveryAssociationCount') as resource_discovery_association_count, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PublicDefaultScopeId') as public_default_scope_id, + json_extract_path_text(detail.Properties, 'PrivateDefaultScopeId') as private_default_scope_id, + json_extract_path_text(detail.Properties, 'ScopeCount') as scope_count, + json_extract_path_text(detail.Properties, 'OperatingRegions') as operating_regions, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::IPAM' + AND detail.data__TypeName = 'AWS::EC2::IPAM' + AND listing.region = 'us-east-1' + ipams_list_only: + name: ipams_list_only + id: aws.ec2.ipams_list_only + x-cfn-schema-name: IPAM + x-cfn-type-name: AWS::EC2::IPAM + x-identifiers: + - IpamId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpamId') as ipam_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAM' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpamId') as ipam_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAM' + AND region = 'us-east-1' + ipam_tags: + name: ipam_tags + id: aws.ec2.ipam_tags + x-cfn-schema-name: IPAM + x-cfn-type-name: AWS::EC2::IPAM + 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, '$.IpamId') as ipam_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DefaultResourceDiscoveryId') as default_resource_discovery_id, + JSON_EXTRACT(detail.Properties, '$.DefaultResourceDiscoveryAssociationId') as default_resource_discovery_association_id, + JSON_EXTRACT(detail.Properties, '$.ResourceDiscoveryAssociationCount') as resource_discovery_association_count, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PublicDefaultScopeId') as public_default_scope_id, + JSON_EXTRACT(detail.Properties, '$.PrivateDefaultScopeId') as private_default_scope_id, + JSON_EXTRACT(detail.Properties, '$.ScopeCount') as scope_count, + JSON_EXTRACT(detail.Properties, '$.OperatingRegions') as operating_regions, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier + 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::EC2::IPAM' + AND detail.data__TypeName = 'AWS::EC2::IPAM' + 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, 'IpamId') as ipam_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DefaultResourceDiscoveryId') as default_resource_discovery_id, + json_extract_path_text(detail.Properties, 'DefaultResourceDiscoveryAssociationId') as default_resource_discovery_association_id, + json_extract_path_text(detail.Properties, 'ResourceDiscoveryAssociationCount') as resource_discovery_association_count, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PublicDefaultScopeId') as public_default_scope_id, + json_extract_path_text(detail.Properties, 'PrivateDefaultScopeId') as private_default_scope_id, + json_extract_path_text(detail.Properties, 'ScopeCount') as scope_count, + json_extract_path_text(detail.Properties, 'OperatingRegions') as operating_regions, + json_extract_path_text(detail.Properties, 'Tier') as tier + 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::EC2::IPAM' + AND detail.data__TypeName = 'AWS::EC2::IPAM' + AND listing.region = 'us-east-1' + ipam_allocations: name: ipam_allocations id: aws.ec2.ipam_allocations x-cfn-schema-name: IPAMAllocation @@ -15888,12 +17741,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpamPoolId') as ipam_pool_id, - JSON_EXTRACT(Properties, '$.IpamPoolAllocationId') as ipam_pool_allocation_id, - JSON_EXTRACT(Properties, '$.Cidr') as cidr - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMAllocation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpamPoolAllocationId') as ipam_pool_allocation_id, + JSON_EXTRACT(detail.Properties, '$.IpamPoolId') as ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Cidr') as cidr, + JSON_EXTRACT(detail.Properties, '$.NetmaskLength') as netmask_length, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::EC2::IPAMAllocation' + AND detail.data__TypeName = 'AWS::EC2::IPAMAllocation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -15912,12 +17772,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpamPoolId') as ipam_pool_id, - json_extract_path_text(Properties, 'IpamPoolAllocationId') as ipam_pool_allocation_id, - json_extract_path_text(Properties, 'Cidr') as cidr - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMAllocation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpamPoolAllocationId') as ipam_pool_allocation_id, + json_extract_path_text(detail.Properties, 'IpamPoolId') as ipam_pool_id, + json_extract_path_text(detail.Properties, 'Cidr') as cidr, + json_extract_path_text(detail.Properties, 'NetmaskLength') as netmask_length, + json_extract_path_text(detail.Properties, 'Description') as description + 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::EC2::IPAMAllocation' + AND detail.data__TypeName = 'AWS::EC2::IPAMAllocation' + AND listing.region = 'us-east-1' + ipam_allocations_list_only: + name: ipam_allocations_list_only + id: aws.ec2.ipam_allocations_list_only + x-cfn-schema-name: IPAMAllocation + x-cfn-type-name: AWS::EC2::IPAMAllocation + x-identifiers: + - IpamPoolId + - IpamPoolAllocationId + - Cidr + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpamPoolId') as ipam_pool_id, + JSON_EXTRACT(Properties, '$.IpamPoolAllocationId') as ipam_pool_allocation_id, + JSON_EXTRACT(Properties, '$.Cidr') as cidr + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMAllocation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpamPoolId') as ipam_pool_id, + json_extract_path_text(Properties, 'IpamPoolAllocationId') as ipam_pool_allocation_id, + json_extract_path_text(Properties, 'Cidr') as cidr + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMAllocation' + AND region = 'us-east-1' ipam_pools: name: ipam_pools id: aws.ec2.ipam_pools @@ -16012,10 +17916,38 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpamPoolId') as ipam_pool_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPool' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpamPoolId') as ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.AddressFamily') as address_family, + JSON_EXTRACT(detail.Properties, '$.AllocationMinNetmaskLength') as allocation_min_netmask_length, + JSON_EXTRACT(detail.Properties, '$.AllocationDefaultNetmaskLength') as allocation_default_netmask_length, + JSON_EXTRACT(detail.Properties, '$.AllocationMaxNetmaskLength') as allocation_max_netmask_length, + JSON_EXTRACT(detail.Properties, '$.AllocationResourceTags') as allocation_resource_tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AutoImport') as auto_import, + JSON_EXTRACT(detail.Properties, '$.AwsService') as aws_service, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IpamScopeId') as ipam_scope_id, + JSON_EXTRACT(detail.Properties, '$.IpamScopeArn') as ipam_scope_arn, + JSON_EXTRACT(detail.Properties, '$.IpamScopeType') as ipam_scope_type, + JSON_EXTRACT(detail.Properties, '$.IpamArn') as ipam_arn, + JSON_EXTRACT(detail.Properties, '$.Locale') as locale, + JSON_EXTRACT(detail.Properties, '$.PoolDepth') as pool_depth, + JSON_EXTRACT(detail.Properties, '$.ProvisionedCidrs') as provisioned_cidrs, + JSON_EXTRACT(detail.Properties, '$.PublicIpSource') as public_ip_source, + JSON_EXTRACT(detail.Properties, '$.PubliclyAdvertisable') as publicly_advertisable, + JSON_EXTRACT(detail.Properties, '$.SourceIpamPoolId') as source_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.SourceResource') as source_resource, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.StateMessage') as state_message, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::IPAMPool' + AND detail.data__TypeName = 'AWS::EC2::IPAMPool' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16053,10 +17985,158 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpamPoolId') as ipam_pool_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPool' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpamPoolId') as ipam_pool_id, + json_extract_path_text(detail.Properties, 'AddressFamily') as address_family, + json_extract_path_text(detail.Properties, 'AllocationMinNetmaskLength') as allocation_min_netmask_length, + json_extract_path_text(detail.Properties, 'AllocationDefaultNetmaskLength') as allocation_default_netmask_length, + json_extract_path_text(detail.Properties, 'AllocationMaxNetmaskLength') as allocation_max_netmask_length, + json_extract_path_text(detail.Properties, 'AllocationResourceTags') as allocation_resource_tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AutoImport') as auto_import, + json_extract_path_text(detail.Properties, 'AwsService') as aws_service, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IpamScopeId') as ipam_scope_id, + json_extract_path_text(detail.Properties, 'IpamScopeArn') as ipam_scope_arn, + json_extract_path_text(detail.Properties, 'IpamScopeType') as ipam_scope_type, + json_extract_path_text(detail.Properties, 'IpamArn') as ipam_arn, + json_extract_path_text(detail.Properties, 'Locale') as locale, + json_extract_path_text(detail.Properties, 'PoolDepth') as pool_depth, + json_extract_path_text(detail.Properties, 'ProvisionedCidrs') as provisioned_cidrs, + json_extract_path_text(detail.Properties, 'PublicIpSource') as public_ip_source, + json_extract_path_text(detail.Properties, 'PubliclyAdvertisable') as publicly_advertisable, + json_extract_path_text(detail.Properties, 'SourceIpamPoolId') as source_ipam_pool_id, + json_extract_path_text(detail.Properties, 'SourceResource') as source_resource, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'StateMessage') as state_message, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::IPAMPool' + AND detail.data__TypeName = 'AWS::EC2::IPAMPool' + AND listing.region = 'us-east-1' + ipam_pools_list_only: + name: ipam_pools_list_only + id: aws.ec2.ipam_pools_list_only + x-cfn-schema-name: IPAMPool + x-cfn-type-name: AWS::EC2::IPAMPool + x-identifiers: + - IpamPoolId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpamPoolId') as ipam_pool_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPool' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpamPoolId') as ipam_pool_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPool' + AND region = 'us-east-1' + ipam_pool_tags: + name: ipam_pool_tags + id: aws.ec2.ipam_pool_tags + x-cfn-schema-name: IPAMPool + x-cfn-type-name: AWS::EC2::IPAMPool + 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, '$.IpamPoolId') as ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.AddressFamily') as address_family, + JSON_EXTRACT(detail.Properties, '$.AllocationMinNetmaskLength') as allocation_min_netmask_length, + JSON_EXTRACT(detail.Properties, '$.AllocationDefaultNetmaskLength') as allocation_default_netmask_length, + JSON_EXTRACT(detail.Properties, '$.AllocationMaxNetmaskLength') as allocation_max_netmask_length, + JSON_EXTRACT(detail.Properties, '$.AllocationResourceTags') as allocation_resource_tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AutoImport') as auto_import, + JSON_EXTRACT(detail.Properties, '$.AwsService') as aws_service, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IpamScopeId') as ipam_scope_id, + JSON_EXTRACT(detail.Properties, '$.IpamScopeArn') as ipam_scope_arn, + JSON_EXTRACT(detail.Properties, '$.IpamScopeType') as ipam_scope_type, + JSON_EXTRACT(detail.Properties, '$.IpamArn') as ipam_arn, + JSON_EXTRACT(detail.Properties, '$.Locale') as locale, + JSON_EXTRACT(detail.Properties, '$.PoolDepth') as pool_depth, + JSON_EXTRACT(detail.Properties, '$.ProvisionedCidrs') as provisioned_cidrs, + JSON_EXTRACT(detail.Properties, '$.PublicIpSource') as public_ip_source, + JSON_EXTRACT(detail.Properties, '$.PubliclyAdvertisable') as publicly_advertisable, + JSON_EXTRACT(detail.Properties, '$.SourceIpamPoolId') as source_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.SourceResource') as source_resource, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.StateMessage') as state_message + 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::EC2::IPAMPool' + AND detail.data__TypeName = 'AWS::EC2::IPAMPool' + 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, 'IpamPoolId') as ipam_pool_id, + json_extract_path_text(detail.Properties, 'AddressFamily') as address_family, + json_extract_path_text(detail.Properties, 'AllocationMinNetmaskLength') as allocation_min_netmask_length, + json_extract_path_text(detail.Properties, 'AllocationDefaultNetmaskLength') as allocation_default_netmask_length, + json_extract_path_text(detail.Properties, 'AllocationMaxNetmaskLength') as allocation_max_netmask_length, + json_extract_path_text(detail.Properties, 'AllocationResourceTags') as allocation_resource_tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AutoImport') as auto_import, + json_extract_path_text(detail.Properties, 'AwsService') as aws_service, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IpamScopeId') as ipam_scope_id, + json_extract_path_text(detail.Properties, 'IpamScopeArn') as ipam_scope_arn, + json_extract_path_text(detail.Properties, 'IpamScopeType') as ipam_scope_type, + json_extract_path_text(detail.Properties, 'IpamArn') as ipam_arn, + json_extract_path_text(detail.Properties, 'Locale') as locale, + json_extract_path_text(detail.Properties, 'PoolDepth') as pool_depth, + json_extract_path_text(detail.Properties, 'ProvisionedCidrs') as provisioned_cidrs, + json_extract_path_text(detail.Properties, 'PublicIpSource') as public_ip_source, + json_extract_path_text(detail.Properties, 'PubliclyAdvertisable') as publicly_advertisable, + json_extract_path_text(detail.Properties, 'SourceIpamPoolId') as source_ipam_pool_id, + json_extract_path_text(detail.Properties, 'SourceResource') as source_resource, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'StateMessage') as state_message + 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::EC2::IPAMPool' + AND detail.data__TypeName = 'AWS::EC2::IPAMPool' + AND listing.region = 'us-east-1' ipam_pool_cidrs: name: ipam_pool_cidrs id: aws.ec2.ipam_pool_cidrs @@ -16120,11 +18200,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpamPoolId') as ipam_pool_id, - JSON_EXTRACT(Properties, '$.IpamPoolCidrId') as ipam_pool_cidr_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPoolCidr' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpamPoolCidrId') as ipam_pool_cidr_id, + JSON_EXTRACT(detail.Properties, '$.IpamPoolId') as ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Cidr') as cidr, + JSON_EXTRACT(detail.Properties, '$.NetmaskLength') as netmask_length, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::EC2::IPAMPoolCidr' + AND detail.data__TypeName = 'AWS::EC2::IPAMPoolCidr' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16143,11 +18231,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpamPoolId') as ipam_pool_id, - json_extract_path_text(Properties, 'IpamPoolCidrId') as ipam_pool_cidr_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPoolCidr' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpamPoolCidrId') as ipam_pool_cidr_id, + json_extract_path_text(detail.Properties, 'IpamPoolId') as ipam_pool_id, + json_extract_path_text(detail.Properties, 'Cidr') as cidr, + json_extract_path_text(detail.Properties, 'NetmaskLength') as netmask_length, + json_extract_path_text(detail.Properties, 'State') as state + 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::EC2::IPAMPoolCidr' + AND detail.data__TypeName = 'AWS::EC2::IPAMPoolCidr' + AND listing.region = 'us-east-1' + ipam_pool_cidrs_list_only: + name: ipam_pool_cidrs_list_only + id: aws.ec2.ipam_pool_cidrs_list_only + x-cfn-schema-name: IPAMPoolCidr + x-cfn-type-name: AWS::EC2::IPAMPoolCidr + x-identifiers: + - IpamPoolId + - IpamPoolCidrId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpamPoolId') as ipam_pool_id, + JSON_EXTRACT(Properties, '$.IpamPoolCidrId') as ipam_pool_cidr_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPoolCidr' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpamPoolId') as ipam_pool_id, + json_extract_path_text(Properties, 'IpamPoolCidrId') as ipam_pool_cidr_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMPoolCidr' + AND region = 'us-east-1' ipam_resource_discoveries: name: ipam_resource_discoveries id: aws.ec2.ipam_resource_discoveries @@ -16227,10 +18357,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpamResourceDiscoveryId') as ipam_resource_discovery_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryId') as ipam_resource_discovery_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.OperatingRegions') as operating_regions, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryRegion') as ipam_resource_discovery_region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryArn') as ipam_resource_discovery_arn, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::IPAMResourceDiscovery' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16253,10 +18396,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpamResourceDiscoveryId') as ipam_resource_discovery_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryId') as ipam_resource_discovery_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'OperatingRegions') as operating_regions, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryRegion') as ipam_resource_discovery_region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryArn') as ipam_resource_discovery_arn, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::IPAMResourceDiscovery' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' + AND listing.region = 'us-east-1' + ipam_resource_discoveries_list_only: + name: ipam_resource_discoveries_list_only + id: aws.ec2.ipam_resource_discoveries_list_only + x-cfn-schema-name: IPAMResourceDiscovery + x-cfn-type-name: AWS::EC2::IPAMResourceDiscovery + x-identifiers: + - IpamResourceDiscoveryId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpamResourceDiscoveryId') as ipam_resource_discovery_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpamResourceDiscoveryId') as ipam_resource_discovery_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' + AND region = 'us-east-1' + ipam_resource_discovery_tags: + name: ipam_resource_discovery_tags + id: aws.ec2.ipam_resource_discovery_tags + x-cfn-schema-name: IPAMResourceDiscovery + x-cfn-type-name: AWS::EC2::IPAMResourceDiscovery + 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, '$.IpamResourceDiscoveryId') as ipam_resource_discovery_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.OperatingRegions') as operating_regions, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryRegion') as ipam_resource_discovery_region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryArn') as ipam_resource_discovery_arn, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::EC2::IPAMResourceDiscovery' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' + 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, 'IpamResourceDiscoveryId') as ipam_resource_discovery_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'OperatingRegions') as operating_regions, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryRegion') as ipam_resource_discovery_region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryArn') as ipam_resource_discovery_arn, + json_extract_path_text(detail.Properties, 'State') as state + 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::EC2::IPAMResourceDiscovery' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscovery' + AND listing.region = 'us-east-1' ipam_resource_discovery_associations: name: ipam_resource_discovery_associations id: aws.ec2.ipam_resource_discovery_associations @@ -16338,10 +18584,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpamArn') as ipam_arn, + JSON_EXTRACT(detail.Properties, '$.IpamRegion') as ipam_region, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryId') as ipam_resource_discovery_id, + JSON_EXTRACT(detail.Properties, '$.IpamId') as ipam_id, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryAssociationArn') as ipam_resource_discovery_association_arn, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.ResourceDiscoveryStatus') as resource_discovery_status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::IPAMResourceDiscoveryAssociation' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16366,10 +18627,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpamArn') as ipam_arn, + json_extract_path_text(detail.Properties, 'IpamRegion') as ipam_region, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryId') as ipam_resource_discovery_id, + json_extract_path_text(detail.Properties, 'IpamId') as ipam_id, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryAssociationArn') as ipam_resource_discovery_association_arn, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'ResourceDiscoveryStatus') as resource_discovery_status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::IPAMResourceDiscoveryAssociation' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' + AND listing.region = 'us-east-1' + ipam_resource_discovery_associations_list_only: + name: ipam_resource_discovery_associations_list_only + id: aws.ec2.ipam_resource_discovery_associations_list_only + x-cfn-schema-name: IPAMResourceDiscoveryAssociation + x-cfn-type-name: AWS::EC2::IPAMResourceDiscoveryAssociation + x-identifiers: + - IpamResourceDiscoveryAssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' + AND region = 'us-east-1' + ipam_resource_discovery_association_tags: + name: ipam_resource_discovery_association_tags + id: aws.ec2.ipam_resource_discovery_association_tags + x-cfn-schema-name: IPAMResourceDiscoveryAssociation + x-cfn-type-name: AWS::EC2::IPAMResourceDiscoveryAssociation + 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, '$.IpamArn') as ipam_arn, + JSON_EXTRACT(detail.Properties, '$.IpamRegion') as ipam_region, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryId') as ipam_resource_discovery_id, + JSON_EXTRACT(detail.Properties, '$.IpamId') as ipam_id, + JSON_EXTRACT(detail.Properties, '$.IpamResourceDiscoveryAssociationArn') as ipam_resource_discovery_association_arn, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.ResourceDiscoveryStatus') as resource_discovery_status + 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::EC2::IPAMResourceDiscoveryAssociation' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' + 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, 'IpamArn') as ipam_arn, + json_extract_path_text(detail.Properties, 'IpamRegion') as ipam_region, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryAssociationId') as ipam_resource_discovery_association_id, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryId') as ipam_resource_discovery_id, + json_extract_path_text(detail.Properties, 'IpamId') as ipam_id, + json_extract_path_text(detail.Properties, 'IpamResourceDiscoveryAssociationArn') as ipam_resource_discovery_association_arn, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'ResourceDiscoveryStatus') as resource_discovery_status + 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::EC2::IPAMResourceDiscoveryAssociation' + AND detail.data__TypeName = 'AWS::EC2::IPAMResourceDiscoveryAssociation' + AND listing.region = 'us-east-1' ipam_scopes: name: ipam_scopes id: aws.ec2.ipam_scopes @@ -16449,10 +18819,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpamScopeId') as ipam_scope_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMScope' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpamScopeId') as ipam_scope_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.IpamId') as ipam_id, + JSON_EXTRACT(detail.Properties, '$.IpamArn') as ipam_arn, + JSON_EXTRACT(detail.Properties, '$.IpamScopeType') as ipam_scope_type, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PoolCount') as pool_count, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::IPAMScope' + AND detail.data__TypeName = 'AWS::EC2::IPAMScope' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16475,10 +18858,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpamScopeId') as ipam_scope_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMScope' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpamScopeId') as ipam_scope_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'IpamId') as ipam_id, + json_extract_path_text(detail.Properties, 'IpamArn') as ipam_arn, + json_extract_path_text(detail.Properties, 'IpamScopeType') as ipam_scope_type, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PoolCount') as pool_count, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::IPAMScope' + AND detail.data__TypeName = 'AWS::EC2::IPAMScope' + AND listing.region = 'us-east-1' + ipam_scopes_list_only: + name: ipam_scopes_list_only + id: aws.ec2.ipam_scopes_list_only + x-cfn-schema-name: IPAMScope + x-cfn-type-name: AWS::EC2::IPAMScope + x-identifiers: + - IpamScopeId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpamScopeId') as ipam_scope_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMScope' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpamScopeId') as ipam_scope_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::IPAMScope' + AND region = 'us-east-1' + ipam_scope_tags: + name: ipam_scope_tags + id: aws.ec2.ipam_scope_tags + x-cfn-schema-name: IPAMScope + x-cfn-type-name: AWS::EC2::IPAMScope + 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, '$.IpamScopeId') as ipam_scope_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.IpamId') as ipam_id, + JSON_EXTRACT(detail.Properties, '$.IpamArn') as ipam_arn, + JSON_EXTRACT(detail.Properties, '$.IpamScopeType') as ipam_scope_type, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PoolCount') as pool_count + 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::EC2::IPAMScope' + AND detail.data__TypeName = 'AWS::EC2::IPAMScope' + 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, 'IpamScopeId') as ipam_scope_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'IpamId') as ipam_id, + json_extract_path_text(detail.Properties, 'IpamArn') as ipam_arn, + json_extract_path_text(detail.Properties, 'IpamScopeType') as ipam_scope_type, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PoolCount') as pool_count + 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::EC2::IPAMScope' + AND detail.data__TypeName = 'AWS::EC2::IPAMScope' + AND listing.region = 'us-east-1' key_pairs: name: key_pairs id: aws.ec2.key_pairs @@ -16543,10 +19029,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KeyName') as key_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::KeyPair' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.KeyName') as key_name, + JSON_EXTRACT(detail.Properties, '$.KeyType') as key_type, + JSON_EXTRACT(detail.Properties, '$.KeyFormat') as key_format, + JSON_EXTRACT(detail.Properties, '$.PublicKeyMaterial') as public_key_material, + JSON_EXTRACT(detail.Properties, '$.KeyFingerprint') as key_fingerprint, + JSON_EXTRACT(detail.Properties, '$.KeyPairId') as key_pair_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::KeyPair' + AND detail.data__TypeName = 'AWS::EC2::KeyPair' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16567,10 +19064,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KeyName') as key_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::KeyPair' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'KeyName') as key_name, + json_extract_path_text(detail.Properties, 'KeyType') as key_type, + json_extract_path_text(detail.Properties, 'KeyFormat') as key_format, + json_extract_path_text(detail.Properties, 'PublicKeyMaterial') as public_key_material, + json_extract_path_text(detail.Properties, 'KeyFingerprint') as key_fingerprint, + json_extract_path_text(detail.Properties, 'KeyPairId') as key_pair_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::KeyPair' + AND detail.data__TypeName = 'AWS::EC2::KeyPair' + AND listing.region = 'us-east-1' + key_pairs_list_only: + name: key_pairs_list_only + id: aws.ec2.key_pairs_list_only + x-cfn-schema-name: KeyPair + x-cfn-type-name: AWS::EC2::KeyPair + x-identifiers: + - KeyName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KeyName') as key_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::KeyPair' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KeyName') as key_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::KeyPair' + AND region = 'us-east-1' + key_pair_tags: + name: key_pair_tags + id: aws.ec2.key_pair_tags + x-cfn-schema-name: KeyPair + x-cfn-type-name: AWS::EC2::KeyPair + 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, '$.KeyName') as key_name, + JSON_EXTRACT(detail.Properties, '$.KeyType') as key_type, + JSON_EXTRACT(detail.Properties, '$.KeyFormat') as key_format, + JSON_EXTRACT(detail.Properties, '$.PublicKeyMaterial') as public_key_material, + JSON_EXTRACT(detail.Properties, '$.KeyFingerprint') as key_fingerprint, + JSON_EXTRACT(detail.Properties, '$.KeyPairId') as key_pair_id + 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::EC2::KeyPair' + AND detail.data__TypeName = 'AWS::EC2::KeyPair' + 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, 'KeyName') as key_name, + json_extract_path_text(detail.Properties, 'KeyType') as key_type, + json_extract_path_text(detail.Properties, 'KeyFormat') as key_format, + json_extract_path_text(detail.Properties, 'PublicKeyMaterial') as public_key_material, + json_extract_path_text(detail.Properties, 'KeyFingerprint') as key_fingerprint, + json_extract_path_text(detail.Properties, 'KeyPairId') as key_pair_id + 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::EC2::KeyPair' + AND detail.data__TypeName = 'AWS::EC2::KeyPair' + AND listing.region = 'us-east-1' launch_templates: name: launch_templates id: aws.ec2.launch_templates @@ -16648,10 +19242,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LaunchTemplateId') as launch_template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LaunchTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplateName') as launch_template_name, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplateData') as launch_template_data, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description, + JSON_EXTRACT(detail.Properties, '$.TagSpecifications') as tag_specifications, + JSON_EXTRACT(detail.Properties, '$.LatestVersionNumber') as latest_version_number, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplateId') as launch_template_id, + JSON_EXTRACT(detail.Properties, '$.DefaultVersionNumber') as default_version_number + 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::EC2::LaunchTemplate' + AND detail.data__TypeName = 'AWS::EC2::LaunchTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16672,11 +19277,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LaunchTemplateId') as launch_template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LaunchTemplate' - AND region = 'us-east-1' - local_gateway_routes: + detail.region, + json_extract_path_text(detail.Properties, 'LaunchTemplateName') as launch_template_name, + json_extract_path_text(detail.Properties, 'LaunchTemplateData') as launch_template_data, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description, + json_extract_path_text(detail.Properties, 'TagSpecifications') as tag_specifications, + json_extract_path_text(detail.Properties, 'LatestVersionNumber') as latest_version_number, + json_extract_path_text(detail.Properties, 'LaunchTemplateId') as launch_template_id, + json_extract_path_text(detail.Properties, 'DefaultVersionNumber') as default_version_number + 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::EC2::LaunchTemplate' + AND detail.data__TypeName = 'AWS::EC2::LaunchTemplate' + AND listing.region = 'us-east-1' + launch_templates_list_only: + name: launch_templates_list_only + id: aws.ec2.launch_templates_list_only + x-cfn-schema-name: LaunchTemplate + x-cfn-type-name: AWS::EC2::LaunchTemplate + x-identifiers: + - LaunchTemplateId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LaunchTemplateId') as launch_template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LaunchTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LaunchTemplateId') as launch_template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LaunchTemplate' + AND region = 'us-east-1' + local_gateway_routes: name: local_gateway_routes id: aws.ec2.local_gateway_routes x-cfn-schema-name: LocalGatewayRoute @@ -16753,11 +19400,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DestinationCidrBlock') as destination_cidr_block, - JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRoute' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DestinationCidrBlock') as destination_cidr_block, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayVirtualInterfaceGroupId') as local_gateway_virtual_interface_group_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceId') as network_interface_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::EC2::LocalGatewayRoute' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRoute' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16777,11 +19433,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DestinationCidrBlock') as destination_cidr_block, - json_extract_path_text(Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRoute' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DestinationCidrBlock') as destination_cidr_block, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'LocalGatewayVirtualInterfaceGroupId') as local_gateway_virtual_interface_group_id, + json_extract_path_text(detail.Properties, 'NetworkInterfaceId') as network_interface_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Type') as type + 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::EC2::LocalGatewayRoute' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRoute' + AND listing.region = 'us-east-1' + local_gateway_routes_list_only: + name: local_gateway_routes_list_only + id: aws.ec2.local_gateway_routes_list_only + x-cfn-schema-name: LocalGatewayRoute + x-cfn-type-name: AWS::EC2::LocalGatewayRoute + x-identifiers: + - DestinationCidrBlock + - LocalGatewayRouteTableId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DestinationCidrBlock') as destination_cidr_block, + JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRoute' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DestinationCidrBlock') as destination_cidr_block, + json_extract_path_text(Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRoute' + AND region = 'us-east-1' local_gateway_route_tables: name: local_gateway_route_tables id: aws.ec2.local_gateway_route_tables @@ -16860,10 +19559,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayId') as local_gateway_id, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Mode') as mode, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::LocalGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16885,10 +19596,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + json_extract_path_text(detail.Properties, 'LocalGatewayId') as local_gateway_id, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Mode') as mode, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::LocalGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' + AND listing.region = 'us-east-1' + local_gateway_route_tables_list_only: + name: local_gateway_route_tables_list_only + id: aws.ec2.local_gateway_route_tables_list_only + x-cfn-schema-name: LocalGatewayRouteTable + x-cfn-type-name: AWS::EC2::LocalGatewayRouteTable + x-identifiers: + - LocalGatewayRouteTableId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' + AND region = 'us-east-1' + local_gateway_route_table_tags: + name: local_gateway_route_table_tags + id: aws.ec2.local_gateway_route_table_tags + x-cfn-schema-name: LocalGatewayRouteTable + x-cfn-type-name: AWS::EC2::LocalGatewayRouteTable + 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, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayId') as local_gateway_id, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Mode') as 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::EC2::LocalGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' + 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, 'LocalGatewayRouteTableId') as local_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + json_extract_path_text(detail.Properties, 'LocalGatewayId') as local_gateway_id, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Mode') as 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::EC2::LocalGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTable' + AND listing.region = 'us-east-1' local_gateway_route_table_virtual_interface_group_associations: name: local_gateway_route_table_virtual_interface_group_associations id: aws.ec2.local_gateway_route_table_virtual_interface_group_associations @@ -16967,10 +19778,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayId') as local_gateway_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayVirtualInterfaceGroupId') as local_gateway_virtual_interface_group_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -16992,10 +19815,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id, + json_extract_path_text(detail.Properties, 'LocalGatewayId') as local_gateway_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + json_extract_path_text(detail.Properties, 'LocalGatewayVirtualInterfaceGroupId') as local_gateway_virtual_interface_group_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND listing.region = 'us-east-1' + local_gateway_route_table_virtual_interface_group_associations_list_only: + name: local_gateway_route_table_virtual_interface_group_associations_list_only + id: aws.ec2.local_gateway_route_table_virtual_interface_group_associations_list_only + x-cfn-schema-name: LocalGatewayRouteTableVirtualInterfaceGroupAssociation + x-cfn-type-name: AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation + x-identifiers: + - LocalGatewayRouteTableVirtualInterfaceGroupAssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND region = 'us-east-1' + local_gateway_route_table_virtual_interface_group_association_tags: + name: local_gateway_route_table_virtual_interface_group_association_tags + id: aws.ec2.local_gateway_route_table_virtual_interface_group_association_tags + x-cfn-schema-name: LocalGatewayRouteTableVirtualInterfaceGroupAssociation + x-cfn-type-name: AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation + 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, '$.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayId') as local_gateway_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayVirtualInterfaceGroupId') as local_gateway_virtual_interface_group_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + 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, 'LocalGatewayRouteTableVirtualInterfaceGroupAssociationId') as local_gateway_route_table_virtual_interface_group_association_id, + json_extract_path_text(detail.Properties, 'LocalGatewayId') as local_gateway_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableArn') as local_gateway_route_table_arn, + json_extract_path_text(detail.Properties, 'LocalGatewayVirtualInterfaceGroupId') as local_gateway_virtual_interface_group_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'State') as state + 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::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation' + AND listing.region = 'us-east-1' local_gateway_route_tablevpc_associations: name: local_gateway_route_tablevpc_associations id: aws.ec2.local_gateway_route_tablevpc_associations @@ -17072,10 +19995,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayId') as local_gateway_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::LocalGatewayRouteTableVPCAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17095,10 +20028,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LocalGatewayId') as local_gateway_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::LocalGatewayRouteTableVPCAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' + AND listing.region = 'us-east-1' + local_gateway_route_tablevpc_associations_list_only: + name: local_gateway_route_tablevpc_associations_list_only + id: aws.ec2.local_gateway_route_tablevpc_associations_list_only + x-cfn-schema-name: LocalGatewayRouteTableVPCAssociation + x-cfn-type-name: AWS::EC2::LocalGatewayRouteTableVPCAssociation + x-identifiers: + - LocalGatewayRouteTableVpcAssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' + AND region = 'us-east-1' + local_gateway_route_tablevpc_association_tags: + name: local_gateway_route_tablevpc_association_tags + id: aws.ec2.local_gateway_route_tablevpc_association_tags + x-cfn-schema-name: LocalGatewayRouteTableVPCAssociation + x-cfn-type-name: AWS::EC2::LocalGatewayRouteTableVPCAssociation + 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, '$.LocalGatewayId') as local_gateway_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableId') as local_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::LocalGatewayRouteTableVPCAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' + 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, 'LocalGatewayId') as local_gateway_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableId') as local_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'LocalGatewayRouteTableVpcAssociationId') as local_gateway_route_table_vpc_association_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::LocalGatewayRouteTableVPCAssociation' + AND detail.data__TypeName = 'AWS::EC2::LocalGatewayRouteTableVPCAssociation' + AND listing.region = 'us-east-1' nat_gateways: name: nat_gateways id: aws.ec2.nat_gateways @@ -17179,10 +20206,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NatGatewayId') as nat_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NatGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SecondaryAllocationIds') as secondary_allocation_ids, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.ConnectivityType') as connectivity_type, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + JSON_EXTRACT(detail.Properties, '$.AllocationId') as allocation_id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.NatGatewayId') as nat_gateway_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.MaxDrainDurationSeconds') as max_drain_duration_seconds + 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::EC2::NatGateway' + AND detail.data__TypeName = 'AWS::EC2::NatGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17206,10 +20247,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NatGatewayId') as nat_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NatGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SecondaryAllocationIds') as secondary_allocation_ids, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'ConnectivityType') as connectivity_type, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + json_extract_path_text(detail.Properties, 'AllocationId') as allocation_id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'NatGatewayId') as nat_gateway_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'MaxDrainDurationSeconds') as max_drain_duration_seconds + 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::EC2::NatGateway' + AND detail.data__TypeName = 'AWS::EC2::NatGateway' + AND listing.region = 'us-east-1' + nat_gateways_list_only: + name: nat_gateways_list_only + id: aws.ec2.nat_gateways_list_only + x-cfn-schema-name: NatGateway + x-cfn-type-name: AWS::EC2::NatGateway + x-identifiers: + - NatGatewayId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NatGatewayId') as nat_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NatGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NatGatewayId') as nat_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NatGateway' + AND region = 'us-east-1' + nat_gateway_tags: + name: nat_gateway_tags + id: aws.ec2.nat_gateway_tags + x-cfn-schema-name: NatGateway + x-cfn-type-name: AWS::EC2::NatGateway + 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, '$.SecondaryAllocationIds') as secondary_allocation_ids, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.ConnectivityType') as connectivity_type, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + JSON_EXTRACT(detail.Properties, '$.AllocationId') as allocation_id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.NatGatewayId') as nat_gateway_id, + JSON_EXTRACT(detail.Properties, '$.MaxDrainDurationSeconds') as max_drain_duration_seconds + 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::EC2::NatGateway' + AND detail.data__TypeName = 'AWS::EC2::NatGateway' + 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, 'SecondaryAllocationIds') as secondary_allocation_ids, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'ConnectivityType') as connectivity_type, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddresses') as secondary_private_ip_addresses, + json_extract_path_text(detail.Properties, 'SecondaryPrivateIpAddressCount') as secondary_private_ip_address_count, + json_extract_path_text(detail.Properties, 'AllocationId') as allocation_id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'NatGatewayId') as nat_gateway_id, + json_extract_path_text(detail.Properties, 'MaxDrainDurationSeconds') as max_drain_duration_seconds + 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::EC2::NatGateway' + AND detail.data__TypeName = 'AWS::EC2::NatGateway' + AND listing.region = 'us-east-1' network_acls: name: network_acls id: aws.ec2.network_acls @@ -17283,10 +20430,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkAcl' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::NetworkAcl' + AND detail.data__TypeName = 'AWS::EC2::NetworkAcl' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17303,10 +20457,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkAcl' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::NetworkAcl' + AND detail.data__TypeName = 'AWS::EC2::NetworkAcl' + AND listing.region = 'us-east-1' + network_acls_list_only: + name: network_acls_list_only + id: aws.ec2.network_acls_list_only + x-cfn-schema-name: NetworkAcl + x-cfn-type-name: AWS::EC2::NetworkAcl + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkAcl' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkAcl' + AND region = 'us-east-1' + network_acl_tags: + name: network_acl_tags + id: aws.ec2.network_acl_tags + x-cfn-schema-name: NetworkAcl + x-cfn-type-name: AWS::EC2::NetworkAcl + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::NetworkAcl' + AND detail.data__TypeName = 'AWS::EC2::NetworkAcl' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::NetworkAcl' + AND detail.data__TypeName = 'AWS::EC2::NetworkAcl' + AND listing.region = 'us-east-1' network_insights_access_scopes: name: network_insights_access_scopes id: aws.ec2.network_insights_access_scopes @@ -17384,10 +20623,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NetworkInsightsAccessScopeId') as network_insights_access_scope_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeArn') as network_insights_access_scope_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedDate') as created_date, + JSON_EXTRACT(detail.Properties, '$.UpdatedDate') as updated_date, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.MatchPaths') as match_paths, + JSON_EXTRACT(detail.Properties, '$.ExcludePaths') as exclude_paths + 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::EC2::NetworkInsightsAccessScope' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17408,10 +20658,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NetworkInsightsAccessScopeId') as network_insights_access_scope_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeArn') as network_insights_access_scope_arn, + json_extract_path_text(detail.Properties, 'CreatedDate') as created_date, + json_extract_path_text(detail.Properties, 'UpdatedDate') as updated_date, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'MatchPaths') as match_paths, + json_extract_path_text(detail.Properties, 'ExcludePaths') as exclude_paths + 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::EC2::NetworkInsightsAccessScope' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' + AND listing.region = 'us-east-1' + network_insights_access_scopes_list_only: + name: network_insights_access_scopes_list_only + id: aws.ec2.network_insights_access_scopes_list_only + x-cfn-schema-name: NetworkInsightsAccessScope + x-cfn-type-name: AWS::EC2::NetworkInsightsAccessScope + x-identifiers: + - NetworkInsightsAccessScopeId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NetworkInsightsAccessScopeId') as network_insights_access_scope_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NetworkInsightsAccessScopeId') as network_insights_access_scope_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' + AND region = 'us-east-1' + network_insights_access_scope_tags: + name: network_insights_access_scope_tags + id: aws.ec2.network_insights_access_scope_tags + x-cfn-schema-name: NetworkInsightsAccessScope + x-cfn-type-name: AWS::EC2::NetworkInsightsAccessScope + 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, '$.NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeArn') as network_insights_access_scope_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedDate') as created_date, + JSON_EXTRACT(detail.Properties, '$.UpdatedDate') as updated_date, + JSON_EXTRACT(detail.Properties, '$.MatchPaths') as match_paths, + JSON_EXTRACT(detail.Properties, '$.ExcludePaths') as exclude_paths + 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::EC2::NetworkInsightsAccessScope' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' + 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, 'NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeArn') as network_insights_access_scope_arn, + json_extract_path_text(detail.Properties, 'CreatedDate') as created_date, + json_extract_path_text(detail.Properties, 'UpdatedDate') as updated_date, + json_extract_path_text(detail.Properties, 'MatchPaths') as match_paths, + json_extract_path_text(detail.Properties, 'ExcludePaths') as exclude_paths + 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::EC2::NetworkInsightsAccessScope' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScope' + AND listing.region = 'us-east-1' network_insights_access_scope_analyses: name: network_insights_access_scope_analyses id: aws.ec2.network_insights_access_scope_analyses @@ -17492,10 +20839,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeAnalysisArn') as network_insights_access_scope_analysis_arn, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StartDate') as start_date, + JSON_EXTRACT(detail.Properties, '$.EndDate') as end_date, + JSON_EXTRACT(detail.Properties, '$.FindingsFound') as findings_found, + JSON_EXTRACT(detail.Properties, '$.AnalyzedEniCount') as analyzed_eni_count, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::NetworkInsightsAccessScopeAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17519,15 +20880,121 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' - AND region = 'us-east-1' - network_insights_analyses: - name: network_insights_analyses - id: aws.ec2.network_insights_analyses - x-cfn-schema-name: NetworkInsightsAnalysis - x-cfn-type-name: AWS::EC2::NetworkInsightsAnalysis + detail.region, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeAnalysisArn') as network_insights_access_scope_analysis_arn, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StartDate') as start_date, + json_extract_path_text(detail.Properties, 'EndDate') as end_date, + json_extract_path_text(detail.Properties, 'FindingsFound') as findings_found, + json_extract_path_text(detail.Properties, 'AnalyzedEniCount') as analyzed_eni_count, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::NetworkInsightsAccessScopeAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' + AND listing.region = 'us-east-1' + network_insights_access_scope_analyses_list_only: + name: network_insights_access_scope_analyses_list_only + id: aws.ec2.network_insights_access_scope_analyses_list_only + x-cfn-schema-name: NetworkInsightsAccessScopeAnalysis + x-cfn-type-name: AWS::EC2::NetworkInsightsAccessScopeAnalysis + x-identifiers: + - NetworkInsightsAccessScopeAnalysisId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' + AND region = 'us-east-1' + network_insights_access_scope_analysis_tags: + name: network_insights_access_scope_analysis_tags + id: aws.ec2.network_insights_access_scope_analysis_tags + x-cfn-schema-name: NetworkInsightsAccessScopeAnalysis + x-cfn-type-name: AWS::EC2::NetworkInsightsAccessScopeAnalysis + 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, '$.NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeAnalysisArn') as network_insights_access_scope_analysis_arn, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StartDate') as start_date, + JSON_EXTRACT(detail.Properties, '$.EndDate') as end_date, + JSON_EXTRACT(detail.Properties, '$.FindingsFound') as findings_found, + JSON_EXTRACT(detail.Properties, '$.AnalyzedEniCount') as analyzed_eni_count + 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::EC2::NetworkInsightsAccessScopeAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' + 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, 'NetworkInsightsAccessScopeAnalysisId') as network_insights_access_scope_analysis_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeAnalysisArn') as network_insights_access_scope_analysis_arn, + json_extract_path_text(detail.Properties, 'NetworkInsightsAccessScopeId') as network_insights_access_scope_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StartDate') as start_date, + json_extract_path_text(detail.Properties, 'EndDate') as end_date, + json_extract_path_text(detail.Properties, 'FindingsFound') as findings_found, + json_extract_path_text(detail.Properties, 'AnalyzedEniCount') as analyzed_eni_count + 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::EC2::NetworkInsightsAccessScopeAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAccessScopeAnalysis' + AND listing.region = 'us-east-1' + network_insights_analyses: + name: network_insights_analyses + id: aws.ec2.network_insights_analyses + x-cfn-schema-name: NetworkInsightsAnalysis + x-cfn-type-name: AWS::EC2::NetworkInsightsAnalysis x-identifiers: - NetworkInsightsAnalysisId x-type: cloud_control @@ -17608,10 +21075,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NetworkInsightsAnalysisId') as network_insights_analysis_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ReturnPathComponents') as return_path_components, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAnalysisId') as network_insights_analysis_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsPathId') as network_insights_path_id, + JSON_EXTRACT(detail.Properties, '$.NetworkPathFound') as network_path_found, + JSON_EXTRACT(detail.Properties, '$.SuggestedAccounts') as suggested_accounts, + JSON_EXTRACT(detail.Properties, '$.FilterInArns') as filter_in_arns, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAnalysisArn') as network_insights_analysis_arn, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StartDate') as start_date, + JSON_EXTRACT(detail.Properties, '$.AlternatePathHints') as alternate_path_hints, + JSON_EXTRACT(detail.Properties, '$.Explanations') as explanations, + JSON_EXTRACT(detail.Properties, '$.ForwardPathComponents') as forward_path_components, + JSON_EXTRACT(detail.Properties, '$.AdditionalAccounts') as additional_accounts, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::NetworkInsightsAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17640,10 +21126,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NetworkInsightsAnalysisId') as network_insights_analysis_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ReturnPathComponents') as return_path_components, + json_extract_path_text(detail.Properties, 'NetworkInsightsAnalysisId') as network_insights_analysis_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsPathId') as network_insights_path_id, + json_extract_path_text(detail.Properties, 'NetworkPathFound') as network_path_found, + json_extract_path_text(detail.Properties, 'SuggestedAccounts') as suggested_accounts, + json_extract_path_text(detail.Properties, 'FilterInArns') as filter_in_arns, + json_extract_path_text(detail.Properties, 'NetworkInsightsAnalysisArn') as network_insights_analysis_arn, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StartDate') as start_date, + json_extract_path_text(detail.Properties, 'AlternatePathHints') as alternate_path_hints, + json_extract_path_text(detail.Properties, 'Explanations') as explanations, + json_extract_path_text(detail.Properties, 'ForwardPathComponents') as forward_path_components, + json_extract_path_text(detail.Properties, 'AdditionalAccounts') as additional_accounts, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::NetworkInsightsAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' + AND listing.region = 'us-east-1' + network_insights_analyses_list_only: + name: network_insights_analyses_list_only + id: aws.ec2.network_insights_analyses_list_only + x-cfn-schema-name: NetworkInsightsAnalysis + x-cfn-type-name: AWS::EC2::NetworkInsightsAnalysis + x-identifiers: + - NetworkInsightsAnalysisId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NetworkInsightsAnalysisId') as network_insights_analysis_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NetworkInsightsAnalysisId') as network_insights_analysis_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' + AND region = 'us-east-1' + network_insights_analysis_tags: + name: network_insights_analysis_tags + id: aws.ec2.network_insights_analysis_tags + x-cfn-schema-name: NetworkInsightsAnalysis + x-cfn-type-name: AWS::EC2::NetworkInsightsAnalysis + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ReturnPathComponents') as return_path_components, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAnalysisId') as network_insights_analysis_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsPathId') as network_insights_path_id, + JSON_EXTRACT(detail.Properties, '$.NetworkPathFound') as network_path_found, + JSON_EXTRACT(detail.Properties, '$.SuggestedAccounts') as suggested_accounts, + JSON_EXTRACT(detail.Properties, '$.FilterInArns') as filter_in_arns, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsAnalysisArn') as network_insights_analysis_arn, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StartDate') as start_date, + JSON_EXTRACT(detail.Properties, '$.AlternatePathHints') as alternate_path_hints, + JSON_EXTRACT(detail.Properties, '$.Explanations') as explanations, + JSON_EXTRACT(detail.Properties, '$.ForwardPathComponents') as forward_path_components, + JSON_EXTRACT(detail.Properties, '$.AdditionalAccounts') as additional_accounts + 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::EC2::NetworkInsightsAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'ReturnPathComponents') as return_path_components, + json_extract_path_text(detail.Properties, 'NetworkInsightsAnalysisId') as network_insights_analysis_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsPathId') as network_insights_path_id, + json_extract_path_text(detail.Properties, 'NetworkPathFound') as network_path_found, + json_extract_path_text(detail.Properties, 'SuggestedAccounts') as suggested_accounts, + json_extract_path_text(detail.Properties, 'FilterInArns') as filter_in_arns, + json_extract_path_text(detail.Properties, 'NetworkInsightsAnalysisArn') as network_insights_analysis_arn, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StartDate') as start_date, + json_extract_path_text(detail.Properties, 'AlternatePathHints') as alternate_path_hints, + json_extract_path_text(detail.Properties, 'Explanations') as explanations, + json_extract_path_text(detail.Properties, 'ForwardPathComponents') as forward_path_components, + json_extract_path_text(detail.Properties, 'AdditionalAccounts') as additional_accounts + 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::EC2::NetworkInsightsAnalysis' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsAnalysis' + AND listing.region = 'us-east-1' network_insights_paths: name: network_insights_paths id: aws.ec2.network_insights_paths @@ -17728,10 +21335,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NetworkInsightsPathId') as network_insights_path_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsPath' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsPathId') as network_insights_path_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsPathArn') as network_insights_path_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedDate') as created_date, + JSON_EXTRACT(detail.Properties, '$.SourceIp') as source_ip, + JSON_EXTRACT(detail.Properties, '$.FilterAtSource') as filter_at_source, + JSON_EXTRACT(detail.Properties, '$.FilterAtDestination') as filter_at_destination, + JSON_EXTRACT(detail.Properties, '$.DestinationIp') as destination_ip, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Destination') as destination, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.DestinationArn') as destination_arn, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.DestinationPort') as destination_port, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::NetworkInsightsPath' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsPath' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17759,10 +21384,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NetworkInsightsPathId') as network_insights_path_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsPath' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'NetworkInsightsPathId') as network_insights_path_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsPathArn') as network_insights_path_arn, + json_extract_path_text(detail.Properties, 'CreatedDate') as created_date, + json_extract_path_text(detail.Properties, 'SourceIp') as source_ip, + json_extract_path_text(detail.Properties, 'FilterAtSource') as filter_at_source, + json_extract_path_text(detail.Properties, 'FilterAtDestination') as filter_at_destination, + json_extract_path_text(detail.Properties, 'DestinationIp') as destination_ip, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Destination') as destination, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'DestinationArn') as destination_arn, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'DestinationPort') as destination_port, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::NetworkInsightsPath' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsPath' + AND listing.region = 'us-east-1' + network_insights_paths_list_only: + name: network_insights_paths_list_only + id: aws.ec2.network_insights_paths_list_only + x-cfn-schema-name: NetworkInsightsPath + x-cfn-type-name: AWS::EC2::NetworkInsightsPath + x-identifiers: + - NetworkInsightsPathId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NetworkInsightsPathId') as network_insights_path_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsPath' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NetworkInsightsPathId') as network_insights_path_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInsightsPath' + AND region = 'us-east-1' + network_insights_path_tags: + name: network_insights_path_tags + id: aws.ec2.network_insights_path_tags + x-cfn-schema-name: NetworkInsightsPath + x-cfn-type-name: AWS::EC2::NetworkInsightsPath + 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, '$.NetworkInsightsPathId') as network_insights_path_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInsightsPathArn') as network_insights_path_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedDate') as created_date, + JSON_EXTRACT(detail.Properties, '$.SourceIp') as source_ip, + JSON_EXTRACT(detail.Properties, '$.FilterAtSource') as filter_at_source, + JSON_EXTRACT(detail.Properties, '$.FilterAtDestination') as filter_at_destination, + JSON_EXTRACT(detail.Properties, '$.DestinationIp') as destination_ip, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Destination') as destination, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.DestinationArn') as destination_arn, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.DestinationPort') as destination_port + 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::EC2::NetworkInsightsPath' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsPath' + 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, 'NetworkInsightsPathId') as network_insights_path_id, + json_extract_path_text(detail.Properties, 'NetworkInsightsPathArn') as network_insights_path_arn, + json_extract_path_text(detail.Properties, 'CreatedDate') as created_date, + json_extract_path_text(detail.Properties, 'SourceIp') as source_ip, + json_extract_path_text(detail.Properties, 'FilterAtSource') as filter_at_source, + json_extract_path_text(detail.Properties, 'FilterAtDestination') as filter_at_destination, + json_extract_path_text(detail.Properties, 'DestinationIp') as destination_ip, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Destination') as destination, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'DestinationArn') as destination_arn, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'DestinationPort') as destination_port + 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::EC2::NetworkInsightsPath' + AND detail.data__TypeName = 'AWS::EC2::NetworkInsightsPath' + AND listing.region = 'us-east-1' network_interface_attachments: name: network_interface_attachments id: aws.ec2.network_interface_attachments @@ -17839,10 +21582,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterfaceAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.DeleteOnTermination') as delete_on_termination, + JSON_EXTRACT(detail.Properties, '$.DeviceIndex') as device_index, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceId') as network_interface_id, + JSON_EXTRACT(detail.Properties, '$.EnaSrdSpecification') as ena_srd_specification + 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::EC2::NetworkInterfaceAttachment' + AND detail.data__TypeName = 'AWS::EC2::NetworkInterfaceAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17862,10 +21615,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterfaceAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'DeleteOnTermination') as delete_on_termination, + json_extract_path_text(detail.Properties, 'DeviceIndex') as device_index, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'NetworkInterfaceId') as network_interface_id, + json_extract_path_text(detail.Properties, 'EnaSrdSpecification') as ena_srd_specification + 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::EC2::NetworkInterfaceAttachment' + AND detail.data__TypeName = 'AWS::EC2::NetworkInterfaceAttachment' + AND listing.region = 'us-east-1' + network_interface_attachments_list_only: + name: network_interface_attachments_list_only + id: aws.ec2.network_interface_attachments_list_only + x-cfn-schema-name: NetworkInterfaceAttachment + x-cfn-type-name: AWS::EC2::NetworkInterfaceAttachment + x-identifiers: + - AttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterfaceAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkInterfaceAttachment' + AND region = 'us-east-1' network_performance_metric_subscriptions: name: network_performance_metric_subscriptions id: aws.ec2.network_performance_metric_subscriptions @@ -17930,13 +21724,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Source') as source, - JSON_EXTRACT(Properties, '$.Destination') as destination, - JSON_EXTRACT(Properties, '$.Metric') as metric, - JSON_EXTRACT(Properties, '$.Statistic') as statistic - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkPerformanceMetricSubscription' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Destination') as destination, + JSON_EXTRACT(detail.Properties, '$.Metric') as metric, + JSON_EXTRACT(detail.Properties, '$.Statistic') as statistic + 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::EC2::NetworkPerformanceMetricSubscription' + AND detail.data__TypeName = 'AWS::EC2::NetworkPerformanceMetricSubscription' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -17954,13 +21753,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Source') as source, - json_extract_path_text(Properties, 'Destination') as destination, - json_extract_path_text(Properties, 'Metric') as metric, - json_extract_path_text(Properties, 'Statistic') as statistic - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkPerformanceMetricSubscription' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Destination') as destination, + json_extract_path_text(detail.Properties, 'Metric') as metric, + json_extract_path_text(detail.Properties, 'Statistic') as statistic + 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::EC2::NetworkPerformanceMetricSubscription' + AND detail.data__TypeName = 'AWS::EC2::NetworkPerformanceMetricSubscription' + AND listing.region = 'us-east-1' + network_performance_metric_subscriptions_list_only: + name: network_performance_metric_subscriptions_list_only + id: aws.ec2.network_performance_metric_subscriptions_list_only + x-cfn-schema-name: NetworkPerformanceMetricSubscription + x-cfn-type-name: AWS::EC2::NetworkPerformanceMetricSubscription + x-identifiers: + - Source + - Destination + - Metric + - Statistic + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Source') as source, + JSON_EXTRACT(Properties, '$.Destination') as destination, + JSON_EXTRACT(Properties, '$.Metric') as metric, + JSON_EXTRACT(Properties, '$.Statistic') as statistic + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkPerformanceMetricSubscription' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Source') as source, + json_extract_path_text(Properties, 'Destination') as destination, + json_extract_path_text(Properties, 'Metric') as metric, + json_extract_path_text(Properties, 'Statistic') as statistic + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::NetworkPerformanceMetricSubscription' + AND region = 'us-east-1' placement_groups: name: placement_groups id: aws.ec2.placement_groups @@ -18023,10 +21867,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GroupName') as group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PlacementGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Strategy') as strategy, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.SpreadLevel') as spread_level, + JSON_EXTRACT(detail.Properties, '$.PartitionCount') as partition_count, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::PlacementGroup' + AND detail.data__TypeName = 'AWS::EC2::PlacementGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18045,10 +21898,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GroupName') as group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PlacementGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Strategy') as strategy, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'SpreadLevel') as spread_level, + json_extract_path_text(detail.Properties, 'PartitionCount') as partition_count, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::PlacementGroup' + AND detail.data__TypeName = 'AWS::EC2::PlacementGroup' + AND listing.region = 'us-east-1' + placement_groups_list_only: + name: placement_groups_list_only + id: aws.ec2.placement_groups_list_only + x-cfn-schema-name: PlacementGroup + x-cfn-type-name: AWS::EC2::PlacementGroup + x-identifiers: + - GroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GroupName') as group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PlacementGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GroupName') as group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PlacementGroup' + AND region = 'us-east-1' + placement_group_tags: + name: placement_group_tags + id: aws.ec2.placement_group_tags + x-cfn-schema-name: PlacementGroup + x-cfn-type-name: AWS::EC2::PlacementGroup + 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, '$.Strategy') as strategy, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.SpreadLevel') as spread_level, + JSON_EXTRACT(detail.Properties, '$.PartitionCount') as partition_count + 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::EC2::PlacementGroup' + AND detail.data__TypeName = 'AWS::EC2::PlacementGroup' + 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, 'Strategy') as strategy, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'SpreadLevel') as spread_level, + json_extract_path_text(detail.Properties, 'PartitionCount') as partition_count + 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::EC2::PlacementGroup' + AND detail.data__TypeName = 'AWS::EC2::PlacementGroup' + AND listing.region = 'us-east-1' prefix_lists: name: prefix_lists id: aws.ec2.prefix_lists @@ -18128,10 +22072,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PrefixListId') as prefix_list_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PrefixList' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PrefixListName') as prefix_list_name, + JSON_EXTRACT(detail.Properties, '$.PrefixListId') as prefix_list_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.AddressFamily') as address_family, + JSON_EXTRACT(detail.Properties, '$.MaxEntries') as max_entries, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Entries') as entries, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::EC2::PrefixList' + AND detail.data__TypeName = 'AWS::EC2::PrefixList' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18154,10 +22111,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PrefixListId') as prefix_list_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PrefixList' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PrefixListName') as prefix_list_name, + json_extract_path_text(detail.Properties, 'PrefixListId') as prefix_list_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'AddressFamily') as address_family, + json_extract_path_text(detail.Properties, 'MaxEntries') as max_entries, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Entries') as entries, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::EC2::PrefixList' + AND detail.data__TypeName = 'AWS::EC2::PrefixList' + AND listing.region = 'us-east-1' + prefix_lists_list_only: + name: prefix_lists_list_only + id: aws.ec2.prefix_lists_list_only + x-cfn-schema-name: PrefixList + x-cfn-type-name: AWS::EC2::PrefixList + x-identifiers: + - PrefixListId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PrefixListId') as prefix_list_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PrefixList' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PrefixListId') as prefix_list_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::PrefixList' + AND region = 'us-east-1' + prefix_list_tags: + name: prefix_list_tags + id: aws.ec2.prefix_list_tags + x-cfn-schema-name: PrefixList + x-cfn-type-name: AWS::EC2::PrefixList + 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, '$.PrefixListName') as prefix_list_name, + JSON_EXTRACT(detail.Properties, '$.PrefixListId') as prefix_list_id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.AddressFamily') as address_family, + JSON_EXTRACT(detail.Properties, '$.MaxEntries') as max_entries, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Entries') as entries, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::EC2::PrefixList' + AND detail.data__TypeName = 'AWS::EC2::PrefixList' + 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, 'PrefixListName') as prefix_list_name, + json_extract_path_text(detail.Properties, 'PrefixListId') as prefix_list_id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'AddressFamily') as address_family, + json_extract_path_text(detail.Properties, 'MaxEntries') as max_entries, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Entries') as entries, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::EC2::PrefixList' + AND detail.data__TypeName = 'AWS::EC2::PrefixList' + AND listing.region = 'us-east-1' routes: name: routes id: aws.ec2.routes @@ -18245,11 +22305,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RouteTableId') as route_table_id, - JSON_EXTRACT(Properties, '$.CidrBlock') as cidr_block - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Route' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CarrierGatewayId') as carrier_gateway_id, + JSON_EXTRACT(detail.Properties, '$.CidrBlock') as cidr_block, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.DestinationCidrBlock') as destination_cidr_block, + JSON_EXTRACT(detail.Properties, '$.DestinationIpv6CidrBlock') as destination_ipv6_cidr_block, + JSON_EXTRACT(detail.Properties, '$.DestinationPrefixListId') as destination_prefix_list_id, + JSON_EXTRACT(detail.Properties, '$.EgressOnlyInternetGatewayId') as egress_only_internet_gateway_id, + JSON_EXTRACT(detail.Properties, '$.GatewayId') as gateway_id, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.LocalGatewayId') as local_gateway_id, + JSON_EXTRACT(detail.Properties, '$.NatGatewayId') as nat_gateway_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceId') as network_interface_id, + JSON_EXTRACT(detail.Properties, '$.RouteTableId') as route_table_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcEndpointId') as vpc_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.VpcPeeringConnectionId') as vpc_peering_connection_id + 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::EC2::Route' + AND detail.data__TypeName = 'AWS::EC2::Route' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18279,11 +22358,64 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RouteTableId') as route_table_id, - json_extract_path_text(Properties, 'CidrBlock') as cidr_block - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Route' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CarrierGatewayId') as carrier_gateway_id, + json_extract_path_text(detail.Properties, 'CidrBlock') as cidr_block, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'DestinationCidrBlock') as destination_cidr_block, + json_extract_path_text(detail.Properties, 'DestinationIpv6CidrBlock') as destination_ipv6_cidr_block, + json_extract_path_text(detail.Properties, 'DestinationPrefixListId') as destination_prefix_list_id, + json_extract_path_text(detail.Properties, 'EgressOnlyInternetGatewayId') as egress_only_internet_gateway_id, + json_extract_path_text(detail.Properties, 'GatewayId') as gateway_id, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'LocalGatewayId') as local_gateway_id, + json_extract_path_text(detail.Properties, 'NatGatewayId') as nat_gateway_id, + json_extract_path_text(detail.Properties, 'NetworkInterfaceId') as network_interface_id, + json_extract_path_text(detail.Properties, 'RouteTableId') as route_table_id, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'VpcEndpointId') as vpc_endpoint_id, + json_extract_path_text(detail.Properties, 'VpcPeeringConnectionId') as vpc_peering_connection_id + 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::EC2::Route' + AND detail.data__TypeName = 'AWS::EC2::Route' + AND listing.region = 'us-east-1' + routes_list_only: + name: routes_list_only + id: aws.ec2.routes_list_only + x-cfn-schema-name: Route + x-cfn-type-name: AWS::EC2::Route + x-identifiers: + - RouteTableId + - CidrBlock + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RouteTableId') as route_table_id, + JSON_EXTRACT(Properties, '$.CidrBlock') as cidr_block + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Route' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RouteTableId') as route_table_id, + json_extract_path_text(Properties, 'CidrBlock') as cidr_block + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Route' + AND region = 'us-east-1' route_tables: name: route_tables id: aws.ec2.route_tables @@ -18357,10 +22489,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RouteTableId') as route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::RouteTable' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RouteTableId') as route_table_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::RouteTable' + AND detail.data__TypeName = 'AWS::EC2::RouteTable' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18377,15 +22516,100 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RouteTableId') as route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::RouteTable' - AND region = 'us-east-1' - security_groups: - name: security_groups - id: aws.ec2.security_groups - x-cfn-schema-name: SecurityGroup - x-cfn-type-name: AWS::EC2::SecurityGroup + detail.region, + json_extract_path_text(detail.Properties, 'RouteTableId') as route_table_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::RouteTable' + AND detail.data__TypeName = 'AWS::EC2::RouteTable' + AND listing.region = 'us-east-1' + route_tables_list_only: + name: route_tables_list_only + id: aws.ec2.route_tables_list_only + x-cfn-schema-name: RouteTable + x-cfn-type-name: AWS::EC2::RouteTable + x-identifiers: + - RouteTableId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RouteTableId') as route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::RouteTable' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RouteTableId') as route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::RouteTable' + AND region = 'us-east-1' + route_table_tags: + name: route_table_tags + id: aws.ec2.route_table_tags + x-cfn-schema-name: RouteTable + x-cfn-type-name: AWS::EC2::RouteTable + 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, '$.RouteTableId') as route_table_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::RouteTable' + AND detail.data__TypeName = 'AWS::EC2::RouteTable' + 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, 'RouteTableId') as route_table_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::RouteTable' + AND detail.data__TypeName = 'AWS::EC2::RouteTable' + AND listing.region = 'us-east-1' + security_groups: + name: security_groups + id: aws.ec2.security_groups + x-cfn-schema-name: SecurityGroup + x-cfn-type-name: AWS::EC2::SecurityGroup x-identifiers: - Id x-type: cloud_control @@ -18459,10 +22683,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GroupDescription') as group_description, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIngress') as security_group_ingress, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupEgress') as security_group_egress, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.GroupId') as group_id + 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::EC2::SecurityGroup' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18484,10 +22720,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GroupDescription') as group_description, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SecurityGroupIngress') as security_group_ingress, + json_extract_path_text(detail.Properties, 'SecurityGroupEgress') as security_group_egress, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'GroupId') as group_id + 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::EC2::SecurityGroup' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroup' + AND listing.region = 'us-east-1' + security_groups_list_only: + name: security_groups_list_only + id: aws.ec2.security_groups_list_only + x-cfn-schema-name: SecurityGroup + x-cfn-type-name: AWS::EC2::SecurityGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroup' + AND region = 'us-east-1' + security_group_tags: + name: security_group_tags + id: aws.ec2.security_group_tags + x-cfn-schema-name: SecurityGroup + x-cfn-type-name: AWS::EC2::SecurityGroup + 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, '$.GroupDescription') as group_description, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIngress') as security_group_ingress, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupEgress') as security_group_egress, + JSON_EXTRACT(detail.Properties, '$.GroupId') as group_id + 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::EC2::SecurityGroup' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroup' + 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, 'GroupDescription') as group_description, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SecurityGroupIngress') as security_group_ingress, + json_extract_path_text(detail.Properties, 'SecurityGroupEgress') as security_group_egress, + json_extract_path_text(detail.Properties, 'GroupId') as group_id + 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::EC2::SecurityGroup' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroup' + AND listing.region = 'us-east-1' security_group_egresses: name: security_group_egresses id: aws.ec2.security_group_egresses @@ -18568,10 +22904,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupEgress' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CidrIp') as cidr_ip, + JSON_EXTRACT(detail.Properties, '$.CidrIpv6') as cidr_ipv6, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FromPort') as from_port, + JSON_EXTRACT(detail.Properties, '$.ToPort') as to_port, + JSON_EXTRACT(detail.Properties, '$.IpProtocol') as ip_protocol, + JSON_EXTRACT(detail.Properties, '$.DestinationSecurityGroupId') as destination_security_group_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DestinationPrefixListId') as destination_prefix_list_id, + JSON_EXTRACT(detail.Properties, '$.GroupId') as group_id + 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::EC2::SecurityGroupEgress' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroupEgress' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18595,10 +22945,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupEgress' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CidrIp') as cidr_ip, + json_extract_path_text(detail.Properties, 'CidrIpv6') as cidr_ipv6, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FromPort') as from_port, + json_extract_path_text(detail.Properties, 'ToPort') as to_port, + json_extract_path_text(detail.Properties, 'IpProtocol') as ip_protocol, + json_extract_path_text(detail.Properties, 'DestinationSecurityGroupId') as destination_security_group_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DestinationPrefixListId') as destination_prefix_list_id, + json_extract_path_text(detail.Properties, 'GroupId') as group_id + 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::EC2::SecurityGroupEgress' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroupEgress' + AND listing.region = 'us-east-1' + security_group_egresses_list_only: + name: security_group_egresses_list_only + id: aws.ec2.security_group_egresses_list_only + x-cfn-schema-name: SecurityGroupEgress + x-cfn-type-name: AWS::EC2::SecurityGroupEgress + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupEgress' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupEgress' + AND region = 'us-east-1' security_group_ingresses: name: security_group_ingresses id: aws.ec2.security_group_ingresses @@ -18682,10 +23077,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupIngress' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.CidrIp') as cidr_ip, + JSON_EXTRACT(detail.Properties, '$.CidrIpv6') as cidr_ipv6, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FromPort') as from_port, + JSON_EXTRACT(detail.Properties, '$.GroupId') as group_id, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.IpProtocol') as ip_protocol, + JSON_EXTRACT(detail.Properties, '$.SourcePrefixListId') as source_prefix_list_id, + JSON_EXTRACT(detail.Properties, '$.SourceSecurityGroupId') as source_security_group_id, + JSON_EXTRACT(detail.Properties, '$.SourceSecurityGroupName') as source_security_group_name, + JSON_EXTRACT(detail.Properties, '$.SourceSecurityGroupOwnerId') as source_security_group_owner_id, + JSON_EXTRACT(detail.Properties, '$.ToPort') as to_port + 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::EC2::SecurityGroupIngress' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroupIngress' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18712,10 +23124,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupIngress' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'CidrIp') as cidr_ip, + json_extract_path_text(detail.Properties, 'CidrIpv6') as cidr_ipv6, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FromPort') as from_port, + json_extract_path_text(detail.Properties, 'GroupId') as group_id, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'IpProtocol') as ip_protocol, + json_extract_path_text(detail.Properties, 'SourcePrefixListId') as source_prefix_list_id, + json_extract_path_text(detail.Properties, 'SourceSecurityGroupId') as source_security_group_id, + json_extract_path_text(detail.Properties, 'SourceSecurityGroupName') as source_security_group_name, + json_extract_path_text(detail.Properties, 'SourceSecurityGroupOwnerId') as source_security_group_owner_id, + json_extract_path_text(detail.Properties, 'ToPort') as to_port + 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::EC2::SecurityGroupIngress' + AND detail.data__TypeName = 'AWS::EC2::SecurityGroupIngress' + AND listing.region = 'us-east-1' + security_group_ingresses_list_only: + name: security_group_ingresses_list_only + id: aws.ec2.security_group_ingresses_list_only + x-cfn-schema-name: SecurityGroupIngress + x-cfn-type-name: AWS::EC2::SecurityGroupIngress + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupIngress' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SecurityGroupIngress' + AND region = 'us-east-1' snapshot_block_public_accesses: name: snapshot_block_public_accesses id: aws.ec2.snapshot_block_public_accesses @@ -18788,10 +23248,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SnapshotBlockPublicAccess' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id + 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::EC2::SnapshotBlockPublicAccess' + AND detail.data__TypeName = 'AWS::EC2::SnapshotBlockPublicAccess' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18807,10 +23273,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SnapshotBlockPublicAccess' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'AccountId') as account_id + 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::EC2::SnapshotBlockPublicAccess' + AND detail.data__TypeName = 'AWS::EC2::SnapshotBlockPublicAccess' + AND listing.region = 'us-east-1' + snapshot_block_public_accesses_list_only: + name: snapshot_block_public_accesses_list_only + id: aws.ec2.snapshot_block_public_accesses_list_only + x-cfn-schema-name: SnapshotBlockPublicAccess + x-cfn-type-name: AWS::EC2::SnapshotBlockPublicAccess + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SnapshotBlockPublicAccess' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SnapshotBlockPublicAccess' + AND region = 'us-east-1' spot_fleets: name: spot_fleets id: aws.ec2.spot_fleets @@ -18883,10 +23386,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SpotFleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SpotFleetRequestConfigData') as spot_fleet_request_config_data + 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::EC2::SpotFleet' + AND detail.data__TypeName = 'AWS::EC2::SpotFleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -18902,10 +23411,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SpotFleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SpotFleetRequestConfigData') as spot_fleet_request_config_data + 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::EC2::SpotFleet' + AND detail.data__TypeName = 'AWS::EC2::SpotFleet' + AND listing.region = 'us-east-1' + spot_fleets_list_only: + name: spot_fleets_list_only + id: aws.ec2.spot_fleets_list_only + x-cfn-schema-name: SpotFleet + x-cfn-type-name: AWS::EC2::SpotFleet + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SpotFleet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SpotFleet' + AND region = 'us-east-1' subnets: name: subnets id: aws.ec2.subnets @@ -18996,10 +23542,34 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SubnetId') as subnet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Subnet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssignIpv6AddressOnCreation') as assign_ipv6_address_on_creation, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.MapPublicIpOnLaunch') as map_public_ip_on_launch, + JSON_EXTRACT(detail.Properties, '$.EnableLniAtDeviceIndex') as enable_lni_at_device_index, + JSON_EXTRACT(detail.Properties, '$.NetworkAclAssociationId') as network_acl_association_id, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZoneId') as availability_zone_id, + JSON_EXTRACT(detail.Properties, '$.CidrBlock') as cidr_block, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlocks') as ipv6_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlock') as ipv6_cidr_block, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.Ipv6Native') as ipv6_native, + JSON_EXTRACT(detail.Properties, '$.EnableDns64') as enable_dns64, + JSON_EXTRACT(detail.Properties, '$.PrivateDnsNameOptionsOnLaunch') as private_dns_name_options_on_launch, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Ipv4IpamPoolId') as ipv4_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Ipv4NetmaskLength') as ipv4_netmask_length, + JSON_EXTRACT(detail.Properties, '$.Ipv6IpamPoolId') as ipv6_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Ipv6NetmaskLength') as ipv6_netmask_length + 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::EC2::Subnet' + AND detail.data__TypeName = 'AWS::EC2::Subnet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19033,10 +23603,146 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SubnetId') as subnet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Subnet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssignIpv6AddressOnCreation') as assign_ipv6_address_on_creation, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'MapPublicIpOnLaunch') as map_public_ip_on_launch, + json_extract_path_text(detail.Properties, 'EnableLniAtDeviceIndex') as enable_lni_at_device_index, + json_extract_path_text(detail.Properties, 'NetworkAclAssociationId') as network_acl_association_id, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'AvailabilityZoneId') as availability_zone_id, + json_extract_path_text(detail.Properties, 'CidrBlock') as cidr_block, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlocks') as ipv6_cidr_blocks, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlock') as ipv6_cidr_block, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'Ipv6Native') as ipv6_native, + json_extract_path_text(detail.Properties, 'EnableDns64') as enable_dns64, + json_extract_path_text(detail.Properties, 'PrivateDnsNameOptionsOnLaunch') as private_dns_name_options_on_launch, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Ipv4IpamPoolId') as ipv4_ipam_pool_id, + json_extract_path_text(detail.Properties, 'Ipv4NetmaskLength') as ipv4_netmask_length, + json_extract_path_text(detail.Properties, 'Ipv6IpamPoolId') as ipv6_ipam_pool_id, + json_extract_path_text(detail.Properties, 'Ipv6NetmaskLength') as ipv6_netmask_length + 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::EC2::Subnet' + AND detail.data__TypeName = 'AWS::EC2::Subnet' + AND listing.region = 'us-east-1' + subnets_list_only: + name: subnets_list_only + id: aws.ec2.subnets_list_only + x-cfn-schema-name: Subnet + x-cfn-type-name: AWS::EC2::Subnet + x-identifiers: + - SubnetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SubnetId') as subnet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Subnet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SubnetId') as subnet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::Subnet' + AND region = 'us-east-1' + subnet_tags: + name: subnet_tags + id: aws.ec2.subnet_tags + x-cfn-schema-name: Subnet + x-cfn-type-name: AWS::EC2::Subnet + 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, '$.AssignIpv6AddressOnCreation') as assign_ipv6_address_on_creation, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.MapPublicIpOnLaunch') as map_public_ip_on_launch, + JSON_EXTRACT(detail.Properties, '$.EnableLniAtDeviceIndex') as enable_lni_at_device_index, + JSON_EXTRACT(detail.Properties, '$.NetworkAclAssociationId') as network_acl_association_id, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZoneId') as availability_zone_id, + JSON_EXTRACT(detail.Properties, '$.CidrBlock') as cidr_block, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlocks') as ipv6_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlock') as ipv6_cidr_block, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.Ipv6Native') as ipv6_native, + JSON_EXTRACT(detail.Properties, '$.EnableDns64') as enable_dns64, + JSON_EXTRACT(detail.Properties, '$.PrivateDnsNameOptionsOnLaunch') as private_dns_name_options_on_launch, + JSON_EXTRACT(detail.Properties, '$.Ipv4IpamPoolId') as ipv4_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Ipv4NetmaskLength') as ipv4_netmask_length, + JSON_EXTRACT(detail.Properties, '$.Ipv6IpamPoolId') as ipv6_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Ipv6NetmaskLength') as ipv6_netmask_length + 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::EC2::Subnet' + AND detail.data__TypeName = 'AWS::EC2::Subnet' + 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, 'AssignIpv6AddressOnCreation') as assign_ipv6_address_on_creation, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'MapPublicIpOnLaunch') as map_public_ip_on_launch, + json_extract_path_text(detail.Properties, 'EnableLniAtDeviceIndex') as enable_lni_at_device_index, + json_extract_path_text(detail.Properties, 'NetworkAclAssociationId') as network_acl_association_id, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'AvailabilityZoneId') as availability_zone_id, + json_extract_path_text(detail.Properties, 'CidrBlock') as cidr_block, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlocks') as ipv6_cidr_blocks, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlock') as ipv6_cidr_block, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'Ipv6Native') as ipv6_native, + json_extract_path_text(detail.Properties, 'EnableDns64') as enable_dns64, + json_extract_path_text(detail.Properties, 'PrivateDnsNameOptionsOnLaunch') as private_dns_name_options_on_launch, + json_extract_path_text(detail.Properties, 'Ipv4IpamPoolId') as ipv4_ipam_pool_id, + json_extract_path_text(detail.Properties, 'Ipv4NetmaskLength') as ipv4_netmask_length, + json_extract_path_text(detail.Properties, 'Ipv6IpamPoolId') as ipv6_ipam_pool_id, + json_extract_path_text(detail.Properties, 'Ipv6NetmaskLength') as ipv6_netmask_length + 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::EC2::Subnet' + AND detail.data__TypeName = 'AWS::EC2::Subnet' + AND listing.region = 'us-east-1' subnet_cidr_blocks: name: subnet_cidr_blocks id: aws.ec2.subnet_cidr_blocks @@ -19099,10 +23805,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetCidrBlock' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlock') as ipv6_cidr_block, + JSON_EXTRACT(detail.Properties, '$.Ipv6IpamPoolId') as ipv6_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Ipv6NetmaskLength') as ipv6_netmask_length, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id + 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::EC2::SubnetCidrBlock' + AND detail.data__TypeName = 'AWS::EC2::SubnetCidrBlock' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19121,10 +23836,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetCidrBlock' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlock') as ipv6_cidr_block, + json_extract_path_text(detail.Properties, 'Ipv6IpamPoolId') as ipv6_ipam_pool_id, + json_extract_path_text(detail.Properties, 'Ipv6NetmaskLength') as ipv6_netmask_length, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id + 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::EC2::SubnetCidrBlock' + AND detail.data__TypeName = 'AWS::EC2::SubnetCidrBlock' + AND listing.region = 'us-east-1' + subnet_cidr_blocks_list_only: + name: subnet_cidr_blocks_list_only + id: aws.ec2.subnet_cidr_blocks_list_only + x-cfn-schema-name: SubnetCidrBlock + x-cfn-type-name: AWS::EC2::SubnetCidrBlock + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetCidrBlock' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetCidrBlock' + AND region = 'us-east-1' subnet_network_acl_associations: name: subnet_network_acl_associations id: aws.ec2.subnet_network_acl_associations @@ -19185,10 +23940,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetNetworkAclAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.NetworkAclId') as network_acl_id, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id + 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::EC2::SubnetNetworkAclAssociation' + AND detail.data__TypeName = 'AWS::EC2::SubnetNetworkAclAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19205,10 +23967,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetNetworkAclAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'NetworkAclId') as network_acl_id, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id + 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::EC2::SubnetNetworkAclAssociation' + AND detail.data__TypeName = 'AWS::EC2::SubnetNetworkAclAssociation' + AND listing.region = 'us-east-1' + subnet_network_acl_associations_list_only: + name: subnet_network_acl_associations_list_only + id: aws.ec2.subnet_network_acl_associations_list_only + x-cfn-schema-name: SubnetNetworkAclAssociation + x-cfn-type-name: AWS::EC2::SubnetNetworkAclAssociation + x-identifiers: + - AssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetNetworkAclAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetNetworkAclAssociation' + AND region = 'us-east-1' subnet_route_table_associations: name: subnet_route_table_associations id: aws.ec2.subnet_route_table_associations @@ -19269,10 +24069,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetRouteTableAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.RouteTableId') as route_table_id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id + 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::EC2::SubnetRouteTableAssociation' + AND detail.data__TypeName = 'AWS::EC2::SubnetRouteTableAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19289,23 +24096,61 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetRouteTableAssociation' - AND region = 'us-east-1' - transit_gateways: - name: transit_gateways - id: aws.ec2.transit_gateways - x-cfn-schema-name: TransitGateway - x-cfn-type-name: AWS::EC2::TransitGateway + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'RouteTableId') as route_table_id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id + 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::EC2::SubnetRouteTableAssociation' + AND detail.data__TypeName = 'AWS::EC2::SubnetRouteTableAssociation' + AND listing.region = 'us-east-1' + subnet_route_table_associations_list_only: + name: subnet_route_table_associations_list_only + id: aws.ec2.subnet_route_table_associations_list_only + x-cfn-schema-name: SubnetRouteTableAssociation + x-cfn-type-name: AWS::EC2::SubnetRouteTableAssociation x-identifiers: - Id - x-type: cloud_control - methods: - create_resource: - config: - requestBodyTranslate: - algorithm: naive_DesiredState + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetRouteTableAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::SubnetRouteTableAssociation' + AND region = 'us-east-1' + transit_gateways: + name: transit_gateways + id: aws.ec2.transit_gateways + x-cfn-schema-name: TransitGateway + x-cfn-type-name: AWS::EC2::TransitGateway + x-identifiers: + - Id + x-type: cloud_control + methods: + create_resource: + config: + requestBodyTranslate: + algorithm: naive_DesiredState operation: $ref: '#/paths/~1?Action=CreateResource&Version=2021-09-30&__TransitGateway&__detailTransformed=true/post' request: @@ -19377,10 +24222,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AssociationDefaultRouteTableId') as association_default_route_table_id, + JSON_EXTRACT(detail.Properties, '$.AutoAcceptSharedAttachments') as auto_accept_shared_attachments, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayArn') as transit_gateway_arn, + JSON_EXTRACT(detail.Properties, '$.DefaultRouteTablePropagation') as default_route_table_propagation, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayCidrBlocks') as transit_gateway_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.PropagationDefaultRouteTableId') as propagation_default_route_table_id, + JSON_EXTRACT(detail.Properties, '$.DefaultRouteTableAssociation') as default_route_table_association, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.VpnEcmpSupport') as vpn_ecmp_support, + JSON_EXTRACT(detail.Properties, '$.DnsSupport') as dns_support, + JSON_EXTRACT(detail.Properties, '$.MulticastSupport') as multicast_support, + JSON_EXTRACT(detail.Properties, '$.AmazonSideAsn') as amazon_side_asn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::TransitGateway' + AND detail.data__TypeName = 'AWS::EC2::TransitGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19408,10 +24271,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AssociationDefaultRouteTableId') as association_default_route_table_id, + json_extract_path_text(detail.Properties, 'AutoAcceptSharedAttachments') as auto_accept_shared_attachments, + json_extract_path_text(detail.Properties, 'TransitGatewayArn') as transit_gateway_arn, + json_extract_path_text(detail.Properties, 'DefaultRouteTablePropagation') as default_route_table_propagation, + json_extract_path_text(detail.Properties, 'TransitGatewayCidrBlocks') as transit_gateway_cidr_blocks, + json_extract_path_text(detail.Properties, 'PropagationDefaultRouteTableId') as propagation_default_route_table_id, + json_extract_path_text(detail.Properties, 'DefaultRouteTableAssociation') as default_route_table_association, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'VpnEcmpSupport') as vpn_ecmp_support, + json_extract_path_text(detail.Properties, 'DnsSupport') as dns_support, + json_extract_path_text(detail.Properties, 'MulticastSupport') as multicast_support, + json_extract_path_text(detail.Properties, 'AmazonSideAsn') as amazon_side_asn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::TransitGateway' + AND detail.data__TypeName = 'AWS::EC2::TransitGateway' + AND listing.region = 'us-east-1' + transit_gateways_list_only: + name: transit_gateways_list_only + id: aws.ec2.transit_gateways_list_only + x-cfn-schema-name: TransitGateway + x-cfn-type-name: AWS::EC2::TransitGateway + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGateway' + AND region = 'us-east-1' + transit_gateway_tags: + name: transit_gateway_tags + id: aws.ec2.transit_gateway_tags + x-cfn-schema-name: TransitGateway + x-cfn-type-name: AWS::EC2::TransitGateway + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AssociationDefaultRouteTableId') as association_default_route_table_id, + JSON_EXTRACT(detail.Properties, '$.AutoAcceptSharedAttachments') as auto_accept_shared_attachments, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayArn') as transit_gateway_arn, + JSON_EXTRACT(detail.Properties, '$.DefaultRouteTablePropagation') as default_route_table_propagation, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayCidrBlocks') as transit_gateway_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.PropagationDefaultRouteTableId') as propagation_default_route_table_id, + JSON_EXTRACT(detail.Properties, '$.DefaultRouteTableAssociation') as default_route_table_association, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.VpnEcmpSupport') as vpn_ecmp_support, + JSON_EXTRACT(detail.Properties, '$.DnsSupport') as dns_support, + JSON_EXTRACT(detail.Properties, '$.MulticastSupport') as multicast_support, + JSON_EXTRACT(detail.Properties, '$.AmazonSideAsn') as amazon_side_asn + 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::EC2::TransitGateway' + AND detail.data__TypeName = 'AWS::EC2::TransitGateway' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'AssociationDefaultRouteTableId') as association_default_route_table_id, + json_extract_path_text(detail.Properties, 'AutoAcceptSharedAttachments') as auto_accept_shared_attachments, + json_extract_path_text(detail.Properties, 'TransitGatewayArn') as transit_gateway_arn, + json_extract_path_text(detail.Properties, 'DefaultRouteTablePropagation') as default_route_table_propagation, + json_extract_path_text(detail.Properties, 'TransitGatewayCidrBlocks') as transit_gateway_cidr_blocks, + json_extract_path_text(detail.Properties, 'PropagationDefaultRouteTableId') as propagation_default_route_table_id, + json_extract_path_text(detail.Properties, 'DefaultRouteTableAssociation') as default_route_table_association, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'VpnEcmpSupport') as vpn_ecmp_support, + json_extract_path_text(detail.Properties, 'DnsSupport') as dns_support, + json_extract_path_text(detail.Properties, 'MulticastSupport') as multicast_support, + json_extract_path_text(detail.Properties, 'AmazonSideAsn') as amazon_side_asn + 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::EC2::TransitGateway' + AND detail.data__TypeName = 'AWS::EC2::TransitGateway' + AND listing.region = 'us-east-1' transit_gateway_attachments: name: transit_gateway_attachments id: aws.ec2.transit_gateway_attachments @@ -19488,10 +24469,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::EC2::TransitGatewayAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19511,10 +24502,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Options') as options + 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::EC2::TransitGatewayAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayAttachment' + AND listing.region = 'us-east-1' + transit_gateway_attachments_list_only: + name: transit_gateway_attachments_list_only + id: aws.ec2.transit_gateway_attachments_list_only + x-cfn-schema-name: TransitGatewayAttachment + x-cfn-type-name: AWS::EC2::TransitGatewayAttachment + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayAttachment' + AND region = 'us-east-1' + transit_gateway_attachment_tags: + name: transit_gateway_attachment_tags + id: aws.ec2.transit_gateway_attachment_tags + x-cfn-schema-name: TransitGatewayAttachment + x-cfn-type-name: AWS::EC2::TransitGatewayAttachment + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::EC2::TransitGatewayAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayAttachment' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Options') as options + 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::EC2::TransitGatewayAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayAttachment' + AND listing.region = 'us-east-1' transit_gateway_connects: name: transit_gateway_connects id: aws.ec2.transit_gateway_connects @@ -19592,10 +24677,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayConnect' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id, + JSON_EXTRACT(detail.Properties, '$.TransportTransitGatewayAttachmentId') as transport_transit_gateway_attachment_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::EC2::TransitGatewayConnect' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayConnect' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19616,10 +24712,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayConnect' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id, + json_extract_path_text(detail.Properties, 'TransportTransitGatewayAttachmentId') as transport_transit_gateway_attachment_id, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Options') as options + 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::EC2::TransitGatewayConnect' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayConnect' + AND listing.region = 'us-east-1' + transit_gateway_connects_list_only: + name: transit_gateway_connects_list_only + id: aws.ec2.transit_gateway_connects_list_only + x-cfn-schema-name: TransitGatewayConnect + x-cfn-type-name: AWS::EC2::TransitGatewayConnect + x-identifiers: + - TransitGatewayAttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayConnect' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayConnect' + AND region = 'us-east-1' + transit_gateway_connect_tags: + name: transit_gateway_connect_tags + id: aws.ec2.transit_gateway_connect_tags + x-cfn-schema-name: TransitGatewayConnect + x-cfn-type-name: AWS::EC2::TransitGatewayConnect + 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, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id, + JSON_EXTRACT(detail.Properties, '$.TransportTransitGatewayAttachmentId') as transport_transit_gateway_attachment_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::EC2::TransitGatewayConnect' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayConnect' + 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, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id, + json_extract_path_text(detail.Properties, 'TransportTransitGatewayAttachmentId') as transport_transit_gateway_attachment_id, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Options') as options + 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::EC2::TransitGatewayConnect' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayConnect' + AND listing.region = 'us-east-1' transit_gateway_multicast_domains: name: transit_gateway_multicast_domains id: aws.ec2.transit_gateway_multicast_domains @@ -19697,10 +24890,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayMulticastDomainArn') as transit_gateway_multicast_domain_arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::EC2::TransitGatewayMulticastDomain' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19721,10 +24925,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(detail.Properties, 'TransitGatewayMulticastDomainArn') as transit_gateway_multicast_domain_arn, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Options') as options + 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::EC2::TransitGatewayMulticastDomain' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' + AND listing.region = 'us-east-1' + transit_gateway_multicast_domains_list_only: + name: transit_gateway_multicast_domains_list_only + id: aws.ec2.transit_gateway_multicast_domains_list_only + x-cfn-schema-name: TransitGatewayMulticastDomain + x-cfn-type-name: AWS::EC2::TransitGatewayMulticastDomain + x-identifiers: + - TransitGatewayMulticastDomainId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' + AND region = 'us-east-1' + transit_gateway_multicast_domain_tags: + name: transit_gateway_multicast_domain_tags + id: aws.ec2.transit_gateway_multicast_domain_tags + x-cfn-schema-name: TransitGatewayMulticastDomain + x-cfn-type-name: AWS::EC2::TransitGatewayMulticastDomain + 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, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayMulticastDomainArn') as transit_gateway_multicast_domain_arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::EC2::TransitGatewayMulticastDomain' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' + 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, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(detail.Properties, 'TransitGatewayMulticastDomainArn') as transit_gateway_multicast_domain_arn, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Options') as options + 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::EC2::TransitGatewayMulticastDomain' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomain' + AND listing.region = 'us-east-1' transit_gateway_multicast_domain_associations: name: transit_gateway_multicast_domain_associations id: aws.ec2.transit_gateway_multicast_domain_associations @@ -19790,12 +25091,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, - JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id, - JSON_EXTRACT(Properties, '$.SubnetId') as subnet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomainAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id + 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::EC2::TransitGatewayMulticastDomainAssociation' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomainAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19815,12 +25124,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, - json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id, - json_extract_path_text(Properties, 'SubnetId') as subnet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomainAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id + 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::EC2::TransitGatewayMulticastDomainAssociation' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomainAssociation' + AND listing.region = 'us-east-1' + transit_gateway_multicast_domain_associations_list_only: + name: transit_gateway_multicast_domain_associations_list_only + id: aws.ec2.transit_gateway_multicast_domain_associations_list_only + x-cfn-schema-name: TransitGatewayMulticastDomainAssociation + x-cfn-type-name: AWS::EC2::TransitGatewayMulticastDomainAssociation + x-identifiers: + - TransitGatewayMulticastDomainId + - TransitGatewayAttachmentId + - SubnetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id, + JSON_EXTRACT(Properties, '$.SubnetId') as subnet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomainAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id, + json_extract_path_text(Properties, 'SubnetId') as subnet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastDomainAssociation' + AND region = 'us-east-1' transit_gateway_multicast_group_members: name: transit_gateway_multicast_group_members id: aws.ec2.transit_gateway_multicast_group_members @@ -19891,12 +25245,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, - JSON_EXTRACT(Properties, '$.GroupIpAddress') as group_ip_address, - JSON_EXTRACT(Properties, '$.NetworkInterfaceId') as network_interface_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupMember' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GroupIpAddress') as group_ip_address, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceId') as network_interface_id, + JSON_EXTRACT(detail.Properties, '$.GroupMember') as group_member, + JSON_EXTRACT(detail.Properties, '$.GroupSource') as group_source, + JSON_EXTRACT(detail.Properties, '$.MemberType') as member_type, + JSON_EXTRACT(detail.Properties, '$.SourceType') as source_type + 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::EC2::TransitGatewayMulticastGroupMember' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupMember' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -19921,12 +25288,62 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, - json_extract_path_text(Properties, 'GroupIpAddress') as group_ip_address, - json_extract_path_text(Properties, 'NetworkInterfaceId') as network_interface_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupMember' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GroupIpAddress') as group_ip_address, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id, + json_extract_path_text(detail.Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'NetworkInterfaceId') as network_interface_id, + json_extract_path_text(detail.Properties, 'GroupMember') as group_member, + json_extract_path_text(detail.Properties, 'GroupSource') as group_source, + json_extract_path_text(detail.Properties, 'MemberType') as member_type, + json_extract_path_text(detail.Properties, 'SourceType') as source_type + 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::EC2::TransitGatewayMulticastGroupMember' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupMember' + AND listing.region = 'us-east-1' + transit_gateway_multicast_group_members_list_only: + name: transit_gateway_multicast_group_members_list_only + id: aws.ec2.transit_gateway_multicast_group_members_list_only + x-cfn-schema-name: TransitGatewayMulticastGroupMember + x-cfn-type-name: AWS::EC2::TransitGatewayMulticastGroupMember + x-identifiers: + - TransitGatewayMulticastDomainId + - GroupIpAddress + - NetworkInterfaceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(Properties, '$.GroupIpAddress') as group_ip_address, + JSON_EXTRACT(Properties, '$.NetworkInterfaceId') as network_interface_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupMember' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(Properties, 'GroupIpAddress') as group_ip_address, + json_extract_path_text(Properties, 'NetworkInterfaceId') as network_interface_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupMember' + AND region = 'us-east-1' transit_gateway_multicast_group_sources: name: transit_gateway_multicast_group_sources id: aws.ec2.transit_gateway_multicast_group_sources @@ -19997,12 +25414,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, - JSON_EXTRACT(Properties, '$.GroupIpAddress') as group_ip_address, - JSON_EXTRACT(Properties, '$.NetworkInterfaceId') as network_interface_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GroupIpAddress') as group_ip_address, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceId') as network_interface_id, + JSON_EXTRACT(detail.Properties, '$.GroupMember') as group_member, + JSON_EXTRACT(detail.Properties, '$.GroupSource') as group_source, + JSON_EXTRACT(detail.Properties, '$.MemberType') as member_type, + JSON_EXTRACT(detail.Properties, '$.SourceType') as source_type + 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::EC2::TransitGatewayMulticastGroupSource' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20027,12 +25457,62 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, - json_extract_path_text(Properties, 'GroupIpAddress') as group_ip_address, - json_extract_path_text(Properties, 'NetworkInterfaceId') as network_interface_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GroupIpAddress') as group_ip_address, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id, + json_extract_path_text(detail.Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'NetworkInterfaceId') as network_interface_id, + json_extract_path_text(detail.Properties, 'GroupMember') as group_member, + json_extract_path_text(detail.Properties, 'GroupSource') as group_source, + json_extract_path_text(detail.Properties, 'MemberType') as member_type, + json_extract_path_text(detail.Properties, 'SourceType') as source_type + 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::EC2::TransitGatewayMulticastGroupSource' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupSource' + AND listing.region = 'us-east-1' + transit_gateway_multicast_group_sources_list_only: + name: transit_gateway_multicast_group_sources_list_only + id: aws.ec2.transit_gateway_multicast_group_sources_list_only + x-cfn-schema-name: TransitGatewayMulticastGroupSource + x-cfn-type-name: AWS::EC2::TransitGatewayMulticastGroupSource + x-identifiers: + - TransitGatewayMulticastDomainId + - GroupIpAddress + - NetworkInterfaceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + JSON_EXTRACT(Properties, '$.GroupIpAddress') as group_ip_address, + JSON_EXTRACT(Properties, '$.NetworkInterfaceId') as network_interface_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayMulticastDomainId') as transit_gateway_multicast_domain_id, + json_extract_path_text(Properties, 'GroupIpAddress') as group_ip_address, + json_extract_path_text(Properties, 'NetworkInterfaceId') as network_interface_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayMulticastGroupSource' + AND region = 'us-east-1' transit_gateway_peering_attachments: name: transit_gateway_peering_attachments id: aws.ec2.transit_gateway_peering_attachments @@ -20112,10 +25592,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.PeerTransitGatewayId') as peer_transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.PeerAccountId') as peer_account_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.PeerRegion') as peer_region, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayPeeringAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20138,10 +25631,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'PeerTransitGatewayId') as peer_transit_gateway_id, + json_extract_path_text(detail.Properties, 'PeerAccountId') as peer_account_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'PeerRegion') as peer_region, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayPeeringAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' + AND listing.region = 'us-east-1' + transit_gateway_peering_attachments_list_only: + name: transit_gateway_peering_attachments_list_only + id: aws.ec2.transit_gateway_peering_attachments_list_only + x-cfn-schema-name: TransitGatewayPeeringAttachment + x-cfn-type-name: AWS::EC2::TransitGatewayPeeringAttachment + x-identifiers: + - TransitGatewayAttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' + AND region = 'us-east-1' + transit_gateway_peering_attachment_tags: + name: transit_gateway_peering_attachment_tags + id: aws.ec2.transit_gateway_peering_attachment_tags + x-cfn-schema-name: TransitGatewayPeeringAttachment + x-cfn-type-name: AWS::EC2::TransitGatewayPeeringAttachment + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.PeerTransitGatewayId') as peer_transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.PeerAccountId') as peer_account_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.PeerRegion') as peer_region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayPeeringAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'PeerTransitGatewayId') as peer_transit_gateway_id, + json_extract_path_text(detail.Properties, 'PeerAccountId') as peer_account_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'PeerRegion') as peer_region, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayPeeringAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayPeeringAttachment' + AND listing.region = 'us-east-1' transit_gateway_routes: name: transit_gateway_routes id: aws.ec2.transit_gateway_routes @@ -20204,11 +25800,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, - JSON_EXTRACT(Properties, '$.DestinationCidrBlock') as destination_cidr_block - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRoute' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.DestinationCidrBlock') as destination_cidr_block, + JSON_EXTRACT(detail.Properties, '$.Blackhole') as blackhole, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayRoute' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRoute' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20226,11 +25829,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, - json_extract_path_text(Properties, 'DestinationCidrBlock') as destination_cidr_block - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRoute' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'DestinationCidrBlock') as destination_cidr_block, + json_extract_path_text(detail.Properties, 'Blackhole') as blackhole, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayRoute' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRoute' + AND listing.region = 'us-east-1' + transit_gateway_routes_list_only: + name: transit_gateway_routes_list_only + id: aws.ec2.transit_gateway_routes_list_only + x-cfn-schema-name: TransitGatewayRoute + x-cfn-type-name: AWS::EC2::TransitGatewayRoute + x-identifiers: + - TransitGatewayRouteTableId + - DestinationCidrBlock + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(Properties, '$.DestinationCidrBlock') as destination_cidr_block + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRoute' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(Properties, 'DestinationCidrBlock') as destination_cidr_block + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRoute' + AND region = 'us-east-1' transit_gateway_route_tables: name: transit_gateway_route_tables id: aws.ec2.transit_gateway_route_tables @@ -20291,10 +25935,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::TransitGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20311,10 +25962,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::TransitGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' + AND listing.region = 'us-east-1' + transit_gateway_route_tables_list_only: + name: transit_gateway_route_tables_list_only + id: aws.ec2.transit_gateway_route_tables_list_only + x-cfn-schema-name: TransitGatewayRouteTable + x-cfn-type-name: AWS::EC2::TransitGatewayRouteTable + x-identifiers: + - TransitGatewayRouteTableId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' + AND region = 'us-east-1' + transit_gateway_route_table_tags: + name: transit_gateway_route_table_tags + id: aws.ec2.transit_gateway_route_table_tags + x-cfn-schema-name: TransitGatewayRouteTable + x-cfn-type-name: AWS::EC2::TransitGatewayRouteTable + 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, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id + 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::EC2::TransitGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' + 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, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id + 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::EC2::TransitGatewayRouteTable' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTable' + AND listing.region = 'us-east-1' transit_gateway_route_table_associations: name: transit_gateway_route_table_associations id: aws.ec2.transit_gateway_route_table_associations @@ -20375,11 +26111,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, - JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTableAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayRouteTableAssociation' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTableAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20395,11 +26136,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, - json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTableAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayRouteTableAssociation' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTableAssociation' + AND listing.region = 'us-east-1' + transit_gateway_route_table_associations_list_only: + name: transit_gateway_route_table_associations_list_only + id: aws.ec2.transit_gateway_route_table_associations_list_only + x-cfn-schema-name: TransitGatewayRouteTableAssociation + x-cfn-type-name: AWS::EC2::TransitGatewayRouteTableAssociation + x-identifiers: + - TransitGatewayRouteTableId + - TransitGatewayAttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTableAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTableAssociation' + AND region = 'us-east-1' transit_gateway_route_table_propagations: name: transit_gateway_route_table_propagations id: aws.ec2.transit_gateway_route_table_propagations @@ -20460,11 +26240,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, - JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTablePropagation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayRouteTablePropagation' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTablePropagation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20480,11 +26265,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, - json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTablePropagation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(detail.Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + 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::EC2::TransitGatewayRouteTablePropagation' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayRouteTablePropagation' + AND listing.region = 'us-east-1' + transit_gateway_route_table_propagations_list_only: + name: transit_gateway_route_table_propagations_list_only + id: aws.ec2.transit_gateway_route_table_propagations_list_only + x-cfn-schema-name: TransitGatewayRouteTablePropagation + x-cfn-type-name: AWS::EC2::TransitGatewayRouteTablePropagation + x-identifiers: + - TransitGatewayRouteTableId + - TransitGatewayAttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TransitGatewayRouteTableId') as transit_gateway_route_table_id, + JSON_EXTRACT(Properties, '$.TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTablePropagation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TransitGatewayRouteTableId') as transit_gateway_route_table_id, + json_extract_path_text(Properties, 'TransitGatewayAttachmentId') as transit_gateway_attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayRouteTablePropagation' + AND region = 'us-east-1' transit_gateway_vpc_attachments: name: transit_gateway_vpc_attachments id: aws.ec2.transit_gateway_vpc_attachments @@ -20563,35 +26387,147 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' - AND region = 'us-east-1' - fallback: - predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] - ddl: |- - SELECT - region, - data__Identifier, - json_extract_path_text(Properties, 'Options') as options, - json_extract_path_text(Properties, 'TransitGatewayId') as transit_gateway_id, - json_extract_path_text(Properties, 'VpcId') as vpc_id, - json_extract_path_text(Properties, 'RemoveSubnetIds') as remove_subnet_ids, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'SubnetIds') as subnet_ids, - json_extract_path_text(Properties, 'AddSubnetIds') as add_subnet_ids, - json_extract_path_text(Properties, 'Tags') as tags - FROM aws.cloud_control.resource WHERE data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' - AND data__Identifier = '' - AND region = 'us-east-1' - fallback: - predicate: sqlDialect == "postgres" - ddl: |- - SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Options') as options, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.RemoveSubnetIds') as remove_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.AddSubnetIds') as add_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::TransitGatewayVpcAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' + AND listing.region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] + ddl: |- + SELECT + region, + data__Identifier, + json_extract_path_text(Properties, 'Options') as options, + json_extract_path_text(Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(Properties, 'VpcId') as vpc_id, + json_extract_path_text(Properties, 'RemoveSubnetIds') as remove_subnet_ids, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(Properties, 'AddSubnetIds') as add_subnet_ids, + json_extract_path_text(Properties, 'Tags') as tags + FROM aws.cloud_control.resource WHERE data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' + AND data__Identifier = '' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + detail.region, + json_extract_path_text(detail.Properties, 'Options') as options, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'RemoveSubnetIds') as remove_subnet_ids, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'AddSubnetIds') as add_subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::TransitGatewayVpcAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' + AND listing.region = 'us-east-1' + transit_gateway_vpc_attachments_list_only: + name: transit_gateway_vpc_attachments_list_only + id: aws.ec2.transit_gateway_vpc_attachments_list_only + x-cfn-schema-name: TransitGatewayVpcAttachment + x-cfn-type-name: AWS::EC2::TransitGatewayVpcAttachment + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' + AND region = 'us-east-1' + transit_gateway_vpc_attachment_tags: + name: transit_gateway_vpc_attachment_tags + id: aws.ec2.transit_gateway_vpc_attachment_tags + x-cfn-schema-name: TransitGatewayVpcAttachment + x-cfn-type-name: AWS::EC2::TransitGatewayVpcAttachment + 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, '$.Options') as options, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.RemoveSubnetIds') as remove_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.AddSubnetIds') as add_subnet_ids + 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::EC2::TransitGatewayVpcAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' + 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, 'Options') as options, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'RemoveSubnetIds') as remove_subnet_ids, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'AddSubnetIds') as add_subnet_ids + 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::EC2::TransitGatewayVpcAttachment' + AND detail.data__TypeName = 'AWS::EC2::TransitGatewayVpcAttachment' + AND listing.region = 'us-east-1' verified_access_endpoints: name: verified_access_endpoints id: aws.ec2.verified_access_endpoints @@ -20683,10 +26619,35 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VerifiedAccessEndpointId') as verified_access_endpoint_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessEndpointId') as verified_access_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessGroupId') as verified_access_group_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessInstanceId') as verified_access_instance_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceOptions') as network_interface_options, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerOptions') as load_balancer_options, + JSON_EXTRACT(detail.Properties, '$.EndpointType') as endpoint_type, + JSON_EXTRACT(detail.Properties, '$.EndpointDomain') as endpoint_domain, + JSON_EXTRACT(detail.Properties, '$.EndpointDomainPrefix') as endpoint_domain_prefix, + JSON_EXTRACT(detail.Properties, '$.DeviceValidationDomain') as device_validation_domain, + JSON_EXTRACT(detail.Properties, '$.DomainCertificateArn') as domain_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.ApplicationDomain') as application_domain, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PolicyEnabled') as policy_enabled, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SseSpecification') as sse_specification + 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::EC2::VerifiedAccessEndpoint' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20721,10 +26682,149 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VerifiedAccessEndpointId') as verified_access_endpoint_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VerifiedAccessEndpointId') as verified_access_endpoint_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessGroupId') as verified_access_group_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessInstanceId') as verified_access_instance_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'NetworkInterfaceOptions') as network_interface_options, + json_extract_path_text(detail.Properties, 'LoadBalancerOptions') as load_balancer_options, + json_extract_path_text(detail.Properties, 'EndpointType') as endpoint_type, + json_extract_path_text(detail.Properties, 'EndpointDomain') as endpoint_domain, + json_extract_path_text(detail.Properties, 'EndpointDomainPrefix') as endpoint_domain_prefix, + json_extract_path_text(detail.Properties, 'DeviceValidationDomain') as device_validation_domain, + json_extract_path_text(detail.Properties, 'DomainCertificateArn') as domain_certificate_arn, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'ApplicationDomain') as application_domain, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PolicyEnabled') as policy_enabled, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SseSpecification') as sse_specification + 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::EC2::VerifiedAccessEndpoint' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' + AND listing.region = 'us-east-1' + verified_access_endpoints_list_only: + name: verified_access_endpoints_list_only + id: aws.ec2.verified_access_endpoints_list_only + x-cfn-schema-name: VerifiedAccessEndpoint + x-cfn-type-name: AWS::EC2::VerifiedAccessEndpoint + x-identifiers: + - VerifiedAccessEndpointId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VerifiedAccessEndpointId') as verified_access_endpoint_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VerifiedAccessEndpointId') as verified_access_endpoint_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' + AND region = 'us-east-1' + verified_access_endpoint_tags: + name: verified_access_endpoint_tags + id: aws.ec2.verified_access_endpoint_tags + x-cfn-schema-name: VerifiedAccessEndpoint + x-cfn-type-name: AWS::EC2::VerifiedAccessEndpoint + 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, '$.VerifiedAccessEndpointId') as verified_access_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessGroupId') as verified_access_group_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessInstanceId') as verified_access_instance_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceOptions') as network_interface_options, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerOptions') as load_balancer_options, + JSON_EXTRACT(detail.Properties, '$.EndpointType') as endpoint_type, + JSON_EXTRACT(detail.Properties, '$.EndpointDomain') as endpoint_domain, + JSON_EXTRACT(detail.Properties, '$.EndpointDomainPrefix') as endpoint_domain_prefix, + JSON_EXTRACT(detail.Properties, '$.DeviceValidationDomain') as device_validation_domain, + JSON_EXTRACT(detail.Properties, '$.DomainCertificateArn') as domain_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.ApplicationDomain') as application_domain, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PolicyEnabled') as policy_enabled, + JSON_EXTRACT(detail.Properties, '$.SseSpecification') as sse_specification + 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::EC2::VerifiedAccessEndpoint' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' + 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, 'VerifiedAccessEndpointId') as verified_access_endpoint_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessGroupId') as verified_access_group_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessInstanceId') as verified_access_instance_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'NetworkInterfaceOptions') as network_interface_options, + json_extract_path_text(detail.Properties, 'LoadBalancerOptions') as load_balancer_options, + json_extract_path_text(detail.Properties, 'EndpointType') as endpoint_type, + json_extract_path_text(detail.Properties, 'EndpointDomain') as endpoint_domain, + json_extract_path_text(detail.Properties, 'EndpointDomainPrefix') as endpoint_domain_prefix, + json_extract_path_text(detail.Properties, 'DeviceValidationDomain') as device_validation_domain, + json_extract_path_text(detail.Properties, 'DomainCertificateArn') as domain_certificate_arn, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'ApplicationDomain') as application_domain, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PolicyEnabled') as policy_enabled, + json_extract_path_text(detail.Properties, 'SseSpecification') as sse_specification + 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::EC2::VerifiedAccessEndpoint' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessEndpoint' + AND listing.region = 'us-east-1' verified_access_groups: name: verified_access_groups id: aws.ec2.verified_access_groups @@ -20806,10 +26906,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VerifiedAccessGroupId') as verified_access_group_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessGroupId') as verified_access_group_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessInstanceId') as verified_access_instance_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessGroupArn') as verified_access_group_arn, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PolicyEnabled') as policy_enabled, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SseSpecification') as sse_specification + 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::EC2::VerifiedAccessGroup' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20834,10 +26949,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VerifiedAccessGroupId') as verified_access_group_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VerifiedAccessGroupId') as verified_access_group_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessInstanceId') as verified_access_instance_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessGroupArn') as verified_access_group_arn, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PolicyEnabled') as policy_enabled, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SseSpecification') as sse_specification + 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::EC2::VerifiedAccessGroup' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessGroup' + AND listing.region = 'us-east-1' + verified_access_groups_list_only: + name: verified_access_groups_list_only + id: aws.ec2.verified_access_groups_list_only + x-cfn-schema-name: VerifiedAccessGroup + x-cfn-type-name: AWS::EC2::VerifiedAccessGroup + x-identifiers: + - VerifiedAccessGroupId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VerifiedAccessGroupId') as verified_access_group_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VerifiedAccessGroupId') as verified_access_group_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessGroup' + AND region = 'us-east-1' + verified_access_group_tags: + name: verified_access_group_tags + id: aws.ec2.verified_access_group_tags + x-cfn-schema-name: VerifiedAccessGroup + x-cfn-type-name: AWS::EC2::VerifiedAccessGroup + 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, '$.VerifiedAccessGroupId') as verified_access_group_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessInstanceId') as verified_access_instance_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessGroupArn') as verified_access_group_arn, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PolicyEnabled') as policy_enabled, + JSON_EXTRACT(detail.Properties, '$.SseSpecification') as sse_specification + 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::EC2::VerifiedAccessGroup' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessGroup' + 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, 'VerifiedAccessGroupId') as verified_access_group_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessInstanceId') as verified_access_instance_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessGroupArn') as verified_access_group_arn, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PolicyEnabled') as policy_enabled, + json_extract_path_text(detail.Properties, 'SseSpecification') as sse_specification + 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::EC2::VerifiedAccessGroup' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessGroup' + AND listing.region = 'us-east-1' verified_access_trust_providers: name: verified_access_trust_providers id: aws.ec2.verified_access_trust_providers @@ -20920,10 +27144,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VerifiedAccessTrustProviderId') as verified_access_trust_provider_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TrustProviderType') as trust_provider_type, + JSON_EXTRACT(detail.Properties, '$.DeviceTrustProviderType') as device_trust_provider_type, + JSON_EXTRACT(detail.Properties, '$.UserTrustProviderType') as user_trust_provider_type, + JSON_EXTRACT(detail.Properties, '$.OidcOptions') as oidc_options, + JSON_EXTRACT(detail.Properties, '$.DeviceOptions') as device_options, + JSON_EXTRACT(detail.Properties, '$.PolicyReferenceName') as policy_reference_name, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessTrustProviderId') as verified_access_trust_provider_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SseSpecification') as sse_specification + 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::EC2::VerifiedAccessTrustProvider' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -20949,10 +27189,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VerifiedAccessTrustProviderId') as verified_access_trust_provider_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TrustProviderType') as trust_provider_type, + json_extract_path_text(detail.Properties, 'DeviceTrustProviderType') as device_trust_provider_type, + json_extract_path_text(detail.Properties, 'UserTrustProviderType') as user_trust_provider_type, + json_extract_path_text(detail.Properties, 'OidcOptions') as oidc_options, + json_extract_path_text(detail.Properties, 'DeviceOptions') as device_options, + json_extract_path_text(detail.Properties, 'PolicyReferenceName') as policy_reference_name, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'VerifiedAccessTrustProviderId') as verified_access_trust_provider_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SseSpecification') as sse_specification + 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::EC2::VerifiedAccessTrustProvider' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' + AND listing.region = 'us-east-1' + verified_access_trust_providers_list_only: + name: verified_access_trust_providers_list_only + id: aws.ec2.verified_access_trust_providers_list_only + x-cfn-schema-name: VerifiedAccessTrustProvider + x-cfn-type-name: AWS::EC2::VerifiedAccessTrustProvider + x-identifiers: + - VerifiedAccessTrustProviderId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VerifiedAccessTrustProviderId') as verified_access_trust_provider_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VerifiedAccessTrustProviderId') as verified_access_trust_provider_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' + AND region = 'us-east-1' + verified_access_trust_provider_tags: + name: verified_access_trust_provider_tags + id: aws.ec2.verified_access_trust_provider_tags + x-cfn-schema-name: VerifiedAccessTrustProvider + x-cfn-type-name: AWS::EC2::VerifiedAccessTrustProvider + 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, '$.TrustProviderType') as trust_provider_type, + JSON_EXTRACT(detail.Properties, '$.DeviceTrustProviderType') as device_trust_provider_type, + JSON_EXTRACT(detail.Properties, '$.UserTrustProviderType') as user_trust_provider_type, + JSON_EXTRACT(detail.Properties, '$.OidcOptions') as oidc_options, + JSON_EXTRACT(detail.Properties, '$.DeviceOptions') as device_options, + JSON_EXTRACT(detail.Properties, '$.PolicyReferenceName') as policy_reference_name, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessTrustProviderId') as verified_access_trust_provider_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SseSpecification') as sse_specification + 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::EC2::VerifiedAccessTrustProvider' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' + 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, 'TrustProviderType') as trust_provider_type, + json_extract_path_text(detail.Properties, 'DeviceTrustProviderType') as device_trust_provider_type, + json_extract_path_text(detail.Properties, 'UserTrustProviderType') as user_trust_provider_type, + json_extract_path_text(detail.Properties, 'OidcOptions') as oidc_options, + json_extract_path_text(detail.Properties, 'DeviceOptions') as device_options, + json_extract_path_text(detail.Properties, 'PolicyReferenceName') as policy_reference_name, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'VerifiedAccessTrustProviderId') as verified_access_trust_provider_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SseSpecification') as sse_specification + 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::EC2::VerifiedAccessTrustProvider' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessTrustProvider' + AND listing.region = 'us-east-1' verified_access_instances: name: verified_access_instances id: aws.ec2.verified_access_instances @@ -21032,10 +27384,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VerifiedAccessInstanceId') as verified_access_instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessInstance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessInstanceId') as verified_access_instance_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessTrustProviders') as verified_access_trust_providers, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessTrustProviderIds') as verified_access_trust_provider_ids, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LoggingConfigurations') as logging_configurations, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.FipsEnabled') as fips_enabled + 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::EC2::VerifiedAccessInstance' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessInstance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21058,10 +27423,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VerifiedAccessInstanceId') as verified_access_instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessInstance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VerifiedAccessInstanceId') as verified_access_instance_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessTrustProviders') as verified_access_trust_providers, + json_extract_path_text(detail.Properties, 'VerifiedAccessTrustProviderIds') as verified_access_trust_provider_ids, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LoggingConfigurations') as logging_configurations, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'FipsEnabled') as fips_enabled + 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::EC2::VerifiedAccessInstance' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessInstance' + AND listing.region = 'us-east-1' + verified_access_instances_list_only: + name: verified_access_instances_list_only + id: aws.ec2.verified_access_instances_list_only + x-cfn-schema-name: VerifiedAccessInstance + x-cfn-type-name: AWS::EC2::VerifiedAccessInstance + x-identifiers: + - VerifiedAccessInstanceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VerifiedAccessInstanceId') as verified_access_instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessInstance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VerifiedAccessInstanceId') as verified_access_instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VerifiedAccessInstance' + AND region = 'us-east-1' + verified_access_instance_tags: + name: verified_access_instance_tags + id: aws.ec2.verified_access_instance_tags + x-cfn-schema-name: VerifiedAccessInstance + x-cfn-type-name: AWS::EC2::VerifiedAccessInstance + 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, '$.VerifiedAccessInstanceId') as verified_access_instance_id, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessTrustProviders') as verified_access_trust_providers, + JSON_EXTRACT(detail.Properties, '$.VerifiedAccessTrustProviderIds') as verified_access_trust_provider_ids, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LoggingConfigurations') as logging_configurations, + JSON_EXTRACT(detail.Properties, '$.FipsEnabled') as fips_enabled + 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::EC2::VerifiedAccessInstance' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessInstance' + 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, 'VerifiedAccessInstanceId') as verified_access_instance_id, + json_extract_path_text(detail.Properties, 'VerifiedAccessTrustProviders') as verified_access_trust_providers, + json_extract_path_text(detail.Properties, 'VerifiedAccessTrustProviderIds') as verified_access_trust_provider_ids, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LoggingConfigurations') as logging_configurations, + json_extract_path_text(detail.Properties, 'FipsEnabled') as fips_enabled + 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::EC2::VerifiedAccessInstance' + AND detail.data__TypeName = 'AWS::EC2::VerifiedAccessInstance' + AND listing.region = 'us-east-1' volume_attachments: name: volume_attachments id: aws.ec2.volume_attachments @@ -21123,11 +27591,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VolumeId') as volume_id, - JSON_EXTRACT(Properties, '$.InstanceId') as instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VolumeAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VolumeId') as volume_id, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.Device') as device + 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::EC2::VolumeAttachment' + AND detail.data__TypeName = 'AWS::EC2::VolumeAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21144,11 +27618,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VolumeId') as volume_id, - json_extract_path_text(Properties, 'InstanceId') as instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VolumeAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VolumeId') as volume_id, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'Device') as device + 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::EC2::VolumeAttachment' + AND detail.data__TypeName = 'AWS::EC2::VolumeAttachment' + AND listing.region = 'us-east-1' + volume_attachments_list_only: + name: volume_attachments_list_only + id: aws.ec2.volume_attachments_list_only + x-cfn-schema-name: VolumeAttachment + x-cfn-type-name: AWS::EC2::VolumeAttachment + x-identifiers: + - VolumeId + - InstanceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VolumeId') as volume_id, + JSON_EXTRACT(Properties, '$.InstanceId') as instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VolumeAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VolumeId') as volume_id, + json_extract_path_text(Properties, 'InstanceId') as instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VolumeAttachment' + AND region = 'us-east-1' vpcs: name: vpcs id: aws.ec2.vpcs @@ -21231,10 +27745,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPC' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.InstanceTenancy') as instance_tenancy, + JSON_EXTRACT(detail.Properties, '$.Ipv4NetmaskLength') as ipv4_netmask_length, + JSON_EXTRACT(detail.Properties, '$.CidrBlockAssociations') as cidr_block_associations, + JSON_EXTRACT(detail.Properties, '$.CidrBlock') as cidr_block, + JSON_EXTRACT(detail.Properties, '$.Ipv4IpamPoolId') as ipv4_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.DefaultNetworkAcl') as default_network_acl, + JSON_EXTRACT(detail.Properties, '$.EnableDnsSupport') as enable_dns_support, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlocks') as ipv6_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.DefaultSecurityGroup') as default_security_group, + JSON_EXTRACT(detail.Properties, '$.EnableDnsHostnames') as enable_dns_hostnames, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::VPC' + AND detail.data__TypeName = 'AWS::EC2::VPC' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21260,10 +27790,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPC' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'InstanceTenancy') as instance_tenancy, + json_extract_path_text(detail.Properties, 'Ipv4NetmaskLength') as ipv4_netmask_length, + json_extract_path_text(detail.Properties, 'CidrBlockAssociations') as cidr_block_associations, + json_extract_path_text(detail.Properties, 'CidrBlock') as cidr_block, + json_extract_path_text(detail.Properties, 'Ipv4IpamPoolId') as ipv4_ipam_pool_id, + json_extract_path_text(detail.Properties, 'DefaultNetworkAcl') as default_network_acl, + json_extract_path_text(detail.Properties, 'EnableDnsSupport') as enable_dns_support, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlocks') as ipv6_cidr_blocks, + json_extract_path_text(detail.Properties, 'DefaultSecurityGroup') as default_security_group, + json_extract_path_text(detail.Properties, 'EnableDnsHostnames') as enable_dns_hostnames, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::VPC' + AND detail.data__TypeName = 'AWS::EC2::VPC' + AND listing.region = 'us-east-1' + vpcs_list_only: + name: vpcs_list_only + id: aws.ec2.vpcs_list_only + x-cfn-schema-name: VPC + x-cfn-type-name: AWS::EC2::VPC + x-identifiers: + - VpcId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPC' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPC' + AND region = 'us-east-1' + vpc_tags: + name: vpc_tags + id: aws.ec2.vpc_tags + x-cfn-schema-name: VPC + x-cfn-type-name: AWS::EC2::VPC + 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, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.InstanceTenancy') as instance_tenancy, + JSON_EXTRACT(detail.Properties, '$.Ipv4NetmaskLength') as ipv4_netmask_length, + JSON_EXTRACT(detail.Properties, '$.CidrBlockAssociations') as cidr_block_associations, + JSON_EXTRACT(detail.Properties, '$.CidrBlock') as cidr_block, + JSON_EXTRACT(detail.Properties, '$.Ipv4IpamPoolId') as ipv4_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.DefaultNetworkAcl') as default_network_acl, + JSON_EXTRACT(detail.Properties, '$.EnableDnsSupport') as enable_dns_support, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlocks') as ipv6_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.DefaultSecurityGroup') as default_security_group, + JSON_EXTRACT(detail.Properties, '$.EnableDnsHostnames') as enable_dns_hostnames + 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::EC2::VPC' + AND detail.data__TypeName = 'AWS::EC2::VPC' + 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, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'InstanceTenancy') as instance_tenancy, + json_extract_path_text(detail.Properties, 'Ipv4NetmaskLength') as ipv4_netmask_length, + json_extract_path_text(detail.Properties, 'CidrBlockAssociations') as cidr_block_associations, + json_extract_path_text(detail.Properties, 'CidrBlock') as cidr_block, + json_extract_path_text(detail.Properties, 'Ipv4IpamPoolId') as ipv4_ipam_pool_id, + json_extract_path_text(detail.Properties, 'DefaultNetworkAcl') as default_network_acl, + json_extract_path_text(detail.Properties, 'EnableDnsSupport') as enable_dns_support, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlocks') as ipv6_cidr_blocks, + json_extract_path_text(detail.Properties, 'DefaultSecurityGroup') as default_security_group, + json_extract_path_text(detail.Properties, 'EnableDnsHostnames') as enable_dns_hostnames + 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::EC2::VPC' + AND detail.data__TypeName = 'AWS::EC2::VPC' + AND listing.region = 'us-east-1' vpc_cidr_blocks: name: vpc_cidr_blocks id: aws.ec2.vpc_cidr_blocks @@ -21332,11 +27974,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCCidrBlock' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CidrBlock') as cidr_block, + JSON_EXTRACT(detail.Properties, '$.Ipv6Pool') as ipv6_pool, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Ipv6CidrBlock') as ipv6_cidr_block, + JSON_EXTRACT(detail.Properties, '$.Ipv4IpamPoolId') as ipv4_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Ipv4NetmaskLength') as ipv4_netmask_length, + JSON_EXTRACT(detail.Properties, '$.Ipv6IpamPoolId') as ipv6_ipam_pool_id, + JSON_EXTRACT(detail.Properties, '$.Ipv6NetmaskLength') as ipv6_netmask_length, + JSON_EXTRACT(detail.Properties, '$.AmazonProvidedIpv6CidrBlock') as amazon_provided_ipv6_cidr_block + 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::EC2::VPCCidrBlock' + AND detail.data__TypeName = 'AWS::EC2::VPCCidrBlock' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21360,11 +28015,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCCidrBlock' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CidrBlock') as cidr_block, + json_extract_path_text(detail.Properties, 'Ipv6Pool') as ipv6_pool, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Ipv6CidrBlock') as ipv6_cidr_block, + json_extract_path_text(detail.Properties, 'Ipv4IpamPoolId') as ipv4_ipam_pool_id, + json_extract_path_text(detail.Properties, 'Ipv4NetmaskLength') as ipv4_netmask_length, + json_extract_path_text(detail.Properties, 'Ipv6IpamPoolId') as ipv6_ipam_pool_id, + json_extract_path_text(detail.Properties, 'Ipv6NetmaskLength') as ipv6_netmask_length, + json_extract_path_text(detail.Properties, 'AmazonProvidedIpv6CidrBlock') as amazon_provided_ipv6_cidr_block + 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::EC2::VPCCidrBlock' + AND detail.data__TypeName = 'AWS::EC2::VPCCidrBlock' + AND listing.region = 'us-east-1' + vpc_cidr_blocks_list_only: + name: vpc_cidr_blocks_list_only + id: aws.ec2.vpc_cidr_blocks_list_only + x-cfn-schema-name: VPCCidrBlock + x-cfn-type-name: AWS::EC2::VPCCidrBlock + x-identifiers: + - Id + - VpcId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCCidrBlock' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCCidrBlock' + AND region = 'us-east-1' vpcdhcp_options_associations: name: vpcdhcp_options_associations id: aws.ec2.vpcdhcp_options_associations @@ -21438,11 +28140,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DhcpOptionsId') as dhcp_options_id, - JSON_EXTRACT(Properties, '$.VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCDHCPOptionsAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DhcpOptionsId') as dhcp_options_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::VPCDHCPOptionsAssociation' + AND detail.data__TypeName = 'AWS::EC2::VPCDHCPOptionsAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21458,11 +28165,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DhcpOptionsId') as dhcp_options_id, - json_extract_path_text(Properties, 'VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCDHCPOptionsAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DhcpOptionsId') as dhcp_options_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::VPCDHCPOptionsAssociation' + AND detail.data__TypeName = 'AWS::EC2::VPCDHCPOptionsAssociation' + AND listing.region = 'us-east-1' + vpcdhcp_options_associations_list_only: + name: vpcdhcp_options_associations_list_only + id: aws.ec2.vpcdhcp_options_associations_list_only + x-cfn-schema-name: VPCDHCPOptionsAssociation + x-cfn-type-name: AWS::EC2::VPCDHCPOptionsAssociation + x-identifiers: + - DhcpOptionsId + - VpcId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DhcpOptionsId') as dhcp_options_id, + JSON_EXTRACT(Properties, '$.VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCDHCPOptionsAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DhcpOptionsId') as dhcp_options_id, + json_extract_path_text(Properties, 'VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCDHCPOptionsAssociation' + AND region = 'us-east-1' vpc_endpoints: name: vpc_endpoints id: aws.ec2.vpc_endpoints @@ -21545,10 +28291,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.CreationTimestamp') as creation_timestamp, + JSON_EXTRACT(detail.Properties, '$.DnsEntries') as dns_entries, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceIds') as network_interface_ids, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PrivateDnsEnabled') as private_dns_enabled, + JSON_EXTRACT(detail.Properties, '$.RouteTableIds') as route_table_ids, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VpcEndpointType') as vpc_endpoint_type, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::VPCEndpoint' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21574,10 +28336,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'CreationTimestamp') as creation_timestamp, + json_extract_path_text(detail.Properties, 'DnsEntries') as dns_entries, + json_extract_path_text(detail.Properties, 'NetworkInterfaceIds') as network_interface_ids, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PrivateDnsEnabled') as private_dns_enabled, + json_extract_path_text(detail.Properties, 'RouteTableIds') as route_table_ids, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'VpcEndpointType') as vpc_endpoint_type, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::VPCEndpoint' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpoint' + AND listing.region = 'us-east-1' + vpc_endpoints_list_only: + name: vpc_endpoints_list_only + id: aws.ec2.vpc_endpoints_list_only + x-cfn-schema-name: VPCEndpoint + x-cfn-type-name: AWS::EC2::VPCEndpoint + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpoint' + AND region = 'us-east-1' vpc_endpoint_connection_notifications: name: vpc_endpoint_connection_notifications id: aws.ec2.vpc_endpoint_connection_notifications @@ -21653,10 +28462,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VPCEndpointConnectionNotificationId') as vpc_endpoint_connection_notification_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointConnectionNotification' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VPCEndpointConnectionNotificationId') as vpc_endpoint_connection_notification_id, + JSON_EXTRACT(detail.Properties, '$.ConnectionEvents') as connection_events, + JSON_EXTRACT(detail.Properties, '$.ConnectionNotificationArn') as connection_notification_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.VPCEndpointId') as vpc_endpoint_id + 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::EC2::VPCEndpointConnectionNotification' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpointConnectionNotification' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21675,10 +28493,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VPCEndpointConnectionNotificationId') as vpc_endpoint_connection_notification_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointConnectionNotification' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VPCEndpointConnectionNotificationId') as vpc_endpoint_connection_notification_id, + json_extract_path_text(detail.Properties, 'ConnectionEvents') as connection_events, + json_extract_path_text(detail.Properties, 'ConnectionNotificationArn') as connection_notification_arn, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'VPCEndpointId') as vpc_endpoint_id + 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::EC2::VPCEndpointConnectionNotification' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpointConnectionNotification' + AND listing.region = 'us-east-1' + vpc_endpoint_connection_notifications_list_only: + name: vpc_endpoint_connection_notifications_list_only + id: aws.ec2.vpc_endpoint_connection_notifications_list_only + x-cfn-schema-name: VPCEndpointConnectionNotification + x-cfn-type-name: AWS::EC2::VPCEndpointConnectionNotification + x-identifiers: + - VPCEndpointConnectionNotificationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VPCEndpointConnectionNotificationId') as vpc_endpoint_connection_notification_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointConnectionNotification' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VPCEndpointConnectionNotificationId') as vpc_endpoint_connection_notification_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointConnectionNotification' + AND region = 'us-east-1' vpc_endpoint_services: name: vpc_endpoint_services id: aws.ec2.vpc_endpoint_services @@ -21755,10 +28613,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServiceId') as service_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointService' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.NetworkLoadBalancerArns') as network_load_balancer_arns, + JSON_EXTRACT(detail.Properties, '$.ContributorInsightsEnabled') as contributor_insights_enabled, + JSON_EXTRACT(detail.Properties, '$.PayerResponsibility') as payer_responsibility, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.AcceptanceRequired') as acceptance_required, + JSON_EXTRACT(detail.Properties, '$.GatewayLoadBalancerArns') as gateway_load_balancer_arns + 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::EC2::VPCEndpointService' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpointService' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21778,10 +28646,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServiceId') as service_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointService' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'NetworkLoadBalancerArns') as network_load_balancer_arns, + json_extract_path_text(detail.Properties, 'ContributorInsightsEnabled') as contributor_insights_enabled, + json_extract_path_text(detail.Properties, 'PayerResponsibility') as payer_responsibility, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'AcceptanceRequired') as acceptance_required, + json_extract_path_text(detail.Properties, 'GatewayLoadBalancerArns') as gateway_load_balancer_arns + 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::EC2::VPCEndpointService' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpointService' + AND listing.region = 'us-east-1' + vpc_endpoint_services_list_only: + name: vpc_endpoint_services_list_only + id: aws.ec2.vpc_endpoint_services_list_only + x-cfn-schema-name: VPCEndpointService + x-cfn-type-name: AWS::EC2::VPCEndpointService + x-identifiers: + - ServiceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServiceId') as service_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointService' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServiceId') as service_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointService' + AND region = 'us-east-1' vpc_endpoint_service_permissions: name: vpc_endpoint_service_permissions id: aws.ec2.vpc_endpoint_service_permissions @@ -21854,10 +28763,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServiceId') as service_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointServicePermissions' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AllowedPrincipals') as allowed_principals, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id + 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::EC2::VPCEndpointServicePermissions' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpointServicePermissions' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21873,10 +28788,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServiceId') as service_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointServicePermissions' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AllowedPrincipals') as allowed_principals, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id + 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::EC2::VPCEndpointServicePermissions' + AND detail.data__TypeName = 'AWS::EC2::VPCEndpointServicePermissions' + AND listing.region = 'us-east-1' + vpc_endpoint_service_permissions_list_only: + name: vpc_endpoint_service_permissions_list_only + id: aws.ec2.vpc_endpoint_service_permissions_list_only + x-cfn-schema-name: VPCEndpointServicePermissions + x-cfn-type-name: AWS::EC2::VPCEndpointServicePermissions + x-identifiers: + - ServiceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServiceId') as service_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointServicePermissions' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServiceId') as service_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCEndpointServicePermissions' + AND region = 'us-east-1' vpc_gateway_attachments: name: vpc_gateway_attachments id: aws.ec2.vpc_gateway_attachments @@ -21952,11 +28904,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AttachmentType') as attachment_type, - JSON_EXTRACT(Properties, '$.VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCGatewayAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.InternetGatewayId') as internet_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpnGatewayId') as vpn_gateway_id + 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::EC2::VPCGatewayAttachment' + AND detail.data__TypeName = 'AWS::EC2::VPCGatewayAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -21974,11 +28933,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AttachmentType') as attachment_type, - json_extract_path_text(Properties, 'VpcId') as vpc_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCGatewayAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'InternetGatewayId') as internet_gateway_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'VpnGatewayId') as vpn_gateway_id + 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::EC2::VPCGatewayAttachment' + AND detail.data__TypeName = 'AWS::EC2::VPCGatewayAttachment' + AND listing.region = 'us-east-1' + vpc_gateway_attachments_list_only: + name: vpc_gateway_attachments_list_only + id: aws.ec2.vpc_gateway_attachments_list_only + x-cfn-schema-name: VPCGatewayAttachment + x-cfn-type-name: AWS::EC2::VPCGatewayAttachment + x-identifiers: + - AttachmentType + - VpcId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(Properties, '$.VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCGatewayAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(Properties, 'VpcId') as vpc_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCGatewayAttachment' + AND region = 'us-east-1' vpc_peering_connections: name: vpc_peering_connections id: aws.ec2.vpc_peering_connections @@ -22056,10 +29056,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCPeeringConnection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PeerOwnerId') as peer_owner_id, + JSON_EXTRACT(detail.Properties, '$.PeerRegion') as peer_region, + JSON_EXTRACT(detail.Properties, '$.PeerRoleArn') as peer_role_arn, + JSON_EXTRACT(detail.Properties, '$.PeerVpcId') as peer_vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EC2::VPCPeeringConnection' + AND detail.data__TypeName = 'AWS::EC2::VPCPeeringConnection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -22080,10 +29091,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCPeeringConnection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PeerOwnerId') as peer_owner_id, + json_extract_path_text(detail.Properties, 'PeerRegion') as peer_region, + json_extract_path_text(detail.Properties, 'PeerRoleArn') as peer_role_arn, + json_extract_path_text(detail.Properties, 'PeerVpcId') as peer_vpc_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EC2::VPCPeeringConnection' + AND detail.data__TypeName = 'AWS::EC2::VPCPeeringConnection' + AND listing.region = 'us-east-1' + vpc_peering_connections_list_only: + name: vpc_peering_connections_list_only + id: aws.ec2.vpc_peering_connections_list_only + x-cfn-schema-name: VPCPeeringConnection + x-cfn-type-name: AWS::EC2::VPCPeeringConnection + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCPeeringConnection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPCPeeringConnection' + AND region = 'us-east-1' + vpc_peering_connection_tags: + name: vpc_peering_connection_tags + id: aws.ec2.vpc_peering_connection_tags + x-cfn-schema-name: VPCPeeringConnection + x-cfn-type-name: AWS::EC2::VPCPeeringConnection + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PeerOwnerId') as peer_owner_id, + JSON_EXTRACT(detail.Properties, '$.PeerRegion') as peer_region, + JSON_EXTRACT(detail.Properties, '$.PeerRoleArn') as peer_role_arn, + JSON_EXTRACT(detail.Properties, '$.PeerVpcId') as peer_vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::EC2::VPCPeeringConnection' + AND detail.data__TypeName = 'AWS::EC2::VPCPeeringConnection' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'PeerOwnerId') as peer_owner_id, + json_extract_path_text(detail.Properties, 'PeerRegion') as peer_region, + json_extract_path_text(detail.Properties, 'PeerRoleArn') as peer_role_arn, + json_extract_path_text(detail.Properties, 'PeerVpcId') as peer_vpc_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::EC2::VPCPeeringConnection' + AND detail.data__TypeName = 'AWS::EC2::VPCPeeringConnection' + AND listing.region = 'us-east-1' vpn_connections: name: vpn_connections id: aws.ec2.vpn_connections @@ -22162,10 +29270,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VpnConnectionId') as vpn_connection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VpnConnectionId') as vpn_connection_id, + JSON_EXTRACT(detail.Properties, '$.CustomerGatewayId') as customer_gateway_id, + JSON_EXTRACT(detail.Properties, '$.StaticRoutesOnly') as static_routes_only, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.VpnGatewayId') as vpn_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpnTunnelOptionsSpecifications') as vpn_tunnel_options_specifications + 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::EC2::VPNConnection' + AND detail.data__TypeName = 'AWS::EC2::VPNConnection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -22187,10 +29307,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VpnConnectionId') as vpn_connection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VpnConnectionId') as vpn_connection_id, + json_extract_path_text(detail.Properties, 'CustomerGatewayId') as customer_gateway_id, + json_extract_path_text(detail.Properties, 'StaticRoutesOnly') as static_routes_only, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'VpnGatewayId') as vpn_gateway_id, + json_extract_path_text(detail.Properties, 'VpnTunnelOptionsSpecifications') as vpn_tunnel_options_specifications + 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::EC2::VPNConnection' + AND detail.data__TypeName = 'AWS::EC2::VPNConnection' + AND listing.region = 'us-east-1' + vpn_connections_list_only: + name: vpn_connections_list_only + id: aws.ec2.vpn_connections_list_only + x-cfn-schema-name: VPNConnection + x-cfn-type-name: AWS::EC2::VPNConnection + x-identifiers: + - VpnConnectionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VpnConnectionId') as vpn_connection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VpnConnectionId') as vpn_connection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnection' + AND region = 'us-east-1' + vpn_connection_tags: + name: vpn_connection_tags + id: aws.ec2.vpn_connection_tags + x-cfn-schema-name: VPNConnection + x-cfn-type-name: AWS::EC2::VPNConnection + 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, '$.VpnConnectionId') as vpn_connection_id, + JSON_EXTRACT(detail.Properties, '$.CustomerGatewayId') as customer_gateway_id, + JSON_EXTRACT(detail.Properties, '$.StaticRoutesOnly') as static_routes_only, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.VpnGatewayId') as vpn_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpnTunnelOptionsSpecifications') as vpn_tunnel_options_specifications + 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::EC2::VPNConnection' + AND detail.data__TypeName = 'AWS::EC2::VPNConnection' + 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, 'VpnConnectionId') as vpn_connection_id, + json_extract_path_text(detail.Properties, 'CustomerGatewayId') as customer_gateway_id, + json_extract_path_text(detail.Properties, 'StaticRoutesOnly') as static_routes_only, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'VpnGatewayId') as vpn_gateway_id, + json_extract_path_text(detail.Properties, 'VpnTunnelOptionsSpecifications') as vpn_tunnel_options_specifications + 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::EC2::VPNConnection' + AND detail.data__TypeName = 'AWS::EC2::VPNConnection' + AND listing.region = 'us-east-1' vpn_connection_routes: name: vpn_connection_routes id: aws.ec2.vpn_connection_routes @@ -22251,11 +29471,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DestinationCidrBlock') as destination_cidr_block, - JSON_EXTRACT(Properties, '$.VpnConnectionId') as vpn_connection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnectionRoute' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DestinationCidrBlock') as destination_cidr_block, + JSON_EXTRACT(detail.Properties, '$.VpnConnectionId') as vpn_connection_id + 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::EC2::VPNConnectionRoute' + AND detail.data__TypeName = 'AWS::EC2::VPNConnectionRoute' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -22271,11 +29496,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DestinationCidrBlock') as destination_cidr_block, - json_extract_path_text(Properties, 'VpnConnectionId') as vpn_connection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnectionRoute' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DestinationCidrBlock') as destination_cidr_block, + json_extract_path_text(detail.Properties, 'VpnConnectionId') as vpn_connection_id + 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::EC2::VPNConnectionRoute' + AND detail.data__TypeName = 'AWS::EC2::VPNConnectionRoute' + AND listing.region = 'us-east-1' + vpn_connection_routes_list_only: + name: vpn_connection_routes_list_only + id: aws.ec2.vpn_connection_routes_list_only + x-cfn-schema-name: VPNConnectionRoute + x-cfn-type-name: AWS::EC2::VPNConnectionRoute + x-identifiers: + - DestinationCidrBlock + - VpnConnectionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DestinationCidrBlock') as destination_cidr_block, + JSON_EXTRACT(Properties, '$.VpnConnectionId') as vpn_connection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnectionRoute' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DestinationCidrBlock') as destination_cidr_block, + json_extract_path_text(Properties, 'VpnConnectionId') as vpn_connection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNConnectionRoute' + AND region = 'us-east-1' vpn_gateways: name: vpn_gateways id: aws.ec2.vpn_gateways @@ -22350,10 +29614,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VPNGatewayId') as v_pn_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VPNGatewayId') as v_pn_gateway_id, + JSON_EXTRACT(detail.Properties, '$.AmazonSideAsn') as amazon_side_asn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::EC2::VPNGateway' + AND detail.data__TypeName = 'AWS::EC2::VPNGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -22371,10 +29643,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VPNGatewayId') as v_pn_gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VPNGatewayId') as v_pn_gateway_id, + json_extract_path_text(detail.Properties, 'AmazonSideAsn') as amazon_side_asn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type + 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::EC2::VPNGateway' + AND detail.data__TypeName = 'AWS::EC2::VPNGateway' + AND listing.region = 'us-east-1' + vpn_gateways_list_only: + name: vpn_gateways_list_only + id: aws.ec2.vpn_gateways_list_only + x-cfn-schema-name: VPNGateway + x-cfn-type-name: AWS::EC2::VPNGateway + x-identifiers: + - VPNGatewayId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VPNGatewayId') as v_pn_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VPNGatewayId') as v_pn_gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EC2::VPNGateway' + AND region = 'us-east-1' + vpn_gateway_tags: + name: vpn_gateway_tags + id: aws.ec2.vpn_gateway_tags + x-cfn-schema-name: VPNGateway + x-cfn-type-name: AWS::EC2::VPNGateway + 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, '$.VPNGatewayId') as v_pn_gateway_id, + JSON_EXTRACT(detail.Properties, '$.AmazonSideAsn') as amazon_side_asn, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::EC2::VPNGateway' + AND detail.data__TypeName = 'AWS::EC2::VPNGateway' + 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, 'VPNGatewayId') as v_pn_gateway_id, + json_extract_path_text(detail.Properties, 'AmazonSideAsn') as amazon_side_asn, + json_extract_path_text(detail.Properties, 'Type') as type + 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::EC2::VPNGateway' + AND detail.data__TypeName = 'AWS::EC2::VPNGateway' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ecr.yaml b/providers/src/aws/v00.00.00000/services/ecr.yaml index 4a1a3876..a45dca81 100644 --- a/providers/src/aws/v00.00.00000/services/ecr.yaml +++ b/providers/src/aws/v00.00.00000/services/ecr.yaml @@ -1308,10 +1308,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RepositoryName') as repository_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PublicRepository' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.RepositoryPolicyText') as repository_policy_text, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RepositoryCatalogData') as repository_catalog_data, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ECR::PublicRepository' + AND detail.data__TypeName = 'AWS::ECR::PublicRepository' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1330,10 +1339,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RepositoryName') as repository_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PublicRepository' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'RepositoryPolicyText') as repository_policy_text, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RepositoryCatalogData') as repository_catalog_data, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ECR::PublicRepository' + AND detail.data__TypeName = 'AWS::ECR::PublicRepository' + AND listing.region = 'us-east-1' + public_repositories_list_only: + name: public_repositories_list_only + id: aws.ecr.public_repositories_list_only + x-cfn-schema-name: PublicRepository + x-cfn-type-name: AWS::ECR::PublicRepository + x-identifiers: + - RepositoryName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RepositoryName') as repository_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PublicRepository' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RepositoryName') as repository_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PublicRepository' + AND region = 'us-east-1' + public_repository_tags: + name: public_repository_tags + id: aws.ecr.public_repository_tags + x-cfn-schema-name: PublicRepository + x-cfn-type-name: AWS::ECR::PublicRepository + 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, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.RepositoryPolicyText') as repository_policy_text, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RepositoryCatalogData') as repository_catalog_data + 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::ECR::PublicRepository' + AND detail.data__TypeName = 'AWS::ECR::PublicRepository' + 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, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'RepositoryPolicyText') as repository_policy_text, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RepositoryCatalogData') as repository_catalog_data + 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::ECR::PublicRepository' + AND detail.data__TypeName = 'AWS::ECR::PublicRepository' + AND listing.region = 'us-east-1' pull_through_cache_rules: name: pull_through_cache_rules id: aws.ecr.pull_through_cache_rules @@ -1408,10 +1508,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EcrRepositoryPrefix') as ecr_repository_prefix - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PullThroughCacheRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EcrRepositoryPrefix') as ecr_repository_prefix, + JSON_EXTRACT(detail.Properties, '$.UpstreamRegistryUrl') as upstream_registry_url, + JSON_EXTRACT(detail.Properties, '$.CredentialArn') as credential_arn, + JSON_EXTRACT(detail.Properties, '$.UpstreamRegistry') as upstream_registry + 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::ECR::PullThroughCacheRule' + AND detail.data__TypeName = 'AWS::ECR::PullThroughCacheRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1429,10 +1537,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EcrRepositoryPrefix') as ecr_repository_prefix - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PullThroughCacheRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EcrRepositoryPrefix') as ecr_repository_prefix, + json_extract_path_text(detail.Properties, 'UpstreamRegistryUrl') as upstream_registry_url, + json_extract_path_text(detail.Properties, 'CredentialArn') as credential_arn, + json_extract_path_text(detail.Properties, 'UpstreamRegistry') as upstream_registry + 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::ECR::PullThroughCacheRule' + AND detail.data__TypeName = 'AWS::ECR::PullThroughCacheRule' + AND listing.region = 'us-east-1' + pull_through_cache_rules_list_only: + name: pull_through_cache_rules_list_only + id: aws.ecr.pull_through_cache_rules_list_only + x-cfn-schema-name: PullThroughCacheRule + x-cfn-type-name: AWS::ECR::PullThroughCacheRule + x-identifiers: + - EcrRepositoryPrefix + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EcrRepositoryPrefix') as ecr_repository_prefix + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PullThroughCacheRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EcrRepositoryPrefix') as ecr_repository_prefix + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::PullThroughCacheRule' + AND region = 'us-east-1' registry_policies: name: registry_policies id: aws.ecr.registry_policies @@ -1505,10 +1652,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RegistryId') as registry_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RegistryPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RegistryId') as registry_id, + JSON_EXTRACT(detail.Properties, '$.PolicyText') as policy_text + 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::ECR::RegistryPolicy' + AND detail.data__TypeName = 'AWS::ECR::RegistryPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1524,10 +1677,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RegistryId') as registry_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RegistryPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RegistryId') as registry_id, + json_extract_path_text(detail.Properties, 'PolicyText') as policy_text + 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::ECR::RegistryPolicy' + AND detail.data__TypeName = 'AWS::ECR::RegistryPolicy' + AND listing.region = 'us-east-1' + registry_policies_list_only: + name: registry_policies_list_only + id: aws.ecr.registry_policies_list_only + x-cfn-schema-name: RegistryPolicy + x-cfn-type-name: AWS::ECR::RegistryPolicy + x-identifiers: + - RegistryId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RegistryId') as registry_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RegistryPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RegistryId') as registry_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RegistryPolicy' + AND region = 'us-east-1' replication_configurations: name: replication_configurations id: aws.ecr.replication_configurations @@ -1600,10 +1790,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RegistryId') as registry_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::ReplicationConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfiguration') as replication_configuration, + JSON_EXTRACT(detail.Properties, '$.RegistryId') as registry_id + 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::ECR::ReplicationConfiguration' + AND detail.data__TypeName = 'AWS::ECR::ReplicationConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1619,10 +1815,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RegistryId') as registry_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::ReplicationConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ReplicationConfiguration') as replication_configuration, + json_extract_path_text(detail.Properties, 'RegistryId') as registry_id + 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::ECR::ReplicationConfiguration' + AND detail.data__TypeName = 'AWS::ECR::ReplicationConfiguration' + AND listing.region = 'us-east-1' + replication_configurations_list_only: + name: replication_configurations_list_only + id: aws.ecr.replication_configurations_list_only + x-cfn-schema-name: ReplicationConfiguration + x-cfn-type-name: AWS::ECR::ReplicationConfiguration + x-identifiers: + - RegistryId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RegistryId') as registry_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::ReplicationConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RegistryId') as registry_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::ReplicationConfiguration' + AND region = 'us-east-1' repositories: name: repositories id: aws.ecr.repositories @@ -1703,10 +1936,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RepositoryName') as repository_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::Repository' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EmptyOnDelete') as empty_on_delete, + JSON_EXTRACT(detail.Properties, '$.LifecyclePolicy') as lifecycle_policy, + JSON_EXTRACT(detail.Properties, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.RepositoryPolicyText') as repository_policy_text, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RepositoryUri') as repository_uri, + JSON_EXTRACT(detail.Properties, '$.ImageTagMutability') as image_tag_mutability, + JSON_EXTRACT(detail.Properties, '$.ImageScanningConfiguration') as image_scanning_configuration, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_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::ECR::Repository' + AND detail.data__TypeName = 'AWS::ECR::Repository' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1730,10 +1977,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RepositoryName') as repository_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::Repository' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EmptyOnDelete') as empty_on_delete, + json_extract_path_text(detail.Properties, 'LifecyclePolicy') as lifecycle_policy, + json_extract_path_text(detail.Properties, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'RepositoryPolicyText') as repository_policy_text, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RepositoryUri') as repository_uri, + json_extract_path_text(detail.Properties, 'ImageTagMutability') as image_tag_mutability, + json_extract_path_text(detail.Properties, 'ImageScanningConfiguration') as image_scanning_configuration, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_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::ECR::Repository' + AND detail.data__TypeName = 'AWS::ECR::Repository' + AND listing.region = 'us-east-1' + repositories_list_only: + name: repositories_list_only + id: aws.ecr.repositories_list_only + x-cfn-schema-name: Repository + x-cfn-type-name: AWS::ECR::Repository + x-identifiers: + - RepositoryName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RepositoryName') as repository_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::Repository' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RepositoryName') as repository_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::Repository' + AND region = 'us-east-1' + repository_tags: + name: repository_tags + id: aws.ecr.repository_tags + x-cfn-schema-name: Repository + x-cfn-type-name: AWS::ECR::Repository + 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, '$.EmptyOnDelete') as empty_on_delete, + JSON_EXTRACT(detail.Properties, '$.LifecyclePolicy') as lifecycle_policy, + JSON_EXTRACT(detail.Properties, '$.RepositoryName') as repository_name, + JSON_EXTRACT(detail.Properties, '$.RepositoryPolicyText') as repository_policy_text, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RepositoryUri') as repository_uri, + JSON_EXTRACT(detail.Properties, '$.ImageTagMutability') as image_tag_mutability, + JSON_EXTRACT(detail.Properties, '$.ImageScanningConfiguration') as image_scanning_configuration, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_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::ECR::Repository' + AND detail.data__TypeName = 'AWS::ECR::Repository' + 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, 'EmptyOnDelete') as empty_on_delete, + json_extract_path_text(detail.Properties, 'LifecyclePolicy') as lifecycle_policy, + json_extract_path_text(detail.Properties, 'RepositoryName') as repository_name, + json_extract_path_text(detail.Properties, 'RepositoryPolicyText') as repository_policy_text, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RepositoryUri') as repository_uri, + json_extract_path_text(detail.Properties, 'ImageTagMutability') as image_tag_mutability, + json_extract_path_text(detail.Properties, 'ImageScanningConfiguration') as image_scanning_configuration, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_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::ECR::Repository' + AND detail.data__TypeName = 'AWS::ECR::Repository' + AND listing.region = 'us-east-1' repository_creation_templates: name: repository_creation_templates id: aws.ecr.repository_creation_templates @@ -1814,10 +2167,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Prefix') as prefix - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RepositoryCreationTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Prefix') as prefix, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ImageTagMutability') as image_tag_mutability, + JSON_EXTRACT(detail.Properties, '$.RepositoryPolicy') as repository_policy, + JSON_EXTRACT(detail.Properties, '$.LifecyclePolicy') as lifecycle_policy, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags, + JSON_EXTRACT(detail.Properties, '$.AppliedFor') as applied_for, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::ECR::RepositoryCreationTemplate' + AND detail.data__TypeName = 'AWS::ECR::RepositoryCreationTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1841,10 +2208,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Prefix') as prefix - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RepositoryCreationTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Prefix') as prefix, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ImageTagMutability') as image_tag_mutability, + json_extract_path_text(detail.Properties, 'RepositoryPolicy') as repository_policy, + json_extract_path_text(detail.Properties, 'LifecyclePolicy') as lifecycle_policy, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags, + json_extract_path_text(detail.Properties, 'AppliedFor') as applied_for, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::ECR::RepositoryCreationTemplate' + AND detail.data__TypeName = 'AWS::ECR::RepositoryCreationTemplate' + AND listing.region = 'us-east-1' + repository_creation_templates_list_only: + name: repository_creation_templates_list_only + id: aws.ecr.repository_creation_templates_list_only + x-cfn-schema-name: RepositoryCreationTemplate + x-cfn-type-name: AWS::ECR::RepositoryCreationTemplate + x-identifiers: + - Prefix + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Prefix') as prefix + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RepositoryCreationTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Prefix') as prefix + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECR::RepositoryCreationTemplate' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ecs.yaml b/providers/src/aws/v00.00.00000/services/ecs.yaml index 1300e80d..07a42249 100644 --- a/providers/src/aws/v00.00.00000/services/ecs.yaml +++ b/providers/src/aws/v00.00.00000/services/ecs.yaml @@ -3117,10 +3117,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Cluster') as cluster - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::ClusterCapacityProviderAssociations' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CapacityProviders') as capacity_providers, + JSON_EXTRACT(detail.Properties, '$.Cluster') as cluster, + JSON_EXTRACT(detail.Properties, '$.DefaultCapacityProviderStrategy') as default_capacity_provider_strategy + 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::ECS::ClusterCapacityProviderAssociations' + AND detail.data__TypeName = 'AWS::ECS::ClusterCapacityProviderAssociations' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3137,10 +3144,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Cluster') as cluster - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::ClusterCapacityProviderAssociations' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CapacityProviders') as capacity_providers, + json_extract_path_text(detail.Properties, 'Cluster') as cluster, + json_extract_path_text(detail.Properties, 'DefaultCapacityProviderStrategy') as default_capacity_provider_strategy + 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::ECS::ClusterCapacityProviderAssociations' + AND detail.data__TypeName = 'AWS::ECS::ClusterCapacityProviderAssociations' + AND listing.region = 'us-east-1' + cluster_capacity_provider_associations_list_only: + name: cluster_capacity_provider_associations_list_only + id: aws.ecs.cluster_capacity_provider_associations_list_only + x-cfn-schema-name: ClusterCapacityProviderAssociations + x-cfn-type-name: AWS::ECS::ClusterCapacityProviderAssociations + x-identifiers: + - Cluster + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Cluster') as cluster + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::ClusterCapacityProviderAssociations' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Cluster') as cluster + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::ClusterCapacityProviderAssociations' + AND region = 'us-east-1' primary_task_sets: name: primary_task_sets id: aws.ecs.primary_task_sets @@ -3280,11 +3325,39 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServiceArn') as service_arn, - JSON_EXTRACT(Properties, '$.Cluster') as cluster - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::Service' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.CapacityProviderStrategy') as capacity_provider_strategy, + JSON_EXTRACT(detail.Properties, '$.Cluster') as cluster, + JSON_EXTRACT(detail.Properties, '$.DeploymentConfiguration') as deployment_configuration, + JSON_EXTRACT(detail.Properties, '$.DeploymentController') as deployment_controller, + JSON_EXTRACT(detail.Properties, '$.DesiredCount') as desired_count, + JSON_EXTRACT(detail.Properties, '$.EnableECSManagedTags') as enable_ecs_managed_tags, + JSON_EXTRACT(detail.Properties, '$.EnableExecuteCommand') as enable_execute_command, + JSON_EXTRACT(detail.Properties, '$.HealthCheckGracePeriodSeconds') as health_check_grace_period_seconds, + JSON_EXTRACT(detail.Properties, '$.LaunchType') as launch_type, + JSON_EXTRACT(detail.Properties, '$.LoadBalancers') as load_balancers, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_configuration, + JSON_EXTRACT(detail.Properties, '$.PlacementConstraints') as placement_constraints, + JSON_EXTRACT(detail.Properties, '$.PlacementStrategies') as placement_strategies, + JSON_EXTRACT(detail.Properties, '$.PlatformVersion') as platform_version, + JSON_EXTRACT(detail.Properties, '$.PropagateTags') as propagate_tags, + JSON_EXTRACT(detail.Properties, '$.Role') as role, + JSON_EXTRACT(detail.Properties, '$.SchedulingStrategy') as scheduling_strategy, + JSON_EXTRACT(detail.Properties, '$.ServiceConnectConfiguration') as service_connect_configuration, + JSON_EXTRACT(detail.Properties, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.ServiceRegistries') as service_registries, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TaskDefinition') as task_definition, + JSON_EXTRACT(detail.Properties, '$.VolumeConfigurations') as volume_configurations + 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::ECS::Service' + AND detail.data__TypeName = 'AWS::ECS::Service' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3323,11 +3396,164 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServiceArn') as service_arn, - json_extract_path_text(Properties, 'Cluster') as cluster - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::Service' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'CapacityProviderStrategy') as capacity_provider_strategy, + json_extract_path_text(detail.Properties, 'Cluster') as cluster, + json_extract_path_text(detail.Properties, 'DeploymentConfiguration') as deployment_configuration, + json_extract_path_text(detail.Properties, 'DeploymentController') as deployment_controller, + json_extract_path_text(detail.Properties, 'DesiredCount') as desired_count, + json_extract_path_text(detail.Properties, 'EnableECSManagedTags') as enable_ecs_managed_tags, + json_extract_path_text(detail.Properties, 'EnableExecuteCommand') as enable_execute_command, + json_extract_path_text(detail.Properties, 'HealthCheckGracePeriodSeconds') as health_check_grace_period_seconds, + json_extract_path_text(detail.Properties, 'LaunchType') as launch_type, + json_extract_path_text(detail.Properties, 'LoadBalancers') as load_balancers, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_configuration, + json_extract_path_text(detail.Properties, 'PlacementConstraints') as placement_constraints, + json_extract_path_text(detail.Properties, 'PlacementStrategies') as placement_strategies, + json_extract_path_text(detail.Properties, 'PlatformVersion') as platform_version, + json_extract_path_text(detail.Properties, 'PropagateTags') as propagate_tags, + json_extract_path_text(detail.Properties, 'Role') as role, + json_extract_path_text(detail.Properties, 'SchedulingStrategy') as scheduling_strategy, + json_extract_path_text(detail.Properties, 'ServiceConnectConfiguration') as service_connect_configuration, + json_extract_path_text(detail.Properties, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'ServiceRegistries') as service_registries, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TaskDefinition') as task_definition, + json_extract_path_text(detail.Properties, 'VolumeConfigurations') as volume_configurations + 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::ECS::Service' + AND detail.data__TypeName = 'AWS::ECS::Service' + AND listing.region = 'us-east-1' + services_list_only: + name: services_list_only + id: aws.ecs.services_list_only + x-cfn-schema-name: Service + x-cfn-type-name: AWS::ECS::Service + x-identifiers: + - ServiceArn + - Cluster + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(Properties, '$.Cluster') as cluster + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::Service' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServiceArn') as service_arn, + json_extract_path_text(Properties, 'Cluster') as cluster + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::Service' + AND region = 'us-east-1' + service_tags: + name: service_tags + id: aws.ecs.service_tags + x-cfn-schema-name: Service + x-cfn-type-name: AWS::ECS::Service + 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, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.CapacityProviderStrategy') as capacity_provider_strategy, + JSON_EXTRACT(detail.Properties, '$.Cluster') as cluster, + JSON_EXTRACT(detail.Properties, '$.DeploymentConfiguration') as deployment_configuration, + JSON_EXTRACT(detail.Properties, '$.DeploymentController') as deployment_controller, + JSON_EXTRACT(detail.Properties, '$.DesiredCount') as desired_count, + JSON_EXTRACT(detail.Properties, '$.EnableECSManagedTags') as enable_ecs_managed_tags, + JSON_EXTRACT(detail.Properties, '$.EnableExecuteCommand') as enable_execute_command, + JSON_EXTRACT(detail.Properties, '$.HealthCheckGracePeriodSeconds') as health_check_grace_period_seconds, + JSON_EXTRACT(detail.Properties, '$.LaunchType') as launch_type, + JSON_EXTRACT(detail.Properties, '$.LoadBalancers') as load_balancers, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_configuration, + JSON_EXTRACT(detail.Properties, '$.PlacementConstraints') as placement_constraints, + JSON_EXTRACT(detail.Properties, '$.PlacementStrategies') as placement_strategies, + JSON_EXTRACT(detail.Properties, '$.PlatformVersion') as platform_version, + JSON_EXTRACT(detail.Properties, '$.PropagateTags') as propagate_tags, + JSON_EXTRACT(detail.Properties, '$.Role') as role, + JSON_EXTRACT(detail.Properties, '$.SchedulingStrategy') as scheduling_strategy, + JSON_EXTRACT(detail.Properties, '$.ServiceConnectConfiguration') as service_connect_configuration, + JSON_EXTRACT(detail.Properties, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.ServiceRegistries') as service_registries, + JSON_EXTRACT(detail.Properties, '$.TaskDefinition') as task_definition, + JSON_EXTRACT(detail.Properties, '$.VolumeConfigurations') as volume_configurations + 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::ECS::Service' + AND detail.data__TypeName = 'AWS::ECS::Service' + 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, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'CapacityProviderStrategy') as capacity_provider_strategy, + json_extract_path_text(detail.Properties, 'Cluster') as cluster, + json_extract_path_text(detail.Properties, 'DeploymentConfiguration') as deployment_configuration, + json_extract_path_text(detail.Properties, 'DeploymentController') as deployment_controller, + json_extract_path_text(detail.Properties, 'DesiredCount') as desired_count, + json_extract_path_text(detail.Properties, 'EnableECSManagedTags') as enable_ecs_managed_tags, + json_extract_path_text(detail.Properties, 'EnableExecuteCommand') as enable_execute_command, + json_extract_path_text(detail.Properties, 'HealthCheckGracePeriodSeconds') as health_check_grace_period_seconds, + json_extract_path_text(detail.Properties, 'LaunchType') as launch_type, + json_extract_path_text(detail.Properties, 'LoadBalancers') as load_balancers, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_configuration, + json_extract_path_text(detail.Properties, 'PlacementConstraints') as placement_constraints, + json_extract_path_text(detail.Properties, 'PlacementStrategies') as placement_strategies, + json_extract_path_text(detail.Properties, 'PlatformVersion') as platform_version, + json_extract_path_text(detail.Properties, 'PropagateTags') as propagate_tags, + json_extract_path_text(detail.Properties, 'Role') as role, + json_extract_path_text(detail.Properties, 'SchedulingStrategy') as scheduling_strategy, + json_extract_path_text(detail.Properties, 'ServiceConnectConfiguration') as service_connect_configuration, + json_extract_path_text(detail.Properties, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'ServiceRegistries') as service_registries, + json_extract_path_text(detail.Properties, 'TaskDefinition') as task_definition, + json_extract_path_text(detail.Properties, 'VolumeConfigurations') as volume_configurations + 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::ECS::Service' + AND detail.data__TypeName = 'AWS::ECS::Service' + AND listing.region = 'us-east-1' task_definitions: name: task_definitions id: aws.ecs.task_definitions @@ -3416,10 +3642,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TaskDefinitionArn') as task_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::TaskDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TaskDefinitionArn') as task_definition_arn, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.ContainerDefinitions') as container_definitions, + JSON_EXTRACT(detail.Properties, '$.Cpu') as cpu, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.EphemeralStorage') as ephemeral_storage, + JSON_EXTRACT(detail.Properties, '$.InferenceAccelerators') as inference_accelerators, + JSON_EXTRACT(detail.Properties, '$.Memory') as memory, + JSON_EXTRACT(detail.Properties, '$.NetworkMode') as network_mode, + JSON_EXTRACT(detail.Properties, '$.PlacementConstraints') as placement_constraints, + JSON_EXTRACT(detail.Properties, '$.ProxyConfiguration') as proxy_configuration, + JSON_EXTRACT(detail.Properties, '$.RequiresCompatibilities') as requires_compatibilities, + JSON_EXTRACT(detail.Properties, '$.TaskRoleArn') as task_role_arn, + JSON_EXTRACT(detail.Properties, '$.Volumes') as volumes, + JSON_EXTRACT(detail.Properties, '$.PidMode') as pid_mode, + JSON_EXTRACT(detail.Properties, '$.RuntimePlatform') as runtime_platform, + JSON_EXTRACT(detail.Properties, '$.IpcMode') as ipc_mode, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ECS::TaskDefinition' + AND detail.data__TypeName = 'AWS::ECS::TaskDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3451,10 +3699,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TaskDefinitionArn') as task_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::TaskDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TaskDefinitionArn') as task_definition_arn, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'ContainerDefinitions') as container_definitions, + json_extract_path_text(detail.Properties, 'Cpu') as cpu, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'EphemeralStorage') as ephemeral_storage, + json_extract_path_text(detail.Properties, 'InferenceAccelerators') as inference_accelerators, + json_extract_path_text(detail.Properties, 'Memory') as memory, + json_extract_path_text(detail.Properties, 'NetworkMode') as network_mode, + json_extract_path_text(detail.Properties, 'PlacementConstraints') as placement_constraints, + json_extract_path_text(detail.Properties, 'ProxyConfiguration') as proxy_configuration, + json_extract_path_text(detail.Properties, 'RequiresCompatibilities') as requires_compatibilities, + json_extract_path_text(detail.Properties, 'TaskRoleArn') as task_role_arn, + json_extract_path_text(detail.Properties, 'Volumes') as volumes, + json_extract_path_text(detail.Properties, 'PidMode') as pid_mode, + json_extract_path_text(detail.Properties, 'RuntimePlatform') as runtime_platform, + json_extract_path_text(detail.Properties, 'IpcMode') as ipc_mode, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ECS::TaskDefinition' + AND detail.data__TypeName = 'AWS::ECS::TaskDefinition' + AND listing.region = 'us-east-1' + task_definitions_list_only: + name: task_definitions_list_only + id: aws.ecs.task_definitions_list_only + x-cfn-schema-name: TaskDefinition + x-cfn-type-name: AWS::ECS::TaskDefinition + x-identifiers: + - TaskDefinitionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TaskDefinitionArn') as task_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::TaskDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TaskDefinitionArn') as task_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ECS::TaskDefinition' + AND region = 'us-east-1' + task_definition_tags: + name: task_definition_tags + id: aws.ecs.task_definition_tags + x-cfn-schema-name: TaskDefinition + x-cfn-type-name: AWS::ECS::TaskDefinition + 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, '$.TaskDefinitionArn') as task_definition_arn, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.ContainerDefinitions') as container_definitions, + JSON_EXTRACT(detail.Properties, '$.Cpu') as cpu, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.EphemeralStorage') as ephemeral_storage, + JSON_EXTRACT(detail.Properties, '$.InferenceAccelerators') as inference_accelerators, + JSON_EXTRACT(detail.Properties, '$.Memory') as memory, + JSON_EXTRACT(detail.Properties, '$.NetworkMode') as network_mode, + JSON_EXTRACT(detail.Properties, '$.PlacementConstraints') as placement_constraints, + JSON_EXTRACT(detail.Properties, '$.ProxyConfiguration') as proxy_configuration, + JSON_EXTRACT(detail.Properties, '$.RequiresCompatibilities') as requires_compatibilities, + JSON_EXTRACT(detail.Properties, '$.TaskRoleArn') as task_role_arn, + JSON_EXTRACT(detail.Properties, '$.Volumes') as volumes, + JSON_EXTRACT(detail.Properties, '$.PidMode') as pid_mode, + JSON_EXTRACT(detail.Properties, '$.RuntimePlatform') as runtime_platform, + JSON_EXTRACT(detail.Properties, '$.IpcMode') as ipc_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::ECS::TaskDefinition' + AND detail.data__TypeName = 'AWS::ECS::TaskDefinition' + 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, 'TaskDefinitionArn') as task_definition_arn, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'ContainerDefinitions') as container_definitions, + json_extract_path_text(detail.Properties, 'Cpu') as cpu, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'EphemeralStorage') as ephemeral_storage, + json_extract_path_text(detail.Properties, 'InferenceAccelerators') as inference_accelerators, + json_extract_path_text(detail.Properties, 'Memory') as memory, + json_extract_path_text(detail.Properties, 'NetworkMode') as network_mode, + json_extract_path_text(detail.Properties, 'PlacementConstraints') as placement_constraints, + json_extract_path_text(detail.Properties, 'ProxyConfiguration') as proxy_configuration, + json_extract_path_text(detail.Properties, 'RequiresCompatibilities') as requires_compatibilities, + json_extract_path_text(detail.Properties, 'TaskRoleArn') as task_role_arn, + json_extract_path_text(detail.Properties, 'Volumes') as volumes, + json_extract_path_text(detail.Properties, 'PidMode') as pid_mode, + json_extract_path_text(detail.Properties, 'RuntimePlatform') as runtime_platform, + json_extract_path_text(detail.Properties, 'IpcMode') as ipc_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::ECS::TaskDefinition' + AND detail.data__TypeName = 'AWS::ECS::TaskDefinition' + AND listing.region = 'us-east-1' task_sets: name: task_sets id: aws.ecs.task_sets diff --git a/providers/src/aws/v00.00.00000/services/efs.yaml b/providers/src/aws/v00.00.00000/services/efs.yaml index ddb3c502..b2b0f93c 100644 --- a/providers/src/aws/v00.00.00000/services/efs.yaml +++ b/providers/src/aws/v00.00.00000/services/efs.yaml @@ -1107,10 +1107,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccessPointId') as access_point_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::AccessPoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessPointId') as access_point_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.AccessPointTags') as access_point_tags, + JSON_EXTRACT(detail.Properties, '$.FileSystemId') as file_system_id, + JSON_EXTRACT(detail.Properties, '$.PosixUser') as posix_user, + JSON_EXTRACT(detail.Properties, '$.RootDirectory') as root_directory + 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::EFS::AccessPoint' + AND detail.data__TypeName = 'AWS::EFS::AccessPoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1131,10 +1142,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccessPointId') as access_point_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::AccessPoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessPointId') as access_point_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'AccessPointTags') as access_point_tags, + json_extract_path_text(detail.Properties, 'FileSystemId') as file_system_id, + json_extract_path_text(detail.Properties, 'PosixUser') as posix_user, + json_extract_path_text(detail.Properties, 'RootDirectory') as root_directory + 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::EFS::AccessPoint' + AND detail.data__TypeName = 'AWS::EFS::AccessPoint' + AND listing.region = 'us-east-1' + access_points_list_only: + name: access_points_list_only + id: aws.efs.access_points_list_only + x-cfn-schema-name: AccessPoint + x-cfn-type-name: AWS::EFS::AccessPoint + x-identifiers: + - AccessPointId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccessPointId') as access_point_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::AccessPoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccessPointId') as access_point_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::AccessPoint' + AND region = 'us-east-1' file_systems: name: file_systems id: aws.efs.file_systems @@ -1220,10 +1273,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FileSystemId') as file_system_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::FileSystem' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FileSystemId') as file_system_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Encrypted') as encrypted, + JSON_EXTRACT(detail.Properties, '$.FileSystemTags') as file_system_tags, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.LifecyclePolicies') as lifecycle_policies, + JSON_EXTRACT(detail.Properties, '$.FileSystemProtection') as file_system_protection, + JSON_EXTRACT(detail.Properties, '$.PerformanceMode') as performance_mode, + JSON_EXTRACT(detail.Properties, '$.ProvisionedThroughputInMibps') as provisioned_throughput_in_mibps, + JSON_EXTRACT(detail.Properties, '$.ThroughputMode') as throughput_mode, + JSON_EXTRACT(detail.Properties, '$.FileSystemPolicy') as file_system_policy, + JSON_EXTRACT(detail.Properties, '$.BypassPolicyLockoutSafetyCheck') as bypass_policy_lockout_safety_check, + JSON_EXTRACT(detail.Properties, '$.BackupPolicy') as backup_policy, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZoneName') as availability_zone_name, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfiguration') as replication_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::EFS::FileSystem' + AND detail.data__TypeName = 'AWS::EFS::FileSystem' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1252,10 +1324,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FileSystemId') as file_system_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::FileSystem' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FileSystemId') as file_system_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Encrypted') as encrypted, + json_extract_path_text(detail.Properties, 'FileSystemTags') as file_system_tags, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'LifecyclePolicies') as lifecycle_policies, + json_extract_path_text(detail.Properties, 'FileSystemProtection') as file_system_protection, + json_extract_path_text(detail.Properties, 'PerformanceMode') as performance_mode, + json_extract_path_text(detail.Properties, 'ProvisionedThroughputInMibps') as provisioned_throughput_in_mibps, + json_extract_path_text(detail.Properties, 'ThroughputMode') as throughput_mode, + json_extract_path_text(detail.Properties, 'FileSystemPolicy') as file_system_policy, + json_extract_path_text(detail.Properties, 'BypassPolicyLockoutSafetyCheck') as bypass_policy_lockout_safety_check, + json_extract_path_text(detail.Properties, 'BackupPolicy') as backup_policy, + json_extract_path_text(detail.Properties, 'AvailabilityZoneName') as availability_zone_name, + json_extract_path_text(detail.Properties, 'ReplicationConfiguration') as replication_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::EFS::FileSystem' + AND detail.data__TypeName = 'AWS::EFS::FileSystem' + AND listing.region = 'us-east-1' + file_systems_list_only: + name: file_systems_list_only + id: aws.efs.file_systems_list_only + x-cfn-schema-name: FileSystem + x-cfn-type-name: AWS::EFS::FileSystem + x-identifiers: + - FileSystemId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FileSystemId') as file_system_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::FileSystem' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FileSystemId') as file_system_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::FileSystem' + AND region = 'us-east-1' mount_targets: name: mount_targets id: aws.efs.mount_targets @@ -1331,10 +1453,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::MountTarget' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.IpAddress') as ip_address, + JSON_EXTRACT(detail.Properties, '$.FileSystemId') as file_system_id, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id + 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::EFS::MountTarget' + AND detail.data__TypeName = 'AWS::EFS::MountTarget' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1353,10 +1484,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::MountTarget' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'IpAddress') as ip_address, + json_extract_path_text(detail.Properties, 'FileSystemId') as file_system_id, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id + 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::EFS::MountTarget' + AND detail.data__TypeName = 'AWS::EFS::MountTarget' + AND listing.region = 'us-east-1' + mount_targets_list_only: + name: mount_targets_list_only + id: aws.efs.mount_targets_list_only + x-cfn-schema-name: MountTarget + x-cfn-type-name: AWS::EFS::MountTarget + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::MountTarget' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EFS::MountTarget' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/eks.yaml b/providers/src/aws/v00.00.00000/services/eks.yaml index 5cbfeabf..19492b49 100644 --- a/providers/src/aws/v00.00.00000/services/eks.yaml +++ b/providers/src/aws/v00.00.00000/services/eks.yaml @@ -1957,11 +1957,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PrincipalArn') as principal_arn, - JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::AccessEntry' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.PrincipalArn') as principal_arn, + JSON_EXTRACT(detail.Properties, '$.Username') as username, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AccessEntryArn') as access_entry_arn, + JSON_EXTRACT(detail.Properties, '$.KubernetesGroups') as kubernetes_groups, + JSON_EXTRACT(detail.Properties, '$.AccessPolicies') as access_policies, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::EKS::AccessEntry' + AND detail.data__TypeName = 'AWS::EKS::AccessEntry' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1983,11 +1994,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PrincipalArn') as principal_arn, - json_extract_path_text(Properties, 'ClusterName') as cluster_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::AccessEntry' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'PrincipalArn') as principal_arn, + json_extract_path_text(detail.Properties, 'Username') as username, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AccessEntryArn') as access_entry_arn, + json_extract_path_text(detail.Properties, 'KubernetesGroups') as kubernetes_groups, + json_extract_path_text(detail.Properties, 'AccessPolicies') as access_policies, + json_extract_path_text(detail.Properties, 'Type') as type + 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::EKS::AccessEntry' + AND detail.data__TypeName = 'AWS::EKS::AccessEntry' + AND listing.region = 'us-east-1' + access_entries_list_only: + name: access_entries_list_only + id: aws.eks.access_entries_list_only + x-cfn-schema-name: AccessEntry + x-cfn-type-name: AWS::EKS::AccessEntry + x-identifiers: + - PrincipalArn + - ClusterName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PrincipalArn') as principal_arn, + JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::AccessEntry' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PrincipalArn') as principal_arn, + json_extract_path_text(Properties, 'ClusterName') as cluster_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::AccessEntry' + AND region = 'us-east-1' + access_entry_tags: + name: access_entry_tags + id: aws.eks.access_entry_tags + x-cfn-schema-name: AccessEntry + x-cfn-type-name: AWS::EKS::AccessEntry + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.PrincipalArn') as principal_arn, + JSON_EXTRACT(detail.Properties, '$.Username') as username, + JSON_EXTRACT(detail.Properties, '$.AccessEntryArn') as access_entry_arn, + JSON_EXTRACT(detail.Properties, '$.KubernetesGroups') as kubernetes_groups, + JSON_EXTRACT(detail.Properties, '$.AccessPolicies') as access_policies, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::EKS::AccessEntry' + AND detail.data__TypeName = 'AWS::EKS::AccessEntry' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'PrincipalArn') as principal_arn, + json_extract_path_text(detail.Properties, 'Username') as username, + json_extract_path_text(detail.Properties, 'AccessEntryArn') as access_entry_arn, + json_extract_path_text(detail.Properties, 'KubernetesGroups') as kubernetes_groups, + json_extract_path_text(detail.Properties, 'AccessPolicies') as access_policies, + json_extract_path_text(detail.Properties, 'Type') as type + 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::EKS::AccessEntry' + AND detail.data__TypeName = 'AWS::EKS::AccessEntry' + AND listing.region = 'us-east-1' pod_identity_associations: name: pod_identity_associations id: aws.eks.pod_identity_associations @@ -2065,10 +2178,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssociationArn') as association_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::PodIdentityAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.ServiceAccount') as service_account, + JSON_EXTRACT(detail.Properties, '$.AssociationArn') as association_arn, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EKS::PodIdentityAssociation' + AND detail.data__TypeName = 'AWS::EKS::PodIdentityAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2089,10 +2213,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssociationArn') as association_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::PodIdentityAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'ServiceAccount') as service_account, + json_extract_path_text(detail.Properties, 'AssociationArn') as association_arn, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EKS::PodIdentityAssociation' + AND detail.data__TypeName = 'AWS::EKS::PodIdentityAssociation' + AND listing.region = 'us-east-1' + pod_identity_associations_list_only: + name: pod_identity_associations_list_only + id: aws.eks.pod_identity_associations_list_only + x-cfn-schema-name: PodIdentityAssociation + x-cfn-type-name: AWS::EKS::PodIdentityAssociation + x-identifiers: + - AssociationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssociationArn') as association_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::PodIdentityAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssociationArn') as association_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::PodIdentityAssociation' + AND region = 'us-east-1' + pod_identity_association_tags: + name: pod_identity_association_tags + id: aws.eks.pod_identity_association_tags + x-cfn-schema-name: PodIdentityAssociation + x-cfn-type-name: AWS::EKS::PodIdentityAssociation + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.ServiceAccount') as service_account, + JSON_EXTRACT(detail.Properties, '$.AssociationArn') as association_arn, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id + 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::EKS::PodIdentityAssociation' + AND detail.data__TypeName = 'AWS::EKS::PodIdentityAssociation' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'ServiceAccount') as service_account, + json_extract_path_text(detail.Properties, 'AssociationArn') as association_arn, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id + 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::EKS::PodIdentityAssociation' + AND detail.data__TypeName = 'AWS::EKS::PodIdentityAssociation' + AND listing.region = 'us-east-1' addons: name: addons id: aws.eks.addons @@ -2174,11 +2395,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name, - JSON_EXTRACT(Properties, '$.AddonName') as addon_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Addon' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.AddonName') as addon_name, + JSON_EXTRACT(detail.Properties, '$.AddonVersion') as addon_version, + JSON_EXTRACT(detail.Properties, '$.PreserveOnDelete') as preserve_on_delete, + JSON_EXTRACT(detail.Properties, '$.ResolveConflicts') as resolve_conflicts, + JSON_EXTRACT(detail.Properties, '$.ServiceAccountRoleArn') as service_account_role_arn, + JSON_EXTRACT(detail.Properties, '$.PodIdentityAssociations') as pod_identity_associations, + JSON_EXTRACT(detail.Properties, '$.ConfigurationValues') as configuration_values, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EKS::Addon' + AND detail.data__TypeName = 'AWS::EKS::Addon' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2202,11 +2436,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterName') as cluster_name, - json_extract_path_text(Properties, 'AddonName') as addon_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Addon' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'AddonName') as addon_name, + json_extract_path_text(detail.Properties, 'AddonVersion') as addon_version, + json_extract_path_text(detail.Properties, 'PreserveOnDelete') as preserve_on_delete, + json_extract_path_text(detail.Properties, 'ResolveConflicts') as resolve_conflicts, + json_extract_path_text(detail.Properties, 'ServiceAccountRoleArn') as service_account_role_arn, + json_extract_path_text(detail.Properties, 'PodIdentityAssociations') as pod_identity_associations, + json_extract_path_text(detail.Properties, 'ConfigurationValues') as configuration_values, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EKS::Addon' + AND detail.data__TypeName = 'AWS::EKS::Addon' + AND listing.region = 'us-east-1' + addons_list_only: + name: addons_list_only + id: aws.eks.addons_list_only + x-cfn-schema-name: Addon + x-cfn-type-name: AWS::EKS::Addon + x-identifiers: + - ClusterName + - AddonName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(Properties, '$.AddonName') as addon_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Addon' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterName') as cluster_name, + json_extract_path_text(Properties, 'AddonName') as addon_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Addon' + AND region = 'us-east-1' + addon_tags: + name: addon_tags + id: aws.eks.addon_tags + x-cfn-schema-name: Addon + x-cfn-type-name: AWS::EKS::Addon + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.AddonName') as addon_name, + JSON_EXTRACT(detail.Properties, '$.AddonVersion') as addon_version, + JSON_EXTRACT(detail.Properties, '$.PreserveOnDelete') as preserve_on_delete, + JSON_EXTRACT(detail.Properties, '$.ResolveConflicts') as resolve_conflicts, + JSON_EXTRACT(detail.Properties, '$.ServiceAccountRoleArn') as service_account_role_arn, + JSON_EXTRACT(detail.Properties, '$.PodIdentityAssociations') as pod_identity_associations, + JSON_EXTRACT(detail.Properties, '$.ConfigurationValues') as configuration_values, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::EKS::Addon' + AND detail.data__TypeName = 'AWS::EKS::Addon' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'AddonName') as addon_name, + json_extract_path_text(detail.Properties, 'AddonVersion') as addon_version, + json_extract_path_text(detail.Properties, 'PreserveOnDelete') as preserve_on_delete, + json_extract_path_text(detail.Properties, 'ResolveConflicts') as resolve_conflicts, + json_extract_path_text(detail.Properties, 'ServiceAccountRoleArn') as service_account_role_arn, + json_extract_path_text(detail.Properties, 'PodIdentityAssociations') as pod_identity_associations, + json_extract_path_text(detail.Properties, 'ConfigurationValues') as configuration_values, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::EKS::Addon' + AND detail.data__TypeName = 'AWS::EKS::Addon' + AND listing.region = 'us-east-1' clusters: name: clusters id: aws.eks.clusters @@ -2294,10 +2636,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Cluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Logging') as logging, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfigKeyArn') as encryption_config_key_arn, + JSON_EXTRACT(detail.Properties, '$.AccessConfig') as access_config, + JSON_EXTRACT(detail.Properties, '$.CertificateAuthorityData') as certificate_authority_data, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfig') as encryption_config, + JSON_EXTRACT(detail.Properties, '$.KubernetesNetworkConfig') as kubernetes_network_config, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.ClusterSecurityGroupId') as cluster_security_group_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.OutpostConfig') as outpost_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ResourcesVpcConfig') as resources_vpc_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.OpenIdConnectIssuerUrl') as open_id_connect_issuer_url + 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::EKS::Cluster' + AND detail.data__TypeName = 'AWS::EKS::Cluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2328,10 +2691,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Cluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Logging') as logging, + json_extract_path_text(detail.Properties, 'EncryptionConfigKeyArn') as encryption_config_key_arn, + json_extract_path_text(detail.Properties, 'AccessConfig') as access_config, + json_extract_path_text(detail.Properties, 'CertificateAuthorityData') as certificate_authority_data, + json_extract_path_text(detail.Properties, 'EncryptionConfig') as encryption_config, + json_extract_path_text(detail.Properties, 'KubernetesNetworkConfig') as kubernetes_network_config, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'ClusterSecurityGroupId') as cluster_security_group_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'OutpostConfig') as outpost_config, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ResourcesVpcConfig') as resources_vpc_config, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'OpenIdConnectIssuerUrl') as open_id_connect_issuer_url + 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::EKS::Cluster' + AND detail.data__TypeName = 'AWS::EKS::Cluster' + AND listing.region = 'us-east-1' + clusters_list_only: + name: clusters_list_only + id: aws.eks.clusters_list_only + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::EKS::Cluster + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Cluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Cluster' + AND region = 'us-east-1' + cluster_tags: + name: cluster_tags + id: aws.eks.cluster_tags + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::EKS::Cluster + 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, '$.Logging') as logging, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfigKeyArn') as encryption_config_key_arn, + JSON_EXTRACT(detail.Properties, '$.AccessConfig') as access_config, + JSON_EXTRACT(detail.Properties, '$.CertificateAuthorityData') as certificate_authority_data, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfig') as encryption_config, + JSON_EXTRACT(detail.Properties, '$.KubernetesNetworkConfig') as kubernetes_network_config, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.ClusterSecurityGroupId') as cluster_security_group_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.OutpostConfig') as outpost_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ResourcesVpcConfig') as resources_vpc_config, + JSON_EXTRACT(detail.Properties, '$.OpenIdConnectIssuerUrl') as open_id_connect_issuer_url + 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::EKS::Cluster' + AND detail.data__TypeName = 'AWS::EKS::Cluster' + 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, 'Logging') as logging, + json_extract_path_text(detail.Properties, 'EncryptionConfigKeyArn') as encryption_config_key_arn, + json_extract_path_text(detail.Properties, 'AccessConfig') as access_config, + json_extract_path_text(detail.Properties, 'CertificateAuthorityData') as certificate_authority_data, + json_extract_path_text(detail.Properties, 'EncryptionConfig') as encryption_config, + json_extract_path_text(detail.Properties, 'KubernetesNetworkConfig') as kubernetes_network_config, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'ClusterSecurityGroupId') as cluster_security_group_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'OutpostConfig') as outpost_config, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ResourcesVpcConfig') as resources_vpc_config, + json_extract_path_text(detail.Properties, 'OpenIdConnectIssuerUrl') as open_id_connect_issuer_url + 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::EKS::Cluster' + AND detail.data__TypeName = 'AWS::EKS::Cluster' + AND listing.region = 'us-east-1' fargate_profiles: name: fargate_profiles id: aws.eks.fargate_profiles @@ -2410,11 +2900,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name, - JSON_EXTRACT(Properties, '$.FargateProfileName') as fargate_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::FargateProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.FargateProfileName') as fargate_profile_name, + JSON_EXTRACT(detail.Properties, '$.PodExecutionRoleArn') as pod_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.Selectors') as selectors, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EKS::FargateProfile' + AND detail.data__TypeName = 'AWS::EKS::FargateProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2435,11 +2935,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterName') as cluster_name, - json_extract_path_text(Properties, 'FargateProfileName') as fargate_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::FargateProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'FargateProfileName') as fargate_profile_name, + json_extract_path_text(detail.Properties, 'PodExecutionRoleArn') as pod_execution_role_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'Selectors') as selectors, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EKS::FargateProfile' + AND detail.data__TypeName = 'AWS::EKS::FargateProfile' + AND listing.region = 'us-east-1' + fargate_profiles_list_only: + name: fargate_profiles_list_only + id: aws.eks.fargate_profiles_list_only + x-cfn-schema-name: FargateProfile + x-cfn-type-name: AWS::EKS::FargateProfile + x-identifiers: + - ClusterName + - FargateProfileName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(Properties, '$.FargateProfileName') as fargate_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::FargateProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterName') as cluster_name, + json_extract_path_text(Properties, 'FargateProfileName') as fargate_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::FargateProfile' + AND region = 'us-east-1' + fargate_profile_tags: + name: fargate_profile_tags + id: aws.eks.fargate_profile_tags + x-cfn-schema-name: FargateProfile + x-cfn-type-name: AWS::EKS::FargateProfile + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.FargateProfileName') as fargate_profile_name, + JSON_EXTRACT(detail.Properties, '$.PodExecutionRoleArn') as pod_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.Selectors') as selectors + 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::EKS::FargateProfile' + AND detail.data__TypeName = 'AWS::EKS::FargateProfile' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'FargateProfileName') as fargate_profile_name, + json_extract_path_text(detail.Properties, 'PodExecutionRoleArn') as pod_execution_role_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'Selectors') as selectors + 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::EKS::FargateProfile' + AND detail.data__TypeName = 'AWS::EKS::FargateProfile' + AND listing.region = 'us-east-1' identity_provider_configs: name: identity_provider_configs id: aws.eks.identity_provider_configs @@ -2518,12 +3117,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IdentityProviderConfigName') as identity_provider_config_name, - JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name, - JSON_EXTRACT(Properties, '$.Type') as type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::IdentityProviderConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderConfigName') as identity_provider_config_name, + JSON_EXTRACT(detail.Properties, '$.Oidc') as oidc, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderConfigArn') as identity_provider_config_arn + 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::EKS::IdentityProviderConfig' + AND detail.data__TypeName = 'AWS::EKS::IdentityProviderConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2543,12 +3150,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IdentityProviderConfigName') as identity_provider_config_name, - json_extract_path_text(Properties, 'ClusterName') as cluster_name, - json_extract_path_text(Properties, 'Type') as type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::IdentityProviderConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'IdentityProviderConfigName') as identity_provider_config_name, + json_extract_path_text(detail.Properties, 'Oidc') as oidc, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'IdentityProviderConfigArn') as identity_provider_config_arn + 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::EKS::IdentityProviderConfig' + AND detail.data__TypeName = 'AWS::EKS::IdentityProviderConfig' + AND listing.region = 'us-east-1' + identity_provider_configs_list_only: + name: identity_provider_configs_list_only + id: aws.eks.identity_provider_configs_list_only + x-cfn-schema-name: IdentityProviderConfig + x-cfn-type-name: AWS::EKS::IdentityProviderConfig + x-identifiers: + - IdentityProviderConfigName + - ClusterName + - Type + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IdentityProviderConfigName') as identity_provider_config_name, + JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(Properties, '$.Type') as type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::IdentityProviderConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IdentityProviderConfigName') as identity_provider_config_name, + json_extract_path_text(Properties, 'ClusterName') as cluster_name, + json_extract_path_text(Properties, 'Type') as type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::IdentityProviderConfig' + AND region = 'us-east-1' + identity_provider_config_tags: + name: identity_provider_config_tags + id: aws.eks.identity_provider_config_tags + x-cfn-schema-name: IdentityProviderConfig + x-cfn-type-name: AWS::EKS::IdentityProviderConfig + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderConfigName') as identity_provider_config_name, + JSON_EXTRACT(detail.Properties, '$.Oidc') as oidc, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderConfigArn') as identity_provider_config_arn + 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::EKS::IdentityProviderConfig' + AND detail.data__TypeName = 'AWS::EKS::IdentityProviderConfig' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'IdentityProviderConfigName') as identity_provider_config_name, + json_extract_path_text(detail.Properties, 'Oidc') as oidc, + json_extract_path_text(detail.Properties, 'IdentityProviderConfigArn') as identity_provider_config_arn + 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::EKS::IdentityProviderConfig' + AND detail.data__TypeName = 'AWS::EKS::IdentityProviderConfig' + AND listing.region = 'us-east-1' nodegroups: name: nodegroups id: aws.eks.nodegroups @@ -2639,10 +3344,34 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Nodegroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AmiType') as ami_type, + JSON_EXTRACT(detail.Properties, '$.CapacityType') as capacity_type, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.DiskSize') as disk_size, + JSON_EXTRACT(detail.Properties, '$.ForceUpdateEnabled') as force_update_enabled, + JSON_EXTRACT(detail.Properties, '$.InstanceTypes') as instance_types, + JSON_EXTRACT(detail.Properties, '$.Labels') as labels, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.NodegroupName') as nodegroup_name, + JSON_EXTRACT(detail.Properties, '$.NodeRole') as node_role, + JSON_EXTRACT(detail.Properties, '$.ReleaseVersion') as release_version, + JSON_EXTRACT(detail.Properties, '$.RemoteAccess') as remote_access, + JSON_EXTRACT(detail.Properties, '$.ScalingConfig') as scaling_config, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Taints') as taints, + JSON_EXTRACT(detail.Properties, '$.UpdateConfig') as update_config, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::EKS::Nodegroup' + AND detail.data__TypeName = 'AWS::EKS::Nodegroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2676,10 +3405,146 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Nodegroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AmiType') as ami_type, + json_extract_path_text(detail.Properties, 'CapacityType') as capacity_type, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'DiskSize') as disk_size, + json_extract_path_text(detail.Properties, 'ForceUpdateEnabled') as force_update_enabled, + json_extract_path_text(detail.Properties, 'InstanceTypes') as instance_types, + json_extract_path_text(detail.Properties, 'Labels') as labels, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'NodegroupName') as nodegroup_name, + json_extract_path_text(detail.Properties, 'NodeRole') as node_role, + json_extract_path_text(detail.Properties, 'ReleaseVersion') as release_version, + json_extract_path_text(detail.Properties, 'RemoteAccess') as remote_access, + json_extract_path_text(detail.Properties, 'ScalingConfig') as scaling_config, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Taints') as taints, + json_extract_path_text(detail.Properties, 'UpdateConfig') as update_config, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::EKS::Nodegroup' + AND detail.data__TypeName = 'AWS::EKS::Nodegroup' + AND listing.region = 'us-east-1' + nodegroups_list_only: + name: nodegroups_list_only + id: aws.eks.nodegroups_list_only + x-cfn-schema-name: Nodegroup + x-cfn-type-name: AWS::EKS::Nodegroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Nodegroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EKS::Nodegroup' + AND region = 'us-east-1' + nodegroup_tags: + name: nodegroup_tags + id: aws.eks.nodegroup_tags + x-cfn-schema-name: Nodegroup + x-cfn-type-name: AWS::EKS::Nodegroup + 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, '$.AmiType') as ami_type, + JSON_EXTRACT(detail.Properties, '$.CapacityType') as capacity_type, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.DiskSize') as disk_size, + JSON_EXTRACT(detail.Properties, '$.ForceUpdateEnabled') as force_update_enabled, + JSON_EXTRACT(detail.Properties, '$.InstanceTypes') as instance_types, + JSON_EXTRACT(detail.Properties, '$.Labels') as labels, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.NodegroupName') as nodegroup_name, + JSON_EXTRACT(detail.Properties, '$.NodeRole') as node_role, + JSON_EXTRACT(detail.Properties, '$.ReleaseVersion') as release_version, + JSON_EXTRACT(detail.Properties, '$.RemoteAccess') as remote_access, + JSON_EXTRACT(detail.Properties, '$.ScalingConfig') as scaling_config, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.Taints') as taints, + JSON_EXTRACT(detail.Properties, '$.UpdateConfig') as update_config, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::EKS::Nodegroup' + AND detail.data__TypeName = 'AWS::EKS::Nodegroup' + 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, 'AmiType') as ami_type, + json_extract_path_text(detail.Properties, 'CapacityType') as capacity_type, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'DiskSize') as disk_size, + json_extract_path_text(detail.Properties, 'ForceUpdateEnabled') as force_update_enabled, + json_extract_path_text(detail.Properties, 'InstanceTypes') as instance_types, + json_extract_path_text(detail.Properties, 'Labels') as labels, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'NodegroupName') as nodegroup_name, + json_extract_path_text(detail.Properties, 'NodeRole') as node_role, + json_extract_path_text(detail.Properties, 'ReleaseVersion') as release_version, + json_extract_path_text(detail.Properties, 'RemoteAccess') as remote_access, + json_extract_path_text(detail.Properties, 'ScalingConfig') as scaling_config, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'Taints') as taints, + json_extract_path_text(detail.Properties, 'UpdateConfig') as update_config, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::EKS::Nodegroup' + AND detail.data__TypeName = 'AWS::EKS::Nodegroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/elasticache.yaml b/providers/src/aws/v00.00.00000/services/elasticache.yaml index cdd3c3d8..cb83735d 100644 --- a/providers/src/aws/v00.00.00000/services/elasticache.yaml +++ b/providers/src/aws/v00.00.00000/services/elasticache.yaml @@ -1484,10 +1484,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalReplicationGroupId') as global_replication_group_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::GlobalReplicationGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GlobalReplicationGroupIdSuffix') as global_replication_group_id_suffix, + JSON_EXTRACT(detail.Properties, '$.AutomaticFailoverEnabled') as automatic_failover_enabled, + JSON_EXTRACT(detail.Properties, '$.CacheNodeType') as cache_node_type, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.CacheParameterGroupName') as cache_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.GlobalNodeGroupCount') as global_node_group_count, + JSON_EXTRACT(detail.Properties, '$.GlobalReplicationGroupDescription') as global_replication_group_description, + JSON_EXTRACT(detail.Properties, '$.GlobalReplicationGroupId') as global_replication_group_id, + JSON_EXTRACT(detail.Properties, '$.Members') as members, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.RegionalConfigurations') as regional_configurations + 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::ElastiCache::GlobalReplicationGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::GlobalReplicationGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1512,10 +1527,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalReplicationGroupId') as global_replication_group_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::GlobalReplicationGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GlobalReplicationGroupIdSuffix') as global_replication_group_id_suffix, + json_extract_path_text(detail.Properties, 'AutomaticFailoverEnabled') as automatic_failover_enabled, + json_extract_path_text(detail.Properties, 'CacheNodeType') as cache_node_type, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'CacheParameterGroupName') as cache_parameter_group_name, + json_extract_path_text(detail.Properties, 'GlobalNodeGroupCount') as global_node_group_count, + json_extract_path_text(detail.Properties, 'GlobalReplicationGroupDescription') as global_replication_group_description, + json_extract_path_text(detail.Properties, 'GlobalReplicationGroupId') as global_replication_group_id, + json_extract_path_text(detail.Properties, 'Members') as members, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'RegionalConfigurations') as regional_configurations + 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::ElastiCache::GlobalReplicationGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::GlobalReplicationGroup' + AND listing.region = 'us-east-1' + global_replication_groups_list_only: + name: global_replication_groups_list_only + id: aws.elasticache.global_replication_groups_list_only + x-cfn-schema-name: GlobalReplicationGroup + x-cfn-type-name: AWS::ElastiCache::GlobalReplicationGroup + x-identifiers: + - GlobalReplicationGroupId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalReplicationGroupId') as global_replication_group_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::GlobalReplicationGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalReplicationGroupId') as global_replication_group_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::GlobalReplicationGroup' + AND region = 'us-east-1' parameter_groups: name: parameter_groups id: aws.elasticache.parameter_groups @@ -1591,10 +1652,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CacheParameterGroupName') as cache_parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ParameterGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Properties') as properties, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CacheParameterGroupName') as cache_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.CacheParameterGroupFamily') as cache_parameter_group_family + 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::ElastiCache::ParameterGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::ParameterGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1613,10 +1683,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CacheParameterGroupName') as cache_parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ParameterGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Properties') as properties, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CacheParameterGroupName') as cache_parameter_group_name, + json_extract_path_text(detail.Properties, 'CacheParameterGroupFamily') as cache_parameter_group_family + 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::ElastiCache::ParameterGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::ParameterGroup' + AND listing.region = 'us-east-1' + parameter_groups_list_only: + name: parameter_groups_list_only + id: aws.elasticache.parameter_groups_list_only + x-cfn-schema-name: ParameterGroup + x-cfn-type-name: AWS::ElastiCache::ParameterGroup + x-identifiers: + - CacheParameterGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CacheParameterGroupName') as cache_parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ParameterGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CacheParameterGroupName') as cache_parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ParameterGroup' + AND region = 'us-east-1' + parameter_group_tags: + name: parameter_group_tags + id: aws.elasticache.parameter_group_tags + x-cfn-schema-name: ParameterGroup + x-cfn-type-name: AWS::ElastiCache::ParameterGroup + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Properties') as properties, + JSON_EXTRACT(detail.Properties, '$.CacheParameterGroupName') as cache_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.CacheParameterGroupFamily') as cache_parameter_group_family + 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::ElastiCache::ParameterGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::ParameterGroup' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Properties') as properties, + json_extract_path_text(detail.Properties, 'CacheParameterGroupName') as cache_parameter_group_name, + json_extract_path_text(detail.Properties, 'CacheParameterGroupFamily') as cache_parameter_group_family + 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::ElastiCache::ParameterGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::ParameterGroup' + AND listing.region = 'us-east-1' serverless_caches: name: serverless_caches id: aws.elasticache.serverless_caches @@ -1707,10 +1868,34 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServerlessCacheName') as serverless_cache_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ServerlessCache' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ServerlessCacheName') as serverless_cache_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.MajorEngineVersion') as major_engine_version, + JSON_EXTRACT(detail.Properties, '$.FullEngineVersion') as full_engine_version, + JSON_EXTRACT(detail.Properties, '$.CacheUsageLimits') as cache_usage_limits, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SnapshotArnsToRestore') as snapshot_arns_to_restore, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UserGroupId') as user_group_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.SnapshotRetentionLimit') as snapshot_retention_limit, + JSON_EXTRACT(detail.Properties, '$.DailySnapshotTime') as daily_snapshot_time, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.ReaderEndpoint') as reader_endpoint, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotName') as final_snapshot_name + 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::ElastiCache::ServerlessCache' + AND detail.data__TypeName = 'AWS::ElastiCache::ServerlessCache' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1744,10 +1929,146 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServerlessCacheName') as serverless_cache_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ServerlessCache' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ServerlessCacheName') as serverless_cache_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'MajorEngineVersion') as major_engine_version, + json_extract_path_text(detail.Properties, 'FullEngineVersion') as full_engine_version, + json_extract_path_text(detail.Properties, 'CacheUsageLimits') as cache_usage_limits, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SnapshotArnsToRestore') as snapshot_arns_to_restore, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UserGroupId') as user_group_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'SnapshotRetentionLimit') as snapshot_retention_limit, + json_extract_path_text(detail.Properties, 'DailySnapshotTime') as daily_snapshot_time, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'ReaderEndpoint') as reader_endpoint, + json_extract_path_text(detail.Properties, 'ARN') as arn, + json_extract_path_text(detail.Properties, 'FinalSnapshotName') as final_snapshot_name + 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::ElastiCache::ServerlessCache' + AND detail.data__TypeName = 'AWS::ElastiCache::ServerlessCache' + AND listing.region = 'us-east-1' + serverless_caches_list_only: + name: serverless_caches_list_only + id: aws.elasticache.serverless_caches_list_only + x-cfn-schema-name: ServerlessCache + x-cfn-type-name: AWS::ElastiCache::ServerlessCache + x-identifiers: + - ServerlessCacheName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServerlessCacheName') as serverless_cache_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ServerlessCache' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServerlessCacheName') as serverless_cache_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::ServerlessCache' + AND region = 'us-east-1' + serverless_cache_tags: + name: serverless_cache_tags + id: aws.elasticache.serverless_cache_tags + x-cfn-schema-name: ServerlessCache + x-cfn-type-name: AWS::ElastiCache::ServerlessCache + 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, '$.ServerlessCacheName') as serverless_cache_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.MajorEngineVersion') as major_engine_version, + JSON_EXTRACT(detail.Properties, '$.FullEngineVersion') as full_engine_version, + JSON_EXTRACT(detail.Properties, '$.CacheUsageLimits') as cache_usage_limits, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SnapshotArnsToRestore') as snapshot_arns_to_restore, + JSON_EXTRACT(detail.Properties, '$.UserGroupId') as user_group_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.SnapshotRetentionLimit') as snapshot_retention_limit, + JSON_EXTRACT(detail.Properties, '$.DailySnapshotTime') as daily_snapshot_time, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.ReaderEndpoint') as reader_endpoint, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotName') as final_snapshot_name + 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::ElastiCache::ServerlessCache' + AND detail.data__TypeName = 'AWS::ElastiCache::ServerlessCache' + 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, 'ServerlessCacheName') as serverless_cache_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'MajorEngineVersion') as major_engine_version, + json_extract_path_text(detail.Properties, 'FullEngineVersion') as full_engine_version, + json_extract_path_text(detail.Properties, 'CacheUsageLimits') as cache_usage_limits, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SnapshotArnsToRestore') as snapshot_arns_to_restore, + json_extract_path_text(detail.Properties, 'UserGroupId') as user_group_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'SnapshotRetentionLimit') as snapshot_retention_limit, + json_extract_path_text(detail.Properties, 'DailySnapshotTime') as daily_snapshot_time, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'ReaderEndpoint') as reader_endpoint, + json_extract_path_text(detail.Properties, 'ARN') as arn, + json_extract_path_text(detail.Properties, 'FinalSnapshotName') as final_snapshot_name + 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::ElastiCache::ServerlessCache' + AND detail.data__TypeName = 'AWS::ElastiCache::ServerlessCache' + AND listing.region = 'us-east-1' subnet_groups: name: subnet_groups id: aws.elasticache.subnet_groups @@ -1822,10 +2143,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CacheSubnetGroupName') as cache_subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::SubnetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.CacheSubnetGroupName') as cache_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ElastiCache::SubnetGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::SubnetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1843,10 +2172,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CacheSubnetGroupName') as cache_subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::SubnetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'CacheSubnetGroupName') as cache_subnet_group_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ElastiCache::SubnetGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::SubnetGroup' + AND listing.region = 'us-east-1' + subnet_groups_list_only: + name: subnet_groups_list_only + id: aws.elasticache.subnet_groups_list_only + x-cfn-schema-name: SubnetGroup + x-cfn-type-name: AWS::ElastiCache::SubnetGroup + x-identifiers: + - CacheSubnetGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CacheSubnetGroupName') as cache_subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::SubnetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CacheSubnetGroupName') as cache_subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::SubnetGroup' + AND region = 'us-east-1' + subnet_group_tags: + name: subnet_group_tags + id: aws.elasticache.subnet_group_tags + x-cfn-schema-name: SubnetGroup + x-cfn-type-name: AWS::ElastiCache::SubnetGroup + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.CacheSubnetGroupName') as cache_subnet_group_name + 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::ElastiCache::SubnetGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::SubnetGroup' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'CacheSubnetGroupName') as cache_subnet_group_name + 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::ElastiCache::SubnetGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::SubnetGroup' + AND listing.region = 'us-east-1' users: name: users id: aws.elasticache.users @@ -1927,10 +2344,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserId') as user_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::User' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UserId') as user_id, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.AccessString') as access_string, + JSON_EXTRACT(detail.Properties, '$.NoPasswordRequired') as no_password_required, + JSON_EXTRACT(detail.Properties, '$.Passwords') as passwords, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AuthenticationMode') as authentication_mode, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ElastiCache::User' + AND detail.data__TypeName = 'AWS::ElastiCache::User' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1954,10 +2385,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserId') as user_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::User' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'UserId') as user_id, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'AccessString') as access_string, + json_extract_path_text(detail.Properties, 'NoPasswordRequired') as no_password_required, + json_extract_path_text(detail.Properties, 'Passwords') as passwords, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AuthenticationMode') as authentication_mode, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ElastiCache::User' + AND detail.data__TypeName = 'AWS::ElastiCache::User' + AND listing.region = 'us-east-1' + users_list_only: + name: users_list_only + id: aws.elasticache.users_list_only + x-cfn-schema-name: User + x-cfn-type-name: AWS::ElastiCache::User + x-identifiers: + - UserId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserId') as user_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::User' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserId') as user_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::User' + AND region = 'us-east-1' + user_tags: + name: user_tags + id: aws.elasticache.user_tags + x-cfn-schema-name: User + x-cfn-type-name: AWS::ElastiCache::User + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UserId') as user_id, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.AccessString') as access_string, + JSON_EXTRACT(detail.Properties, '$.NoPasswordRequired') as no_password_required, + JSON_EXTRACT(detail.Properties, '$.Passwords') as passwords, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AuthenticationMode') as authentication_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::ElastiCache::User' + AND detail.data__TypeName = 'AWS::ElastiCache::User' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'UserId') as user_id, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'AccessString') as access_string, + json_extract_path_text(detail.Properties, 'NoPasswordRequired') as no_password_required, + json_extract_path_text(detail.Properties, 'Passwords') as passwords, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AuthenticationMode') as authentication_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::ElastiCache::User' + AND detail.data__TypeName = 'AWS::ElastiCache::User' + AND listing.region = 'us-east-1' user_groups: name: user_groups id: aws.elasticache.user_groups @@ -2034,10 +2571,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserGroupId') as user_group_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::UserGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UserGroupId') as user_group_id, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.UserIds') as user_ids, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ElastiCache::UserGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::UserGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2057,10 +2604,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserGroupId') as user_group_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::UserGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'UserGroupId') as user_group_id, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'UserIds') as user_ids, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ElastiCache::UserGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::UserGroup' + AND listing.region = 'us-east-1' + user_groups_list_only: + name: user_groups_list_only + id: aws.elasticache.user_groups_list_only + x-cfn-schema-name: UserGroup + x-cfn-type-name: AWS::ElastiCache::UserGroup + x-identifiers: + - UserGroupId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserGroupId') as user_group_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::UserGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserGroupId') as user_group_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElastiCache::UserGroup' + AND region = 'us-east-1' + user_group_tags: + name: user_group_tags + id: aws.elasticache.user_group_tags + x-cfn-schema-name: UserGroup + x-cfn-type-name: AWS::ElastiCache::UserGroup + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UserGroupId') as user_group_id, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.UserIds') as user_ids, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::ElastiCache::UserGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::UserGroup' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'UserGroupId') as user_group_id, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'UserIds') as user_ids, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::ElastiCache::UserGroup' + AND detail.data__TypeName = 'AWS::ElastiCache::UserGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/elasticbeanstalk.yaml b/providers/src/aws/v00.00.00000/services/elasticbeanstalk.yaml index 4dea387f..52a83fee 100644 --- a/providers/src/aws/v00.00.00000/services/elasticbeanstalk.yaml +++ b/providers/src/aws/v00.00.00000/services/elasticbeanstalk.yaml @@ -1046,10 +1046,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationName') as application_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ResourceLifecycleConfig') as resource_lifecycle_config + 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::ElasticBeanstalk::Application' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1066,10 +1073,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationName') as application_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ResourceLifecycleConfig') as resource_lifecycle_config + 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::ElasticBeanstalk::Application' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.elasticbeanstalk.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::ElasticBeanstalk::Application + x-identifiers: + - ApplicationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationName') as application_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationName') as application_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Application' + AND region = 'us-east-1' application_versions: name: application_versions id: aws.elasticbeanstalk.application_versions @@ -1145,11 +1190,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationName') as application_name, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ApplicationVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SourceBundle') as source_bundle + 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::ElasticBeanstalk::ApplicationVersion' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::ApplicationVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1167,11 +1219,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationName') as application_name, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ApplicationVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SourceBundle') as source_bundle + 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::ElasticBeanstalk::ApplicationVersion' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::ApplicationVersion' + AND listing.region = 'us-east-1' + application_versions_list_only: + name: application_versions_list_only + id: aws.elasticbeanstalk.application_versions_list_only + x-cfn-schema-name: ApplicationVersion + x-cfn-type-name: AWS::ElasticBeanstalk::ApplicationVersion + x-identifiers: + - ApplicationName + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ApplicationVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationName') as application_name, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ApplicationVersion' + AND region = 'us-east-1' configuration_templates: name: configuration_templates id: aws.elasticbeanstalk.configuration_templates @@ -1251,11 +1344,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationName') as application_name, - JSON_EXTRACT(Properties, '$.TemplateName') as template_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ConfigurationTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.OptionSettings') as option_settings, + JSON_EXTRACT(detail.Properties, '$.PlatformArn') as platform_arn, + JSON_EXTRACT(detail.Properties, '$.SolutionStackName') as solution_stack_name, + JSON_EXTRACT(detail.Properties, '$.SourceConfiguration') as source_configuration, + JSON_EXTRACT(detail.Properties, '$.TemplateName') as template_name + 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::ElasticBeanstalk::ConfigurationTemplate' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::ConfigurationTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1277,11 +1381,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationName') as application_name, - json_extract_path_text(Properties, 'TemplateName') as template_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ConfigurationTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'OptionSettings') as option_settings, + json_extract_path_text(detail.Properties, 'PlatformArn') as platform_arn, + json_extract_path_text(detail.Properties, 'SolutionStackName') as solution_stack_name, + json_extract_path_text(detail.Properties, 'SourceConfiguration') as source_configuration, + json_extract_path_text(detail.Properties, 'TemplateName') as template_name + 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::ElasticBeanstalk::ConfigurationTemplate' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::ConfigurationTemplate' + AND listing.region = 'us-east-1' + configuration_templates_list_only: + name: configuration_templates_list_only + id: aws.elasticbeanstalk.configuration_templates_list_only + x-cfn-schema-name: ConfigurationTemplate + x-cfn-type-name: AWS::ElasticBeanstalk::ConfigurationTemplate + x-identifiers: + - ApplicationName + - TemplateName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(Properties, '$.TemplateName') as template_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ConfigurationTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationName') as application_name, + json_extract_path_text(Properties, 'TemplateName') as template_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::ConfigurationTemplate' + AND region = 'us-east-1' environments: name: environments id: aws.elasticbeanstalk.environments @@ -1365,10 +1514,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PlatformArn') as platform_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.OperationsRole') as operations_role, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.VersionLabel') as version_label, + JSON_EXTRACT(detail.Properties, '$.EndpointURL') as endpoint_url, + JSON_EXTRACT(detail.Properties, '$.OptionSettings') as option_settings, + JSON_EXTRACT(detail.Properties, '$.TemplateName') as template_name, + JSON_EXTRACT(detail.Properties, '$.SolutionStackName') as solution_stack_name, + JSON_EXTRACT(detail.Properties, '$.CNAMEPrefix') as cname_prefix, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ElasticBeanstalk::Environment' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1395,10 +1561,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnvironmentName') as environment_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PlatformArn') as platform_arn, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'OperationsRole') as operations_role, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'VersionLabel') as version_label, + json_extract_path_text(detail.Properties, 'EndpointURL') as endpoint_url, + json_extract_path_text(detail.Properties, 'OptionSettings') as option_settings, + json_extract_path_text(detail.Properties, 'TemplateName') as template_name, + json_extract_path_text(detail.Properties, 'SolutionStackName') as solution_stack_name, + json_extract_path_text(detail.Properties, 'CNAMEPrefix') as cname_prefix, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ElasticBeanstalk::Environment' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.elasticbeanstalk.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::ElasticBeanstalk::Environment + x-identifiers: + - EnvironmentName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnvironmentName') as environment_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnvironmentName') as environment_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticBeanstalk::Environment' + AND region = 'us-east-1' + environment_tags: + name: environment_tags + id: aws.elasticbeanstalk.environment_tags + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::ElasticBeanstalk::Environment + 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, '$.PlatformArn') as platform_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.OperationsRole') as operations_role, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.VersionLabel') as version_label, + JSON_EXTRACT(detail.Properties, '$.EndpointURL') as endpoint_url, + JSON_EXTRACT(detail.Properties, '$.OptionSettings') as option_settings, + JSON_EXTRACT(detail.Properties, '$.TemplateName') as template_name, + JSON_EXTRACT(detail.Properties, '$.SolutionStackName') as solution_stack_name, + JSON_EXTRACT(detail.Properties, '$.CNAMEPrefix') as cname_prefix + 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::ElasticBeanstalk::Environment' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::Environment' + 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, 'PlatformArn') as platform_arn, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'OperationsRole') as operations_role, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'VersionLabel') as version_label, + json_extract_path_text(detail.Properties, 'EndpointURL') as endpoint_url, + json_extract_path_text(detail.Properties, 'OptionSettings') as option_settings, + json_extract_path_text(detail.Properties, 'TemplateName') as template_name, + json_extract_path_text(detail.Properties, 'SolutionStackName') as solution_stack_name, + json_extract_path_text(detail.Properties, 'CNAMEPrefix') as cname_prefix + 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::ElasticBeanstalk::Environment' + AND detail.data__TypeName = 'AWS::ElasticBeanstalk::Environment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/elasticloadbalancingv2.yaml b/providers/src/aws/v00.00.00000/services/elasticloadbalancingv2.yaml index 1ceaef48..a284a4ad 100644 --- a/providers/src/aws/v00.00.00000/services/elasticloadbalancingv2.yaml +++ b/providers/src/aws/v00.00.00000/services/elasticloadbalancingv2.yaml @@ -1965,10 +1965,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ListenerArn') as listener_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::Listener' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ListenerArn') as listener_arn, + JSON_EXTRACT(detail.Properties, '$.MutualAuthentication') as mutual_authentication, + JSON_EXTRACT(detail.Properties, '$.AlpnPolicy') as alpn_policy, + JSON_EXTRACT(detail.Properties, '$.SslPolicy') as ssl_policy, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerArn') as load_balancer_arn, + JSON_EXTRACT(detail.Properties, '$.DefaultActions') as default_actions, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Certificates') as certificates, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol + 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::ElasticLoadBalancingV2::Listener' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::Listener' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1991,10 +2004,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ListenerArn') as listener_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::Listener' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ListenerArn') as listener_arn, + json_extract_path_text(detail.Properties, 'MutualAuthentication') as mutual_authentication, + json_extract_path_text(detail.Properties, 'AlpnPolicy') as alpn_policy, + json_extract_path_text(detail.Properties, 'SslPolicy') as ssl_policy, + json_extract_path_text(detail.Properties, 'LoadBalancerArn') as load_balancer_arn, + json_extract_path_text(detail.Properties, 'DefaultActions') as default_actions, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Certificates') as certificates, + json_extract_path_text(detail.Properties, 'Protocol') as protocol + 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::ElasticLoadBalancingV2::Listener' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::Listener' + AND listing.region = 'us-east-1' + listeners_list_only: + name: listeners_list_only + id: aws.elasticloadbalancingv2.listeners_list_only + x-cfn-schema-name: Listener + x-cfn-type-name: AWS::ElasticLoadBalancingV2::Listener + x-identifiers: + - ListenerArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ListenerArn') as listener_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::Listener' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ListenerArn') as listener_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::Listener' + AND region = 'us-east-1' listener_rules: name: listener_rules id: aws.elasticloadbalancingv2.listener_rules @@ -2071,10 +2128,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RuleArn') as rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::ListenerRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ListenerArn') as listener_arn, + JSON_EXTRACT(detail.Properties, '$.RuleArn') as rule_arn, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.Conditions') as conditions, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default + 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::ElasticLoadBalancingV2::ListenerRule' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::ListenerRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2094,10 +2161,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RuleArn') as rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::ListenerRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ListenerArn') as listener_arn, + json_extract_path_text(detail.Properties, 'RuleArn') as rule_arn, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'Conditions') as conditions, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default + 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::ElasticLoadBalancingV2::ListenerRule' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::ListenerRule' + AND listing.region = 'us-east-1' + listener_rules_list_only: + name: listener_rules_list_only + id: aws.elasticloadbalancingv2.listener_rules_list_only + x-cfn-schema-name: ListenerRule + x-cfn-type-name: AWS::ElasticLoadBalancingV2::ListenerRule + x-identifiers: + - RuleArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RuleArn') as rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::ListenerRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RuleArn') as rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::ListenerRule' + AND region = 'us-east-1' load_balancers: name: load_balancers id: aws.elasticloadbalancingv2.load_balancers @@ -2183,10 +2291,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LoadBalancerArn') as load_balancer_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerAttributes') as load_balancer_attributes, + JSON_EXTRACT(detail.Properties, '$.Scheme') as scheme, + JSON_EXTRACT(detail.Properties, '$.DNSName') as dns_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerName') as load_balancer_name, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerFullName') as load_balancer_full_name, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.CanonicalHostedZoneID') as canonical_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerArn') as load_balancer_arn, + JSON_EXTRACT(detail.Properties, '$.SubnetMappings') as subnet_mappings, + JSON_EXTRACT(detail.Properties, '$.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic') as enforce_security_group_inbound_rules_on_private_link_traffic + 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::ElasticLoadBalancingV2::LoadBalancer' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2215,10 +2342,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LoadBalancerArn') as load_balancer_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'LoadBalancerAttributes') as load_balancer_attributes, + json_extract_path_text(detail.Properties, 'Scheme') as scheme, + json_extract_path_text(detail.Properties, 'DNSName') as dns_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoadBalancerName') as load_balancer_name, + json_extract_path_text(detail.Properties, 'LoadBalancerFullName') as load_balancer_full_name, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'CanonicalHostedZoneID') as canonical_hosted_zone_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LoadBalancerArn') as load_balancer_arn, + json_extract_path_text(detail.Properties, 'SubnetMappings') as subnet_mappings, + json_extract_path_text(detail.Properties, 'EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic') as enforce_security_group_inbound_rules_on_private_link_traffic + 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::ElasticLoadBalancingV2::LoadBalancer' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' + AND listing.region = 'us-east-1' + load_balancers_list_only: + name: load_balancers_list_only + id: aws.elasticloadbalancingv2.load_balancers_list_only + x-cfn-schema-name: LoadBalancer + x-cfn-type-name: AWS::ElasticLoadBalancingV2::LoadBalancer + x-identifiers: + - LoadBalancerArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LoadBalancerArn') as load_balancer_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LoadBalancerArn') as load_balancer_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' + AND region = 'us-east-1' + load_balancer_tags: + name: load_balancer_tags + id: aws.elasticloadbalancingv2.load_balancer_tags + x-cfn-schema-name: LoadBalancer + x-cfn-type-name: AWS::ElasticLoadBalancingV2::LoadBalancer + 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, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerAttributes') as load_balancer_attributes, + JSON_EXTRACT(detail.Properties, '$.Scheme') as scheme, + JSON_EXTRACT(detail.Properties, '$.DNSName') as dns_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerName') as load_balancer_name, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerFullName') as load_balancer_full_name, + JSON_EXTRACT(detail.Properties, '$.Subnets') as subnets, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.CanonicalHostedZoneID') as canonical_hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerArn') as load_balancer_arn, + JSON_EXTRACT(detail.Properties, '$.SubnetMappings') as subnet_mappings, + JSON_EXTRACT(detail.Properties, '$.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic') as enforce_security_group_inbound_rules_on_private_link_traffic + 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::ElasticLoadBalancingV2::LoadBalancer' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' + 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, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'LoadBalancerAttributes') as load_balancer_attributes, + json_extract_path_text(detail.Properties, 'Scheme') as scheme, + json_extract_path_text(detail.Properties, 'DNSName') as dns_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoadBalancerName') as load_balancer_name, + json_extract_path_text(detail.Properties, 'LoadBalancerFullName') as load_balancer_full_name, + json_extract_path_text(detail.Properties, 'Subnets') as subnets, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'CanonicalHostedZoneID') as canonical_hosted_zone_id, + json_extract_path_text(detail.Properties, 'LoadBalancerArn') as load_balancer_arn, + json_extract_path_text(detail.Properties, 'SubnetMappings') as subnet_mappings, + json_extract_path_text(detail.Properties, 'EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic') as enforce_security_group_inbound_rules_on_private_link_traffic + 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::ElasticLoadBalancingV2::LoadBalancer' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::LoadBalancer' + AND listing.region = 'us-east-1' target_groups: name: target_groups id: aws.elasticloadbalancingv2.target_groups @@ -2312,10 +2560,37 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TargetGroupArn') as target_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.HealthCheckIntervalSeconds') as health_check_interval_seconds, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerArns') as load_balancer_arns, + JSON_EXTRACT(detail.Properties, '$.Matcher') as matcher, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPath') as health_check_path, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.HealthCheckEnabled') as health_check_enabled, + JSON_EXTRACT(detail.Properties, '$.ProtocolVersion') as protocol_version, + JSON_EXTRACT(detail.Properties, '$.UnhealthyThresholdCount') as unhealthy_threshold_count, + JSON_EXTRACT(detail.Properties, '$.HealthCheckTimeoutSeconds') as health_check_timeout_seconds, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.TargetGroupFullName') as target_group_full_name, + JSON_EXTRACT(detail.Properties, '$.HealthyThresholdCount') as healthy_threshold_count, + JSON_EXTRACT(detail.Properties, '$.HealthCheckProtocol') as health_check_protocol, + JSON_EXTRACT(detail.Properties, '$.TargetGroupAttributes') as target_group_attributes, + JSON_EXTRACT(detail.Properties, '$.TargetType') as target_type, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPort') as health_check_port, + JSON_EXTRACT(detail.Properties, '$.TargetGroupArn') as target_group_arn, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.TargetGroupName') as target_group_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ElasticLoadBalancingV2::TargetGroup' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2352,10 +2627,155 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TargetGroupArn') as target_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'HealthCheckIntervalSeconds') as health_check_interval_seconds, + json_extract_path_text(detail.Properties, 'LoadBalancerArns') as load_balancer_arns, + json_extract_path_text(detail.Properties, 'Matcher') as matcher, + json_extract_path_text(detail.Properties, 'HealthCheckPath') as health_check_path, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'HealthCheckEnabled') as health_check_enabled, + json_extract_path_text(detail.Properties, 'ProtocolVersion') as protocol_version, + json_extract_path_text(detail.Properties, 'UnhealthyThresholdCount') as unhealthy_threshold_count, + json_extract_path_text(detail.Properties, 'HealthCheckTimeoutSeconds') as health_check_timeout_seconds, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'TargetGroupFullName') as target_group_full_name, + json_extract_path_text(detail.Properties, 'HealthyThresholdCount') as healthy_threshold_count, + json_extract_path_text(detail.Properties, 'HealthCheckProtocol') as health_check_protocol, + json_extract_path_text(detail.Properties, 'TargetGroupAttributes') as target_group_attributes, + json_extract_path_text(detail.Properties, 'TargetType') as target_type, + json_extract_path_text(detail.Properties, 'HealthCheckPort') as health_check_port, + json_extract_path_text(detail.Properties, 'TargetGroupArn') as target_group_arn, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'TargetGroupName') as target_group_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ElasticLoadBalancingV2::TargetGroup' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' + AND listing.region = 'us-east-1' + target_groups_list_only: + name: target_groups_list_only + id: aws.elasticloadbalancingv2.target_groups_list_only + x-cfn-schema-name: TargetGroup + x-cfn-type-name: AWS::ElasticLoadBalancingV2::TargetGroup + x-identifiers: + - TargetGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TargetGroupArn') as target_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TargetGroupArn') as target_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' + AND region = 'us-east-1' + target_group_tags: + name: target_group_tags + id: aws.elasticloadbalancingv2.target_group_tags + x-cfn-schema-name: TargetGroup + x-cfn-type-name: AWS::ElasticLoadBalancingV2::TargetGroup + 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, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.HealthCheckIntervalSeconds') as health_check_interval_seconds, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerArns') as load_balancer_arns, + JSON_EXTRACT(detail.Properties, '$.Matcher') as matcher, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPath') as health_check_path, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.HealthCheckEnabled') as health_check_enabled, + JSON_EXTRACT(detail.Properties, '$.ProtocolVersion') as protocol_version, + JSON_EXTRACT(detail.Properties, '$.UnhealthyThresholdCount') as unhealthy_threshold_count, + JSON_EXTRACT(detail.Properties, '$.HealthCheckTimeoutSeconds') as health_check_timeout_seconds, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.TargetGroupFullName') as target_group_full_name, + JSON_EXTRACT(detail.Properties, '$.HealthyThresholdCount') as healthy_threshold_count, + JSON_EXTRACT(detail.Properties, '$.HealthCheckProtocol') as health_check_protocol, + JSON_EXTRACT(detail.Properties, '$.TargetGroupAttributes') as target_group_attributes, + JSON_EXTRACT(detail.Properties, '$.TargetType') as target_type, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPort') as health_check_port, + JSON_EXTRACT(detail.Properties, '$.TargetGroupArn') as target_group_arn, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.TargetGroupName') as target_group_name + 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::ElasticLoadBalancingV2::TargetGroup' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' + 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, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'HealthCheckIntervalSeconds') as health_check_interval_seconds, + json_extract_path_text(detail.Properties, 'LoadBalancerArns') as load_balancer_arns, + json_extract_path_text(detail.Properties, 'Matcher') as matcher, + json_extract_path_text(detail.Properties, 'HealthCheckPath') as health_check_path, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'HealthCheckEnabled') as health_check_enabled, + json_extract_path_text(detail.Properties, 'ProtocolVersion') as protocol_version, + json_extract_path_text(detail.Properties, 'UnhealthyThresholdCount') as unhealthy_threshold_count, + json_extract_path_text(detail.Properties, 'HealthCheckTimeoutSeconds') as health_check_timeout_seconds, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'TargetGroupFullName') as target_group_full_name, + json_extract_path_text(detail.Properties, 'HealthyThresholdCount') as healthy_threshold_count, + json_extract_path_text(detail.Properties, 'HealthCheckProtocol') as health_check_protocol, + json_extract_path_text(detail.Properties, 'TargetGroupAttributes') as target_group_attributes, + json_extract_path_text(detail.Properties, 'TargetType') as target_type, + json_extract_path_text(detail.Properties, 'HealthCheckPort') as health_check_port, + json_extract_path_text(detail.Properties, 'TargetGroupArn') as target_group_arn, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'TargetGroupName') as target_group_name + 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::ElasticLoadBalancingV2::TargetGroup' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TargetGroup' + AND listing.region = 'us-east-1' trust_stores: name: trust_stores id: aws.elasticloadbalancingv2.trust_stores @@ -2434,10 +2854,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrustStoreArn') as trust_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CaCertificatesBundleS3Bucket') as ca_certificates_bundle_s3_bucket, + JSON_EXTRACT(detail.Properties, '$.CaCertificatesBundleS3Key') as ca_certificates_bundle_s3_key, + JSON_EXTRACT(detail.Properties, '$.CaCertificatesBundleS3ObjectVersion') as ca_certificates_bundle_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.NumberOfCaCertificates') as number_of_ca_certificates, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrustStoreArn') as trust_store_arn + 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::ElasticLoadBalancingV2::TrustStore' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2459,10 +2891,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrustStoreArn') as trust_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CaCertificatesBundleS3Bucket') as ca_certificates_bundle_s3_bucket, + json_extract_path_text(detail.Properties, 'CaCertificatesBundleS3Key') as ca_certificates_bundle_s3_key, + json_extract_path_text(detail.Properties, 'CaCertificatesBundleS3ObjectVersion') as ca_certificates_bundle_s3_object_version, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'NumberOfCaCertificates') as number_of_ca_certificates, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrustStoreArn') as trust_store_arn + 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::ElasticLoadBalancingV2::TrustStore' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' + AND listing.region = 'us-east-1' + trust_stores_list_only: + name: trust_stores_list_only + id: aws.elasticloadbalancingv2.trust_stores_list_only + x-cfn-schema-name: TrustStore + x-cfn-type-name: AWS::ElasticLoadBalancingV2::TrustStore + x-identifiers: + - TrustStoreArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrustStoreArn') as trust_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrustStoreArn') as trust_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' + AND region = 'us-east-1' + trust_store_tags: + name: trust_store_tags + id: aws.elasticloadbalancingv2.trust_store_tags + x-cfn-schema-name: TrustStore + x-cfn-type-name: AWS::ElasticLoadBalancingV2::TrustStore + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CaCertificatesBundleS3Bucket') as ca_certificates_bundle_s3_bucket, + JSON_EXTRACT(detail.Properties, '$.CaCertificatesBundleS3Key') as ca_certificates_bundle_s3_key, + JSON_EXTRACT(detail.Properties, '$.CaCertificatesBundleS3ObjectVersion') as ca_certificates_bundle_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.NumberOfCaCertificates') as number_of_ca_certificates, + JSON_EXTRACT(detail.Properties, '$.TrustStoreArn') as trust_store_arn + 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::ElasticLoadBalancingV2::TrustStore' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'CaCertificatesBundleS3Bucket') as ca_certificates_bundle_s3_bucket, + json_extract_path_text(detail.Properties, 'CaCertificatesBundleS3Key') as ca_certificates_bundle_s3_key, + json_extract_path_text(detail.Properties, 'CaCertificatesBundleS3ObjectVersion') as ca_certificates_bundle_s3_object_version, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'NumberOfCaCertificates') as number_of_ca_certificates, + json_extract_path_text(detail.Properties, 'TrustStoreArn') as trust_store_arn + 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::ElasticLoadBalancingV2::TrustStore' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStore' + AND listing.region = 'us-east-1' trust_store_revocations: name: trust_store_revocations id: aws.elasticloadbalancingv2.trust_store_revocations @@ -2525,11 +3057,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RevocationId') as revocation_id, - JSON_EXTRACT(Properties, '$.TrustStoreArn') as trust_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStoreRevocation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RevocationContents') as revocation_contents, + JSON_EXTRACT(detail.Properties, '$.TrustStoreArn') as trust_store_arn, + JSON_EXTRACT(detail.Properties, '$.RevocationId') as revocation_id, + JSON_EXTRACT(detail.Properties, '$.TrustStoreRevocations') as trust_store_revocations + 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::ElasticLoadBalancingV2::TrustStoreRevocation' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStoreRevocation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2547,11 +3086,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RevocationId') as revocation_id, - json_extract_path_text(Properties, 'TrustStoreArn') as trust_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStoreRevocation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RevocationContents') as revocation_contents, + json_extract_path_text(detail.Properties, 'TrustStoreArn') as trust_store_arn, + json_extract_path_text(detail.Properties, 'RevocationId') as revocation_id, + json_extract_path_text(detail.Properties, 'TrustStoreRevocations') as trust_store_revocations + 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::ElasticLoadBalancingV2::TrustStoreRevocation' + AND detail.data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStoreRevocation' + AND listing.region = 'us-east-1' + trust_store_revocations_list_only: + name: trust_store_revocations_list_only + id: aws.elasticloadbalancingv2.trust_store_revocations_list_only + x-cfn-schema-name: TrustStoreRevocation + x-cfn-type-name: AWS::ElasticLoadBalancingV2::TrustStoreRevocation + x-identifiers: + - RevocationId + - TrustStoreArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RevocationId') as revocation_id, + JSON_EXTRACT(Properties, '$.TrustStoreArn') as trust_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStoreRevocation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RevocationId') as revocation_id, + json_extract_path_text(Properties, 'TrustStoreArn') as trust_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ElasticLoadBalancingV2::TrustStoreRevocation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/emr.yaml b/providers/src/aws/v00.00.00000/services/emr.yaml index 75792a2b..1f2a08c1 100644 --- a/providers/src/aws/v00.00.00000/services/emr.yaml +++ b/providers/src/aws/v00.00.00000/services/emr.yaml @@ -1005,10 +1005,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::SecurityConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SecurityConfiguration') as security_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::EMR::SecurityConfiguration' + AND detail.data__TypeName = 'AWS::EMR::SecurityConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1024,10 +1030,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::SecurityConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SecurityConfiguration') as security_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::EMR::SecurityConfiguration' + AND detail.data__TypeName = 'AWS::EMR::SecurityConfiguration' + AND listing.region = 'us-east-1' + security_configurations_list_only: + name: security_configurations_list_only + id: aws.emr.security_configurations_list_only + x-cfn-schema-name: SecurityConfiguration + x-cfn-type-name: AWS::EMR::SecurityConfiguration + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::SecurityConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::SecurityConfiguration' + AND region = 'us-east-1' studios: name: studios id: aws.emr.studios @@ -1118,10 +1161,34 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::Studio' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AuthMode') as auth_mode, + JSON_EXTRACT(detail.Properties, '$.DefaultS3Location') as default_s3_location, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EngineSecurityGroupId') as engine_security_group_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ServiceRole') as service_role, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.UserRole') as user_role, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.WorkspaceSecurityGroupId') as workspace_security_group_id, + JSON_EXTRACT(detail.Properties, '$.IdpAuthUrl') as idp_auth_url, + JSON_EXTRACT(detail.Properties, '$.IdpRelayStateParameterName') as idp_relay_state_parameter_name, + JSON_EXTRACT(detail.Properties, '$.TrustedIdentityPropagationEnabled') as trusted_identity_propagation_enabled, + JSON_EXTRACT(detail.Properties, '$.IdcUserAssignment') as idc_user_assignment, + JSON_EXTRACT(detail.Properties, '$.IdcInstanceArn') as idc_instance_arn, + JSON_EXTRACT(detail.Properties, '$.EncryptionKeyArn') as encryption_key_arn + 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::EMR::Studio' + AND detail.data__TypeName = 'AWS::EMR::Studio' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1155,10 +1222,146 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::Studio' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AuthMode') as auth_mode, + json_extract_path_text(detail.Properties, 'DefaultS3Location') as default_s3_location, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EngineSecurityGroupId') as engine_security_group_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ServiceRole') as service_role, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'UserRole') as user_role, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'WorkspaceSecurityGroupId') as workspace_security_group_id, + json_extract_path_text(detail.Properties, 'IdpAuthUrl') as idp_auth_url, + json_extract_path_text(detail.Properties, 'IdpRelayStateParameterName') as idp_relay_state_parameter_name, + json_extract_path_text(detail.Properties, 'TrustedIdentityPropagationEnabled') as trusted_identity_propagation_enabled, + json_extract_path_text(detail.Properties, 'IdcUserAssignment') as idc_user_assignment, + json_extract_path_text(detail.Properties, 'IdcInstanceArn') as idc_instance_arn, + json_extract_path_text(detail.Properties, 'EncryptionKeyArn') as encryption_key_arn + 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::EMR::Studio' + AND detail.data__TypeName = 'AWS::EMR::Studio' + AND listing.region = 'us-east-1' + studios_list_only: + name: studios_list_only + id: aws.emr.studios_list_only + x-cfn-schema-name: Studio + x-cfn-type-name: AWS::EMR::Studio + x-identifiers: + - StudioId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::Studio' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::Studio' + AND region = 'us-east-1' + studio_tags: + name: studio_tags + id: aws.emr.studio_tags + x-cfn-schema-name: Studio + x-cfn-type-name: AWS::EMR::Studio + 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, '$.AuthMode') as auth_mode, + JSON_EXTRACT(detail.Properties, '$.DefaultS3Location') as default_s3_location, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EngineSecurityGroupId') as engine_security_group_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ServiceRole') as service_role, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.UserRole') as user_role, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.WorkspaceSecurityGroupId') as workspace_security_group_id, + JSON_EXTRACT(detail.Properties, '$.IdpAuthUrl') as idp_auth_url, + JSON_EXTRACT(detail.Properties, '$.IdpRelayStateParameterName') as idp_relay_state_parameter_name, + JSON_EXTRACT(detail.Properties, '$.TrustedIdentityPropagationEnabled') as trusted_identity_propagation_enabled, + JSON_EXTRACT(detail.Properties, '$.IdcUserAssignment') as idc_user_assignment, + JSON_EXTRACT(detail.Properties, '$.IdcInstanceArn') as idc_instance_arn, + JSON_EXTRACT(detail.Properties, '$.EncryptionKeyArn') as encryption_key_arn + 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::EMR::Studio' + AND detail.data__TypeName = 'AWS::EMR::Studio' + 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, 'AuthMode') as auth_mode, + json_extract_path_text(detail.Properties, 'DefaultS3Location') as default_s3_location, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EngineSecurityGroupId') as engine_security_group_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ServiceRole') as service_role, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'UserRole') as user_role, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'WorkspaceSecurityGroupId') as workspace_security_group_id, + json_extract_path_text(detail.Properties, 'IdpAuthUrl') as idp_auth_url, + json_extract_path_text(detail.Properties, 'IdpRelayStateParameterName') as idp_relay_state_parameter_name, + json_extract_path_text(detail.Properties, 'TrustedIdentityPropagationEnabled') as trusted_identity_propagation_enabled, + json_extract_path_text(detail.Properties, 'IdcUserAssignment') as idc_user_assignment, + json_extract_path_text(detail.Properties, 'IdcInstanceArn') as idc_instance_arn, + json_extract_path_text(detail.Properties, 'EncryptionKeyArn') as encryption_key_arn + 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::EMR::Studio' + AND detail.data__TypeName = 'AWS::EMR::Studio' + AND listing.region = 'us-east-1' studio_session_mappings: name: studio_session_mappings id: aws.emr.studio_session_mappings @@ -1235,12 +1438,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StudioId') as studio_id, - JSON_EXTRACT(Properties, '$.IdentityType') as identity_type, - JSON_EXTRACT(Properties, '$.IdentityName') as identity_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::StudioSessionMapping' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IdentityName') as identity_name, + JSON_EXTRACT(detail.Properties, '$.IdentityType') as identity_type, + JSON_EXTRACT(detail.Properties, '$.SessionPolicyArn') as session_policy_arn, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id + 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::EMR::StudioSessionMapping' + AND detail.data__TypeName = 'AWS::EMR::StudioSessionMapping' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1258,12 +1467,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StudioId') as studio_id, - json_extract_path_text(Properties, 'IdentityType') as identity_type, - json_extract_path_text(Properties, 'IdentityName') as identity_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::StudioSessionMapping' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IdentityName') as identity_name, + json_extract_path_text(detail.Properties, 'IdentityType') as identity_type, + json_extract_path_text(detail.Properties, 'SessionPolicyArn') as session_policy_arn, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id + 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::EMR::StudioSessionMapping' + AND detail.data__TypeName = 'AWS::EMR::StudioSessionMapping' + AND listing.region = 'us-east-1' + studio_session_mappings_list_only: + name: studio_session_mappings_list_only + id: aws.emr.studio_session_mappings_list_only + x-cfn-schema-name: StudioSessionMapping + x-cfn-type-name: AWS::EMR::StudioSessionMapping + x-identifiers: + - StudioId + - IdentityType + - IdentityName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(Properties, '$.IdentityType') as identity_type, + JSON_EXTRACT(Properties, '$.IdentityName') as identity_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::StudioSessionMapping' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StudioId') as studio_id, + json_extract_path_text(Properties, 'IdentityType') as identity_type, + json_extract_path_text(Properties, 'IdentityName') as identity_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::StudioSessionMapping' + AND region = 'us-east-1' wal_workspaces: name: wal_workspaces id: aws.emr.wal_workspaces @@ -1336,10 +1588,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WALWorkspaceName') as wal_workspace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::WALWorkspace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WALWorkspaceName') as wal_workspace_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EMR::WALWorkspace' + AND detail.data__TypeName = 'AWS::EMR::WALWorkspace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1355,10 +1613,92 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WALWorkspaceName') as wal_workspace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::WALWorkspace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WALWorkspaceName') as wal_workspace_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EMR::WALWorkspace' + AND detail.data__TypeName = 'AWS::EMR::WALWorkspace' + AND listing.region = 'us-east-1' + wal_workspaces_list_only: + name: wal_workspaces_list_only + id: aws.emr.wal_workspaces_list_only + x-cfn-schema-name: WALWorkspace + x-cfn-type-name: AWS::EMR::WALWorkspace + x-identifiers: + - WALWorkspaceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WALWorkspaceName') as wal_workspace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::WALWorkspace' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WALWorkspaceName') as wal_workspace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMR::WALWorkspace' + AND region = 'us-east-1' + wal_workspace_tags: + name: wal_workspace_tags + id: aws.emr.wal_workspace_tags + x-cfn-schema-name: WALWorkspace + x-cfn-type-name: AWS::EMR::WALWorkspace + 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, '$.WALWorkspaceName') as wal_workspace_name + 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::EMR::WALWorkspace' + AND detail.data__TypeName = 'AWS::EMR::WALWorkspace' + 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, 'WALWorkspaceName') as wal_workspace_name + 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::EMR::WALWorkspace' + AND detail.data__TypeName = 'AWS::EMR::WALWorkspace' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/emrcontainers.yaml b/providers/src/aws/v00.00.00000/services/emrcontainers.yaml index b59fd1e1..5b5e1e9c 100644 --- a/providers/src/aws/v00.00.00000/services/emrcontainers.yaml +++ b/providers/src/aws/v00.00.00000/services/emrcontainers.yaml @@ -619,10 +619,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRContainers::VirtualCluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ContainerProvider') as container_provider, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EMRContainers::VirtualCluster' + AND detail.data__TypeName = 'AWS::EMRContainers::VirtualCluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -641,10 +650,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRContainers::VirtualCluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ContainerProvider') as container_provider, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EMRContainers::VirtualCluster' + AND detail.data__TypeName = 'AWS::EMRContainers::VirtualCluster' + AND listing.region = 'us-east-1' + virtual_clusters_list_only: + name: virtual_clusters_list_only + id: aws.emrcontainers.virtual_clusters_list_only + x-cfn-schema-name: VirtualCluster + x-cfn-type-name: AWS::EMRContainers::VirtualCluster + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRContainers::VirtualCluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRContainers::VirtualCluster' + AND region = 'us-east-1' + virtual_cluster_tags: + name: virtual_cluster_tags + id: aws.emrcontainers.virtual_cluster_tags + x-cfn-schema-name: VirtualCluster + x-cfn-type-name: AWS::EMRContainers::VirtualCluster + 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, '$.ContainerProvider') as container_provider, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::EMRContainers::VirtualCluster' + AND detail.data__TypeName = 'AWS::EMRContainers::VirtualCluster' + 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, 'ContainerProvider') as container_provider, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::EMRContainers::VirtualCluster' + AND detail.data__TypeName = 'AWS::EMRContainers::VirtualCluster' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/emrserverless.yaml b/providers/src/aws/v00.00.00000/services/emrserverless.yaml index 33e60161..5a73faa6 100644 --- a/providers/src/aws/v00.00.00000/services/emrserverless.yaml +++ b/providers/src/aws/v00.00.00000/services/emrserverless.yaml @@ -1045,10 +1045,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRServerless::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Architecture') as architecture, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ReleaseLabel') as release_label, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.InitialCapacity') as initial_capacity, + JSON_EXTRACT(detail.Properties, '$.MaximumCapacity') as maximum_capacity, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AutoStartConfiguration') as auto_start_configuration, + JSON_EXTRACT(detail.Properties, '$.AutoStopConfiguration') as auto_stop_configuration, + JSON_EXTRACT(detail.Properties, '$.ImageConfiguration') as image_configuration, + JSON_EXTRACT(detail.Properties, '$.MonitoringConfiguration') as monitoring_configuration, + JSON_EXTRACT(detail.Properties, '$.RuntimeConfiguration') as runtime_configuration, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.WorkerTypeSpecifications') as worker_type_specifications + 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::EMRServerless::Application' + AND detail.data__TypeName = 'AWS::EMRServerless::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1078,10 +1098,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRServerless::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Architecture') as architecture, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ReleaseLabel') as release_label, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'InitialCapacity') as initial_capacity, + json_extract_path_text(detail.Properties, 'MaximumCapacity') as maximum_capacity, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AutoStartConfiguration') as auto_start_configuration, + json_extract_path_text(detail.Properties, 'AutoStopConfiguration') as auto_stop_configuration, + json_extract_path_text(detail.Properties, 'ImageConfiguration') as image_configuration, + json_extract_path_text(detail.Properties, 'MonitoringConfiguration') as monitoring_configuration, + json_extract_path_text(detail.Properties, 'RuntimeConfiguration') as runtime_configuration, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'WorkerTypeSpecifications') as worker_type_specifications + 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::EMRServerless::Application' + AND detail.data__TypeName = 'AWS::EMRServerless::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.emrserverless.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::EMRServerless::Application + x-identifiers: + - ApplicationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRServerless::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EMRServerless::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.emrserverless.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::EMRServerless::Application + 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, '$.Architecture') as architecture, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ReleaseLabel') as release_label, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.InitialCapacity') as initial_capacity, + JSON_EXTRACT(detail.Properties, '$.MaximumCapacity') as maximum_capacity, + JSON_EXTRACT(detail.Properties, '$.AutoStartConfiguration') as auto_start_configuration, + JSON_EXTRACT(detail.Properties, '$.AutoStopConfiguration') as auto_stop_configuration, + JSON_EXTRACT(detail.Properties, '$.ImageConfiguration') as image_configuration, + JSON_EXTRACT(detail.Properties, '$.MonitoringConfiguration') as monitoring_configuration, + JSON_EXTRACT(detail.Properties, '$.RuntimeConfiguration') as runtime_configuration, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.WorkerTypeSpecifications') as worker_type_specifications + 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::EMRServerless::Application' + AND detail.data__TypeName = 'AWS::EMRServerless::Application' + 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, 'Architecture') as architecture, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ReleaseLabel') as release_label, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'InitialCapacity') as initial_capacity, + json_extract_path_text(detail.Properties, 'MaximumCapacity') as maximum_capacity, + json_extract_path_text(detail.Properties, 'AutoStartConfiguration') as auto_start_configuration, + json_extract_path_text(detail.Properties, 'AutoStopConfiguration') as auto_stop_configuration, + json_extract_path_text(detail.Properties, 'ImageConfiguration') as image_configuration, + json_extract_path_text(detail.Properties, 'MonitoringConfiguration') as monitoring_configuration, + json_extract_path_text(detail.Properties, 'RuntimeConfiguration') as runtime_configuration, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'WorkerTypeSpecifications') as worker_type_specifications + 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::EMRServerless::Application' + AND detail.data__TypeName = 'AWS::EMRServerless::Application' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/entityresolution.yaml b/providers/src/aws/v00.00.00000/services/entityresolution.yaml index fbb8ea81..9b3107ec 100644 --- a/providers/src/aws/v00.00.00000/services/entityresolution.yaml +++ b/providers/src/aws/v00.00.00000/services/entityresolution.yaml @@ -1477,10 +1477,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkflowName') as workflow_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WorkflowName') as workflow_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InputSourceConfig') as input_source_config, + JSON_EXTRACT(detail.Properties, '$.OutputSourceConfig') as output_source_config, + JSON_EXTRACT(detail.Properties, '$.IdMappingTechniques') as id_mapping_techniques, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.WorkflowArn') as workflow_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::EntityResolution::IdMappingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1504,10 +1518,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkflowName') as workflow_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WorkflowName') as workflow_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InputSourceConfig') as input_source_config, + json_extract_path_text(detail.Properties, 'OutputSourceConfig') as output_source_config, + json_extract_path_text(detail.Properties, 'IdMappingTechniques') as id_mapping_techniques, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'WorkflowArn') as workflow_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::EntityResolution::IdMappingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' + AND listing.region = 'us-east-1' + id_mapping_workflows_list_only: + name: id_mapping_workflows_list_only + id: aws.entityresolution.id_mapping_workflows_list_only + x-cfn-schema-name: IdMappingWorkflow + x-cfn-type-name: AWS::EntityResolution::IdMappingWorkflow + x-identifiers: + - WorkflowName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkflowName') as workflow_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkflowName') as workflow_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' + AND region = 'us-east-1' + id_mapping_workflow_tags: + name: id_mapping_workflow_tags + id: aws.entityresolution.id_mapping_workflow_tags + x-cfn-schema-name: IdMappingWorkflow + x-cfn-type-name: AWS::EntityResolution::IdMappingWorkflow + 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, '$.WorkflowName') as workflow_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InputSourceConfig') as input_source_config, + JSON_EXTRACT(detail.Properties, '$.OutputSourceConfig') as output_source_config, + JSON_EXTRACT(detail.Properties, '$.IdMappingTechniques') as id_mapping_techniques, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.WorkflowArn') as workflow_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::EntityResolution::IdMappingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' + 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, 'WorkflowName') as workflow_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InputSourceConfig') as input_source_config, + json_extract_path_text(detail.Properties, 'OutputSourceConfig') as output_source_config, + json_extract_path_text(detail.Properties, 'IdMappingTechniques') as id_mapping_techniques, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'WorkflowArn') as workflow_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::EntityResolution::IdMappingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::IdMappingWorkflow' + AND listing.region = 'us-east-1' id_namespaces: name: id_namespaces id: aws.entityresolution.id_namespaces @@ -1588,10 +1708,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IdNamespaceName') as id_namespace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdNamespace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IdNamespaceName') as id_namespace_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InputSourceConfig') as input_source_config, + JSON_EXTRACT(detail.Properties, '$.IdMappingWorkflowProperties') as id_mapping_workflow_properties, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.IdNamespaceArn') as id_namespace_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EntityResolution::IdNamespace' + AND detail.data__TypeName = 'AWS::EntityResolution::IdNamespace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1615,10 +1749,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IdNamespaceName') as id_namespace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdNamespace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IdNamespaceName') as id_namespace_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InputSourceConfig') as input_source_config, + json_extract_path_text(detail.Properties, 'IdMappingWorkflowProperties') as id_mapping_workflow_properties, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'IdNamespaceArn') as id_namespace_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EntityResolution::IdNamespace' + AND detail.data__TypeName = 'AWS::EntityResolution::IdNamespace' + AND listing.region = 'us-east-1' + id_namespaces_list_only: + name: id_namespaces_list_only + id: aws.entityresolution.id_namespaces_list_only + x-cfn-schema-name: IdNamespace + x-cfn-type-name: AWS::EntityResolution::IdNamespace + x-identifiers: + - IdNamespaceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IdNamespaceName') as id_namespace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdNamespace' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IdNamespaceName') as id_namespace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::IdNamespace' + AND region = 'us-east-1' + id_namespace_tags: + name: id_namespace_tags + id: aws.entityresolution.id_namespace_tags + x-cfn-schema-name: IdNamespace + x-cfn-type-name: AWS::EntityResolution::IdNamespace + 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, '$.IdNamespaceName') as id_namespace_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InputSourceConfig') as input_source_config, + JSON_EXTRACT(detail.Properties, '$.IdMappingWorkflowProperties') as id_mapping_workflow_properties, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.IdNamespaceArn') as id_namespace_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::EntityResolution::IdNamespace' + AND detail.data__TypeName = 'AWS::EntityResolution::IdNamespace' + 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, 'IdNamespaceName') as id_namespace_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InputSourceConfig') as input_source_config, + json_extract_path_text(detail.Properties, 'IdMappingWorkflowProperties') as id_mapping_workflow_properties, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'IdNamespaceArn') as id_namespace_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::EntityResolution::IdNamespace' + AND detail.data__TypeName = 'AWS::EntityResolution::IdNamespace' + AND listing.region = 'us-east-1' matching_workflows: name: matching_workflows id: aws.entityresolution.matching_workflows @@ -1699,10 +1939,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkflowName') as workflow_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WorkflowName') as workflow_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InputSourceConfig') as input_source_config, + JSON_EXTRACT(detail.Properties, '$.OutputSourceConfig') as output_source_config, + JSON_EXTRACT(detail.Properties, '$.ResolutionTechniques') as resolution_techniques, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.WorkflowArn') as workflow_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::EntityResolution::MatchingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1726,10 +1980,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkflowName') as workflow_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WorkflowName') as workflow_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InputSourceConfig') as input_source_config, + json_extract_path_text(detail.Properties, 'OutputSourceConfig') as output_source_config, + json_extract_path_text(detail.Properties, 'ResolutionTechniques') as resolution_techniques, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'WorkflowArn') as workflow_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::EntityResolution::MatchingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' + AND listing.region = 'us-east-1' + matching_workflows_list_only: + name: matching_workflows_list_only + id: aws.entityresolution.matching_workflows_list_only + x-cfn-schema-name: MatchingWorkflow + x-cfn-type-name: AWS::EntityResolution::MatchingWorkflow + x-identifiers: + - WorkflowName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkflowName') as workflow_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkflowName') as workflow_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' + AND region = 'us-east-1' + matching_workflow_tags: + name: matching_workflow_tags + id: aws.entityresolution.matching_workflow_tags + x-cfn-schema-name: MatchingWorkflow + x-cfn-type-name: AWS::EntityResolution::MatchingWorkflow + 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, '$.WorkflowName') as workflow_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InputSourceConfig') as input_source_config, + JSON_EXTRACT(detail.Properties, '$.OutputSourceConfig') as output_source_config, + JSON_EXTRACT(detail.Properties, '$.ResolutionTechniques') as resolution_techniques, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.WorkflowArn') as workflow_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::EntityResolution::MatchingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' + 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, 'WorkflowName') as workflow_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InputSourceConfig') as input_source_config, + json_extract_path_text(detail.Properties, 'OutputSourceConfig') as output_source_config, + json_extract_path_text(detail.Properties, 'ResolutionTechniques') as resolution_techniques, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'WorkflowArn') as workflow_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::EntityResolution::MatchingWorkflow' + AND detail.data__TypeName = 'AWS::EntityResolution::MatchingWorkflow' + AND listing.region = 'us-east-1' policy_statements: name: policy_statements id: aws.entityresolution.policy_statements @@ -1807,11 +2167,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn, - JSON_EXTRACT(Properties, '$.StatementId') as statement_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::PolicyStatement' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StatementId') as statement_id, + JSON_EXTRACT(detail.Properties, '$.Effect') as effect, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Principal') as principal, + JSON_EXTRACT(detail.Properties, '$.Condition') as condition + 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::EntityResolution::PolicyStatement' + AND detail.data__TypeName = 'AWS::EntityResolution::PolicyStatement' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1831,11 +2200,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn, - json_extract_path_text(Properties, 'StatementId') as statement_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::PolicyStatement' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StatementId') as statement_id, + json_extract_path_text(detail.Properties, 'Effect') as effect, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'Principal') as principal, + json_extract_path_text(detail.Properties, 'Condition') as condition + 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::EntityResolution::PolicyStatement' + AND detail.data__TypeName = 'AWS::EntityResolution::PolicyStatement' + AND listing.region = 'us-east-1' + policy_statements_list_only: + name: policy_statements_list_only + id: aws.entityresolution.policy_statements_list_only + x-cfn-schema-name: PolicyStatement + x-cfn-type-name: AWS::EntityResolution::PolicyStatement + x-identifiers: + - Arn + - StatementId + 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, + JSON_EXTRACT(Properties, '$.StatementId') as statement_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::PolicyStatement' + 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, 'StatementId') as statement_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::PolicyStatement' + AND region = 'us-east-1' schema_mappings: name: schema_mappings id: aws.entityresolution.schema_mappings @@ -1914,10 +2326,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SchemaName') as schema_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::SchemaMapping' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SchemaName') as schema_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MappedInputFields') as mapped_input_fields, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SchemaArn') as schema_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.HasWorkflows') as has_workflows + 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::EntityResolution::SchemaMapping' + AND detail.data__TypeName = 'AWS::EntityResolution::SchemaMapping' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1939,10 +2363,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SchemaName') as schema_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::SchemaMapping' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SchemaName') as schema_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MappedInputFields') as mapped_input_fields, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SchemaArn') as schema_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'HasWorkflows') as has_workflows + 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::EntityResolution::SchemaMapping' + AND detail.data__TypeName = 'AWS::EntityResolution::SchemaMapping' + AND listing.region = 'us-east-1' + schema_mappings_list_only: + name: schema_mappings_list_only + id: aws.entityresolution.schema_mappings_list_only + x-cfn-schema-name: SchemaMapping + x-cfn-type-name: AWS::EntityResolution::SchemaMapping + x-identifiers: + - SchemaName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SchemaName') as schema_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::SchemaMapping' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SchemaName') as schema_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EntityResolution::SchemaMapping' + AND region = 'us-east-1' + schema_mapping_tags: + name: schema_mapping_tags + id: aws.entityresolution.schema_mapping_tags + x-cfn-schema-name: SchemaMapping + x-cfn-type-name: AWS::EntityResolution::SchemaMapping + 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, '$.SchemaName') as schema_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MappedInputFields') as mapped_input_fields, + JSON_EXTRACT(detail.Properties, '$.SchemaArn') as schema_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.HasWorkflows') as has_workflows + 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::EntityResolution::SchemaMapping' + AND detail.data__TypeName = 'AWS::EntityResolution::SchemaMapping' + 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, 'SchemaName') as schema_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MappedInputFields') as mapped_input_fields, + json_extract_path_text(detail.Properties, 'SchemaArn') as schema_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'HasWorkflows') as has_workflows + 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::EntityResolution::SchemaMapping' + AND detail.data__TypeName = 'AWS::EntityResolution::SchemaMapping' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/events.yaml b/providers/src/aws/v00.00.00000/services/events.yaml index e568e127..01706856 100644 --- a/providers/src/aws/v00.00.00000/services/events.yaml +++ b/providers/src/aws/v00.00.00000/services/events.yaml @@ -1697,10 +1697,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::ApiDestination' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ConnectionArn') as connection_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.InvocationRateLimitPerSecond') as invocation_rate_limit_per_second, + JSON_EXTRACT(detail.Properties, '$.InvocationEndpoint') as invocation_endpoint, + JSON_EXTRACT(detail.Properties, '$.HttpMethod') as http_method + 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::Events::ApiDestination' + AND detail.data__TypeName = 'AWS::Events::ApiDestination' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1721,10 +1732,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::ApiDestination' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ConnectionArn') as connection_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'InvocationRateLimitPerSecond') as invocation_rate_limit_per_second, + json_extract_path_text(detail.Properties, 'InvocationEndpoint') as invocation_endpoint, + json_extract_path_text(detail.Properties, 'HttpMethod') as http_method + 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::Events::ApiDestination' + AND detail.data__TypeName = 'AWS::Events::ApiDestination' + AND listing.region = 'us-east-1' + api_destinations_list_only: + name: api_destinations_list_only + id: aws.events.api_destinations_list_only + x-cfn-schema-name: ApiDestination + x-cfn-type-name: AWS::Events::ApiDestination + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::ApiDestination' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::ApiDestination' + AND region = 'us-east-1' archives: name: archives id: aws.events.archives @@ -1801,10 +1854,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ArchiveName') as archive_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Archive' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ArchiveName') as archive_name, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EventPattern') as event_pattern, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RetentionDays') as retention_days + 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::Events::Archive' + AND detail.data__TypeName = 'AWS::Events::Archive' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1824,10 +1887,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ArchiveName') as archive_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Archive' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ArchiveName') as archive_name, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EventPattern') as event_pattern, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RetentionDays') as retention_days + 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::Events::Archive' + AND detail.data__TypeName = 'AWS::Events::Archive' + AND listing.region = 'us-east-1' + archives_list_only: + name: archives_list_only + id: aws.events.archives_list_only + x-cfn-schema-name: Archive + x-cfn-type-name: AWS::Events::Archive + x-identifiers: + - ArchiveName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ArchiveName') as archive_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Archive' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ArchiveName') as archive_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Archive' + AND region = 'us-east-1' connections: name: connections id: aws.events.connections @@ -1904,10 +2008,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Connection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.SecretArn') as secret_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AuthorizationType') as authorization_type, + JSON_EXTRACT(detail.Properties, '$.AuthParameters') as auth_parameters + 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::Events::Connection' + AND detail.data__TypeName = 'AWS::Events::Connection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1927,10 +2041,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Connection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'SecretArn') as secret_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AuthorizationType') as authorization_type, + json_extract_path_text(detail.Properties, 'AuthParameters') as auth_parameters + 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::Events::Connection' + AND detail.data__TypeName = 'AWS::Events::Connection' + AND listing.region = 'us-east-1' + connections_list_only: + name: connections_list_only + id: aws.events.connections_list_only + x-cfn-schema-name: Connection + x-cfn-type-name: AWS::Events::Connection + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Connection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Connection' + AND region = 'us-east-1' endpoints: name: endpoints id: aws.events.endpoints @@ -2012,10 +2167,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Endpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoutingConfig') as routing_config, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfig') as replication_config, + JSON_EXTRACT(detail.Properties, '$.EventBuses') as event_buses, + JSON_EXTRACT(detail.Properties, '$.EndpointId') as endpoint_id, + JSON_EXTRACT(detail.Properties, '$.EndpointUrl') as endpoint_url, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.StateReason') as state_reason + 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::Events::Endpoint' + AND detail.data__TypeName = 'AWS::Events::Endpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2040,10 +2210,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Endpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoutingConfig') as routing_config, + json_extract_path_text(detail.Properties, 'ReplicationConfig') as replication_config, + json_extract_path_text(detail.Properties, 'EventBuses') as event_buses, + json_extract_path_text(detail.Properties, 'EndpointId') as endpoint_id, + json_extract_path_text(detail.Properties, 'EndpointUrl') as endpoint_url, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'StateReason') as state_reason + 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::Events::Endpoint' + AND detail.data__TypeName = 'AWS::Events::Endpoint' + AND listing.region = 'us-east-1' + endpoints_list_only: + name: endpoints_list_only + id: aws.events.endpoints_list_only + x-cfn-schema-name: Endpoint + x-cfn-type-name: AWS::Events::Endpoint + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Endpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Endpoint' + AND region = 'us-east-1' event_buses: name: event_buses id: aws.events.event_buses @@ -2122,10 +2338,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::EventBus' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EventSourceName') as event_source_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyIdentifier') as kms_key_identifier, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DeadLetterConfig') as dead_letter_config + 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::Events::EventBus' + AND detail.data__TypeName = 'AWS::Events::EventBus' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2147,10 +2375,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::EventBus' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EventSourceName') as event_source_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyIdentifier') as kms_key_identifier, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DeadLetterConfig') as dead_letter_config + 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::Events::EventBus' + AND detail.data__TypeName = 'AWS::Events::EventBus' + AND listing.region = 'us-east-1' + event_buses_list_only: + name: event_buses_list_only + id: aws.events.event_buses_list_only + x-cfn-schema-name: EventBus + x-cfn-type-name: AWS::Events::EventBus + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::EventBus' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::EventBus' + AND region = 'us-east-1' + event_bus_tags: + name: event_bus_tags + id: aws.events.event_bus_tags + x-cfn-schema-name: EventBus + x-cfn-type-name: AWS::Events::EventBus + 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, '$.EventSourceName') as event_source_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyIdentifier') as kms_key_identifier, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DeadLetterConfig') as dead_letter_config + 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::Events::EventBus' + AND detail.data__TypeName = 'AWS::Events::EventBus' + 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, 'EventSourceName') as event_source_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyIdentifier') as kms_key_identifier, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DeadLetterConfig') as dead_letter_config + 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::Events::EventBus' + AND detail.data__TypeName = 'AWS::Events::EventBus' + AND listing.region = 'us-east-1' rules: name: rules id: aws.events.rules @@ -2230,10 +2558,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Rule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EventBusName') as event_bus_name, + JSON_EXTRACT(detail.Properties, '$.EventPattern') as event_pattern, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpression') as schedule_expression, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::Events::Rule' + AND detail.data__TypeName = 'AWS::Events::Rule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2256,10 +2597,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Events::Rule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EventBusName') as event_bus_name, + json_extract_path_text(detail.Properties, 'EventPattern') as event_pattern, + json_extract_path_text(detail.Properties, 'ScheduleExpression') as schedule_expression, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Name') as name + 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::Events::Rule' + AND detail.data__TypeName = 'AWS::Events::Rule' + AND listing.region = 'us-east-1' + rules_list_only: + name: rules_list_only + id: aws.events.rules_list_only + x-cfn-schema-name: Rule + x-cfn-type-name: AWS::Events::Rule + 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::Events::Rule' + 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::Events::Rule' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/eventschemas.yaml b/providers/src/aws/v00.00.00000/services/eventschemas.yaml index d46bf66a..4eda69d9 100644 --- a/providers/src/aws/v00.00.00000/services/eventschemas.yaml +++ b/providers/src/aws/v00.00.00000/services/eventschemas.yaml @@ -880,10 +880,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DiscovererArn') as discoverer_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Discoverer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DiscovererArn') as discoverer_arn, + JSON_EXTRACT(detail.Properties, '$.DiscovererId') as discoverer_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.CrossAccount') as cross_account, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EventSchemas::Discoverer' + AND detail.data__TypeName = 'AWS::EventSchemas::Discoverer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -904,10 +915,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DiscovererArn') as discoverer_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Discoverer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DiscovererArn') as discoverer_arn, + json_extract_path_text(detail.Properties, 'DiscovererId') as discoverer_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'CrossAccount') as cross_account, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EventSchemas::Discoverer' + AND detail.data__TypeName = 'AWS::EventSchemas::Discoverer' + AND listing.region = 'us-east-1' + discoverers_list_only: + name: discoverers_list_only + id: aws.eventschemas.discoverers_list_only + x-cfn-schema-name: Discoverer + x-cfn-type-name: AWS::EventSchemas::Discoverer + x-identifiers: + - DiscovererArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DiscovererArn') as discoverer_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Discoverer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DiscovererArn') as discoverer_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Discoverer' + AND region = 'us-east-1' + discoverer_tags: + name: discoverer_tags + id: aws.eventschemas.discoverer_tags + x-cfn-schema-name: Discoverer + x-cfn-type-name: AWS::EventSchemas::Discoverer + 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, '$.DiscovererArn') as discoverer_arn, + JSON_EXTRACT(detail.Properties, '$.DiscovererId') as discoverer_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.CrossAccount') as cross_account, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::EventSchemas::Discoverer' + AND detail.data__TypeName = 'AWS::EventSchemas::Discoverer' + 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, 'DiscovererArn') as discoverer_arn, + json_extract_path_text(detail.Properties, 'DiscovererId') as discoverer_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'CrossAccount') as cross_account, + json_extract_path_text(detail.Properties, 'State') as state + 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::EventSchemas::Discoverer' + AND detail.data__TypeName = 'AWS::EventSchemas::Discoverer' + AND listing.region = 'us-east-1' registries: name: registries id: aws.eventschemas.registries @@ -982,10 +1090,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RegistryArn') as registry_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Registry' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RegistryName') as registry_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RegistryArn') as registry_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EventSchemas::Registry' + AND detail.data__TypeName = 'AWS::EventSchemas::Registry' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1003,10 +1119,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RegistryArn') as registry_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Registry' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RegistryName') as registry_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RegistryArn') as registry_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EventSchemas::Registry' + AND detail.data__TypeName = 'AWS::EventSchemas::Registry' + AND listing.region = 'us-east-1' + registries_list_only: + name: registries_list_only + id: aws.eventschemas.registries_list_only + x-cfn-schema-name: Registry + x-cfn-type-name: AWS::EventSchemas::Registry + x-identifiers: + - RegistryArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RegistryArn') as registry_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Registry' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RegistryArn') as registry_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Registry' + AND region = 'us-east-1' + registry_tags: + name: registry_tags + id: aws.eventschemas.registry_tags + x-cfn-schema-name: Registry + x-cfn-type-name: AWS::EventSchemas::Registry + 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, '$.RegistryName') as registry_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RegistryArn') as registry_arn + 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::EventSchemas::Registry' + AND detail.data__TypeName = 'AWS::EventSchemas::Registry' + 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, 'RegistryName') as registry_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RegistryArn') as registry_arn + 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::EventSchemas::Registry' + AND detail.data__TypeName = 'AWS::EventSchemas::Registry' + AND listing.region = 'us-east-1' registry_policies: name: registry_policies id: aws.eventschemas.registry_policies @@ -1170,10 +1374,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SchemaArn') as schema_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Schema' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SchemaVersion') as schema_version, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.RegistryName') as registry_name, + JSON_EXTRACT(detail.Properties, '$.SchemaArn') as schema_arn, + JSON_EXTRACT(detail.Properties, '$.SchemaName') as schema_name, + JSON_EXTRACT(detail.Properties, '$.LastModified') as last_modified, + JSON_EXTRACT(detail.Properties, '$.VersionCreatedDate') as version_created_date, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::EventSchemas::Schema' + AND detail.data__TypeName = 'AWS::EventSchemas::Schema' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1197,10 +1415,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SchemaArn') as schema_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Schema' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SchemaVersion') as schema_version, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'RegistryName') as registry_name, + json_extract_path_text(detail.Properties, 'SchemaArn') as schema_arn, + json_extract_path_text(detail.Properties, 'SchemaName') as schema_name, + json_extract_path_text(detail.Properties, 'LastModified') as last_modified, + json_extract_path_text(detail.Properties, 'VersionCreatedDate') as version_created_date, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::EventSchemas::Schema' + AND detail.data__TypeName = 'AWS::EventSchemas::Schema' + AND listing.region = 'us-east-1' + schemata_list_only: + name: schemata_list_only + id: aws.eventschemas.schemata_list_only + x-cfn-schema-name: Schema + x-cfn-type-name: AWS::EventSchemas::Schema + x-identifiers: + - SchemaArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SchemaArn') as schema_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Schema' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SchemaArn') as schema_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::EventSchemas::Schema' + AND region = 'us-east-1' + schema_tags: + name: schema_tags + id: aws.eventschemas.schema_tags + x-cfn-schema-name: Schema + x-cfn-type-name: AWS::EventSchemas::Schema + 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, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SchemaVersion') as schema_version, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.RegistryName') as registry_name, + JSON_EXTRACT(detail.Properties, '$.SchemaArn') as schema_arn, + JSON_EXTRACT(detail.Properties, '$.SchemaName') as schema_name, + JSON_EXTRACT(detail.Properties, '$.LastModified') as last_modified, + JSON_EXTRACT(detail.Properties, '$.VersionCreatedDate') as version_created_date + 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::EventSchemas::Schema' + AND detail.data__TypeName = 'AWS::EventSchemas::Schema' + 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, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SchemaVersion') as schema_version, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'RegistryName') as registry_name, + json_extract_path_text(detail.Properties, 'SchemaArn') as schema_arn, + json_extract_path_text(detail.Properties, 'SchemaName') as schema_name, + json_extract_path_text(detail.Properties, 'LastModified') as last_modified, + json_extract_path_text(detail.Properties, 'VersionCreatedDate') as version_created_date + 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::EventSchemas::Schema' + AND detail.data__TypeName = 'AWS::EventSchemas::Schema' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/evidently.yaml b/providers/src/aws/v00.00.00000/services/evidently.yaml index ca3f78c1..2a4e8ec7 100644 --- a/providers/src/aws/v00.00.00000/services/evidently.yaml +++ b/providers/src/aws/v00.00.00000/services/evidently.yaml @@ -1939,10 +1939,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Evidently::Segment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Pattern') as pattern, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Evidently::Segment' + AND detail.data__TypeName = 'AWS::Evidently::Segment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1961,10 +1970,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Evidently::Segment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Pattern') as pattern, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Evidently::Segment' + AND detail.data__TypeName = 'AWS::Evidently::Segment' + AND listing.region = 'us-east-1' + segments_list_only: + name: segments_list_only + id: aws.evidently.segments_list_only + x-cfn-schema-name: Segment + x-cfn-type-name: AWS::Evidently::Segment + 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::Evidently::Segment' + 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::Evidently::Segment' + AND region = 'us-east-1' + segment_tags: + name: segment_tags + id: aws.evidently.segment_tags + x-cfn-schema-name: Segment + x-cfn-type-name: AWS::Evidently::Segment + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Pattern') as pattern + 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::Evidently::Segment' + AND detail.data__TypeName = 'AWS::Evidently::Segment' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Pattern') as pattern + 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::Evidently::Segment' + AND detail.data__TypeName = 'AWS::Evidently::Segment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/finspace.yaml b/providers/src/aws/v00.00.00000/services/finspace.yaml index 9646bbcd..a3e9dd3c 100644 --- a/providers/src/aws/v00.00.00000/services/finspace.yaml +++ b/providers/src/aws/v00.00.00000/services/finspace.yaml @@ -783,10 +783,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnvironmentId') as environment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FinSpace::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.EnvironmentUrl') as environment_url, + JSON_EXTRACT(detail.Properties, '$.EnvironmentArn') as environment_arn, + JSON_EXTRACT(detail.Properties, '$.SageMakerStudioDomainUrl') as sage_maker_studio_domain_url, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.DedicatedServiceAccountId') as dedicated_service_account_id, + JSON_EXTRACT(detail.Properties, '$.FederationMode') as federation_mode, + JSON_EXTRACT(detail.Properties, '$.FederationParameters') as federation_parameters, + JSON_EXTRACT(detail.Properties, '$.SuperuserParameters') as superuser_parameters, + JSON_EXTRACT(detail.Properties, '$.DataBundles') as data_bundles, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::FinSpace::Environment' + AND detail.data__TypeName = 'AWS::FinSpace::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -815,10 +834,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnvironmentId') as environment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FinSpace::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'EnvironmentUrl') as environment_url, + json_extract_path_text(detail.Properties, 'EnvironmentArn') as environment_arn, + json_extract_path_text(detail.Properties, 'SageMakerStudioDomainUrl') as sage_maker_studio_domain_url, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'DedicatedServiceAccountId') as dedicated_service_account_id, + json_extract_path_text(detail.Properties, 'FederationMode') as federation_mode, + json_extract_path_text(detail.Properties, 'FederationParameters') as federation_parameters, + json_extract_path_text(detail.Properties, 'SuperuserParameters') as superuser_parameters, + json_extract_path_text(detail.Properties, 'DataBundles') as data_bundles, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::FinSpace::Environment' + AND detail.data__TypeName = 'AWS::FinSpace::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.finspace.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::FinSpace::Environment + x-identifiers: + - EnvironmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnvironmentId') as environment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FinSpace::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnvironmentId') as environment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FinSpace::Environment' + AND region = 'us-east-1' + environment_tags: + name: environment_tags + id: aws.finspace.environment_tags + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::FinSpace::Environment + 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, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.EnvironmentUrl') as environment_url, + JSON_EXTRACT(detail.Properties, '$.EnvironmentArn') as environment_arn, + JSON_EXTRACT(detail.Properties, '$.SageMakerStudioDomainUrl') as sage_maker_studio_domain_url, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.DedicatedServiceAccountId') as dedicated_service_account_id, + JSON_EXTRACT(detail.Properties, '$.FederationMode') as federation_mode, + JSON_EXTRACT(detail.Properties, '$.FederationParameters') as federation_parameters, + JSON_EXTRACT(detail.Properties, '$.SuperuserParameters') as superuser_parameters, + JSON_EXTRACT(detail.Properties, '$.DataBundles') as data_bundles + 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::FinSpace::Environment' + AND detail.data__TypeName = 'AWS::FinSpace::Environment' + 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, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'EnvironmentUrl') as environment_url, + json_extract_path_text(detail.Properties, 'EnvironmentArn') as environment_arn, + json_extract_path_text(detail.Properties, 'SageMakerStudioDomainUrl') as sage_maker_studio_domain_url, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'DedicatedServiceAccountId') as dedicated_service_account_id, + json_extract_path_text(detail.Properties, 'FederationMode') as federation_mode, + json_extract_path_text(detail.Properties, 'FederationParameters') as federation_parameters, + json_extract_path_text(detail.Properties, 'SuperuserParameters') as superuser_parameters, + json_extract_path_text(detail.Properties, 'DataBundles') as data_bundles + 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::FinSpace::Environment' + AND detail.data__TypeName = 'AWS::FinSpace::Environment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/fis.yaml b/providers/src/aws/v00.00.00000/services/fis.yaml index 2055885e..59871b8f 100644 --- a/providers/src/aws/v00.00.00000/services/fis.yaml +++ b/providers/src/aws/v00.00.00000/services/fis.yaml @@ -890,10 +890,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::ExperimentTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.StopConditions') as stop_conditions, + JSON_EXTRACT(detail.Properties, '$.LogConfiguration') as log_configuration, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ExperimentOptions') as experiment_options + 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::FIS::ExperimentTemplate' + AND detail.data__TypeName = 'AWS::FIS::ExperimentTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -916,10 +929,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::ExperimentTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'StopConditions') as stop_conditions, + json_extract_path_text(detail.Properties, 'LogConfiguration') as log_configuration, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ExperimentOptions') as experiment_options + 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::FIS::ExperimentTemplate' + AND detail.data__TypeName = 'AWS::FIS::ExperimentTemplate' + AND listing.region = 'us-east-1' + experiment_templates_list_only: + name: experiment_templates_list_only + id: aws.fis.experiment_templates_list_only + x-cfn-schema-name: ExperimentTemplate + x-cfn-type-name: AWS::FIS::ExperimentTemplate + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::ExperimentTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::ExperimentTemplate' + AND region = 'us-east-1' + experiment_template_tags: + name: experiment_template_tags + id: aws.fis.experiment_template_tags + x-cfn-schema-name: ExperimentTemplate + x-cfn-type-name: AWS::FIS::ExperimentTemplate + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.StopConditions') as stop_conditions, + JSON_EXTRACT(detail.Properties, '$.LogConfiguration') as log_configuration, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.ExperimentOptions') as experiment_options + 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::FIS::ExperimentTemplate' + AND detail.data__TypeName = 'AWS::FIS::ExperimentTemplate' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'StopConditions') as stop_conditions, + json_extract_path_text(detail.Properties, 'LogConfiguration') as log_configuration, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'ExperimentOptions') as experiment_options + 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::FIS::ExperimentTemplate' + AND detail.data__TypeName = 'AWS::FIS::ExperimentTemplate' + AND listing.region = 'us-east-1' target_account_configurations: name: target_account_configurations id: aws.fis.target_account_configurations @@ -995,11 +1111,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ExperimentTemplateId') as experiment_template_id, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::TargetAccountConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ExperimentTemplateId') as experiment_template_id, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::FIS::TargetAccountConfiguration' + AND detail.data__TypeName = 'AWS::FIS::TargetAccountConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1017,11 +1140,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ExperimentTemplateId') as experiment_template_id, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::TargetAccountConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ExperimentTemplateId') as experiment_template_id, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Description') as description + 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::FIS::TargetAccountConfiguration' + AND detail.data__TypeName = 'AWS::FIS::TargetAccountConfiguration' + AND listing.region = 'us-east-1' + target_account_configurations_list_only: + name: target_account_configurations_list_only + id: aws.fis.target_account_configurations_list_only + x-cfn-schema-name: TargetAccountConfiguration + x-cfn-type-name: AWS::FIS::TargetAccountConfiguration + x-identifiers: + - ExperimentTemplateId + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ExperimentTemplateId') as experiment_template_id, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::TargetAccountConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ExperimentTemplateId') as experiment_template_id, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FIS::TargetAccountConfiguration' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/fms.yaml b/providers/src/aws/v00.00.00000/services/fms.yaml index 31934be1..efb41567 100644 --- a/providers/src/aws/v00.00.00000/services/fms.yaml +++ b/providers/src/aws/v00.00.00000/services/fms.yaml @@ -1102,10 +1102,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SnsTopicArn') as sns_topic_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::NotificationChannel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SnsRoleName') as sns_role_name, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn + 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::FMS::NotificationChannel' + AND detail.data__TypeName = 'AWS::FMS::NotificationChannel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1121,10 +1127,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SnsTopicArn') as sns_topic_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::NotificationChannel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SnsRoleName') as sns_role_name, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn + 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::FMS::NotificationChannel' + AND detail.data__TypeName = 'AWS::FMS::NotificationChannel' + AND listing.region = 'us-east-1' + notification_channels_list_only: + name: notification_channels_list_only + id: aws.fms.notification_channels_list_only + x-cfn-schema-name: NotificationChannel + x-cfn-type-name: AWS::FMS::NotificationChannel + x-identifiers: + - SnsTopicArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SnsTopicArn') as sns_topic_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::NotificationChannel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SnsTopicArn') as sns_topic_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::NotificationChannel' + AND region = 'us-east-1' policies: name: policies id: aws.fms.policies @@ -1211,10 +1254,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::Policy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ExcludeMap') as exclude_map, + JSON_EXTRACT(detail.Properties, '$.ExcludeResourceTags') as exclude_resource_tags, + JSON_EXTRACT(detail.Properties, '$.IncludeMap') as include_map, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyDescription') as policy_description, + JSON_EXTRACT(detail.Properties, '$.RemediationEnabled') as remediation_enabled, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.ResourceTypeList') as resource_type_list, + JSON_EXTRACT(detail.Properties, '$.ResourceSetIds') as resource_set_ids, + JSON_EXTRACT(detail.Properties, '$.SecurityServicePolicyData') as security_service_policy_data, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DeleteAllPolicyResources') as delete_all_policy_resources, + JSON_EXTRACT(detail.Properties, '$.ResourcesCleanUp') as resources_clean_up, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::FMS::Policy' + AND detail.data__TypeName = 'AWS::FMS::Policy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1244,10 +1307,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::Policy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ExcludeMap') as exclude_map, + json_extract_path_text(detail.Properties, 'ExcludeResourceTags') as exclude_resource_tags, + json_extract_path_text(detail.Properties, 'IncludeMap') as include_map, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyDescription') as policy_description, + json_extract_path_text(detail.Properties, 'RemediationEnabled') as remediation_enabled, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'ResourceTypeList') as resource_type_list, + json_extract_path_text(detail.Properties, 'ResourceSetIds') as resource_set_ids, + json_extract_path_text(detail.Properties, 'SecurityServicePolicyData') as security_service_policy_data, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DeleteAllPolicyResources') as delete_all_policy_resources, + json_extract_path_text(detail.Properties, 'ResourcesCleanUp') as resources_clean_up, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::FMS::Policy' + AND detail.data__TypeName = 'AWS::FMS::Policy' + AND listing.region = 'us-east-1' + policies_list_only: + name: policies_list_only + id: aws.fms.policies_list_only + x-cfn-schema-name: Policy + x-cfn-type-name: AWS::FMS::Policy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::Policy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::Policy' + AND region = 'us-east-1' + policy_tags: + name: policy_tags + id: aws.fms.policy_tags + x-cfn-schema-name: Policy + x-cfn-type-name: AWS::FMS::Policy + 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, '$.ExcludeMap') as exclude_map, + JSON_EXTRACT(detail.Properties, '$.ExcludeResourceTags') as exclude_resource_tags, + JSON_EXTRACT(detail.Properties, '$.IncludeMap') as include_map, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyDescription') as policy_description, + JSON_EXTRACT(detail.Properties, '$.RemediationEnabled') as remediation_enabled, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.ResourceTypeList') as resource_type_list, + JSON_EXTRACT(detail.Properties, '$.ResourceSetIds') as resource_set_ids, + JSON_EXTRACT(detail.Properties, '$.SecurityServicePolicyData') as security_service_policy_data, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DeleteAllPolicyResources') as delete_all_policy_resources, + JSON_EXTRACT(detail.Properties, '$.ResourcesCleanUp') as resources_clean_up + 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::FMS::Policy' + AND detail.data__TypeName = 'AWS::FMS::Policy' + 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, 'ExcludeMap') as exclude_map, + json_extract_path_text(detail.Properties, 'ExcludeResourceTags') as exclude_resource_tags, + json_extract_path_text(detail.Properties, 'IncludeMap') as include_map, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyDescription') as policy_description, + json_extract_path_text(detail.Properties, 'RemediationEnabled') as remediation_enabled, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'ResourceTypeList') as resource_type_list, + json_extract_path_text(detail.Properties, 'ResourceSetIds') as resource_set_ids, + json_extract_path_text(detail.Properties, 'SecurityServicePolicyData') as security_service_policy_data, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DeleteAllPolicyResources') as delete_all_policy_resources, + json_extract_path_text(detail.Properties, 'ResourcesCleanUp') as resources_clean_up + 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::FMS::Policy' + AND detail.data__TypeName = 'AWS::FMS::Policy' + AND listing.region = 'us-east-1' resource_sets: name: resource_sets id: aws.fms.resource_sets @@ -1324,10 +1511,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::ResourceSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ResourceTypeList') as resource_type_list, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::FMS::ResourceSet' + AND detail.data__TypeName = 'AWS::FMS::ResourceSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1347,10 +1544,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::ResourceSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ResourceTypeList') as resource_type_list, + json_extract_path_text(detail.Properties, 'Resources') as resources, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::FMS::ResourceSet' + AND detail.data__TypeName = 'AWS::FMS::ResourceSet' + AND listing.region = 'us-east-1' + resource_sets_list_only: + name: resource_sets_list_only + id: aws.fms.resource_sets_list_only + x-cfn-schema-name: ResourceSet + x-cfn-type-name: AWS::FMS::ResourceSet + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::ResourceSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FMS::ResourceSet' + AND region = 'us-east-1' + resource_set_tags: + name: resource_set_tags + id: aws.fms.resource_set_tags + x-cfn-schema-name: ResourceSet + x-cfn-type-name: AWS::FMS::ResourceSet + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ResourceTypeList') as resource_type_list, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources + 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::FMS::ResourceSet' + AND detail.data__TypeName = 'AWS::FMS::ResourceSet' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ResourceTypeList') as resource_type_list, + json_extract_path_text(detail.Properties, 'Resources') as resources + 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::FMS::ResourceSet' + AND detail.data__TypeName = 'AWS::FMS::ResourceSet' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/forecast.yaml b/providers/src/aws/v00.00.00000/services/forecast.yaml index 3f28216b..57e26200 100644 --- a/providers/src/aws/v00.00.00000/services/forecast.yaml +++ b/providers/src/aws/v00.00.00000/services/forecast.yaml @@ -825,10 +825,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Forecast::Dataset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.DatasetType') as dataset_type, + JSON_EXTRACT(detail.Properties, '$.DataFrequency') as data_frequency, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfig') as encryption_config, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Forecast::Dataset' + AND detail.data__TypeName = 'AWS::Forecast::Dataset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -850,10 +862,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Forecast::Dataset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'DatasetType') as dataset_type, + json_extract_path_text(detail.Properties, 'DataFrequency') as data_frequency, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'EncryptionConfig') as encryption_config, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Forecast::Dataset' + AND detail.data__TypeName = 'AWS::Forecast::Dataset' + AND listing.region = 'us-east-1' + datasets_list_only: + name: datasets_list_only + id: aws.forecast.datasets_list_only + x-cfn-schema-name: Dataset + x-cfn-type-name: AWS::Forecast::Dataset + 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::Forecast::Dataset' + 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::Forecast::Dataset' + AND region = 'us-east-1' + dataset_tags: + name: dataset_tags + id: aws.forecast.dataset_tags + x-cfn-schema-name: Dataset + x-cfn-type-name: AWS::Forecast::Dataset + 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, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.DatasetType') as dataset_type, + JSON_EXTRACT(detail.Properties, '$.DataFrequency') as data_frequency, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfig') as encryption_config, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema + 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::Forecast::Dataset' + AND detail.data__TypeName = 'AWS::Forecast::Dataset' + 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, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'DatasetType') as dataset_type, + json_extract_path_text(detail.Properties, 'DataFrequency') as data_frequency, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'EncryptionConfig') as encryption_config, + json_extract_path_text(detail.Properties, 'Schema') as _schema + 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::Forecast::Dataset' + AND detail.data__TypeName = 'AWS::Forecast::Dataset' + AND listing.region = 'us-east-1' dataset_groups: name: dataset_groups id: aws.forecast.dataset_groups @@ -929,10 +1041,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatasetGroupArn') as dataset_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Forecast::DatasetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DatasetArns') as dataset_arns, + JSON_EXTRACT(detail.Properties, '$.DatasetGroupName') as dataset_group_name, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.DatasetGroupArn') as dataset_group_arn + 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::Forecast::DatasetGroup' + AND detail.data__TypeName = 'AWS::Forecast::DatasetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -951,10 +1072,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatasetGroupArn') as dataset_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Forecast::DatasetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DatasetArns') as dataset_arns, + json_extract_path_text(detail.Properties, 'DatasetGroupName') as dataset_group_name, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'DatasetGroupArn') as dataset_group_arn + 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::Forecast::DatasetGroup' + AND detail.data__TypeName = 'AWS::Forecast::DatasetGroup' + AND listing.region = 'us-east-1' + dataset_groups_list_only: + name: dataset_groups_list_only + id: aws.forecast.dataset_groups_list_only + x-cfn-schema-name: DatasetGroup + x-cfn-type-name: AWS::Forecast::DatasetGroup + x-identifiers: + - DatasetGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatasetGroupArn') as dataset_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Forecast::DatasetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatasetGroupArn') as dataset_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Forecast::DatasetGroup' + AND region = 'us-east-1' + dataset_group_tags: + name: dataset_group_tags + id: aws.forecast.dataset_group_tags + x-cfn-schema-name: DatasetGroup + x-cfn-type-name: AWS::Forecast::DatasetGroup + 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, '$.DatasetArns') as dataset_arns, + JSON_EXTRACT(detail.Properties, '$.DatasetGroupName') as dataset_group_name, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.DatasetGroupArn') as dataset_group_arn + 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::Forecast::DatasetGroup' + AND detail.data__TypeName = 'AWS::Forecast::DatasetGroup' + 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, 'DatasetArns') as dataset_arns, + json_extract_path_text(detail.Properties, 'DatasetGroupName') as dataset_group_name, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'DatasetGroupArn') as dataset_group_arn + 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::Forecast::DatasetGroup' + AND detail.data__TypeName = 'AWS::Forecast::DatasetGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/frauddetector.yaml b/providers/src/aws/v00.00.00000/services/frauddetector.yaml index 68e2b705..3cba49f3 100644 --- a/providers/src/aws/v00.00.00000/services/frauddetector.yaml +++ b/providers/src/aws/v00.00.00000/services/frauddetector.yaml @@ -1730,10 +1730,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::Label' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::Label' + AND detail.data__TypeName = 'AWS::FraudDetector::Label' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1753,10 +1763,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::FraudDetector::Label' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::Label' + AND detail.data__TypeName = 'AWS::FraudDetector::Label' + AND listing.region = 'us-east-1' + labels_list_only: + name: labels_list_only + id: aws.frauddetector.labels_list_only + x-cfn-schema-name: Label + x-cfn-type-name: AWS::FraudDetector::Label + 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::FraudDetector::Label' + 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::FraudDetector::Label' + AND region = 'us-east-1' + label_tags: + name: label_tags + id: aws.frauddetector.label_tags + x-cfn-schema-name: Label + x-cfn-type-name: AWS::FraudDetector::Label + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::Label' + AND detail.data__TypeName = 'AWS::FraudDetector::Label' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::Label' + AND detail.data__TypeName = 'AWS::FraudDetector::Label' + AND listing.region = 'us-east-1' outcomes: name: outcomes id: aws.frauddetector.outcomes @@ -1833,10 +1937,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::Outcome' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::Outcome' + AND detail.data__TypeName = 'AWS::FraudDetector::Outcome' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1856,10 +1970,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::FraudDetector::Outcome' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::Outcome' + AND detail.data__TypeName = 'AWS::FraudDetector::Outcome' + AND listing.region = 'us-east-1' + outcomes_list_only: + name: outcomes_list_only + id: aws.frauddetector.outcomes_list_only + x-cfn-schema-name: Outcome + x-cfn-type-name: AWS::FraudDetector::Outcome + 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::FraudDetector::Outcome' + 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::FraudDetector::Outcome' + AND region = 'us-east-1' + outcome_tags: + name: outcome_tags + id: aws.frauddetector.outcome_tags + x-cfn-schema-name: Outcome + x-cfn-type-name: AWS::FraudDetector::Outcome + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::Outcome' + AND detail.data__TypeName = 'AWS::FraudDetector::Outcome' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::Outcome' + AND detail.data__TypeName = 'AWS::FraudDetector::Outcome' + AND listing.region = 'us-east-1' event_types: name: event_types id: aws.frauddetector.event_types @@ -1939,10 +2147,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::EventType' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EventVariables') as event_variables, + JSON_EXTRACT(detail.Properties, '$.Labels') as labels, + JSON_EXTRACT(detail.Properties, '$.EntityTypes') as entity_types, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::EventType' + AND detail.data__TypeName = 'AWS::FraudDetector::EventType' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1965,10 +2186,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::EventType' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EventVariables') as event_variables, + json_extract_path_text(detail.Properties, 'Labels') as labels, + json_extract_path_text(detail.Properties, 'EntityTypes') as entity_types, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::EventType' + AND detail.data__TypeName = 'AWS::FraudDetector::EventType' + AND listing.region = 'us-east-1' + event_types_list_only: + name: event_types_list_only + id: aws.frauddetector.event_types_list_only + x-cfn-schema-name: EventType + x-cfn-type-name: AWS::FraudDetector::EventType + 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::FraudDetector::EventType' + 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::FraudDetector::EventType' + AND region = 'us-east-1' + event_type_tags: + name: event_type_tags + id: aws.frauddetector.event_type_tags + x-cfn-schema-name: EventType + x-cfn-type-name: AWS::FraudDetector::EventType + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EventVariables') as event_variables, + JSON_EXTRACT(detail.Properties, '$.Labels') as labels, + JSON_EXTRACT(detail.Properties, '$.EntityTypes') as entity_types, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::EventType' + AND detail.data__TypeName = 'AWS::FraudDetector::EventType' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EventVariables') as event_variables, + json_extract_path_text(detail.Properties, 'Labels') as labels, + json_extract_path_text(detail.Properties, 'EntityTypes') as entity_types, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::EventType' + AND detail.data__TypeName = 'AWS::FraudDetector::EventType' + AND listing.region = 'us-east-1' detectors: name: detectors id: aws.frauddetector.detectors @@ -2051,10 +2375,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::Detector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.DetectorVersionStatus') as detector_version_status, + JSON_EXTRACT(detail.Properties, '$.DetectorVersionId') as detector_version_id, + JSON_EXTRACT(detail.Properties, '$.RuleExecutionMode') as rule_execution_mode, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.EventType') as event_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.AssociatedModels') as associated_models + 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::FraudDetector::Detector' + AND detail.data__TypeName = 'AWS::FraudDetector::Detector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2080,10 +2420,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::Detector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'DetectorVersionStatus') as detector_version_status, + json_extract_path_text(detail.Properties, 'DetectorVersionId') as detector_version_id, + json_extract_path_text(detail.Properties, 'RuleExecutionMode') as rule_execution_mode, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'EventType') as event_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'AssociatedModels') as associated_models + 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::FraudDetector::Detector' + AND detail.data__TypeName = 'AWS::FraudDetector::Detector' + AND listing.region = 'us-east-1' + detectors_list_only: + name: detectors_list_only + id: aws.frauddetector.detectors_list_only + x-cfn-schema-name: Detector + x-cfn-type-name: AWS::FraudDetector::Detector + 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::FraudDetector::Detector' + 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::FraudDetector::Detector' + AND region = 'us-east-1' + detector_tags: + name: detector_tags + id: aws.frauddetector.detector_tags + x-cfn-schema-name: Detector + x-cfn-type-name: AWS::FraudDetector::Detector + 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, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.DetectorVersionStatus') as detector_version_status, + JSON_EXTRACT(detail.Properties, '$.DetectorVersionId') as detector_version_id, + JSON_EXTRACT(detail.Properties, '$.RuleExecutionMode') as rule_execution_mode, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.EventType') as event_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.AssociatedModels') as associated_models + 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::FraudDetector::Detector' + AND detail.data__TypeName = 'AWS::FraudDetector::Detector' + 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, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'DetectorVersionStatus') as detector_version_status, + json_extract_path_text(detail.Properties, 'DetectorVersionId') as detector_version_id, + json_extract_path_text(detail.Properties, 'RuleExecutionMode') as rule_execution_mode, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'EventType') as event_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'AssociatedModels') as associated_models + 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::FraudDetector::Detector' + AND detail.data__TypeName = 'AWS::FraudDetector::Detector' + AND listing.region = 'us-east-1' lists: name: lists id: aws.frauddetector.lists @@ -2162,10 +2614,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::List' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.VariableType') as variable_type, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Elements') as elements + 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::FraudDetector::List' + AND detail.data__TypeName = 'AWS::FraudDetector::List' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2187,10 +2651,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::List' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'VariableType') as variable_type, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Elements') as elements + 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::FraudDetector::List' + AND detail.data__TypeName = 'AWS::FraudDetector::List' + AND listing.region = 'us-east-1' + lists_list_only: + name: lists_list_only + id: aws.frauddetector.lists_list_only + x-cfn-schema-name: List + x-cfn-type-name: AWS::FraudDetector::List + 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::FraudDetector::List' + 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::FraudDetector::List' + AND region = 'us-east-1' + list_tags: + name: list_tags + id: aws.frauddetector.list_tags + x-cfn-schema-name: List + x-cfn-type-name: AWS::FraudDetector::List + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.VariableType') as variable_type, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Elements') as elements + 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::FraudDetector::List' + AND detail.data__TypeName = 'AWS::FraudDetector::List' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'VariableType') as variable_type, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Elements') as elements + 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::FraudDetector::List' + AND detail.data__TypeName = 'AWS::FraudDetector::List' + AND listing.region = 'us-east-1' variables: name: variables id: aws.frauddetector.variables @@ -2271,10 +2835,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::Variable' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DataSource') as data_source, + JSON_EXTRACT(detail.Properties, '$.DataType') as data_type, + JSON_EXTRACT(detail.Properties, '$.DefaultValue') as default_value, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VariableType') as variable_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::Variable' + AND detail.data__TypeName = 'AWS::FraudDetector::Variable' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2298,10 +2876,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FraudDetector::Variable' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DataSource') as data_source, + json_extract_path_text(detail.Properties, 'DataType') as data_type, + json_extract_path_text(detail.Properties, 'DefaultValue') as default_value, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VariableType') as variable_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::Variable' + AND detail.data__TypeName = 'AWS::FraudDetector::Variable' + AND listing.region = 'us-east-1' + variables_list_only: + name: variables_list_only + id: aws.frauddetector.variables_list_only + x-cfn-schema-name: Variable + x-cfn-type-name: AWS::FraudDetector::Variable + 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::FraudDetector::Variable' + 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::FraudDetector::Variable' + AND region = 'us-east-1' + variable_tags: + name: variable_tags + id: aws.frauddetector.variable_tags + x-cfn-schema-name: Variable + x-cfn-type-name: AWS::FraudDetector::Variable + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DataSource') as data_source, + JSON_EXTRACT(detail.Properties, '$.DataType') as data_type, + JSON_EXTRACT(detail.Properties, '$.DefaultValue') as default_value, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.VariableType') as variable_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time + 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::FraudDetector::Variable' + AND detail.data__TypeName = 'AWS::FraudDetector::Variable' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'DataSource') as data_source, + json_extract_path_text(detail.Properties, 'DataType') as data_type, + json_extract_path_text(detail.Properties, 'DefaultValue') as default_value, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'VariableType') as variable_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time + 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::FraudDetector::Variable' + AND detail.data__TypeName = 'AWS::FraudDetector::Variable' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/fsx.yaml b/providers/src/aws/v00.00.00000/services/fsx.yaml index 8ab01f56..0bc5a9cb 100644 --- a/providers/src/aws/v00.00.00000/services/fsx.yaml +++ b/providers/src/aws/v00.00.00000/services/fsx.yaml @@ -708,10 +708,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FSx::DataRepositoryAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id, + JSON_EXTRACT(detail.Properties, '$.ResourceARN') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.FileSystemId') as file_system_id, + JSON_EXTRACT(detail.Properties, '$.FileSystemPath') as file_system_path, + JSON_EXTRACT(detail.Properties, '$.DataRepositoryPath') as data_repository_path, + JSON_EXTRACT(detail.Properties, '$.BatchImportMetaDataOnCreate') as batch_import_meta_data_on_create, + JSON_EXTRACT(detail.Properties, '$.ImportedFileChunkSize') as imported_file_chunk_size, + JSON_EXTRACT(detail.Properties, '$.S3') as s3, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::FSx::DataRepositoryAssociation' + AND detail.data__TypeName = 'AWS::FSx::DataRepositoryAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -734,10 +747,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FSx::DataRepositoryAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id, + json_extract_path_text(detail.Properties, 'ResourceARN') as resource_arn, + json_extract_path_text(detail.Properties, 'FileSystemId') as file_system_id, + json_extract_path_text(detail.Properties, 'FileSystemPath') as file_system_path, + json_extract_path_text(detail.Properties, 'DataRepositoryPath') as data_repository_path, + json_extract_path_text(detail.Properties, 'BatchImportMetaDataOnCreate') as batch_import_meta_data_on_create, + json_extract_path_text(detail.Properties, 'ImportedFileChunkSize') as imported_file_chunk_size, + json_extract_path_text(detail.Properties, 'S3') as s3, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::FSx::DataRepositoryAssociation' + AND detail.data__TypeName = 'AWS::FSx::DataRepositoryAssociation' + AND listing.region = 'us-east-1' + data_repository_associations_list_only: + name: data_repository_associations_list_only + id: aws.fsx.data_repository_associations_list_only + x-cfn-schema-name: DataRepositoryAssociation + x-cfn-type-name: AWS::FSx::DataRepositoryAssociation + x-identifiers: + - AssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FSx::DataRepositoryAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::FSx::DataRepositoryAssociation' + AND region = 'us-east-1' + data_repository_association_tags: + name: data_repository_association_tags + id: aws.fsx.data_repository_association_tags + x-cfn-schema-name: DataRepositoryAssociation + x-cfn-type-name: AWS::FSx::DataRepositoryAssociation + 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, '$.AssociationId') as association_id, + JSON_EXTRACT(detail.Properties, '$.ResourceARN') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.FileSystemId') as file_system_id, + JSON_EXTRACT(detail.Properties, '$.FileSystemPath') as file_system_path, + JSON_EXTRACT(detail.Properties, '$.DataRepositoryPath') as data_repository_path, + JSON_EXTRACT(detail.Properties, '$.BatchImportMetaDataOnCreate') as batch_import_meta_data_on_create, + JSON_EXTRACT(detail.Properties, '$.ImportedFileChunkSize') as imported_file_chunk_size, + JSON_EXTRACT(detail.Properties, '$.S3') as s3 + 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::FSx::DataRepositoryAssociation' + AND detail.data__TypeName = 'AWS::FSx::DataRepositoryAssociation' + 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, 'AssociationId') as association_id, + json_extract_path_text(detail.Properties, 'ResourceARN') as resource_arn, + json_extract_path_text(detail.Properties, 'FileSystemId') as file_system_id, + json_extract_path_text(detail.Properties, 'FileSystemPath') as file_system_path, + json_extract_path_text(detail.Properties, 'DataRepositoryPath') as data_repository_path, + json_extract_path_text(detail.Properties, 'BatchImportMetaDataOnCreate') as batch_import_meta_data_on_create, + json_extract_path_text(detail.Properties, 'ImportedFileChunkSize') as imported_file_chunk_size, + json_extract_path_text(detail.Properties, 'S3') as s3 + 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::FSx::DataRepositoryAssociation' + AND detail.data__TypeName = 'AWS::FSx::DataRepositoryAssociation' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/gamelift.yaml b/providers/src/aws/v00.00.00000/services/gamelift.yaml index e64ee6c2..d36eecad 100644 --- a/providers/src/aws/v00.00.00000/services/gamelift.yaml +++ b/providers/src/aws/v00.00.00000/services/gamelift.yaml @@ -3053,10 +3053,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AliasId') as alias_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Alias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoutingStrategy') as routing_strategy, + JSON_EXTRACT(detail.Properties, '$.AliasId') as alias_id + 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::GameLift::Alias' + AND detail.data__TypeName = 'AWS::GameLift::Alias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3074,10 +3082,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AliasId') as alias_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Alias' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoutingStrategy') as routing_strategy, + json_extract_path_text(detail.Properties, 'AliasId') as alias_id + 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::GameLift::Alias' + AND detail.data__TypeName = 'AWS::GameLift::Alias' + AND listing.region = 'us-east-1' + aliases_list_only: + name: aliases_list_only + id: aws.gamelift.aliases_list_only + x-cfn-schema-name: Alias + x-cfn-type-name: AWS::GameLift::Alias + x-identifiers: + - AliasId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AliasId') as alias_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Alias' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AliasId') as alias_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Alias' + AND region = 'us-east-1' builds: name: builds id: aws.gamelift.builds @@ -3154,10 +3201,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BuildId') as build_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Build' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BuildId') as build_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OperatingSystem') as operating_system, + JSON_EXTRACT(detail.Properties, '$.StorageLocation') as storage_location, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.ServerSdkVersion') as server_sdk_version + 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::GameLift::Build' + AND detail.data__TypeName = 'AWS::GameLift::Build' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3177,10 +3234,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BuildId') as build_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Build' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BuildId') as build_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OperatingSystem') as operating_system, + json_extract_path_text(detail.Properties, 'StorageLocation') as storage_location, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'ServerSdkVersion') as server_sdk_version + 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::GameLift::Build' + AND detail.data__TypeName = 'AWS::GameLift::Build' + AND listing.region = 'us-east-1' + builds_list_only: + name: builds_list_only + id: aws.gamelift.builds_list_only + x-cfn-schema-name: Build + x-cfn-type-name: AWS::GameLift::Build + x-identifiers: + - BuildId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BuildId') as build_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Build' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BuildId') as build_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Build' + AND region = 'us-east-1' container_group_definitions: name: container_group_definitions id: aws.gamelift.container_group_definitions @@ -3260,10 +3358,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ContainerGroupDefinitionArn') as container_group_definition_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.SchedulingStrategy') as scheduling_strategy, + JSON_EXTRACT(detail.Properties, '$.TotalMemoryLimit') as total_memory_limit, + JSON_EXTRACT(detail.Properties, '$.TotalCpuLimit') as total_cpu_limit, + JSON_EXTRACT(detail.Properties, '$.ContainerDefinitions') as container_definitions, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.OperatingSystem') as operating_system + 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::GameLift::ContainerGroupDefinition' + AND detail.data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3286,10 +3397,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ContainerGroupDefinitionArn') as container_group_definition_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'SchedulingStrategy') as scheduling_strategy, + json_extract_path_text(detail.Properties, 'TotalMemoryLimit') as total_memory_limit, + json_extract_path_text(detail.Properties, 'TotalCpuLimit') as total_cpu_limit, + json_extract_path_text(detail.Properties, 'ContainerDefinitions') as container_definitions, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'OperatingSystem') as operating_system + 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::GameLift::ContainerGroupDefinition' + AND detail.data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' + AND listing.region = 'us-east-1' + container_group_definitions_list_only: + name: container_group_definitions_list_only + id: aws.gamelift.container_group_definitions_list_only + x-cfn-schema-name: ContainerGroupDefinition + x-cfn-type-name: AWS::GameLift::ContainerGroupDefinition + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' + AND region = 'us-east-1' + container_group_definition_tags: + name: container_group_definition_tags + id: aws.gamelift.container_group_definition_tags + x-cfn-schema-name: ContainerGroupDefinition + x-cfn-type-name: AWS::GameLift::ContainerGroupDefinition + 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, '$.ContainerGroupDefinitionArn') as container_group_definition_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.SchedulingStrategy') as scheduling_strategy, + JSON_EXTRACT(detail.Properties, '$.TotalMemoryLimit') as total_memory_limit, + JSON_EXTRACT(detail.Properties, '$.TotalCpuLimit') as total_cpu_limit, + JSON_EXTRACT(detail.Properties, '$.ContainerDefinitions') as container_definitions, + JSON_EXTRACT(detail.Properties, '$.OperatingSystem') as operating_system + 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::GameLift::ContainerGroupDefinition' + AND detail.data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' + 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, 'ContainerGroupDefinitionArn') as container_group_definition_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'SchedulingStrategy') as scheduling_strategy, + json_extract_path_text(detail.Properties, 'TotalMemoryLimit') as total_memory_limit, + json_extract_path_text(detail.Properties, 'TotalCpuLimit') as total_cpu_limit, + json_extract_path_text(detail.Properties, 'ContainerDefinitions') as container_definitions, + json_extract_path_text(detail.Properties, 'OperatingSystem') as operating_system + 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::GameLift::ContainerGroupDefinition' + AND detail.data__TypeName = 'AWS::GameLift::ContainerGroupDefinition' + AND listing.region = 'us-east-1' locations: name: locations id: aws.gamelift.locations @@ -3363,10 +3577,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LocationName') as location_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Location' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LocationName') as location_name, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GameLift::Location' + AND detail.data__TypeName = 'AWS::GameLift::Location' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3383,10 +3604,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LocationName') as location_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Location' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LocationName') as location_name, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GameLift::Location' + AND detail.data__TypeName = 'AWS::GameLift::Location' + AND listing.region = 'us-east-1' + locations_list_only: + name: locations_list_only + id: aws.gamelift.locations_list_only + x-cfn-schema-name: Location + x-cfn-type-name: AWS::GameLift::Location + x-identifiers: + - LocationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LocationName') as location_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Location' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LocationName') as location_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Location' + AND region = 'us-east-1' + location_tags: + name: location_tags + id: aws.gamelift.location_tags + x-cfn-schema-name: Location + x-cfn-type-name: AWS::GameLift::Location + 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, '$.LocationName') as location_name, + JSON_EXTRACT(detail.Properties, '$.LocationArn') as location_arn + 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::GameLift::Location' + AND detail.data__TypeName = 'AWS::GameLift::Location' + 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, 'LocationName') as location_name, + json_extract_path_text(detail.Properties, 'LocationArn') as location_arn + 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::GameLift::Location' + AND detail.data__TypeName = 'AWS::GameLift::Location' + AND listing.region = 'us-east-1' fleets: name: fleets id: aws.gamelift.fleets @@ -3486,10 +3792,43 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FleetId') as fleet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Fleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ScalingPolicies') as scaling_policies, + JSON_EXTRACT(detail.Properties, '$.AnywhereConfiguration') as anywhere_configuration, + JSON_EXTRACT(detail.Properties, '$.ApplyCapacity') as apply_capacity, + JSON_EXTRACT(detail.Properties, '$.CertificateConfiguration') as certificate_configuration, + JSON_EXTRACT(detail.Properties, '$.ComputeType') as compute_type, + JSON_EXTRACT(detail.Properties, '$.ContainerGroupsConfiguration') as container_groups_configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DesiredEC2Instances') as desired_ec2_instances, + JSON_EXTRACT(detail.Properties, '$.EC2InboundPermissions') as e_c2_inbound_permissions, + JSON_EXTRACT(detail.Properties, '$.EC2InstanceType') as e_c2_instance_type, + JSON_EXTRACT(detail.Properties, '$.FleetType') as fleet_type, + JSON_EXTRACT(detail.Properties, '$.InstanceRoleARN') as instance_role_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceRoleCredentialsProvider') as instance_role_credentials_provider, + JSON_EXTRACT(detail.Properties, '$.Locations') as locations, + JSON_EXTRACT(detail.Properties, '$.LogPaths') as log_paths, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size, + JSON_EXTRACT(detail.Properties, '$.MetricGroups') as metric_groups, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NewGameSessionProtectionPolicy') as new_game_session_protection_policy, + JSON_EXTRACT(detail.Properties, '$.PeerVpcAwsAccountId') as peer_vpc_aws_account_id, + JSON_EXTRACT(detail.Properties, '$.PeerVpcId') as peer_vpc_id, + JSON_EXTRACT(detail.Properties, '$.ResourceCreationLimitPolicy') as resource_creation_limit_policy, + JSON_EXTRACT(detail.Properties, '$.FleetId') as fleet_id, + JSON_EXTRACT(detail.Properties, '$.BuildId') as build_id, + JSON_EXTRACT(detail.Properties, '$.ScriptId') as script_id, + JSON_EXTRACT(detail.Properties, '$.RuntimeConfiguration') as runtime_configuration, + JSON_EXTRACT(detail.Properties, '$.ServerLaunchParameters') as server_launch_parameters, + JSON_EXTRACT(detail.Properties, '$.ServerLaunchPath') as server_launch_path + 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::GameLift::Fleet' + AND detail.data__TypeName = 'AWS::GameLift::Fleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3532,10 +3871,74 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FleetId') as fleet_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Fleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ScalingPolicies') as scaling_policies, + json_extract_path_text(detail.Properties, 'AnywhereConfiguration') as anywhere_configuration, + json_extract_path_text(detail.Properties, 'ApplyCapacity') as apply_capacity, + json_extract_path_text(detail.Properties, 'CertificateConfiguration') as certificate_configuration, + json_extract_path_text(detail.Properties, 'ComputeType') as compute_type, + json_extract_path_text(detail.Properties, 'ContainerGroupsConfiguration') as container_groups_configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DesiredEC2Instances') as desired_ec2_instances, + json_extract_path_text(detail.Properties, 'EC2InboundPermissions') as e_c2_inbound_permissions, + json_extract_path_text(detail.Properties, 'EC2InstanceType') as e_c2_instance_type, + json_extract_path_text(detail.Properties, 'FleetType') as fleet_type, + json_extract_path_text(detail.Properties, 'InstanceRoleARN') as instance_role_arn, + json_extract_path_text(detail.Properties, 'InstanceRoleCredentialsProvider') as instance_role_credentials_provider, + json_extract_path_text(detail.Properties, 'Locations') as locations, + json_extract_path_text(detail.Properties, 'LogPaths') as log_paths, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size, + json_extract_path_text(detail.Properties, 'MetricGroups') as metric_groups, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NewGameSessionProtectionPolicy') as new_game_session_protection_policy, + json_extract_path_text(detail.Properties, 'PeerVpcAwsAccountId') as peer_vpc_aws_account_id, + json_extract_path_text(detail.Properties, 'PeerVpcId') as peer_vpc_id, + json_extract_path_text(detail.Properties, 'ResourceCreationLimitPolicy') as resource_creation_limit_policy, + json_extract_path_text(detail.Properties, 'FleetId') as fleet_id, + json_extract_path_text(detail.Properties, 'BuildId') as build_id, + json_extract_path_text(detail.Properties, 'ScriptId') as script_id, + json_extract_path_text(detail.Properties, 'RuntimeConfiguration') as runtime_configuration, + json_extract_path_text(detail.Properties, 'ServerLaunchParameters') as server_launch_parameters, + json_extract_path_text(detail.Properties, 'ServerLaunchPath') as server_launch_path + 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::GameLift::Fleet' + AND detail.data__TypeName = 'AWS::GameLift::Fleet' + AND listing.region = 'us-east-1' + fleets_list_only: + name: fleets_list_only + id: aws.gamelift.fleets_list_only + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::GameLift::Fleet + x-identifiers: + - FleetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FleetId') as fleet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Fleet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FleetId') as fleet_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Fleet' + AND region = 'us-east-1' game_server_groups: name: game_server_groups id: aws.gamelift.game_server_groups @@ -3620,10 +4023,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GameServerGroupArn') as game_server_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameServerGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AutoScalingGroupArn') as auto_scaling_group_arn, + JSON_EXTRACT(detail.Properties, '$.AutoScalingPolicy') as auto_scaling_policy, + JSON_EXTRACT(detail.Properties, '$.BalancingStrategy') as balancing_strategy, + JSON_EXTRACT(detail.Properties, '$.DeleteOption') as delete_option, + JSON_EXTRACT(detail.Properties, '$.GameServerGroupArn') as game_server_group_arn, + JSON_EXTRACT(detail.Properties, '$.GameServerGroupName') as game_server_group_name, + JSON_EXTRACT(detail.Properties, '$.GameServerProtectionPolicy') as game_server_protection_policy, + JSON_EXTRACT(detail.Properties, '$.InstanceDefinitions') as instance_definitions, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcSubnets') as vpc_subnets + 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::GameLift::GameServerGroup' + AND detail.data__TypeName = 'AWS::GameLift::GameServerGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3651,10 +4072,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GameServerGroupArn') as game_server_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameServerGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AutoScalingGroupArn') as auto_scaling_group_arn, + json_extract_path_text(detail.Properties, 'AutoScalingPolicy') as auto_scaling_policy, + json_extract_path_text(detail.Properties, 'BalancingStrategy') as balancing_strategy, + json_extract_path_text(detail.Properties, 'DeleteOption') as delete_option, + json_extract_path_text(detail.Properties, 'GameServerGroupArn') as game_server_group_arn, + json_extract_path_text(detail.Properties, 'GameServerGroupName') as game_server_group_name, + json_extract_path_text(detail.Properties, 'GameServerProtectionPolicy') as game_server_protection_policy, + json_extract_path_text(detail.Properties, 'InstanceDefinitions') as instance_definitions, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcSubnets') as vpc_subnets + 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::GameLift::GameServerGroup' + AND detail.data__TypeName = 'AWS::GameLift::GameServerGroup' + AND listing.region = 'us-east-1' + game_server_groups_list_only: + name: game_server_groups_list_only + id: aws.gamelift.game_server_groups_list_only + x-cfn-schema-name: GameServerGroup + x-cfn-type-name: AWS::GameLift::GameServerGroup + x-identifiers: + - GameServerGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GameServerGroupArn') as game_server_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameServerGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GameServerGroupArn') as game_server_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameServerGroup' + AND region = 'us-east-1' + game_server_group_tags: + name: game_server_group_tags + id: aws.gamelift.game_server_group_tags + x-cfn-schema-name: GameServerGroup + x-cfn-type-name: AWS::GameLift::GameServerGroup + 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, '$.AutoScalingGroupArn') as auto_scaling_group_arn, + JSON_EXTRACT(detail.Properties, '$.AutoScalingPolicy') as auto_scaling_policy, + JSON_EXTRACT(detail.Properties, '$.BalancingStrategy') as balancing_strategy, + JSON_EXTRACT(detail.Properties, '$.DeleteOption') as delete_option, + JSON_EXTRACT(detail.Properties, '$.GameServerGroupArn') as game_server_group_arn, + JSON_EXTRACT(detail.Properties, '$.GameServerGroupName') as game_server_group_name, + JSON_EXTRACT(detail.Properties, '$.GameServerProtectionPolicy') as game_server_protection_policy, + JSON_EXTRACT(detail.Properties, '$.InstanceDefinitions') as instance_definitions, + JSON_EXTRACT(detail.Properties, '$.LaunchTemplate') as launch_template, + JSON_EXTRACT(detail.Properties, '$.MaxSize') as max_size, + JSON_EXTRACT(detail.Properties, '$.MinSize') as min_size, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.VpcSubnets') as vpc_subnets + 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::GameLift::GameServerGroup' + AND detail.data__TypeName = 'AWS::GameLift::GameServerGroup' + 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, 'AutoScalingGroupArn') as auto_scaling_group_arn, + json_extract_path_text(detail.Properties, 'AutoScalingPolicy') as auto_scaling_policy, + json_extract_path_text(detail.Properties, 'BalancingStrategy') as balancing_strategy, + json_extract_path_text(detail.Properties, 'DeleteOption') as delete_option, + json_extract_path_text(detail.Properties, 'GameServerGroupArn') as game_server_group_arn, + json_extract_path_text(detail.Properties, 'GameServerGroupName') as game_server_group_name, + json_extract_path_text(detail.Properties, 'GameServerProtectionPolicy') as game_server_protection_policy, + json_extract_path_text(detail.Properties, 'InstanceDefinitions') as instance_definitions, + json_extract_path_text(detail.Properties, 'LaunchTemplate') as launch_template, + json_extract_path_text(detail.Properties, 'MaxSize') as max_size, + json_extract_path_text(detail.Properties, 'MinSize') as min_size, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'VpcSubnets') as vpc_subnets + 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::GameLift::GameServerGroup' + AND detail.data__TypeName = 'AWS::GameLift::GameServerGroup' + AND listing.region = 'us-east-1' game_session_queues: name: game_session_queues id: aws.gamelift.game_session_queues @@ -3735,10 +4274,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameSessionQueue' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.TimeoutInSeconds') as timeout_in_seconds, + JSON_EXTRACT(detail.Properties, '$.Destinations') as destinations, + JSON_EXTRACT(detail.Properties, '$.PlayerLatencyPolicies') as player_latency_policies, + JSON_EXTRACT(detail.Properties, '$.CustomEventData') as custom_event_data, + JSON_EXTRACT(detail.Properties, '$.NotificationTarget') as notification_target, + JSON_EXTRACT(detail.Properties, '$.FilterConfiguration') as filter_configuration, + JSON_EXTRACT(detail.Properties, '$.PriorityConfiguration') as priority_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GameLift::GameSessionQueue' + AND detail.data__TypeName = 'AWS::GameLift::GameSessionQueue' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3762,10 +4315,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameSessionQueue' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'TimeoutInSeconds') as timeout_in_seconds, + json_extract_path_text(detail.Properties, 'Destinations') as destinations, + json_extract_path_text(detail.Properties, 'PlayerLatencyPolicies') as player_latency_policies, + json_extract_path_text(detail.Properties, 'CustomEventData') as custom_event_data, + json_extract_path_text(detail.Properties, 'NotificationTarget') as notification_target, + json_extract_path_text(detail.Properties, 'FilterConfiguration') as filter_configuration, + json_extract_path_text(detail.Properties, 'PriorityConfiguration') as priority_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GameLift::GameSessionQueue' + AND detail.data__TypeName = 'AWS::GameLift::GameSessionQueue' + AND listing.region = 'us-east-1' + game_session_queues_list_only: + name: game_session_queues_list_only + id: aws.gamelift.game_session_queues_list_only + x-cfn-schema-name: GameSessionQueue + x-cfn-type-name: AWS::GameLift::GameSessionQueue + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameSessionQueue' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::GameSessionQueue' + AND region = 'us-east-1' + game_session_queue_tags: + name: game_session_queue_tags + id: aws.gamelift.game_session_queue_tags + x-cfn-schema-name: GameSessionQueue + x-cfn-type-name: AWS::GameLift::GameSessionQueue + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.TimeoutInSeconds') as timeout_in_seconds, + JSON_EXTRACT(detail.Properties, '$.Destinations') as destinations, + JSON_EXTRACT(detail.Properties, '$.PlayerLatencyPolicies') as player_latency_policies, + JSON_EXTRACT(detail.Properties, '$.CustomEventData') as custom_event_data, + JSON_EXTRACT(detail.Properties, '$.NotificationTarget') as notification_target, + JSON_EXTRACT(detail.Properties, '$.FilterConfiguration') as filter_configuration, + JSON_EXTRACT(detail.Properties, '$.PriorityConfiguration') as priority_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::GameLift::GameSessionQueue' + AND detail.data__TypeName = 'AWS::GameLift::GameSessionQueue' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'TimeoutInSeconds') as timeout_in_seconds, + json_extract_path_text(detail.Properties, 'Destinations') as destinations, + json_extract_path_text(detail.Properties, 'PlayerLatencyPolicies') as player_latency_policies, + json_extract_path_text(detail.Properties, 'CustomEventData') as custom_event_data, + json_extract_path_text(detail.Properties, 'NotificationTarget') as notification_target, + json_extract_path_text(detail.Properties, 'FilterConfiguration') as filter_configuration, + json_extract_path_text(detail.Properties, 'PriorityConfiguration') as priority_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::GameLift::GameSessionQueue' + AND detail.data__TypeName = 'AWS::GameLift::GameSessionQueue' + AND listing.region = 'us-east-1' matchmaking_configurations: name: matchmaking_configurations id: aws.gamelift.matchmaking_configurations @@ -3854,10 +4513,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AcceptanceRequired') as acceptance_required, + JSON_EXTRACT(detail.Properties, '$.AcceptanceTimeoutSeconds') as acceptance_timeout_seconds, + JSON_EXTRACT(detail.Properties, '$.AdditionalPlayerCount') as additional_player_count, + JSON_EXTRACT(detail.Properties, '$.BackfillMode') as backfill_mode, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.CustomEventData') as custom_event_data, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FlexMatchMode') as flex_match_mode, + JSON_EXTRACT(detail.Properties, '$.GameProperties') as game_properties, + JSON_EXTRACT(detail.Properties, '$.GameSessionData') as game_session_data, + JSON_EXTRACT(detail.Properties, '$.GameSessionQueueArns') as game_session_queue_arns, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NotificationTarget') as notification_target, + JSON_EXTRACT(detail.Properties, '$.RequestTimeoutSeconds') as request_timeout_seconds, + JSON_EXTRACT(detail.Properties, '$.RuleSetArn') as rule_set_arn, + JSON_EXTRACT(detail.Properties, '$.RuleSetName') as rule_set_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GameLift::MatchmakingConfiguration' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3889,10 +4570,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AcceptanceRequired') as acceptance_required, + json_extract_path_text(detail.Properties, 'AcceptanceTimeoutSeconds') as acceptance_timeout_seconds, + json_extract_path_text(detail.Properties, 'AdditionalPlayerCount') as additional_player_count, + json_extract_path_text(detail.Properties, 'BackfillMode') as backfill_mode, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'CustomEventData') as custom_event_data, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FlexMatchMode') as flex_match_mode, + json_extract_path_text(detail.Properties, 'GameProperties') as game_properties, + json_extract_path_text(detail.Properties, 'GameSessionData') as game_session_data, + json_extract_path_text(detail.Properties, 'GameSessionQueueArns') as game_session_queue_arns, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NotificationTarget') as notification_target, + json_extract_path_text(detail.Properties, 'RequestTimeoutSeconds') as request_timeout_seconds, + json_extract_path_text(detail.Properties, 'RuleSetArn') as rule_set_arn, + json_extract_path_text(detail.Properties, 'RuleSetName') as rule_set_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GameLift::MatchmakingConfiguration' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' + AND listing.region = 'us-east-1' + matchmaking_configurations_list_only: + name: matchmaking_configurations_list_only + id: aws.gamelift.matchmaking_configurations_list_only + x-cfn-schema-name: MatchmakingConfiguration + x-cfn-type-name: AWS::GameLift::MatchmakingConfiguration + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' + AND region = 'us-east-1' + matchmaking_configuration_tags: + name: matchmaking_configuration_tags + id: aws.gamelift.matchmaking_configuration_tags + x-cfn-schema-name: MatchmakingConfiguration + x-cfn-type-name: AWS::GameLift::MatchmakingConfiguration + 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, '$.AcceptanceRequired') as acceptance_required, + JSON_EXTRACT(detail.Properties, '$.AcceptanceTimeoutSeconds') as acceptance_timeout_seconds, + JSON_EXTRACT(detail.Properties, '$.AdditionalPlayerCount') as additional_player_count, + JSON_EXTRACT(detail.Properties, '$.BackfillMode') as backfill_mode, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.CustomEventData') as custom_event_data, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FlexMatchMode') as flex_match_mode, + JSON_EXTRACT(detail.Properties, '$.GameProperties') as game_properties, + JSON_EXTRACT(detail.Properties, '$.GameSessionData') as game_session_data, + JSON_EXTRACT(detail.Properties, '$.GameSessionQueueArns') as game_session_queue_arns, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NotificationTarget') as notification_target, + JSON_EXTRACT(detail.Properties, '$.RequestTimeoutSeconds') as request_timeout_seconds, + JSON_EXTRACT(detail.Properties, '$.RuleSetArn') as rule_set_arn, + JSON_EXTRACT(detail.Properties, '$.RuleSetName') as rule_set_name + 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::GameLift::MatchmakingConfiguration' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' + 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, 'AcceptanceRequired') as acceptance_required, + json_extract_path_text(detail.Properties, 'AcceptanceTimeoutSeconds') as acceptance_timeout_seconds, + json_extract_path_text(detail.Properties, 'AdditionalPlayerCount') as additional_player_count, + json_extract_path_text(detail.Properties, 'BackfillMode') as backfill_mode, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'CustomEventData') as custom_event_data, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FlexMatchMode') as flex_match_mode, + json_extract_path_text(detail.Properties, 'GameProperties') as game_properties, + json_extract_path_text(detail.Properties, 'GameSessionData') as game_session_data, + json_extract_path_text(detail.Properties, 'GameSessionQueueArns') as game_session_queue_arns, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NotificationTarget') as notification_target, + json_extract_path_text(detail.Properties, 'RequestTimeoutSeconds') as request_timeout_seconds, + json_extract_path_text(detail.Properties, 'RuleSetArn') as rule_set_arn, + json_extract_path_text(detail.Properties, 'RuleSetName') as rule_set_name + 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::GameLift::MatchmakingConfiguration' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingConfiguration' + AND listing.region = 'us-east-1' matchmaking_rule_sets: name: matchmaking_rule_sets id: aws.gamelift.matchmaking_rule_sets @@ -3968,10 +4779,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuleSetBody') as rule_set_body, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GameLift::MatchmakingRuleSet' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3990,10 +4810,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuleSetBody') as rule_set_body, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GameLift::MatchmakingRuleSet' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' + AND listing.region = 'us-east-1' + matchmaking_rule_sets_list_only: + name: matchmaking_rule_sets_list_only + id: aws.gamelift.matchmaking_rule_sets_list_only + x-cfn-schema-name: MatchmakingRuleSet + x-cfn-type-name: AWS::GameLift::MatchmakingRuleSet + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' + AND region = 'us-east-1' + matchmaking_rule_set_tags: + name: matchmaking_rule_set_tags + id: aws.gamelift.matchmaking_rule_set_tags + x-cfn-schema-name: MatchmakingRuleSet + x-cfn-type-name: AWS::GameLift::MatchmakingRuleSet + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuleSetBody') as rule_set_body, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::GameLift::MatchmakingRuleSet' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuleSetBody') as rule_set_body, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::GameLift::MatchmakingRuleSet' + AND detail.data__TypeName = 'AWS::GameLift::MatchmakingRuleSet' + AND listing.region = 'us-east-1' scripts: name: scripts id: aws.gamelift.scripts @@ -4072,10 +4983,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Script' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StorageLocation') as storage_location, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SizeOnDisk') as size_on_disk + 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::GameLift::Script' + AND detail.data__TypeName = 'AWS::GameLift::Script' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4097,10 +5020,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Script' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StorageLocation') as storage_location, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SizeOnDisk') as size_on_disk + 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::GameLift::Script' + AND detail.data__TypeName = 'AWS::GameLift::Script' + AND listing.region = 'us-east-1' + scripts_list_only: + name: scripts_list_only + id: aws.gamelift.scripts_list_only + x-cfn-schema-name: Script + x-cfn-type-name: AWS::GameLift::Script + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Script' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GameLift::Script' + AND region = 'us-east-1' + script_tags: + name: script_tags + id: aws.gamelift.script_tags + x-cfn-schema-name: Script + x-cfn-type-name: AWS::GameLift::Script + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StorageLocation') as storage_location, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.SizeOnDisk') as size_on_disk + 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::GameLift::Script' + AND detail.data__TypeName = 'AWS::GameLift::Script' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'StorageLocation') as storage_location, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'SizeOnDisk') as size_on_disk + 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::GameLift::Script' + AND detail.data__TypeName = 'AWS::GameLift::Script' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/globalaccelerator.yaml b/providers/src/aws/v00.00.00000/services/globalaccelerator.yaml index e51e5321..6d9f242a 100644 --- a/providers/src/aws/v00.00.00000/services/globalaccelerator.yaml +++ b/providers/src/aws/v00.00.00000/services/globalaccelerator.yaml @@ -1086,10 +1086,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AcceleratorArn') as accelerator_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Accelerator' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.IpAddresses') as ip_addresses, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.DnsName') as dns_name, + JSON_EXTRACT(detail.Properties, '$.Ipv4Addresses') as ipv4_addresses, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.DualStackDnsName') as dual_stack_dns_name, + JSON_EXTRACT(detail.Properties, '$.AcceleratorArn') as accelerator_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GlobalAccelerator::Accelerator' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::Accelerator' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1113,10 +1127,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AcceleratorArn') as accelerator_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Accelerator' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'IpAddresses') as ip_addresses, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'DnsName') as dns_name, + json_extract_path_text(detail.Properties, 'Ipv4Addresses') as ipv4_addresses, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'DualStackDnsName') as dual_stack_dns_name, + json_extract_path_text(detail.Properties, 'AcceleratorArn') as accelerator_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GlobalAccelerator::Accelerator' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::Accelerator' + AND listing.region = 'us-east-1' + accelerators_list_only: + name: accelerators_list_only + id: aws.globalaccelerator.accelerators_list_only + x-cfn-schema-name: Accelerator + x-cfn-type-name: AWS::GlobalAccelerator::Accelerator + x-identifiers: + - AcceleratorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AcceleratorArn') as accelerator_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Accelerator' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AcceleratorArn') as accelerator_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Accelerator' + AND region = 'us-east-1' + accelerator_tags: + name: accelerator_tags + id: aws.globalaccelerator.accelerator_tags + x-cfn-schema-name: Accelerator + x-cfn-type-name: AWS::GlobalAccelerator::Accelerator + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.IpAddresses') as ip_addresses, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.DnsName') as dns_name, + JSON_EXTRACT(detail.Properties, '$.Ipv4Addresses') as ipv4_addresses, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.DualStackDnsName') as dual_stack_dns_name, + JSON_EXTRACT(detail.Properties, '$.AcceleratorArn') as accelerator_arn + 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::GlobalAccelerator::Accelerator' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::Accelerator' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'IpAddresses') as ip_addresses, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'DnsName') as dns_name, + json_extract_path_text(detail.Properties, 'Ipv4Addresses') as ipv4_addresses, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'DualStackDnsName') as dual_stack_dns_name, + json_extract_path_text(detail.Properties, 'AcceleratorArn') as accelerator_arn + 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::GlobalAccelerator::Accelerator' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::Accelerator' + AND listing.region = 'us-east-1' cross_account_attachments: name: cross_account_attachments id: aws.globalaccelerator.cross_account_attachments @@ -1192,10 +1312,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AttachmentArn') as attachment_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AttachmentArn') as attachment_arn, + JSON_EXTRACT(detail.Properties, '$.Principals') as principals, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GlobalAccelerator::CrossAccountAttachment' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1214,10 +1343,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AttachmentArn') as attachment_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AttachmentArn') as attachment_arn, + json_extract_path_text(detail.Properties, 'Principals') as principals, + json_extract_path_text(detail.Properties, 'Resources') as resources, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GlobalAccelerator::CrossAccountAttachment' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' + AND listing.region = 'us-east-1' + cross_account_attachments_list_only: + name: cross_account_attachments_list_only + id: aws.globalaccelerator.cross_account_attachments_list_only + x-cfn-schema-name: CrossAccountAttachment + x-cfn-type-name: AWS::GlobalAccelerator::CrossAccountAttachment + x-identifiers: + - AttachmentArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AttachmentArn') as attachment_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AttachmentArn') as attachment_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' + AND region = 'us-east-1' + cross_account_attachment_tags: + name: cross_account_attachment_tags + id: aws.globalaccelerator.cross_account_attachment_tags + x-cfn-schema-name: CrossAccountAttachment + x-cfn-type-name: AWS::GlobalAccelerator::CrossAccountAttachment + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AttachmentArn') as attachment_arn, + JSON_EXTRACT(detail.Properties, '$.Principals') as principals, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources + 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::GlobalAccelerator::CrossAccountAttachment' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'AttachmentArn') as attachment_arn, + json_extract_path_text(detail.Properties, 'Principals') as principals, + json_extract_path_text(detail.Properties, 'Resources') as resources + 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::GlobalAccelerator::CrossAccountAttachment' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::CrossAccountAttachment' + AND listing.region = 'us-east-1' endpoint_groups: name: endpoint_groups id: aws.globalaccelerator.endpoint_groups @@ -1299,10 +1519,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EndpointGroupArn') as endpoint_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::EndpointGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ListenerArn') as listener_arn, + JSON_EXTRACT(detail.Properties, '$.EndpointGroupRegion') as endpoint_group_region, + JSON_EXTRACT(detail.Properties, '$.EndpointConfigurations') as endpoint_configurations, + JSON_EXTRACT(detail.Properties, '$.TrafficDialPercentage') as traffic_dial_percentage, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPort') as health_check_port, + JSON_EXTRACT(detail.Properties, '$.HealthCheckProtocol') as health_check_protocol, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPath') as health_check_path, + JSON_EXTRACT(detail.Properties, '$.HealthCheckIntervalSeconds') as health_check_interval_seconds, + JSON_EXTRACT(detail.Properties, '$.ThresholdCount') as threshold_count, + JSON_EXTRACT(detail.Properties, '$.EndpointGroupArn') as endpoint_group_arn, + JSON_EXTRACT(detail.Properties, '$.PortOverrides') as port_overrides + 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::GlobalAccelerator::EndpointGroup' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::EndpointGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1327,10 +1562,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EndpointGroupArn') as endpoint_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::EndpointGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ListenerArn') as listener_arn, + json_extract_path_text(detail.Properties, 'EndpointGroupRegion') as endpoint_group_region, + json_extract_path_text(detail.Properties, 'EndpointConfigurations') as endpoint_configurations, + json_extract_path_text(detail.Properties, 'TrafficDialPercentage') as traffic_dial_percentage, + json_extract_path_text(detail.Properties, 'HealthCheckPort') as health_check_port, + json_extract_path_text(detail.Properties, 'HealthCheckProtocol') as health_check_protocol, + json_extract_path_text(detail.Properties, 'HealthCheckPath') as health_check_path, + json_extract_path_text(detail.Properties, 'HealthCheckIntervalSeconds') as health_check_interval_seconds, + json_extract_path_text(detail.Properties, 'ThresholdCount') as threshold_count, + json_extract_path_text(detail.Properties, 'EndpointGroupArn') as endpoint_group_arn, + json_extract_path_text(detail.Properties, 'PortOverrides') as port_overrides + 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::GlobalAccelerator::EndpointGroup' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::EndpointGroup' + AND listing.region = 'us-east-1' + endpoint_groups_list_only: + name: endpoint_groups_list_only + id: aws.globalaccelerator.endpoint_groups_list_only + x-cfn-schema-name: EndpointGroup + x-cfn-type-name: AWS::GlobalAccelerator::EndpointGroup + x-identifiers: + - EndpointGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EndpointGroupArn') as endpoint_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::EndpointGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EndpointGroupArn') as endpoint_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::EndpointGroup' + AND region = 'us-east-1' listeners: name: listeners id: aws.globalaccelerator.listeners @@ -1406,10 +1687,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ListenerArn') as listener_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Listener' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ListenerArn') as listener_arn, + JSON_EXTRACT(detail.Properties, '$.AcceleratorArn') as accelerator_arn, + JSON_EXTRACT(detail.Properties, '$.PortRanges') as port_ranges, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.ClientAffinity') as client_affinity + 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::GlobalAccelerator::Listener' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::Listener' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1428,10 +1718,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ListenerArn') as listener_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Listener' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ListenerArn') as listener_arn, + json_extract_path_text(detail.Properties, 'AcceleratorArn') as accelerator_arn, + json_extract_path_text(detail.Properties, 'PortRanges') as port_ranges, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'ClientAffinity') as client_affinity + 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::GlobalAccelerator::Listener' + AND detail.data__TypeName = 'AWS::GlobalAccelerator::Listener' + AND listing.region = 'us-east-1' + listeners_list_only: + name: listeners_list_only + id: aws.globalaccelerator.listeners_list_only + x-cfn-schema-name: Listener + x-cfn-type-name: AWS::GlobalAccelerator::Listener + x-identifiers: + - ListenerArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ListenerArn') as listener_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Listener' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ListenerArn') as listener_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GlobalAccelerator::Listener' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/glue.yaml b/providers/src/aws/v00.00.00000/services/glue.yaml index 06172270..ca09e4bb 100644 --- a/providers/src/aws/v00.00.00000/services/glue.yaml +++ b/providers/src/aws/v00.00.00000/services/glue.yaml @@ -649,10 +649,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.VersionId') as version_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.SchemaDefinition') as schema_definition, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id + 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::Glue::SchemaVersion' + AND detail.data__TypeName = 'AWS::Glue::SchemaVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -669,10 +676,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'VersionId') as version_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'SchemaDefinition') as schema_definition, + json_extract_path_text(detail.Properties, 'VersionId') as version_id + 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::Glue::SchemaVersion' + AND detail.data__TypeName = 'AWS::Glue::SchemaVersion' + AND listing.region = 'us-east-1' + schema_versions_list_only: + name: schema_versions_list_only + id: aws.glue.schema_versions_list_only + x-cfn-schema-name: SchemaVersion + x-cfn-type-name: AWS::Glue::SchemaVersion + x-identifiers: + - VersionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.VersionId') as version_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'VersionId') as version_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersion' + AND region = 'us-east-1' schema_version_metadata: name: schema_version_metadata id: aws.glue.schema_version_metadata @@ -735,12 +780,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SchemaVersionId') as schema_version_id, - JSON_EXTRACT(Properties, '$.Key') as key, - JSON_EXTRACT(Properties, '$.Value') as value - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersionMetadata' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SchemaVersionId') as schema_version_id, + JSON_EXTRACT(detail.Properties, '$.Key') as key, + JSON_EXTRACT(detail.Properties, '$.Value') as value + 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::Glue::SchemaVersionMetadata' + AND detail.data__TypeName = 'AWS::Glue::SchemaVersionMetadata' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -757,12 +807,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SchemaVersionId') as schema_version_id, - json_extract_path_text(Properties, 'Key') as key, - json_extract_path_text(Properties, 'Value') as value - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersionMetadata' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SchemaVersionId') as schema_version_id, + json_extract_path_text(detail.Properties, 'Key') as key, + json_extract_path_text(detail.Properties, 'Value') as value + 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::Glue::SchemaVersionMetadata' + AND detail.data__TypeName = 'AWS::Glue::SchemaVersionMetadata' + AND listing.region = 'us-east-1' + schema_version_metadata_list_only: + name: schema_version_metadata_list_only + id: aws.glue.schema_version_metadata_list_only + x-cfn-schema-name: SchemaVersionMetadata + x-cfn-type-name: AWS::Glue::SchemaVersionMetadata + x-identifiers: + - SchemaVersionId + - Key + - Value + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SchemaVersionId') as schema_version_id, + JSON_EXTRACT(Properties, '$.Key') as key, + JSON_EXTRACT(Properties, '$.Value') as value + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersionMetadata' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SchemaVersionId') as schema_version_id, + json_extract_path_text(Properties, 'Key') as key, + json_extract_path_text(Properties, 'Value') as value + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Glue::SchemaVersionMetadata' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/grafana.yaml b/providers/src/aws/v00.00.00000/services/grafana.yaml index ed2206ec..8ad96e82 100644 --- a/providers/src/aws/v00.00.00000/services/grafana.yaml +++ b/providers/src/aws/v00.00.00000/services/grafana.yaml @@ -991,10 +991,38 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Grafana::Workspace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AuthenticationProviders') as authentication_providers, + JSON_EXTRACT(detail.Properties, '$.SsoClientId') as sso_client_id, + JSON_EXTRACT(detail.Properties, '$.SamlConfiguration') as saml_configuration, + JSON_EXTRACT(detail.Properties, '$.NetworkAccessControl') as network_access_control, + JSON_EXTRACT(detail.Properties, '$.VpcConfiguration') as vpc_configuration, + JSON_EXTRACT(detail.Properties, '$.SamlConfigurationStatus') as saml_configuration_status, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CreationTimestamp') as creation_timestamp, + JSON_EXTRACT(detail.Properties, '$.ModificationTimestamp') as modification_timestamp, + JSON_EXTRACT(detail.Properties, '$.GrafanaVersion') as grafana_version, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.AccountAccessType') as account_access_type, + JSON_EXTRACT(detail.Properties, '$.OrganizationRoleName') as organization_role_name, + JSON_EXTRACT(detail.Properties, '$.PermissionType') as permission_type, + JSON_EXTRACT(detail.Properties, '$.StackSetName') as stack_set_name, + JSON_EXTRACT(detail.Properties, '$.DataSources') as data_sources, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NotificationDestinations') as notification_destinations, + JSON_EXTRACT(detail.Properties, '$.OrganizationalUnits') as organizational_units, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.PluginAdminEnabled') as plugin_admin_enabled + 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::Grafana::Workspace' + AND detail.data__TypeName = 'AWS::Grafana::Workspace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1032,10 +1060,69 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Grafana::Workspace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AuthenticationProviders') as authentication_providers, + json_extract_path_text(detail.Properties, 'SsoClientId') as sso_client_id, + json_extract_path_text(detail.Properties, 'SamlConfiguration') as saml_configuration, + json_extract_path_text(detail.Properties, 'NetworkAccessControl') as network_access_control, + json_extract_path_text(detail.Properties, 'VpcConfiguration') as vpc_configuration, + json_extract_path_text(detail.Properties, 'SamlConfigurationStatus') as saml_configuration_status, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CreationTimestamp') as creation_timestamp, + json_extract_path_text(detail.Properties, 'ModificationTimestamp') as modification_timestamp, + json_extract_path_text(detail.Properties, 'GrafanaVersion') as grafana_version, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'AccountAccessType') as account_access_type, + json_extract_path_text(detail.Properties, 'OrganizationRoleName') as organization_role_name, + json_extract_path_text(detail.Properties, 'PermissionType') as permission_type, + json_extract_path_text(detail.Properties, 'StackSetName') as stack_set_name, + json_extract_path_text(detail.Properties, 'DataSources') as data_sources, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NotificationDestinations') as notification_destinations, + json_extract_path_text(detail.Properties, 'OrganizationalUnits') as organizational_units, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'PluginAdminEnabled') as plugin_admin_enabled + 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::Grafana::Workspace' + AND detail.data__TypeName = 'AWS::Grafana::Workspace' + AND listing.region = 'us-east-1' + workspaces_list_only: + name: workspaces_list_only + id: aws.grafana.workspaces_list_only + x-cfn-schema-name: Workspace + x-cfn-type-name: AWS::Grafana::Workspace + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Grafana::Workspace' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Grafana::Workspace' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/greengrassv2.yaml b/providers/src/aws/v00.00.00000/services/greengrassv2.yaml index e99933ce..cbfe2288 100644 --- a/providers/src/aws/v00.00.00000/services/greengrassv2.yaml +++ b/providers/src/aws/v00.00.00000/services/greengrassv2.yaml @@ -1057,10 +1057,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GreengrassV2::ComponentVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ComponentName') as component_name, + JSON_EXTRACT(detail.Properties, '$.ComponentVersion') as component_version, + JSON_EXTRACT(detail.Properties, '$.InlineRecipe') as inline_recipe, + JSON_EXTRACT(detail.Properties, '$.LambdaFunction') as lambda_function, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GreengrassV2::ComponentVersion' + AND detail.data__TypeName = 'AWS::GreengrassV2::ComponentVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1080,10 +1090,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::GreengrassV2::ComponentVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ComponentName') as component_name, + json_extract_path_text(detail.Properties, 'ComponentVersion') as component_version, + json_extract_path_text(detail.Properties, 'InlineRecipe') as inline_recipe, + json_extract_path_text(detail.Properties, 'LambdaFunction') as lambda_function, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GreengrassV2::ComponentVersion' + AND detail.data__TypeName = 'AWS::GreengrassV2::ComponentVersion' + AND listing.region = 'us-east-1' + component_versions_list_only: + name: component_versions_list_only + id: aws.greengrassv2.component_versions_list_only + x-cfn-schema-name: ComponentVersion + x-cfn-type-name: AWS::GreengrassV2::ComponentVersion + 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::GreengrassV2::ComponentVersion' + 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::GreengrassV2::ComponentVersion' + AND region = 'us-east-1' + component_version_tags: + name: component_version_tags + id: aws.greengrassv2.component_version_tags + x-cfn-schema-name: ComponentVersion + x-cfn-type-name: AWS::GreengrassV2::ComponentVersion + 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, '$.ComponentName') as component_name, + JSON_EXTRACT(detail.Properties, '$.ComponentVersion') as component_version, + JSON_EXTRACT(detail.Properties, '$.InlineRecipe') as inline_recipe, + JSON_EXTRACT(detail.Properties, '$.LambdaFunction') as lambda_function + 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::GreengrassV2::ComponentVersion' + AND detail.data__TypeName = 'AWS::GreengrassV2::ComponentVersion' + 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, 'ComponentName') as component_name, + json_extract_path_text(detail.Properties, 'ComponentVersion') as component_version, + json_extract_path_text(detail.Properties, 'InlineRecipe') as inline_recipe, + json_extract_path_text(detail.Properties, 'LambdaFunction') as lambda_function + 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::GreengrassV2::ComponentVersion' + AND detail.data__TypeName = 'AWS::GreengrassV2::ComponentVersion' + AND listing.region = 'us-east-1' deployments: name: deployments id: aws.greengrassv2.deployments @@ -1162,10 +1266,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DeploymentId') as deployment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GreengrassV2::Deployment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.ParentTargetArn') as parent_target_arn, + JSON_EXTRACT(detail.Properties, '$.DeploymentId') as deployment_id, + JSON_EXTRACT(detail.Properties, '$.DeploymentName') as deployment_name, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.IotJobConfiguration') as iot_job_configuration, + JSON_EXTRACT(detail.Properties, '$.DeploymentPolicies') as deployment_policies, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GreengrassV2::Deployment' + AND detail.data__TypeName = 'AWS::GreengrassV2::Deployment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1187,10 +1303,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DeploymentId') as deployment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GreengrassV2::Deployment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'ParentTargetArn') as parent_target_arn, + json_extract_path_text(detail.Properties, 'DeploymentId') as deployment_id, + json_extract_path_text(detail.Properties, 'DeploymentName') as deployment_name, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'IotJobConfiguration') as iot_job_configuration, + json_extract_path_text(detail.Properties, 'DeploymentPolicies') as deployment_policies, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GreengrassV2::Deployment' + AND detail.data__TypeName = 'AWS::GreengrassV2::Deployment' + AND listing.region = 'us-east-1' + deployments_list_only: + name: deployments_list_only + id: aws.greengrassv2.deployments_list_only + x-cfn-schema-name: Deployment + x-cfn-type-name: AWS::GreengrassV2::Deployment + x-identifiers: + - DeploymentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DeploymentId') as deployment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GreengrassV2::Deployment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DeploymentId') as deployment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GreengrassV2::Deployment' + AND region = 'us-east-1' + deployment_tags: + name: deployment_tags + id: aws.greengrassv2.deployment_tags + x-cfn-schema-name: Deployment + x-cfn-type-name: AWS::GreengrassV2::Deployment + 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, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.ParentTargetArn') as parent_target_arn, + JSON_EXTRACT(detail.Properties, '$.DeploymentId') as deployment_id, + JSON_EXTRACT(detail.Properties, '$.DeploymentName') as deployment_name, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.IotJobConfiguration') as iot_job_configuration, + JSON_EXTRACT(detail.Properties, '$.DeploymentPolicies') as deployment_policies + 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::GreengrassV2::Deployment' + AND detail.data__TypeName = 'AWS::GreengrassV2::Deployment' + 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, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'ParentTargetArn') as parent_target_arn, + json_extract_path_text(detail.Properties, 'DeploymentId') as deployment_id, + json_extract_path_text(detail.Properties, 'DeploymentName') as deployment_name, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'IotJobConfiguration') as iot_job_configuration, + json_extract_path_text(detail.Properties, 'DeploymentPolicies') as deployment_policies + 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::GreengrassV2::Deployment' + AND detail.data__TypeName = 'AWS::GreengrassV2::Deployment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/groundstation.yaml b/providers/src/aws/v00.00.00000/services/groundstation.yaml index 6ba7c21e..4daf6247 100644 --- a/providers/src/aws/v00.00.00000/services/groundstation.yaml +++ b/providers/src/aws/v00.00.00000/services/groundstation.yaml @@ -1117,10 +1117,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::Config' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.ConfigData') as config_data, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::GroundStation::Config' + AND detail.data__TypeName = 'AWS::GroundStation::Config' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1140,10 +1150,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::GroundStation::Config' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'ConfigData') as config_data, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::GroundStation::Config' + AND detail.data__TypeName = 'AWS::GroundStation::Config' + AND listing.region = 'us-east-1' + configs_list_only: + name: configs_list_only + id: aws.groundstation.configs_list_only + x-cfn-schema-name: Config + x-cfn-type-name: AWS::GroundStation::Config + 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::GroundStation::Config' + 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::GroundStation::Config' + AND region = 'us-east-1' + config_tags: + name: config_tags + id: aws.groundstation.config_tags + x-cfn-schema-name: Config + x-cfn-type-name: AWS::GroundStation::Config + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.ConfigData') as config_data, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::GroundStation::Config' + AND detail.data__TypeName = 'AWS::GroundStation::Config' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'ConfigData') as config_data, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::GroundStation::Config' + AND detail.data__TypeName = 'AWS::GroundStation::Config' + AND listing.region = 'us-east-1' dataflow_endpoint_groups: name: dataflow_endpoint_groups id: aws.groundstation.dataflow_endpoint_groups @@ -1207,10 +1311,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.EndpointDetails') as endpoint_details, + JSON_EXTRACT(detail.Properties, '$.ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GroundStation::DataflowEndpointGroup' + AND detail.data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1230,10 +1344,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'EndpointDetails') as endpoint_details, + json_extract_path_text(detail.Properties, 'ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + json_extract_path_text(detail.Properties, 'ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GroundStation::DataflowEndpointGroup' + AND detail.data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' + AND listing.region = 'us-east-1' + dataflow_endpoint_groups_list_only: + name: dataflow_endpoint_groups_list_only + id: aws.groundstation.dataflow_endpoint_groups_list_only + x-cfn-schema-name: DataflowEndpointGroup + x-cfn-type-name: AWS::GroundStation::DataflowEndpointGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' + AND region = 'us-east-1' + dataflow_endpoint_group_tags: + name: dataflow_endpoint_group_tags + id: aws.groundstation.dataflow_endpoint_group_tags + x-cfn-schema-name: DataflowEndpointGroup + x-cfn-type-name: AWS::GroundStation::DataflowEndpointGroup + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.EndpointDetails') as endpoint_details, + JSON_EXTRACT(detail.Properties, '$.ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds + 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::GroundStation::DataflowEndpointGroup' + AND detail.data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'EndpointDetails') as endpoint_details, + json_extract_path_text(detail.Properties, 'ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + json_extract_path_text(detail.Properties, 'ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds + 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::GroundStation::DataflowEndpointGroup' + AND detail.data__TypeName = 'AWS::GroundStation::DataflowEndpointGroup' + AND listing.region = 'us-east-1' mission_profiles: name: mission_profiles id: aws.groundstation.mission_profiles @@ -1317,11 +1525,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::MissionProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.MinimumViableContactDurationSeconds') as minimum_viable_contact_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.StreamsKmsKey') as streams_kms_key, + JSON_EXTRACT(detail.Properties, '$.StreamsKmsRole') as streams_kms_role, + JSON_EXTRACT(detail.Properties, '$.DataflowEdges') as dataflow_edges, + JSON_EXTRACT(detail.Properties, '$.TrackingConfigArn') as tracking_config_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Region') as region + 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::GroundStation::MissionProfile' + AND detail.data__TypeName = 'AWS::GroundStation::MissionProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1347,11 +1570,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::MissionProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + json_extract_path_text(detail.Properties, 'ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds, + json_extract_path_text(detail.Properties, 'MinimumViableContactDurationSeconds') as minimum_viable_contact_duration_seconds, + json_extract_path_text(detail.Properties, 'StreamsKmsKey') as streams_kms_key, + json_extract_path_text(detail.Properties, 'StreamsKmsRole') as streams_kms_role, + json_extract_path_text(detail.Properties, 'DataflowEdges') as dataflow_edges, + json_extract_path_text(detail.Properties, 'TrackingConfigArn') as tracking_config_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Region') as region + 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::GroundStation::MissionProfile' + AND detail.data__TypeName = 'AWS::GroundStation::MissionProfile' + AND listing.region = 'us-east-1' + mission_profiles_list_only: + name: mission_profiles_list_only + id: aws.groundstation.mission_profiles_list_only + x-cfn-schema-name: MissionProfile + x-cfn-type-name: AWS::GroundStation::MissionProfile + x-identifiers: + - Id + - Arn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.Arn') as arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::MissionProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'Arn') as arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GroundStation::MissionProfile' + AND region = 'us-east-1' + mission_profile_tags: + name: mission_profile_tags + id: aws.groundstation.mission_profile_tags + x-cfn-schema-name: MissionProfile + x-cfn-type-name: AWS::GroundStation::MissionProfile + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.MinimumViableContactDurationSeconds') as minimum_viable_contact_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.StreamsKmsKey') as streams_kms_key, + JSON_EXTRACT(detail.Properties, '$.StreamsKmsRole') as streams_kms_role, + JSON_EXTRACT(detail.Properties, '$.DataflowEdges') as dataflow_edges, + JSON_EXTRACT(detail.Properties, '$.TrackingConfigArn') as tracking_config_arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Region') as region + 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::GroundStation::MissionProfile' + AND detail.data__TypeName = 'AWS::GroundStation::MissionProfile' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'ContactPrePassDurationSeconds') as contact_pre_pass_duration_seconds, + json_extract_path_text(detail.Properties, 'ContactPostPassDurationSeconds') as contact_post_pass_duration_seconds, + json_extract_path_text(detail.Properties, 'MinimumViableContactDurationSeconds') as minimum_viable_contact_duration_seconds, + json_extract_path_text(detail.Properties, 'StreamsKmsKey') as streams_kms_key, + json_extract_path_text(detail.Properties, 'StreamsKmsRole') as streams_kms_role, + json_extract_path_text(detail.Properties, 'DataflowEdges') as dataflow_edges, + json_extract_path_text(detail.Properties, 'TrackingConfigArn') as tracking_config_arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Region') as region + 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::GroundStation::MissionProfile' + AND detail.data__TypeName = 'AWS::GroundStation::MissionProfile' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/guardduty.yaml b/providers/src/aws/v00.00.00000/services/guardduty.yaml index ae4ffc7d..9d85c019 100644 --- a/providers/src/aws/v00.00.00000/services/guardduty.yaml +++ b/providers/src/aws/v00.00.00000/services/guardduty.yaml @@ -1177,10 +1177,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Detector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FindingPublishingFrequency') as finding_publishing_frequency, + JSON_EXTRACT(detail.Properties, '$.Enable') as enable, + JSON_EXTRACT(detail.Properties, '$.DataSources') as data_sources, + JSON_EXTRACT(detail.Properties, '$.Features') as features, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GuardDuty::Detector' + AND detail.data__TypeName = 'AWS::GuardDuty::Detector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1200,10 +1210,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Detector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FindingPublishingFrequency') as finding_publishing_frequency, + json_extract_path_text(detail.Properties, 'Enable') as enable, + json_extract_path_text(detail.Properties, 'DataSources') as data_sources, + json_extract_path_text(detail.Properties, 'Features') as features, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GuardDuty::Detector' + AND detail.data__TypeName = 'AWS::GuardDuty::Detector' + AND listing.region = 'us-east-1' + detectors_list_only: + name: detectors_list_only + id: aws.guardduty.detectors_list_only + x-cfn-schema-name: Detector + x-cfn-type-name: AWS::GuardDuty::Detector + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Detector' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Detector' + AND region = 'us-east-1' + detector_tags: + name: detector_tags + id: aws.guardduty.detector_tags + x-cfn-schema-name: Detector + x-cfn-type-name: AWS::GuardDuty::Detector + 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, '$.FindingPublishingFrequency') as finding_publishing_frequency, + JSON_EXTRACT(detail.Properties, '$.Enable') as enable, + JSON_EXTRACT(detail.Properties, '$.DataSources') as data_sources, + JSON_EXTRACT(detail.Properties, '$.Features') as features, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::GuardDuty::Detector' + AND detail.data__TypeName = 'AWS::GuardDuty::Detector' + 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, 'FindingPublishingFrequency') as finding_publishing_frequency, + json_extract_path_text(detail.Properties, 'Enable') as enable, + json_extract_path_text(detail.Properties, 'DataSources') as data_sources, + json_extract_path_text(detail.Properties, 'Features') as features, + json_extract_path_text(detail.Properties, 'Id') as id + 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::GuardDuty::Detector' + AND detail.data__TypeName = 'AWS::GuardDuty::Detector' + AND listing.region = 'us-east-1' filters: name: filters id: aws.guardduty.filters @@ -1282,11 +1386,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DetectorId') as detector_id, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Filter' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.FindingCriteria') as finding_criteria, + JSON_EXTRACT(detail.Properties, '$.Rank') as rank, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GuardDuty::Filter' + AND detail.data__TypeName = 'AWS::GuardDuty::Filter' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1307,11 +1421,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DetectorId') as detector_id, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Filter' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'FindingCriteria') as finding_criteria, + json_extract_path_text(detail.Properties, 'Rank') as rank, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GuardDuty::Filter' + AND detail.data__TypeName = 'AWS::GuardDuty::Filter' + AND listing.region = 'us-east-1' + filters_list_only: + name: filters_list_only + id: aws.guardduty.filters_list_only + x-cfn-schema-name: Filter + x-cfn-type-name: AWS::GuardDuty::Filter + x-identifiers: + - DetectorId + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Filter' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DetectorId') as detector_id, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Filter' + AND region = 'us-east-1' + filter_tags: + name: filter_tags + id: aws.guardduty.filter_tags + x-cfn-schema-name: Filter + x-cfn-type-name: AWS::GuardDuty::Filter + 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, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.FindingCriteria') as finding_criteria, + JSON_EXTRACT(detail.Properties, '$.Rank') as rank, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::GuardDuty::Filter' + AND detail.data__TypeName = 'AWS::GuardDuty::Filter' + 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, 'Action') as action, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'FindingCriteria') as finding_criteria, + json_extract_path_text(detail.Properties, 'Rank') as rank, + json_extract_path_text(detail.Properties, 'Name') as name + 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::GuardDuty::Filter' + AND detail.data__TypeName = 'AWS::GuardDuty::Filter' + AND listing.region = 'us-east-1' ip_sets: name: ip_sets id: aws.guardduty.ip_sets @@ -1390,11 +1603,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.DetectorId') as detector_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::IPSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Format') as _format, + JSON_EXTRACT(detail.Properties, '$.Activate') as activate, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GuardDuty::IPSet' + AND detail.data__TypeName = 'AWS::GuardDuty::IPSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1415,11 +1638,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'DetectorId') as detector_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::IPSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Format') as _format, + json_extract_path_text(detail.Properties, 'Activate') as activate, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GuardDuty::IPSet' + AND detail.data__TypeName = 'AWS::GuardDuty::IPSet' + AND listing.region = 'us-east-1' + ip_sets_list_only: + name: ip_sets_list_only + id: aws.guardduty.ip_sets_list_only + x-cfn-schema-name: IPSet + x-cfn-type-name: AWS::GuardDuty::IPSet + x-identifiers: + - Id + - DetectorId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.DetectorId') as detector_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::IPSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'DetectorId') as detector_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::IPSet' + AND region = 'us-east-1' + ip_set_tags: + name: ip_set_tags + id: aws.guardduty.ip_set_tags + x-cfn-schema-name: IPSet + x-cfn-type-name: AWS::GuardDuty::IPSet + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Format') as _format, + JSON_EXTRACT(detail.Properties, '$.Activate') as activate, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Location') as location + 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::GuardDuty::IPSet' + AND detail.data__TypeName = 'AWS::GuardDuty::IPSet' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Format') as _format, + json_extract_path_text(detail.Properties, 'Activate') as activate, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Location') as location + 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::GuardDuty::IPSet' + AND detail.data__TypeName = 'AWS::GuardDuty::IPSet' + AND listing.region = 'us-east-1' masters: name: masters id: aws.guardduty.masters @@ -1481,11 +1803,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DetectorId') as detector_id, - JSON_EXTRACT(Properties, '$.MasterId') as master_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Master' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MasterId') as master_id, + JSON_EXTRACT(detail.Properties, '$.InvitationId') as invitation_id, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id + 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::GuardDuty::Master' + AND detail.data__TypeName = 'AWS::GuardDuty::Master' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1502,11 +1830,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DetectorId') as detector_id, - json_extract_path_text(Properties, 'MasterId') as master_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Master' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MasterId') as master_id, + json_extract_path_text(detail.Properties, 'InvitationId') as invitation_id, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id + 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::GuardDuty::Master' + AND detail.data__TypeName = 'AWS::GuardDuty::Master' + AND listing.region = 'us-east-1' + masters_list_only: + name: masters_list_only + id: aws.guardduty.masters_list_only + x-cfn-schema-name: Master + x-cfn-type-name: AWS::GuardDuty::Master + x-identifiers: + - DetectorId + - MasterId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(Properties, '$.MasterId') as master_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Master' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DetectorId') as detector_id, + json_extract_path_text(Properties, 'MasterId') as master_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Master' + AND region = 'us-east-1' members: name: members id: aws.guardduty.members @@ -1584,11 +1952,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DetectorId') as detector_id, - JSON_EXTRACT(Properties, '$.MemberId') as member_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Member' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.MemberId') as member_id, + JSON_EXTRACT(detail.Properties, '$.Email') as email, + JSON_EXTRACT(detail.Properties, '$.Message') as message, + JSON_EXTRACT(detail.Properties, '$.DisableEmailNotification') as disable_email_notification, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id + 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::GuardDuty::Member' + AND detail.data__TypeName = 'AWS::GuardDuty::Member' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1608,11 +1985,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DetectorId') as detector_id, - json_extract_path_text(Properties, 'MemberId') as member_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Member' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'MemberId') as member_id, + json_extract_path_text(detail.Properties, 'Email') as email, + json_extract_path_text(detail.Properties, 'Message') as message, + json_extract_path_text(detail.Properties, 'DisableEmailNotification') as disable_email_notification, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id + 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::GuardDuty::Member' + AND detail.data__TypeName = 'AWS::GuardDuty::Member' + AND listing.region = 'us-east-1' + members_list_only: + name: members_list_only + id: aws.guardduty.members_list_only + x-cfn-schema-name: Member + x-cfn-type-name: AWS::GuardDuty::Member + x-identifiers: + - DetectorId + - MemberId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(Properties, '$.MemberId') as member_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Member' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DetectorId') as detector_id, + json_extract_path_text(Properties, 'MemberId') as member_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::Member' + AND region = 'us-east-1' threat_intel_sets: name: threat_intel_sets id: aws.guardduty.threat_intel_sets @@ -1691,11 +2111,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.DetectorId') as detector_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Format') as _format, + JSON_EXTRACT(detail.Properties, '$.Activate') as activate, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::GuardDuty::ThreatIntelSet' + AND detail.data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1716,11 +2146,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'DetectorId') as detector_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Format') as _format, + json_extract_path_text(detail.Properties, 'Activate') as activate, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::GuardDuty::ThreatIntelSet' + AND detail.data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' + AND listing.region = 'us-east-1' + threat_intel_sets_list_only: + name: threat_intel_sets_list_only + id: aws.guardduty.threat_intel_sets_list_only + x-cfn-schema-name: ThreatIntelSet + x-cfn-type-name: AWS::GuardDuty::ThreatIntelSet + x-identifiers: + - Id + - DetectorId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.DetectorId') as detector_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'DetectorId') as detector_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' + AND region = 'us-east-1' + threat_intel_set_tags: + name: threat_intel_set_tags + id: aws.guardduty.threat_intel_set_tags + x-cfn-schema-name: ThreatIntelSet + x-cfn-type-name: AWS::GuardDuty::ThreatIntelSet + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Format') as _format, + JSON_EXTRACT(detail.Properties, '$.Activate') as activate, + JSON_EXTRACT(detail.Properties, '$.DetectorId') as detector_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Location') as location + 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::GuardDuty::ThreatIntelSet' + AND detail.data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Format') as _format, + json_extract_path_text(detail.Properties, 'Activate') as activate, + json_extract_path_text(detail.Properties, 'DetectorId') as detector_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Location') as location + 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::GuardDuty::ThreatIntelSet' + AND detail.data__TypeName = 'AWS::GuardDuty::ThreatIntelSet' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/healthimaging.yaml b/providers/src/aws/v00.00.00000/services/healthimaging.yaml index 261c274b..bca38701 100644 --- a/providers/src/aws/v00.00.00000/services/healthimaging.yaml +++ b/providers/src/aws/v00.00.00000/services/healthimaging.yaml @@ -608,10 +608,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatastoreId') as datastore_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthImaging::Datastore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DatastoreArn') as datastore_arn, + JSON_EXTRACT(detail.Properties, '$.DatastoreName') as datastore_name, + JSON_EXTRACT(detail.Properties, '$.DatastoreId') as datastore_id, + JSON_EXTRACT(detail.Properties, '$.DatastoreStatus') as datastore_status, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::HealthImaging::Datastore' + AND detail.data__TypeName = 'AWS::HealthImaging::Datastore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -633,10 +645,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatastoreId') as datastore_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthImaging::Datastore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DatastoreArn') as datastore_arn, + json_extract_path_text(detail.Properties, 'DatastoreName') as datastore_name, + json_extract_path_text(detail.Properties, 'DatastoreId') as datastore_id, + json_extract_path_text(detail.Properties, 'DatastoreStatus') as datastore_status, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::HealthImaging::Datastore' + AND detail.data__TypeName = 'AWS::HealthImaging::Datastore' + AND listing.region = 'us-east-1' + datastores_list_only: + name: datastores_list_only + id: aws.healthimaging.datastores_list_only + x-cfn-schema-name: Datastore + x-cfn-type-name: AWS::HealthImaging::Datastore + x-identifiers: + - DatastoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatastoreId') as datastore_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthImaging::Datastore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatastoreId') as datastore_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthImaging::Datastore' + AND region = 'us-east-1' + datastore_tags: + name: datastore_tags + id: aws.healthimaging.datastore_tags + x-cfn-schema-name: Datastore + x-cfn-type-name: AWS::HealthImaging::Datastore + 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, '$.DatastoreArn') as datastore_arn, + JSON_EXTRACT(detail.Properties, '$.DatastoreName') as datastore_name, + JSON_EXTRACT(detail.Properties, '$.DatastoreId') as datastore_id, + JSON_EXTRACT(detail.Properties, '$.DatastoreStatus') as datastore_status, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::HealthImaging::Datastore' + AND detail.data__TypeName = 'AWS::HealthImaging::Datastore' + 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, 'DatastoreArn') as datastore_arn, + json_extract_path_text(detail.Properties, 'DatastoreName') as datastore_name, + json_extract_path_text(detail.Properties, 'DatastoreId') as datastore_id, + json_extract_path_text(detail.Properties, 'DatastoreStatus') as datastore_status, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::HealthImaging::Datastore' + AND detail.data__TypeName = 'AWS::HealthImaging::Datastore' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/healthlake.yaml b/providers/src/aws/v00.00.00000/services/healthlake.yaml index 62fbab1a..bcd0a08a 100644 --- a/providers/src/aws/v00.00.00000/services/healthlake.yaml +++ b/providers/src/aws/v00.00.00000/services/healthlake.yaml @@ -737,10 +737,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatastoreId') as datastore_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthLake::FHIRDatastore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DatastoreArn') as datastore_arn, + JSON_EXTRACT(detail.Properties, '$.DatastoreEndpoint') as datastore_endpoint, + JSON_EXTRACT(detail.Properties, '$.DatastoreId') as datastore_id, + JSON_EXTRACT(detail.Properties, '$.DatastoreName') as datastore_name, + JSON_EXTRACT(detail.Properties, '$.DatastoreStatus') as datastore_status, + JSON_EXTRACT(detail.Properties, '$.DatastoreTypeVersion') as datastore_type_version, + JSON_EXTRACT(detail.Properties, '$.PreloadDataConfig') as preload_data_config, + JSON_EXTRACT(detail.Properties, '$.SseConfiguration') as sse_configuration, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderConfiguration') as identity_provider_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::HealthLake::FHIRDatastore' + AND detail.data__TypeName = 'AWS::HealthLake::FHIRDatastore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -765,10 +780,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatastoreId') as datastore_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthLake::FHIRDatastore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DatastoreArn') as datastore_arn, + json_extract_path_text(detail.Properties, 'DatastoreEndpoint') as datastore_endpoint, + json_extract_path_text(detail.Properties, 'DatastoreId') as datastore_id, + json_extract_path_text(detail.Properties, 'DatastoreName') as datastore_name, + json_extract_path_text(detail.Properties, 'DatastoreStatus') as datastore_status, + json_extract_path_text(detail.Properties, 'DatastoreTypeVersion') as datastore_type_version, + json_extract_path_text(detail.Properties, 'PreloadDataConfig') as preload_data_config, + json_extract_path_text(detail.Properties, 'SseConfiguration') as sse_configuration, + json_extract_path_text(detail.Properties, 'IdentityProviderConfiguration') as identity_provider_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::HealthLake::FHIRDatastore' + AND detail.data__TypeName = 'AWS::HealthLake::FHIRDatastore' + AND listing.region = 'us-east-1' + fhir_datastores_list_only: + name: fhir_datastores_list_only + id: aws.healthlake.fhir_datastores_list_only + x-cfn-schema-name: FHIRDatastore + x-cfn-type-name: AWS::HealthLake::FHIRDatastore + x-identifiers: + - DatastoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatastoreId') as datastore_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthLake::FHIRDatastore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatastoreId') as datastore_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::HealthLake::FHIRDatastore' + AND region = 'us-east-1' + fhir_datastore_tags: + name: fhir_datastore_tags + id: aws.healthlake.fhir_datastore_tags + x-cfn-schema-name: FHIRDatastore + x-cfn-type-name: AWS::HealthLake::FHIRDatastore + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DatastoreArn') as datastore_arn, + JSON_EXTRACT(detail.Properties, '$.DatastoreEndpoint') as datastore_endpoint, + JSON_EXTRACT(detail.Properties, '$.DatastoreId') as datastore_id, + JSON_EXTRACT(detail.Properties, '$.DatastoreName') as datastore_name, + JSON_EXTRACT(detail.Properties, '$.DatastoreStatus') as datastore_status, + JSON_EXTRACT(detail.Properties, '$.DatastoreTypeVersion') as datastore_type_version, + JSON_EXTRACT(detail.Properties, '$.PreloadDataConfig') as preload_data_config, + JSON_EXTRACT(detail.Properties, '$.SseConfiguration') as sse_configuration, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderConfiguration') as identity_provider_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::HealthLake::FHIRDatastore' + AND detail.data__TypeName = 'AWS::HealthLake::FHIRDatastore' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DatastoreArn') as datastore_arn, + json_extract_path_text(detail.Properties, 'DatastoreEndpoint') as datastore_endpoint, + json_extract_path_text(detail.Properties, 'DatastoreId') as datastore_id, + json_extract_path_text(detail.Properties, 'DatastoreName') as datastore_name, + json_extract_path_text(detail.Properties, 'DatastoreStatus') as datastore_status, + json_extract_path_text(detail.Properties, 'DatastoreTypeVersion') as datastore_type_version, + json_extract_path_text(detail.Properties, 'PreloadDataConfig') as preload_data_config, + json_extract_path_text(detail.Properties, 'SseConfiguration') as sse_configuration, + json_extract_path_text(detail.Properties, 'IdentityProviderConfiguration') as identity_provider_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::HealthLake::FHIRDatastore' + AND detail.data__TypeName = 'AWS::HealthLake::FHIRDatastore' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iam.yaml b/providers/src/aws/v00.00.00000/services/iam.yaml index 930dc7e2..e3f21056 100644 --- a/providers/src/aws/v00.00.00000/services/iam.yaml +++ b/providers/src/aws/v00.00.00000/services/iam.yaml @@ -3378,10 +3378,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GroupName') as group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Group' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyArns') as managed_policy_arns, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies + 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::IAM::Group' + AND detail.data__TypeName = 'AWS::IAM::Group' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3400,10 +3409,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GroupName') as group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Group' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'ManagedPolicyArns') as managed_policy_arns, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'Policies') as policies + 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::IAM::Group' + AND detail.data__TypeName = 'AWS::IAM::Group' + AND listing.region = 'us-east-1' + groups_list_only: + name: groups_list_only + id: aws.iam.groups_list_only + x-cfn-schema-name: Group + x-cfn-type-name: AWS::IAM::Group + x-identifiers: + - GroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GroupName') as group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Group' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GroupName') as group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Group' + AND region = 'us-east-1' instance_profiles: name: instance_profiles id: aws.iam.instance_profiles @@ -3478,10 +3527,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceProfileName') as instance_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::InstanceProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.Roles') as roles, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileName') as instance_profile_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IAM::InstanceProfile' + AND detail.data__TypeName = 'AWS::IAM::InstanceProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3499,10 +3556,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceProfileName') as instance_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::InstanceProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'Roles') as roles, + json_extract_path_text(detail.Properties, 'InstanceProfileName') as instance_profile_name, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IAM::InstanceProfile' + AND detail.data__TypeName = 'AWS::IAM::InstanceProfile' + AND listing.region = 'us-east-1' + instance_profiles_list_only: + name: instance_profiles_list_only + id: aws.iam.instance_profiles_list_only + x-cfn-schema-name: InstanceProfile + x-cfn-type-name: AWS::IAM::InstanceProfile + x-identifiers: + - InstanceProfileName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceProfileName') as instance_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::InstanceProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceProfileName') as instance_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::InstanceProfile' + AND region = 'us-east-1' managed_policies: name: managed_policies id: aws.iam.managed_policies @@ -3588,10 +3684,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyArn') as policy_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ManagedPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Groups') as groups, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyName') as managed_policy_name, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.Roles') as roles, + JSON_EXTRACT(detail.Properties, '$.Users') as users, + JSON_EXTRACT(detail.Properties, '$.PolicyArn') as policy_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentCount') as attachment_count, + JSON_EXTRACT(detail.Properties, '$.CreateDate') as create_date, + JSON_EXTRACT(detail.Properties, '$.UpdateDate') as update_date, + JSON_EXTRACT(detail.Properties, '$.DefaultVersionId') as default_version_id, + JSON_EXTRACT(detail.Properties, '$.IsAttachable') as is_attachable, + JSON_EXTRACT(detail.Properties, '$.PermissionsBoundaryUsageCount') as permissions_boundary_usage_count, + JSON_EXTRACT(detail.Properties, '$.PolicyId') as policy_id + 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::IAM::ManagedPolicy' + AND detail.data__TypeName = 'AWS::IAM::ManagedPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3620,10 +3735,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyArn') as policy_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ManagedPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Groups') as groups, + json_extract_path_text(detail.Properties, 'ManagedPolicyName') as managed_policy_name, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'Roles') as roles, + json_extract_path_text(detail.Properties, 'Users') as users, + json_extract_path_text(detail.Properties, 'PolicyArn') as policy_arn, + json_extract_path_text(detail.Properties, 'AttachmentCount') as attachment_count, + json_extract_path_text(detail.Properties, 'CreateDate') as create_date, + json_extract_path_text(detail.Properties, 'UpdateDate') as update_date, + json_extract_path_text(detail.Properties, 'DefaultVersionId') as default_version_id, + json_extract_path_text(detail.Properties, 'IsAttachable') as is_attachable, + json_extract_path_text(detail.Properties, 'PermissionsBoundaryUsageCount') as permissions_boundary_usage_count, + json_extract_path_text(detail.Properties, 'PolicyId') as policy_id + 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::IAM::ManagedPolicy' + AND detail.data__TypeName = 'AWS::IAM::ManagedPolicy' + AND listing.region = 'us-east-1' + managed_policies_list_only: + name: managed_policies_list_only + id: aws.iam.managed_policies_list_only + x-cfn-schema-name: ManagedPolicy + x-cfn-type-name: AWS::IAM::ManagedPolicy + x-identifiers: + - PolicyArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyArn') as policy_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ManagedPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyArn') as policy_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ManagedPolicy' + AND region = 'us-east-1' oidc_providers: name: oidc_providers id: aws.iam.oidc_providers @@ -3699,10 +3864,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::OIDCProvider' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClientIdList') as client_id_list, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.ThumbprintList') as thumbprint_list, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IAM::OIDCProvider' + AND detail.data__TypeName = 'AWS::IAM::OIDCProvider' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3721,10 +3895,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::OIDCProvider' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClientIdList') as client_id_list, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'ThumbprintList') as thumbprint_list, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IAM::OIDCProvider' + AND detail.data__TypeName = 'AWS::IAM::OIDCProvider' + AND listing.region = 'us-east-1' + oidc_providers_list_only: + name: oidc_providers_list_only + id: aws.iam.oidc_providers_list_only + x-cfn-schema-name: OIDCProvider + x-cfn-type-name: AWS::IAM::OIDCProvider + 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::IAM::OIDCProvider' + 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::IAM::OIDCProvider' + AND region = 'us-east-1' + oidc_provider_tags: + name: oidc_provider_tags + id: aws.iam.oidc_provider_tags + x-cfn-schema-name: OIDCProvider + x-cfn-type-name: AWS::IAM::OIDCProvider + 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, '$.ClientIdList') as client_id_list, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.ThumbprintList') as thumbprint_list, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IAM::OIDCProvider' + AND detail.data__TypeName = 'AWS::IAM::OIDCProvider' + 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, 'ClientIdList') as client_id_list, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'ThumbprintList') as thumbprint_list, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IAM::OIDCProvider' + AND detail.data__TypeName = 'AWS::IAM::OIDCProvider' + AND listing.region = 'us-east-1' roles: name: roles id: aws.iam.roles @@ -3806,10 +4071,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RoleName') as role_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Role' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AssumeRolePolicyDocument') as assume_role_policy_document, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyArns') as managed_policy_arns, + JSON_EXTRACT(detail.Properties, '$.MaxSessionDuration') as max_session_duration, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.PermissionsBoundary') as permissions_boundary, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies, + JSON_EXTRACT(detail.Properties, '$.RoleId') as role_id, + JSON_EXTRACT(detail.Properties, '$.RoleName') as role_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IAM::Role' + AND detail.data__TypeName = 'AWS::IAM::Role' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3834,10 +4114,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RoleName') as role_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Role' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AssumeRolePolicyDocument') as assume_role_policy_document, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ManagedPolicyArns') as managed_policy_arns, + json_extract_path_text(detail.Properties, 'MaxSessionDuration') as max_session_duration, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'PermissionsBoundary') as permissions_boundary, + json_extract_path_text(detail.Properties, 'Policies') as policies, + json_extract_path_text(detail.Properties, 'RoleId') as role_id, + json_extract_path_text(detail.Properties, 'RoleName') as role_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IAM::Role' + AND detail.data__TypeName = 'AWS::IAM::Role' + AND listing.region = 'us-east-1' + roles_list_only: + name: roles_list_only + id: aws.iam.roles_list_only + x-cfn-schema-name: Role + x-cfn-type-name: AWS::IAM::Role + x-identifiers: + - RoleName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RoleName') as role_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Role' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RoleName') as role_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::Role' + AND region = 'us-east-1' + role_tags: + name: role_tags + id: aws.iam.role_tags + x-cfn-schema-name: Role + x-cfn-type-name: AWS::IAM::Role + 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, '$.AssumeRolePolicyDocument') as assume_role_policy_document, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyArns') as managed_policy_arns, + JSON_EXTRACT(detail.Properties, '$.MaxSessionDuration') as max_session_duration, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.PermissionsBoundary') as permissions_boundary, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies, + JSON_EXTRACT(detail.Properties, '$.RoleId') as role_id, + JSON_EXTRACT(detail.Properties, '$.RoleName') as role_name + 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::IAM::Role' + AND detail.data__TypeName = 'AWS::IAM::Role' + 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, 'AssumeRolePolicyDocument') as assume_role_policy_document, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ManagedPolicyArns') as managed_policy_arns, + json_extract_path_text(detail.Properties, 'MaxSessionDuration') as max_session_duration, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'PermissionsBoundary') as permissions_boundary, + json_extract_path_text(detail.Properties, 'Policies') as policies, + json_extract_path_text(detail.Properties, 'RoleId') as role_id, + json_extract_path_text(detail.Properties, 'RoleName') as role_name + 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::IAM::Role' + AND detail.data__TypeName = 'AWS::IAM::Role' + AND listing.region = 'us-east-1' saml_providers: name: saml_providers id: aws.iam.saml_providers @@ -3912,10 +4301,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::SAMLProvider' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SamlMetadataDocument') as saml_metadata_document, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IAM::SAMLProvider' + AND detail.data__TypeName = 'AWS::IAM::SAMLProvider' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3933,10 +4330,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::SAMLProvider' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SamlMetadataDocument') as saml_metadata_document, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IAM::SAMLProvider' + AND detail.data__TypeName = 'AWS::IAM::SAMLProvider' + AND listing.region = 'us-east-1' + saml_providers_list_only: + name: saml_providers_list_only + id: aws.iam.saml_providers_list_only + x-cfn-schema-name: SAMLProvider + x-cfn-type-name: AWS::IAM::SAMLProvider + 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::IAM::SAMLProvider' + 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::IAM::SAMLProvider' + AND region = 'us-east-1' + saml_provider_tags: + name: saml_provider_tags + id: aws.iam.saml_provider_tags + x-cfn-schema-name: SAMLProvider + x-cfn-type-name: AWS::IAM::SAMLProvider + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SamlMetadataDocument') as saml_metadata_document, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IAM::SAMLProvider' + AND detail.data__TypeName = 'AWS::IAM::SAMLProvider' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'SamlMetadataDocument') as saml_metadata_document, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IAM::SAMLProvider' + AND detail.data__TypeName = 'AWS::IAM::SAMLProvider' + AND listing.region = 'us-east-1' server_certificates: name: server_certificates id: aws.iam.server_certificates @@ -4014,10 +4499,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServerCertificateName') as server_certificate_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ServerCertificate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CertificateBody') as certificate_body, + JSON_EXTRACT(detail.Properties, '$.CertificateChain') as certificate_chain, + JSON_EXTRACT(detail.Properties, '$.ServerCertificateName') as server_certificate_name, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.PrivateKey') as private_key, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IAM::ServerCertificate' + AND detail.data__TypeName = 'AWS::IAM::ServerCertificate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4038,10 +4534,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServerCertificateName') as server_certificate_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ServerCertificate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CertificateBody') as certificate_body, + json_extract_path_text(detail.Properties, 'CertificateChain') as certificate_chain, + json_extract_path_text(detail.Properties, 'ServerCertificateName') as server_certificate_name, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'PrivateKey') as private_key, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IAM::ServerCertificate' + AND detail.data__TypeName = 'AWS::IAM::ServerCertificate' + AND listing.region = 'us-east-1' + server_certificates_list_only: + name: server_certificates_list_only + id: aws.iam.server_certificates_list_only + x-cfn-schema-name: ServerCertificate + x-cfn-type-name: AWS::IAM::ServerCertificate + x-identifiers: + - ServerCertificateName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServerCertificateName') as server_certificate_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ServerCertificate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServerCertificateName') as server_certificate_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::ServerCertificate' + AND region = 'us-east-1' + server_certificate_tags: + name: server_certificate_tags + id: aws.iam.server_certificate_tags + x-cfn-schema-name: ServerCertificate + x-cfn-type-name: AWS::IAM::ServerCertificate + 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, '$.CertificateBody') as certificate_body, + JSON_EXTRACT(detail.Properties, '$.CertificateChain') as certificate_chain, + JSON_EXTRACT(detail.Properties, '$.ServerCertificateName') as server_certificate_name, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.PrivateKey') as private_key, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IAM::ServerCertificate' + AND detail.data__TypeName = 'AWS::IAM::ServerCertificate' + 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, 'CertificateBody') as certificate_body, + json_extract_path_text(detail.Properties, 'CertificateChain') as certificate_chain, + json_extract_path_text(detail.Properties, 'ServerCertificateName') as server_certificate_name, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'PrivateKey') as private_key, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IAM::ServerCertificate' + AND detail.data__TypeName = 'AWS::IAM::ServerCertificate' + AND listing.region = 'us-east-1' service_linked_roles: name: service_linked_roles id: aws.iam.service_linked_roles @@ -4204,10 +4797,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserName') as user_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::User' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyArns') as managed_policy_arns, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.Groups') as groups, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.LoginProfile') as login_profile, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.PermissionsBoundary') as permissions_boundary + 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::IAM::User' + AND detail.data__TypeName = 'AWS::IAM::User' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4230,10 +4836,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserName') as user_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::User' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'ManagedPolicyArns') as managed_policy_arns, + json_extract_path_text(detail.Properties, 'Policies') as policies, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'Groups') as groups, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'LoginProfile') as login_profile, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'PermissionsBoundary') as permissions_boundary + 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::IAM::User' + AND detail.data__TypeName = 'AWS::IAM::User' + AND listing.region = 'us-east-1' + users_list_only: + name: users_list_only + id: aws.iam.users_list_only + x-cfn-schema-name: User + x-cfn-type-name: AWS::IAM::User + x-identifiers: + - UserName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserName') as user_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::User' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserName') as user_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::User' + AND region = 'us-east-1' + user_tags: + name: user_tags + id: aws.iam.user_tags + x-cfn-schema-name: User + x-cfn-type-name: AWS::IAM::User + 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, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyArns') as managed_policy_arns, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.Groups') as groups, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.LoginProfile') as login_profile, + JSON_EXTRACT(detail.Properties, '$.PermissionsBoundary') as permissions_boundary + 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::IAM::User' + AND detail.data__TypeName = 'AWS::IAM::User' + 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, 'Path') as path, + json_extract_path_text(detail.Properties, 'ManagedPolicyArns') as managed_policy_arns, + json_extract_path_text(detail.Properties, 'Policies') as policies, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'Groups') as groups, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'LoginProfile') as login_profile, + json_extract_path_text(detail.Properties, 'PermissionsBoundary') as permissions_boundary + 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::IAM::User' + AND detail.data__TypeName = 'AWS::IAM::User' + AND listing.region = 'us-east-1' virtualmfa_devices: name: virtualmfa_devices id: aws.iam.virtualmfa_devices @@ -4309,10 +5018,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SerialNumber') as serial_number - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::VirtualMFADevice' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VirtualMfaDeviceName') as virtual_mfa_device_name, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.SerialNumber') as serial_number, + JSON_EXTRACT(detail.Properties, '$.Users') as users, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IAM::VirtualMFADevice' + AND detail.data__TypeName = 'AWS::IAM::VirtualMFADevice' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4331,10 +5049,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SerialNumber') as serial_number - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::VirtualMFADevice' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VirtualMfaDeviceName') as virtual_mfa_device_name, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'SerialNumber') as serial_number, + json_extract_path_text(detail.Properties, 'Users') as users, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IAM::VirtualMFADevice' + AND detail.data__TypeName = 'AWS::IAM::VirtualMFADevice' + AND listing.region = 'us-east-1' + virtualmfa_devices_list_only: + name: virtualmfa_devices_list_only + id: aws.iam.virtualmfa_devices_list_only + x-cfn-schema-name: VirtualMFADevice + x-cfn-type-name: AWS::IAM::VirtualMFADevice + x-identifiers: + - SerialNumber + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SerialNumber') as serial_number + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::VirtualMFADevice' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SerialNumber') as serial_number + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IAM::VirtualMFADevice' + AND region = 'us-east-1' + virtualmfa_device_tags: + name: virtualmfa_device_tags + id: aws.iam.virtualmfa_device_tags + x-cfn-schema-name: VirtualMFADevice + x-cfn-type-name: AWS::IAM::VirtualMFADevice + 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, '$.VirtualMfaDeviceName') as virtual_mfa_device_name, + JSON_EXTRACT(detail.Properties, '$.Path') as path, + JSON_EXTRACT(detail.Properties, '$.SerialNumber') as serial_number, + JSON_EXTRACT(detail.Properties, '$.Users') as users + 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::IAM::VirtualMFADevice' + AND detail.data__TypeName = 'AWS::IAM::VirtualMFADevice' + 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, 'VirtualMfaDeviceName') as virtual_mfa_device_name, + json_extract_path_text(detail.Properties, 'Path') as path, + json_extract_path_text(detail.Properties, 'SerialNumber') as serial_number, + json_extract_path_text(detail.Properties, 'Users') as users + 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::IAM::VirtualMFADevice' + AND detail.data__TypeName = 'AWS::IAM::VirtualMFADevice' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/identitystore.yaml b/providers/src/aws/v00.00.00000/services/identitystore.yaml index 625eb085..3f187051 100644 --- a/providers/src/aws/v00.00.00000/services/identitystore.yaml +++ b/providers/src/aws/v00.00.00000/services/identitystore.yaml @@ -683,11 +683,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GroupId') as group_id, - JSON_EXTRACT(Properties, '$.IdentityStoreId') as identity_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::Group' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.GroupId') as group_id, + JSON_EXTRACT(detail.Properties, '$.IdentityStoreId') as identity_store_id + 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::IdentityStore::Group' + AND detail.data__TypeName = 'AWS::IdentityStore::Group' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -705,11 +712,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GroupId') as group_id, - json_extract_path_text(Properties, 'IdentityStoreId') as identity_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::Group' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'GroupId') as group_id, + json_extract_path_text(detail.Properties, 'IdentityStoreId') as identity_store_id + 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::IdentityStore::Group' + AND detail.data__TypeName = 'AWS::IdentityStore::Group' + AND listing.region = 'us-east-1' + groups_list_only: + name: groups_list_only + id: aws.identitystore.groups_list_only + x-cfn-schema-name: Group + x-cfn-type-name: AWS::IdentityStore::Group + x-identifiers: + - GroupId + - IdentityStoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GroupId') as group_id, + JSON_EXTRACT(Properties, '$.IdentityStoreId') as identity_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::Group' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GroupId') as group_id, + json_extract_path_text(Properties, 'IdentityStoreId') as identity_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::Group' + AND region = 'us-east-1' group_memberships: name: group_memberships id: aws.identitystore.group_memberships @@ -772,11 +820,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MembershipId') as membership_id, - JSON_EXTRACT(Properties, '$.IdentityStoreId') as identity_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::GroupMembership' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GroupId') as group_id, + JSON_EXTRACT(detail.Properties, '$.IdentityStoreId') as identity_store_id, + JSON_EXTRACT(detail.Properties, '$.MemberId') as member_id, + JSON_EXTRACT(detail.Properties, '$.MembershipId') as membership_id + 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::IdentityStore::GroupMembership' + AND detail.data__TypeName = 'AWS::IdentityStore::GroupMembership' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -794,11 +849,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MembershipId') as membership_id, - json_extract_path_text(Properties, 'IdentityStoreId') as identity_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::GroupMembership' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GroupId') as group_id, + json_extract_path_text(detail.Properties, 'IdentityStoreId') as identity_store_id, + json_extract_path_text(detail.Properties, 'MemberId') as member_id, + json_extract_path_text(detail.Properties, 'MembershipId') as membership_id + 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::IdentityStore::GroupMembership' + AND detail.data__TypeName = 'AWS::IdentityStore::GroupMembership' + AND listing.region = 'us-east-1' + group_memberships_list_only: + name: group_memberships_list_only + id: aws.identitystore.group_memberships_list_only + x-cfn-schema-name: GroupMembership + x-cfn-type-name: AWS::IdentityStore::GroupMembership + x-identifiers: + - MembershipId + - IdentityStoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MembershipId') as membership_id, + JSON_EXTRACT(Properties, '$.IdentityStoreId') as identity_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::GroupMembership' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MembershipId') as membership_id, + json_extract_path_text(Properties, 'IdentityStoreId') as identity_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IdentityStore::GroupMembership' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/imagebuilder.yaml b/providers/src/aws/v00.00.00000/services/imagebuilder.yaml index 24bfaa22..c305295b 100644 --- a/providers/src/aws/v00.00.00000/services/imagebuilder.yaml +++ b/providers/src/aws/v00.00.00000/services/imagebuilder.yaml @@ -2488,10 +2488,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::Component' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ChangeDescription') as change_description, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.Data') as data, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Encrypted') as encrypted, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.SupportedOsVersions') as supported_os_versions + 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::ImageBuilder::Component' + AND detail.data__TypeName = 'AWS::ImageBuilder::Component' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2518,10 +2535,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::Component' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ChangeDescription') as change_description, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'Data') as data, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Encrypted') as encrypted, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'SupportedOsVersions') as supported_os_versions + 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::ImageBuilder::Component' + AND detail.data__TypeName = 'AWS::ImageBuilder::Component' + AND listing.region = 'us-east-1' + components_list_only: + name: components_list_only + id: aws.imagebuilder.components_list_only + x-cfn-schema-name: Component + x-cfn-type-name: AWS::ImageBuilder::Component + 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::ImageBuilder::Component' + 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::ImageBuilder::Component' + AND region = 'us-east-1' + component_tags: + name: component_tags + id: aws.imagebuilder.component_tags + x-cfn-schema-name: Component + x-cfn-type-name: AWS::ImageBuilder::Component + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ChangeDescription') as change_description, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.Data') as data, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Encrypted') as encrypted, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.SupportedOsVersions') as supported_os_versions + 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::ImageBuilder::Component' + AND detail.data__TypeName = 'AWS::ImageBuilder::Component' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ChangeDescription') as change_description, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'Data') as data, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Encrypted') as encrypted, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'SupportedOsVersions') as supported_os_versions + 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::ImageBuilder::Component' + AND detail.data__TypeName = 'AWS::ImageBuilder::Component' + AND listing.region = 'us-east-1' container_recipes: name: container_recipes id: aws.imagebuilder.container_recipes @@ -2595,10 +2727,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::ContainerRecipe' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.InstanceConfiguration') as instance_configuration, + JSON_EXTRACT(detail.Properties, '$.DockerfileTemplateData') as dockerfile_template_data, + JSON_EXTRACT(detail.Properties, '$.DockerfileTemplateUri') as dockerfile_template_uri, + JSON_EXTRACT(detail.Properties, '$.PlatformOverride') as platform_override, + JSON_EXTRACT(detail.Properties, '$.ContainerType') as container_type, + JSON_EXTRACT(detail.Properties, '$.ImageOsVersionOverride') as image_os_version_override, + JSON_EXTRACT(detail.Properties, '$.TargetRepository') as target_repository, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.ParentImage') as parent_image, + JSON_EXTRACT(detail.Properties, '$.WorkingDirectory') as working_directory, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::ContainerRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ContainerRecipe' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2628,10 +2780,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::ContainerRecipe' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'InstanceConfiguration') as instance_configuration, + json_extract_path_text(detail.Properties, 'DockerfileTemplateData') as dockerfile_template_data, + json_extract_path_text(detail.Properties, 'DockerfileTemplateUri') as dockerfile_template_uri, + json_extract_path_text(detail.Properties, 'PlatformOverride') as platform_override, + json_extract_path_text(detail.Properties, 'ContainerType') as container_type, + json_extract_path_text(detail.Properties, 'ImageOsVersionOverride') as image_os_version_override, + json_extract_path_text(detail.Properties, 'TargetRepository') as target_repository, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'ParentImage') as parent_image, + json_extract_path_text(detail.Properties, 'WorkingDirectory') as working_directory, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::ContainerRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ContainerRecipe' + AND listing.region = 'us-east-1' + container_recipes_list_only: + name: container_recipes_list_only + id: aws.imagebuilder.container_recipes_list_only + x-cfn-schema-name: ContainerRecipe + x-cfn-type-name: AWS::ImageBuilder::ContainerRecipe + 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::ImageBuilder::ContainerRecipe' + 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::ImageBuilder::ContainerRecipe' + AND region = 'us-east-1' + container_recipe_tags: + name: container_recipe_tags + id: aws.imagebuilder.container_recipe_tags + x-cfn-schema-name: ContainerRecipe + x-cfn-type-name: AWS::ImageBuilder::ContainerRecipe + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.InstanceConfiguration') as instance_configuration, + JSON_EXTRACT(detail.Properties, '$.DockerfileTemplateData') as dockerfile_template_data, + JSON_EXTRACT(detail.Properties, '$.DockerfileTemplateUri') as dockerfile_template_uri, + JSON_EXTRACT(detail.Properties, '$.PlatformOverride') as platform_override, + JSON_EXTRACT(detail.Properties, '$.ContainerType') as container_type, + JSON_EXTRACT(detail.Properties, '$.ImageOsVersionOverride') as image_os_version_override, + JSON_EXTRACT(detail.Properties, '$.TargetRepository') as target_repository, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.ParentImage') as parent_image, + JSON_EXTRACT(detail.Properties, '$.WorkingDirectory') as working_directory + 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::ImageBuilder::ContainerRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ContainerRecipe' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'InstanceConfiguration') as instance_configuration, + json_extract_path_text(detail.Properties, 'DockerfileTemplateData') as dockerfile_template_data, + json_extract_path_text(detail.Properties, 'DockerfileTemplateUri') as dockerfile_template_uri, + json_extract_path_text(detail.Properties, 'PlatformOverride') as platform_override, + json_extract_path_text(detail.Properties, 'ContainerType') as container_type, + json_extract_path_text(detail.Properties, 'ImageOsVersionOverride') as image_os_version_override, + json_extract_path_text(detail.Properties, 'TargetRepository') as target_repository, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'ParentImage') as parent_image, + json_extract_path_text(detail.Properties, 'WorkingDirectory') as working_directory + 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::ImageBuilder::ContainerRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ContainerRecipe' + AND listing.region = 'us-east-1' distribution_configurations: name: distribution_configurations id: aws.imagebuilder.distribution_configurations @@ -2707,10 +2983,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::DistributionConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Distributions') as distributions, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::DistributionConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::DistributionConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2729,10 +3014,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::DistributionConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Distributions') as distributions, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::DistributionConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::DistributionConfiguration' + AND listing.region = 'us-east-1' + distribution_configurations_list_only: + name: distribution_configurations_list_only + id: aws.imagebuilder.distribution_configurations_list_only + x-cfn-schema-name: DistributionConfiguration + x-cfn-type-name: AWS::ImageBuilder::DistributionConfiguration + 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::ImageBuilder::DistributionConfiguration' + 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::ImageBuilder::DistributionConfiguration' + AND region = 'us-east-1' + distribution_configuration_tags: + name: distribution_configuration_tags + id: aws.imagebuilder.distribution_configuration_tags + x-cfn-schema-name: DistributionConfiguration + x-cfn-type-name: AWS::ImageBuilder::DistributionConfiguration + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Distributions') as distributions + 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::ImageBuilder::DistributionConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::DistributionConfiguration' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Distributions') as distributions + 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::ImageBuilder::DistributionConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::DistributionConfiguration' + AND listing.region = 'us-east-1' images: name: images id: aws.imagebuilder.images @@ -2804,10 +3180,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::Image' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ImageTestsConfiguration') as image_tests_configuration, + JSON_EXTRACT(detail.Properties, '$.ImageRecipeArn') as image_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.ContainerRecipeArn') as container_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.DistributionConfigurationArn') as distribution_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.InfrastructureConfigurationArn') as infrastructure_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.Workflows') as workflows, + JSON_EXTRACT(detail.Properties, '$.ImageId') as image_id, + JSON_EXTRACT(detail.Properties, '$.ImageUri') as image_uri, + JSON_EXTRACT(detail.Properties, '$.EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + JSON_EXTRACT(detail.Properties, '$.ImageScanningConfiguration') as image_scanning_configuration, + JSON_EXTRACT(detail.Properties, '$.ExecutionRole') as execution_role, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::Image' + AND detail.data__TypeName = 'AWS::ImageBuilder::Image' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2835,10 +3229,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::Image' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ImageTestsConfiguration') as image_tests_configuration, + json_extract_path_text(detail.Properties, 'ImageRecipeArn') as image_recipe_arn, + json_extract_path_text(detail.Properties, 'ContainerRecipeArn') as container_recipe_arn, + json_extract_path_text(detail.Properties, 'DistributionConfigurationArn') as distribution_configuration_arn, + json_extract_path_text(detail.Properties, 'InfrastructureConfigurationArn') as infrastructure_configuration_arn, + json_extract_path_text(detail.Properties, 'Workflows') as workflows, + json_extract_path_text(detail.Properties, 'ImageId') as image_id, + json_extract_path_text(detail.Properties, 'ImageUri') as image_uri, + json_extract_path_text(detail.Properties, 'EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + json_extract_path_text(detail.Properties, 'ImageScanningConfiguration') as image_scanning_configuration, + json_extract_path_text(detail.Properties, 'ExecutionRole') as execution_role, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::Image' + AND detail.data__TypeName = 'AWS::ImageBuilder::Image' + AND listing.region = 'us-east-1' + images_list_only: + name: images_list_only + id: aws.imagebuilder.images_list_only + x-cfn-schema-name: Image + x-cfn-type-name: AWS::ImageBuilder::Image + 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::ImageBuilder::Image' + 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::ImageBuilder::Image' + AND region = 'us-east-1' + image_tags: + name: image_tags + id: aws.imagebuilder.image_tags + x-cfn-schema-name: Image + x-cfn-type-name: AWS::ImageBuilder::Image + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ImageTestsConfiguration') as image_tests_configuration, + JSON_EXTRACT(detail.Properties, '$.ImageRecipeArn') as image_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.ContainerRecipeArn') as container_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.DistributionConfigurationArn') as distribution_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.InfrastructureConfigurationArn') as infrastructure_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.Workflows') as workflows, + JSON_EXTRACT(detail.Properties, '$.ImageId') as image_id, + JSON_EXTRACT(detail.Properties, '$.ImageUri') as image_uri, + JSON_EXTRACT(detail.Properties, '$.EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + JSON_EXTRACT(detail.Properties, '$.ImageScanningConfiguration') as image_scanning_configuration, + JSON_EXTRACT(detail.Properties, '$.ExecutionRole') as execution_role + 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::ImageBuilder::Image' + AND detail.data__TypeName = 'AWS::ImageBuilder::Image' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'ImageTestsConfiguration') as image_tests_configuration, + json_extract_path_text(detail.Properties, 'ImageRecipeArn') as image_recipe_arn, + json_extract_path_text(detail.Properties, 'ContainerRecipeArn') as container_recipe_arn, + json_extract_path_text(detail.Properties, 'DistributionConfigurationArn') as distribution_configuration_arn, + json_extract_path_text(detail.Properties, 'InfrastructureConfigurationArn') as infrastructure_configuration_arn, + json_extract_path_text(detail.Properties, 'Workflows') as workflows, + json_extract_path_text(detail.Properties, 'ImageId') as image_id, + json_extract_path_text(detail.Properties, 'ImageUri') as image_uri, + json_extract_path_text(detail.Properties, 'EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + json_extract_path_text(detail.Properties, 'ImageScanningConfiguration') as image_scanning_configuration, + json_extract_path_text(detail.Properties, 'ExecutionRole') as execution_role + 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::ImageBuilder::Image' + AND detail.data__TypeName = 'AWS::ImageBuilder::Image' + AND listing.region = 'us-east-1' image_pipelines: name: image_pipelines id: aws.imagebuilder.image_pipelines @@ -2924,10 +3436,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::ImagePipeline' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ImageTestsConfiguration') as image_tests_configuration, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.ImageRecipeArn') as image_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.ContainerRecipeArn') as container_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.DistributionConfigurationArn') as distribution_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.InfrastructureConfigurationArn') as infrastructure_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.Workflows') as workflows, + JSON_EXTRACT(detail.Properties, '$.EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + JSON_EXTRACT(detail.Properties, '$.ImageScanningConfiguration') as image_scanning_configuration, + JSON_EXTRACT(detail.Properties, '$.ExecutionRole') as execution_role, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::ImagePipeline' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImagePipeline' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2956,10 +3487,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::ImagePipeline' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ImageTestsConfiguration') as image_tests_configuration, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'ImageRecipeArn') as image_recipe_arn, + json_extract_path_text(detail.Properties, 'ContainerRecipeArn') as container_recipe_arn, + json_extract_path_text(detail.Properties, 'DistributionConfigurationArn') as distribution_configuration_arn, + json_extract_path_text(detail.Properties, 'InfrastructureConfigurationArn') as infrastructure_configuration_arn, + json_extract_path_text(detail.Properties, 'Workflows') as workflows, + json_extract_path_text(detail.Properties, 'EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + json_extract_path_text(detail.Properties, 'ImageScanningConfiguration') as image_scanning_configuration, + json_extract_path_text(detail.Properties, 'ExecutionRole') as execution_role, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::ImagePipeline' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImagePipeline' + AND listing.region = 'us-east-1' + image_pipelines_list_only: + name: image_pipelines_list_only + id: aws.imagebuilder.image_pipelines_list_only + x-cfn-schema-name: ImagePipeline + x-cfn-type-name: AWS::ImageBuilder::ImagePipeline + 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::ImageBuilder::ImagePipeline' + 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::ImageBuilder::ImagePipeline' + AND region = 'us-east-1' + image_pipeline_tags: + name: image_pipeline_tags + id: aws.imagebuilder.image_pipeline_tags + x-cfn-schema-name: ImagePipeline + x-cfn-type-name: AWS::ImageBuilder::ImagePipeline + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ImageTestsConfiguration') as image_tests_configuration, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.ImageRecipeArn') as image_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.ContainerRecipeArn') as container_recipe_arn, + JSON_EXTRACT(detail.Properties, '$.DistributionConfigurationArn') as distribution_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.InfrastructureConfigurationArn') as infrastructure_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.Workflows') as workflows, + JSON_EXTRACT(detail.Properties, '$.EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + JSON_EXTRACT(detail.Properties, '$.ImageScanningConfiguration') as image_scanning_configuration, + JSON_EXTRACT(detail.Properties, '$.ExecutionRole') as execution_role + 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::ImageBuilder::ImagePipeline' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImagePipeline' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ImageTestsConfiguration') as image_tests_configuration, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'ImageRecipeArn') as image_recipe_arn, + json_extract_path_text(detail.Properties, 'ContainerRecipeArn') as container_recipe_arn, + json_extract_path_text(detail.Properties, 'DistributionConfigurationArn') as distribution_configuration_arn, + json_extract_path_text(detail.Properties, 'InfrastructureConfigurationArn') as infrastructure_configuration_arn, + json_extract_path_text(detail.Properties, 'Workflows') as workflows, + json_extract_path_text(detail.Properties, 'EnhancedImageMetadataEnabled') as enhanced_image_metadata_enabled, + json_extract_path_text(detail.Properties, 'ImageScanningConfiguration') as image_scanning_configuration, + json_extract_path_text(detail.Properties, 'ExecutionRole') as execution_role + 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::ImageBuilder::ImagePipeline' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImagePipeline' + AND listing.region = 'us-east-1' image_recipes: name: image_recipes id: aws.imagebuilder.image_recipes @@ -3027,10 +3679,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::ImageRecipe' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.BlockDeviceMappings') as block_device_mappings, + JSON_EXTRACT(detail.Properties, '$.ParentImage') as parent_image, + JSON_EXTRACT(detail.Properties, '$.WorkingDirectory') as working_directory, + JSON_EXTRACT(detail.Properties, '$.AdditionalInstanceConfiguration') as additional_instance_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::ImageRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImageRecipe' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3054,10 +3720,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::ImageRecipe' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'BlockDeviceMappings') as block_device_mappings, + json_extract_path_text(detail.Properties, 'ParentImage') as parent_image, + json_extract_path_text(detail.Properties, 'WorkingDirectory') as working_directory, + json_extract_path_text(detail.Properties, 'AdditionalInstanceConfiguration') as additional_instance_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::ImageRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImageRecipe' + AND listing.region = 'us-east-1' + image_recipes_list_only: + name: image_recipes_list_only + id: aws.imagebuilder.image_recipes_list_only + x-cfn-schema-name: ImageRecipe + x-cfn-type-name: AWS::ImageBuilder::ImageRecipe + 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::ImageBuilder::ImageRecipe' + 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::ImageBuilder::ImageRecipe' + AND region = 'us-east-1' + image_recipe_tags: + name: image_recipe_tags + id: aws.imagebuilder.image_recipe_tags + x-cfn-schema-name: ImageRecipe + x-cfn-type-name: AWS::ImageBuilder::ImageRecipe + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.BlockDeviceMappings') as block_device_mappings, + JSON_EXTRACT(detail.Properties, '$.ParentImage') as parent_image, + JSON_EXTRACT(detail.Properties, '$.WorkingDirectory') as working_directory, + JSON_EXTRACT(detail.Properties, '$.AdditionalInstanceConfiguration') as additional_instance_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::ImageBuilder::ImageRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImageRecipe' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'BlockDeviceMappings') as block_device_mappings, + json_extract_path_text(detail.Properties, 'ParentImage') as parent_image, + json_extract_path_text(detail.Properties, 'WorkingDirectory') as working_directory, + json_extract_path_text(detail.Properties, 'AdditionalInstanceConfiguration') as additional_instance_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::ImageBuilder::ImageRecipe' + AND detail.data__TypeName = 'AWS::ImageBuilder::ImageRecipe' + AND listing.region = 'us-east-1' infrastructure_configurations: name: infrastructure_configurations id: aws.imagebuilder.infrastructure_configurations @@ -3142,10 +3914,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::InfrastructureConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceTypes') as instance_types, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Logging') as logging, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.KeyPair') as key_pair, + JSON_EXTRACT(detail.Properties, '$.TerminateInstanceOnFailure') as terminate_instance_on_failure, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileName') as instance_profile_name, + JSON_EXTRACT(detail.Properties, '$.InstanceMetadataOptions') as instance_metadata_options, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::InfrastructureConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::InfrastructureConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3173,10 +3963,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::InfrastructureConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceTypes') as instance_types, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Logging') as logging, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'KeyPair') as key_pair, + json_extract_path_text(detail.Properties, 'TerminateInstanceOnFailure') as terminate_instance_on_failure, + json_extract_path_text(detail.Properties, 'InstanceProfileName') as instance_profile_name, + json_extract_path_text(detail.Properties, 'InstanceMetadataOptions') as instance_metadata_options, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::InfrastructureConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::InfrastructureConfiguration' + AND listing.region = 'us-east-1' + infrastructure_configurations_list_only: + name: infrastructure_configurations_list_only + id: aws.imagebuilder.infrastructure_configurations_list_only + x-cfn-schema-name: InfrastructureConfiguration + x-cfn-type-name: AWS::ImageBuilder::InfrastructureConfiguration + 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::ImageBuilder::InfrastructureConfiguration' + 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::ImageBuilder::InfrastructureConfiguration' + AND region = 'us-east-1' + infrastructure_configuration_tags: + name: infrastructure_configuration_tags + id: aws.imagebuilder.infrastructure_configuration_tags + x-cfn-schema-name: InfrastructureConfiguration + x-cfn-type-name: AWS::ImageBuilder::InfrastructureConfiguration + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceTypes') as instance_types, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Logging') as logging, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.KeyPair') as key_pair, + JSON_EXTRACT(detail.Properties, '$.TerminateInstanceOnFailure') as terminate_instance_on_failure, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileName') as instance_profile_name, + JSON_EXTRACT(detail.Properties, '$.InstanceMetadataOptions') as instance_metadata_options, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceTags') as resource_tags + 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::ImageBuilder::InfrastructureConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::InfrastructureConfiguration' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceTypes') as instance_types, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Logging') as logging, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'KeyPair') as key_pair, + json_extract_path_text(detail.Properties, 'TerminateInstanceOnFailure') as terminate_instance_on_failure, + json_extract_path_text(detail.Properties, 'InstanceProfileName') as instance_profile_name, + json_extract_path_text(detail.Properties, 'InstanceMetadataOptions') as instance_metadata_options, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'ResourceTags') as resource_tags + 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::ImageBuilder::InfrastructureConfiguration' + AND detail.data__TypeName = 'AWS::ImageBuilder::InfrastructureConfiguration' + AND listing.region = 'us-east-1' lifecycle_policies: name: lifecycle_policies id: aws.imagebuilder.lifecycle_policies @@ -3256,10 +4164,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::LifecyclePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ExecutionRole') as execution_role, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.PolicyDetails') as policy_details, + JSON_EXTRACT(detail.Properties, '$.ResourceSelection') as resource_selection, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::LifecyclePolicy' + AND detail.data__TypeName = 'AWS::ImageBuilder::LifecyclePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3282,10 +4203,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::LifecyclePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ExecutionRole') as execution_role, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'PolicyDetails') as policy_details, + json_extract_path_text(detail.Properties, 'ResourceSelection') as resource_selection, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::LifecyclePolicy' + AND detail.data__TypeName = 'AWS::ImageBuilder::LifecyclePolicy' + AND listing.region = 'us-east-1' + lifecycle_policies_list_only: + name: lifecycle_policies_list_only + id: aws.imagebuilder.lifecycle_policies_list_only + x-cfn-schema-name: LifecyclePolicy + x-cfn-type-name: AWS::ImageBuilder::LifecyclePolicy + 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::ImageBuilder::LifecyclePolicy' + 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::ImageBuilder::LifecyclePolicy' + AND region = 'us-east-1' + lifecycle_policy_tags: + name: lifecycle_policy_tags + id: aws.imagebuilder.lifecycle_policy_tags + x-cfn-schema-name: LifecyclePolicy + x-cfn-type-name: AWS::ImageBuilder::LifecyclePolicy + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ExecutionRole') as execution_role, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.PolicyDetails') as policy_details, + JSON_EXTRACT(detail.Properties, '$.ResourceSelection') as resource_selection + 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::ImageBuilder::LifecyclePolicy' + AND detail.data__TypeName = 'AWS::ImageBuilder::LifecyclePolicy' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ExecutionRole') as execution_role, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'PolicyDetails') as policy_details, + json_extract_path_text(detail.Properties, 'ResourceSelection') as resource_selection + 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::ImageBuilder::LifecyclePolicy' + AND detail.data__TypeName = 'AWS::ImageBuilder::LifecyclePolicy' + AND listing.region = 'us-east-1' workflows: name: workflows id: aws.imagebuilder.workflows @@ -3353,10 +4377,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::Workflow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ChangeDescription') as change_description, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Data') as data, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ImageBuilder::Workflow' + AND detail.data__TypeName = 'AWS::ImageBuilder::Workflow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3380,10 +4418,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ImageBuilder::Workflow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ChangeDescription') as change_description, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Data') as data, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ImageBuilder::Workflow' + AND detail.data__TypeName = 'AWS::ImageBuilder::Workflow' + AND listing.region = 'us-east-1' + workflows_list_only: + name: workflows_list_only + id: aws.imagebuilder.workflows_list_only + x-cfn-schema-name: Workflow + x-cfn-type-name: AWS::ImageBuilder::Workflow + 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::ImageBuilder::Workflow' + 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::ImageBuilder::Workflow' + AND region = 'us-east-1' + workflow_tags: + name: workflow_tags + id: aws.imagebuilder.workflow_tags + x-cfn-schema-name: Workflow + x-cfn-type-name: AWS::ImageBuilder::Workflow + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ChangeDescription') as change_description, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Data') as data, + JSON_EXTRACT(detail.Properties, '$.Uri') as uri, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id + 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::ImageBuilder::Workflow' + AND detail.data__TypeName = 'AWS::ImageBuilder::Workflow' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ChangeDescription') as change_description, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Data') as data, + json_extract_path_text(detail.Properties, 'Uri') as uri, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id + 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::ImageBuilder::Workflow' + AND detail.data__TypeName = 'AWS::ImageBuilder::Workflow' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/inspector.yaml b/providers/src/aws/v00.00.00000/services/inspector.yaml index bedd569f..1a900b06 100644 --- a/providers/src/aws/v00.00.00000/services/inspector.yaml +++ b/providers/src/aws/v00.00.00000/services/inspector.yaml @@ -674,10 +674,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Inspector::AssessmentTarget' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AssessmentTargetName') as assessment_target_name, + JSON_EXTRACT(detail.Properties, '$.ResourceGroupArn') as resource_group_arn + 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::Inspector::AssessmentTarget' + AND detail.data__TypeName = 'AWS::Inspector::AssessmentTarget' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -694,10 +701,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Inspector::AssessmentTarget' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AssessmentTargetName') as assessment_target_name, + json_extract_path_text(detail.Properties, 'ResourceGroupArn') as resource_group_arn + 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::Inspector::AssessmentTarget' + AND detail.data__TypeName = 'AWS::Inspector::AssessmentTarget' + AND listing.region = 'us-east-1' + assessment_targets_list_only: + name: assessment_targets_list_only + id: aws.inspector.assessment_targets_list_only + x-cfn-schema-name: AssessmentTarget + x-cfn-type-name: AWS::Inspector::AssessmentTarget + 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::Inspector::AssessmentTarget' + 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::Inspector::AssessmentTarget' + AND region = 'us-east-1' assessment_templates: name: assessment_templates id: aws.inspector.assessment_templates @@ -761,10 +806,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Inspector::AssessmentTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AssessmentTargetArn') as assessment_target_arn, + JSON_EXTRACT(detail.Properties, '$.DurationInSeconds') as duration_in_seconds, + JSON_EXTRACT(detail.Properties, '$.AssessmentTemplateName') as assessment_template_name, + JSON_EXTRACT(detail.Properties, '$.RulesPackageArns') as rules_package_arns, + JSON_EXTRACT(detail.Properties, '$.UserAttributesForFindings') as user_attributes_for_findings + 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::Inspector::AssessmentTemplate' + AND detail.data__TypeName = 'AWS::Inspector::AssessmentTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -784,10 +839,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Inspector::AssessmentTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AssessmentTargetArn') as assessment_target_arn, + json_extract_path_text(detail.Properties, 'DurationInSeconds') as duration_in_seconds, + json_extract_path_text(detail.Properties, 'AssessmentTemplateName') as assessment_template_name, + json_extract_path_text(detail.Properties, 'RulesPackageArns') as rules_package_arns, + json_extract_path_text(detail.Properties, 'UserAttributesForFindings') as user_attributes_for_findings + 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::Inspector::AssessmentTemplate' + AND detail.data__TypeName = 'AWS::Inspector::AssessmentTemplate' + AND listing.region = 'us-east-1' + assessment_templates_list_only: + name: assessment_templates_list_only + id: aws.inspector.assessment_templates_list_only + x-cfn-schema-name: AssessmentTemplate + x-cfn-type-name: AWS::Inspector::AssessmentTemplate + 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::Inspector::AssessmentTemplate' + 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::Inspector::AssessmentTemplate' + AND region = 'us-east-1' resource_groups: name: resource_groups id: aws.inspector.resource_groups diff --git a/providers/src/aws/v00.00.00000/services/inspectorv2.yaml b/providers/src/aws/v00.00.00000/services/inspectorv2.yaml index ffb05c68..7cb5b8e7 100644 --- a/providers/src/aws/v00.00.00000/services/inspectorv2.yaml +++ b/providers/src/aws/v00.00.00000/services/inspectorv2.yaml @@ -963,10 +963,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::InspectorV2::CisScanConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ScanName') as scan_name, + JSON_EXTRACT(detail.Properties, '$.SecurityLevel') as security_level, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::InspectorV2::CisScanConfiguration' + AND detail.data__TypeName = 'AWS::InspectorV2::CisScanConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -986,10 +996,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::InspectorV2::CisScanConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ScanName') as scan_name, + json_extract_path_text(detail.Properties, 'SecurityLevel') as security_level, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::InspectorV2::CisScanConfiguration' + AND detail.data__TypeName = 'AWS::InspectorV2::CisScanConfiguration' + AND listing.region = 'us-east-1' + cis_scan_configurations_list_only: + name: cis_scan_configurations_list_only + id: aws.inspectorv2.cis_scan_configurations_list_only + x-cfn-schema-name: CisScanConfiguration + x-cfn-type-name: AWS::InspectorV2::CisScanConfiguration + 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::InspectorV2::CisScanConfiguration' + 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::InspectorV2::CisScanConfiguration' + AND region = 'us-east-1' + cis_scan_configuration_tags: + name: cis_scan_configuration_tags + id: aws.inspectorv2.cis_scan_configuration_tags + x-cfn-schema-name: CisScanConfiguration + x-cfn-type-name: AWS::InspectorV2::CisScanConfiguration + 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, '$.ScanName') as scan_name, + JSON_EXTRACT(detail.Properties, '$.SecurityLevel') as security_level, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::InspectorV2::CisScanConfiguration' + AND detail.data__TypeName = 'AWS::InspectorV2::CisScanConfiguration' + 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, 'ScanName') as scan_name, + json_extract_path_text(detail.Properties, 'SecurityLevel') as security_level, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::InspectorV2::CisScanConfiguration' + AND detail.data__TypeName = 'AWS::InspectorV2::CisScanConfiguration' + AND listing.region = 'us-east-1' filters: name: filters id: aws.inspectorv2.filters @@ -1065,10 +1169,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::InspectorV2::Filter' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FilterCriteria') as filter_criteria, + JSON_EXTRACT(detail.Properties, '$.FilterAction') as filter_action, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::InspectorV2::Filter' + AND detail.data__TypeName = 'AWS::InspectorV2::Filter' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1087,10 +1200,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::InspectorV2::Filter' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FilterCriteria') as filter_criteria, + json_extract_path_text(detail.Properties, 'FilterAction') as filter_action, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::InspectorV2::Filter' + AND detail.data__TypeName = 'AWS::InspectorV2::Filter' + AND listing.region = 'us-east-1' + filters_list_only: + name: filters_list_only + id: aws.inspectorv2.filters_list_only + x-cfn-schema-name: Filter + x-cfn-type-name: AWS::InspectorV2::Filter + 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::InspectorV2::Filter' + 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::InspectorV2::Filter' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/internetmonitor.yaml b/providers/src/aws/v00.00.00000/services/internetmonitor.yaml index 7c6a9707..c6880f11 100644 --- a/providers/src/aws/v00.00.00000/services/internetmonitor.yaml +++ b/providers/src/aws/v00.00.00000/services/internetmonitor.yaml @@ -782,10 +782,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MonitorName') as monitor_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::InternetMonitor::Monitor' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.MonitorArn') as monitor_arn, + JSON_EXTRACT(detail.Properties, '$.MonitorName') as monitor_name, + JSON_EXTRACT(detail.Properties, '$.LinkedAccountId') as linked_account_id, + JSON_EXTRACT(detail.Properties, '$.IncludeLinkedAccounts') as include_linked_accounts, + JSON_EXTRACT(detail.Properties, '$.ProcessingStatus') as processing_status, + JSON_EXTRACT(detail.Properties, '$.ProcessingStatusInfo') as processing_status_info, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources, + JSON_EXTRACT(detail.Properties, '$.ResourcesToAdd') as resources_to_add, + JSON_EXTRACT(detail.Properties, '$.ResourcesToRemove') as resources_to_remove, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.MaxCityNetworksToMonitor') as max_city_networks_to_monitor, + JSON_EXTRACT(detail.Properties, '$.TrafficPercentageToMonitor') as traffic_percentage_to_monitor, + JSON_EXTRACT(detail.Properties, '$.InternetMeasurementsLogDelivery') as internet_measurements_log_delivery, + JSON_EXTRACT(detail.Properties, '$.HealthEventsConfig') as health_events_config + 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::InternetMonitor::Monitor' + AND detail.data__TypeName = 'AWS::InternetMonitor::Monitor' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -816,10 +837,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MonitorName') as monitor_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::InternetMonitor::Monitor' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'MonitorArn') as monitor_arn, + json_extract_path_text(detail.Properties, 'MonitorName') as monitor_name, + json_extract_path_text(detail.Properties, 'LinkedAccountId') as linked_account_id, + json_extract_path_text(detail.Properties, 'IncludeLinkedAccounts') as include_linked_accounts, + json_extract_path_text(detail.Properties, 'ProcessingStatus') as processing_status, + json_extract_path_text(detail.Properties, 'ProcessingStatusInfo') as processing_status_info, + json_extract_path_text(detail.Properties, 'Resources') as resources, + json_extract_path_text(detail.Properties, 'ResourcesToAdd') as resources_to_add, + json_extract_path_text(detail.Properties, 'ResourcesToRemove') as resources_to_remove, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'MaxCityNetworksToMonitor') as max_city_networks_to_monitor, + json_extract_path_text(detail.Properties, 'TrafficPercentageToMonitor') as traffic_percentage_to_monitor, + json_extract_path_text(detail.Properties, 'InternetMeasurementsLogDelivery') as internet_measurements_log_delivery, + json_extract_path_text(detail.Properties, 'HealthEventsConfig') as health_events_config + 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::InternetMonitor::Monitor' + AND detail.data__TypeName = 'AWS::InternetMonitor::Monitor' + AND listing.region = 'us-east-1' + monitors_list_only: + name: monitors_list_only + id: aws.internetmonitor.monitors_list_only + x-cfn-schema-name: Monitor + x-cfn-type-name: AWS::InternetMonitor::Monitor + x-identifiers: + - MonitorName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MonitorName') as monitor_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::InternetMonitor::Monitor' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MonitorName') as monitor_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::InternetMonitor::Monitor' + AND region = 'us-east-1' + monitor_tags: + name: monitor_tags + id: aws.internetmonitor.monitor_tags + x-cfn-schema-name: Monitor + x-cfn-type-name: AWS::InternetMonitor::Monitor + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.MonitorArn') as monitor_arn, + JSON_EXTRACT(detail.Properties, '$.MonitorName') as monitor_name, + JSON_EXTRACT(detail.Properties, '$.LinkedAccountId') as linked_account_id, + JSON_EXTRACT(detail.Properties, '$.IncludeLinkedAccounts') as include_linked_accounts, + JSON_EXTRACT(detail.Properties, '$.ProcessingStatus') as processing_status, + JSON_EXTRACT(detail.Properties, '$.ProcessingStatusInfo') as processing_status_info, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources, + JSON_EXTRACT(detail.Properties, '$.ResourcesToAdd') as resources_to_add, + JSON_EXTRACT(detail.Properties, '$.ResourcesToRemove') as resources_to_remove, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.MaxCityNetworksToMonitor') as max_city_networks_to_monitor, + JSON_EXTRACT(detail.Properties, '$.TrafficPercentageToMonitor') as traffic_percentage_to_monitor, + JSON_EXTRACT(detail.Properties, '$.InternetMeasurementsLogDelivery') as internet_measurements_log_delivery, + JSON_EXTRACT(detail.Properties, '$.HealthEventsConfig') as health_events_config + 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::InternetMonitor::Monitor' + AND detail.data__TypeName = 'AWS::InternetMonitor::Monitor' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'MonitorArn') as monitor_arn, + json_extract_path_text(detail.Properties, 'MonitorName') as monitor_name, + json_extract_path_text(detail.Properties, 'LinkedAccountId') as linked_account_id, + json_extract_path_text(detail.Properties, 'IncludeLinkedAccounts') as include_linked_accounts, + json_extract_path_text(detail.Properties, 'ProcessingStatus') as processing_status, + json_extract_path_text(detail.Properties, 'ProcessingStatusInfo') as processing_status_info, + json_extract_path_text(detail.Properties, 'Resources') as resources, + json_extract_path_text(detail.Properties, 'ResourcesToAdd') as resources_to_add, + json_extract_path_text(detail.Properties, 'ResourcesToRemove') as resources_to_remove, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'MaxCityNetworksToMonitor') as max_city_networks_to_monitor, + json_extract_path_text(detail.Properties, 'TrafficPercentageToMonitor') as traffic_percentage_to_monitor, + json_extract_path_text(detail.Properties, 'InternetMeasurementsLogDelivery') as internet_measurements_log_delivery, + json_extract_path_text(detail.Properties, 'HealthEventsConfig') as health_events_config + 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::InternetMonitor::Monitor' + AND detail.data__TypeName = 'AWS::InternetMonitor::Monitor' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iot.yaml b/providers/src/aws/v00.00.00000/services/iot.yaml index 28aafa4d..0d57fc31 100644 --- a/providers/src/aws/v00.00.00000/services/iot.yaml +++ b/providers/src/aws/v00.00.00000/services/iot.yaml @@ -4997,10 +4997,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::AccountAuditConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.AuditCheckConfigurations') as audit_check_configurations, + JSON_EXTRACT(detail.Properties, '$.AuditNotificationTargetConfigurations') as audit_notification_target_configurations, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn + 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::IoT::AccountAuditConfiguration' + AND detail.data__TypeName = 'AWS::IoT::AccountAuditConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5018,10 +5026,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::AccountAuditConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'AuditCheckConfigurations') as audit_check_configurations, + json_extract_path_text(detail.Properties, 'AuditNotificationTargetConfigurations') as audit_notification_target_configurations, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn + 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::IoT::AccountAuditConfiguration' + AND detail.data__TypeName = 'AWS::IoT::AccountAuditConfiguration' + AND listing.region = 'us-east-1' + account_audit_configurations_list_only: + name: account_audit_configurations_list_only + id: aws.iot.account_audit_configurations_list_only + x-cfn-schema-name: AccountAuditConfiguration + x-cfn-type-name: AWS::IoT::AccountAuditConfiguration + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::AccountAuditConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::AccountAuditConfiguration' + AND region = 'us-east-1' authorizers: name: authorizers id: aws.iot.authorizers @@ -5101,10 +5148,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AuthorizerName') as authorizer_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Authorizer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AuthorizerFunctionArn') as authorizer_function_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AuthorizerName') as authorizer_name, + JSON_EXTRACT(detail.Properties, '$.SigningDisabled') as signing_disabled, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TokenKeyName') as token_key_name, + JSON_EXTRACT(detail.Properties, '$.TokenSigningPublicKeys') as token_signing_public_keys, + JSON_EXTRACT(detail.Properties, '$.EnableCachingForHttp') as enable_caching_for_http, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::Authorizer' + AND detail.data__TypeName = 'AWS::IoT::Authorizer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5127,10 +5187,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AuthorizerName') as authorizer_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Authorizer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AuthorizerFunctionArn') as authorizer_function_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AuthorizerName') as authorizer_name, + json_extract_path_text(detail.Properties, 'SigningDisabled') as signing_disabled, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TokenKeyName') as token_key_name, + json_extract_path_text(detail.Properties, 'TokenSigningPublicKeys') as token_signing_public_keys, + json_extract_path_text(detail.Properties, 'EnableCachingForHttp') as enable_caching_for_http, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::Authorizer' + AND detail.data__TypeName = 'AWS::IoT::Authorizer' + AND listing.region = 'us-east-1' + authorizers_list_only: + name: authorizers_list_only + id: aws.iot.authorizers_list_only + x-cfn-schema-name: Authorizer + x-cfn-type-name: AWS::IoT::Authorizer + x-identifiers: + - AuthorizerName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AuthorizerName') as authorizer_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Authorizer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AuthorizerName') as authorizer_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Authorizer' + AND region = 'us-east-1' + authorizer_tags: + name: authorizer_tags + id: aws.iot.authorizer_tags + x-cfn-schema-name: Authorizer + x-cfn-type-name: AWS::IoT::Authorizer + 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, '$.AuthorizerFunctionArn') as authorizer_function_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AuthorizerName') as authorizer_name, + JSON_EXTRACT(detail.Properties, '$.SigningDisabled') as signing_disabled, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.TokenKeyName') as token_key_name, + JSON_EXTRACT(detail.Properties, '$.TokenSigningPublicKeys') as token_signing_public_keys, + JSON_EXTRACT(detail.Properties, '$.EnableCachingForHttp') as enable_caching_for_http + 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::IoT::Authorizer' + AND detail.data__TypeName = 'AWS::IoT::Authorizer' + 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, 'AuthorizerFunctionArn') as authorizer_function_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AuthorizerName') as authorizer_name, + json_extract_path_text(detail.Properties, 'SigningDisabled') as signing_disabled, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'TokenKeyName') as token_key_name, + json_extract_path_text(detail.Properties, 'TokenSigningPublicKeys') as token_signing_public_keys, + json_extract_path_text(detail.Properties, 'EnableCachingForHttp') as enable_caching_for_http + 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::IoT::Authorizer' + AND detail.data__TypeName = 'AWS::IoT::Authorizer' + AND listing.region = 'us-east-1' billing_groups: name: billing_groups id: aws.iot.billing_groups @@ -5206,10 +5369,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BillingGroupName') as billing_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::BillingGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.BillingGroupName') as billing_group_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.BillingGroupProperties') as billing_group_properties + 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::IoT::BillingGroup' + AND detail.data__TypeName = 'AWS::IoT::BillingGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5228,10 +5400,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BillingGroupName') as billing_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::BillingGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'BillingGroupName') as billing_group_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'BillingGroupProperties') as billing_group_properties + 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::IoT::BillingGroup' + AND detail.data__TypeName = 'AWS::IoT::BillingGroup' + AND listing.region = 'us-east-1' + billing_groups_list_only: + name: billing_groups_list_only + id: aws.iot.billing_groups_list_only + x-cfn-schema-name: BillingGroup + x-cfn-type-name: AWS::IoT::BillingGroup + x-identifiers: + - BillingGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BillingGroupName') as billing_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::BillingGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BillingGroupName') as billing_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::BillingGroup' + AND region = 'us-east-1' + billing_group_tags: + name: billing_group_tags + id: aws.iot.billing_group_tags + x-cfn-schema-name: BillingGroup + x-cfn-type-name: AWS::IoT::BillingGroup + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.BillingGroupName') as billing_group_name, + JSON_EXTRACT(detail.Properties, '$.BillingGroupProperties') as billing_group_properties + 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::IoT::BillingGroup' + AND detail.data__TypeName = 'AWS::IoT::BillingGroup' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'BillingGroupName') as billing_group_name, + json_extract_path_text(detail.Properties, 'BillingGroupProperties') as billing_group_properties + 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::IoT::BillingGroup' + AND detail.data__TypeName = 'AWS::IoT::BillingGroup' + AND listing.region = 'us-east-1' ca_certificates: name: ca_certificates id: aws.iot.ca_certificates @@ -5312,10 +5575,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CACertificate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CACertificatePem') as ca_certificate_pem, + JSON_EXTRACT(detail.Properties, '$.VerificationCertificatePem') as verification_certificate_pem, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CertificateMode') as certificate_mode, + JSON_EXTRACT(detail.Properties, '$.AutoRegistrationStatus') as auto_registration_status, + JSON_EXTRACT(detail.Properties, '$.RemoveAutoRegistration') as remove_auto_registration, + JSON_EXTRACT(detail.Properties, '$.RegistrationConfig') as registration_config, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::CACertificate' + AND detail.data__TypeName = 'AWS::IoT::CACertificate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5339,10 +5616,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CACertificate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CACertificatePem') as ca_certificate_pem, + json_extract_path_text(detail.Properties, 'VerificationCertificatePem') as verification_certificate_pem, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CertificateMode') as certificate_mode, + json_extract_path_text(detail.Properties, 'AutoRegistrationStatus') as auto_registration_status, + json_extract_path_text(detail.Properties, 'RemoveAutoRegistration') as remove_auto_registration, + json_extract_path_text(detail.Properties, 'RegistrationConfig') as registration_config, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::CACertificate' + AND detail.data__TypeName = 'AWS::IoT::CACertificate' + AND listing.region = 'us-east-1' + ca_certificates_list_only: + name: ca_certificates_list_only + id: aws.iot.ca_certificates_list_only + x-cfn-schema-name: CACertificate + x-cfn-type-name: AWS::IoT::CACertificate + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CACertificate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CACertificate' + AND region = 'us-east-1' + ca_certificate_tags: + name: ca_certificate_tags + id: aws.iot.ca_certificate_tags + x-cfn-schema-name: CACertificate + x-cfn-type-name: AWS::IoT::CACertificate + 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, '$.CACertificatePem') as ca_certificate_pem, + JSON_EXTRACT(detail.Properties, '$.VerificationCertificatePem') as verification_certificate_pem, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CertificateMode') as certificate_mode, + JSON_EXTRACT(detail.Properties, '$.AutoRegistrationStatus') as auto_registration_status, + JSON_EXTRACT(detail.Properties, '$.RemoveAutoRegistration') as remove_auto_registration, + JSON_EXTRACT(detail.Properties, '$.RegistrationConfig') as registration_config, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoT::CACertificate' + AND detail.data__TypeName = 'AWS::IoT::CACertificate' + 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, 'CACertificatePem') as ca_certificate_pem, + json_extract_path_text(detail.Properties, 'VerificationCertificatePem') as verification_certificate_pem, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CertificateMode') as certificate_mode, + json_extract_path_text(detail.Properties, 'AutoRegistrationStatus') as auto_registration_status, + json_extract_path_text(detail.Properties, 'RemoveAutoRegistration') as remove_auto_registration, + json_extract_path_text(detail.Properties, 'RegistrationConfig') as registration_config, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoT::CACertificate' + AND detail.data__TypeName = 'AWS::IoT::CACertificate' + AND listing.region = 'us-east-1' certificates: name: certificates id: aws.iot.certificates @@ -5420,10 +5803,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Certificate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CACertificatePem') as ca_certificate_pem, + JSON_EXTRACT(detail.Properties, '$.CertificatePem') as certificate_pem, + JSON_EXTRACT(detail.Properties, '$.CertificateSigningRequest') as certificate_signing_request, + JSON_EXTRACT(detail.Properties, '$.CertificateMode') as certificate_mode, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoT::Certificate' + AND detail.data__TypeName = 'AWS::IoT::Certificate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5444,10 +5838,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Certificate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CACertificatePem') as ca_certificate_pem, + json_extract_path_text(detail.Properties, 'CertificatePem') as certificate_pem, + json_extract_path_text(detail.Properties, 'CertificateSigningRequest') as certificate_signing_request, + json_extract_path_text(detail.Properties, 'CertificateMode') as certificate_mode, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoT::Certificate' + AND detail.data__TypeName = 'AWS::IoT::Certificate' + AND listing.region = 'us-east-1' + certificates_list_only: + name: certificates_list_only + id: aws.iot.certificates_list_only + x-cfn-schema-name: Certificate + x-cfn-type-name: AWS::IoT::Certificate + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Certificate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Certificate' + AND region = 'us-east-1' certificate_providers: name: certificate_providers id: aws.iot.certificate_providers @@ -5523,10 +5959,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CertificateProviderName') as certificate_provider_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CertificateProvider' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CertificateProviderName') as certificate_provider_name, + JSON_EXTRACT(detail.Properties, '$.LambdaFunctionArn') as lambda_function_arn, + JSON_EXTRACT(detail.Properties, '$.AccountDefaultForOperations') as account_default_for_operations, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoT::CertificateProvider' + AND detail.data__TypeName = 'AWS::IoT::CertificateProvider' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5545,10 +5990,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CertificateProviderName') as certificate_provider_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CertificateProvider' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CertificateProviderName') as certificate_provider_name, + json_extract_path_text(detail.Properties, 'LambdaFunctionArn') as lambda_function_arn, + json_extract_path_text(detail.Properties, 'AccountDefaultForOperations') as account_default_for_operations, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoT::CertificateProvider' + AND detail.data__TypeName = 'AWS::IoT::CertificateProvider' + AND listing.region = 'us-east-1' + certificate_providers_list_only: + name: certificate_providers_list_only + id: aws.iot.certificate_providers_list_only + x-cfn-schema-name: CertificateProvider + x-cfn-type-name: AWS::IoT::CertificateProvider + x-identifiers: + - CertificateProviderName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CertificateProviderName') as certificate_provider_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CertificateProvider' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CertificateProviderName') as certificate_provider_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CertificateProvider' + AND region = 'us-east-1' + certificate_provider_tags: + name: certificate_provider_tags + id: aws.iot.certificate_provider_tags + x-cfn-schema-name: CertificateProvider + x-cfn-type-name: AWS::IoT::CertificateProvider + 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, '$.CertificateProviderName') as certificate_provider_name, + JSON_EXTRACT(detail.Properties, '$.LambdaFunctionArn') as lambda_function_arn, + JSON_EXTRACT(detail.Properties, '$.AccountDefaultForOperations') as account_default_for_operations, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoT::CertificateProvider' + AND detail.data__TypeName = 'AWS::IoT::CertificateProvider' + 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, 'CertificateProviderName') as certificate_provider_name, + json_extract_path_text(detail.Properties, 'LambdaFunctionArn') as lambda_function_arn, + json_extract_path_text(detail.Properties, 'AccountDefaultForOperations') as account_default_for_operations, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoT::CertificateProvider' + AND detail.data__TypeName = 'AWS::IoT::CertificateProvider' + AND listing.region = 'us-east-1' custom_metrics: name: custom_metrics id: aws.iot.custom_metrics @@ -5624,10 +6160,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MetricName') as metric_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CustomMetric' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MetricName') as metric_name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.MetricType') as metric_type, + JSON_EXTRACT(detail.Properties, '$.MetricArn') as metric_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::CustomMetric' + AND detail.data__TypeName = 'AWS::IoT::CustomMetric' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5646,10 +6191,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MetricName') as metric_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CustomMetric' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MetricName') as metric_name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'MetricType') as metric_type, + json_extract_path_text(detail.Properties, 'MetricArn') as metric_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::CustomMetric' + AND detail.data__TypeName = 'AWS::IoT::CustomMetric' + AND listing.region = 'us-east-1' + custom_metrics_list_only: + name: custom_metrics_list_only + id: aws.iot.custom_metrics_list_only + x-cfn-schema-name: CustomMetric + x-cfn-type-name: AWS::IoT::CustomMetric + x-identifiers: + - MetricName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MetricName') as metric_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CustomMetric' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MetricName') as metric_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::CustomMetric' + AND region = 'us-east-1' + custom_metric_tags: + name: custom_metric_tags + id: aws.iot.custom_metric_tags + x-cfn-schema-name: CustomMetric + x-cfn-type-name: AWS::IoT::CustomMetric + 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, '$.MetricName') as metric_name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.MetricType') as metric_type, + JSON_EXTRACT(detail.Properties, '$.MetricArn') as metric_arn + 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::IoT::CustomMetric' + AND detail.data__TypeName = 'AWS::IoT::CustomMetric' + 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, 'MetricName') as metric_name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'MetricType') as metric_type, + json_extract_path_text(detail.Properties, 'MetricArn') as metric_arn + 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::IoT::CustomMetric' + AND detail.data__TypeName = 'AWS::IoT::CustomMetric' + AND listing.region = 'us-east-1' dimensions: name: dimensions id: aws.iot.dimensions @@ -5725,10 +6361,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Dimension' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.StringValues') as string_values, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoT::Dimension' + AND detail.data__TypeName = 'AWS::IoT::Dimension' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5747,10 +6392,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Dimension' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'StringValues') as string_values, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoT::Dimension' + AND detail.data__TypeName = 'AWS::IoT::Dimension' + AND listing.region = 'us-east-1' + dimensions_list_only: + name: dimensions_list_only + id: aws.iot.dimensions_list_only + x-cfn-schema-name: Dimension + x-cfn-type-name: AWS::IoT::Dimension + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Dimension' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Dimension' + AND region = 'us-east-1' + dimension_tags: + name: dimension_tags + id: aws.iot.dimension_tags + x-cfn-schema-name: Dimension + x-cfn-type-name: AWS::IoT::Dimension + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.StringValues') as string_values, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoT::Dimension' + AND detail.data__TypeName = 'AWS::IoT::Dimension' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'StringValues') as string_values, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoT::Dimension' + AND detail.data__TypeName = 'AWS::IoT::Dimension' + AND listing.region = 'us-east-1' domain_configurations: name: domain_configurations id: aws.iot.domain_configurations @@ -5834,10 +6570,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainConfigurationName') as domain_configuration_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::DomainConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DomainConfigurationName') as domain_configuration_name, + JSON_EXTRACT(detail.Properties, '$.AuthorizerConfig') as authorizer_config, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.ServerCertificateArns') as server_certificate_arns, + JSON_EXTRACT(detail.Properties, '$.ServiceType') as service_type, + JSON_EXTRACT(detail.Properties, '$.ValidationCertificateArn') as validation_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DomainConfigurationStatus') as domain_configuration_status, + JSON_EXTRACT(detail.Properties, '$.DomainType') as domain_type, + JSON_EXTRACT(detail.Properties, '$.ServerCertificateConfig') as server_certificate_config, + JSON_EXTRACT(detail.Properties, '$.ServerCertificates') as server_certificates, + JSON_EXTRACT(detail.Properties, '$.TlsConfig') as tls_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::DomainConfiguration' + AND detail.data__TypeName = 'AWS::IoT::DomainConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5864,15 +6617,130 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainConfigurationName') as domain_configuration_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::DomainConfiguration' - AND region = 'us-east-1' - fleet_metrics: - name: fleet_metrics - id: aws.iot.fleet_metrics - x-cfn-schema-name: FleetMetric - x-cfn-type-name: AWS::IoT::FleetMetric + detail.region, + json_extract_path_text(detail.Properties, 'DomainConfigurationName') as domain_configuration_name, + json_extract_path_text(detail.Properties, 'AuthorizerConfig') as authorizer_config, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'ServerCertificateArns') as server_certificate_arns, + json_extract_path_text(detail.Properties, 'ServiceType') as service_type, + json_extract_path_text(detail.Properties, 'ValidationCertificateArn') as validation_certificate_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DomainConfigurationStatus') as domain_configuration_status, + json_extract_path_text(detail.Properties, 'DomainType') as domain_type, + json_extract_path_text(detail.Properties, 'ServerCertificateConfig') as server_certificate_config, + json_extract_path_text(detail.Properties, 'ServerCertificates') as server_certificates, + json_extract_path_text(detail.Properties, 'TlsConfig') as tls_config, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::DomainConfiguration' + AND detail.data__TypeName = 'AWS::IoT::DomainConfiguration' + AND listing.region = 'us-east-1' + domain_configurations_list_only: + name: domain_configurations_list_only + id: aws.iot.domain_configurations_list_only + x-cfn-schema-name: DomainConfiguration + x-cfn-type-name: AWS::IoT::DomainConfiguration + x-identifiers: + - DomainConfigurationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainConfigurationName') as domain_configuration_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::DomainConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainConfigurationName') as domain_configuration_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::DomainConfiguration' + AND region = 'us-east-1' + domain_configuration_tags: + name: domain_configuration_tags + id: aws.iot.domain_configuration_tags + x-cfn-schema-name: DomainConfiguration + x-cfn-type-name: AWS::IoT::DomainConfiguration + 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, '$.DomainConfigurationName') as domain_configuration_name, + JSON_EXTRACT(detail.Properties, '$.AuthorizerConfig') as authorizer_config, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.ServerCertificateArns') as server_certificate_arns, + JSON_EXTRACT(detail.Properties, '$.ServiceType') as service_type, + JSON_EXTRACT(detail.Properties, '$.ValidationCertificateArn') as validation_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DomainConfigurationStatus') as domain_configuration_status, + JSON_EXTRACT(detail.Properties, '$.DomainType') as domain_type, + JSON_EXTRACT(detail.Properties, '$.ServerCertificateConfig') as server_certificate_config, + JSON_EXTRACT(detail.Properties, '$.ServerCertificates') as server_certificates, + JSON_EXTRACT(detail.Properties, '$.TlsConfig') as tls_config + 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::IoT::DomainConfiguration' + AND detail.data__TypeName = 'AWS::IoT::DomainConfiguration' + 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, 'DomainConfigurationName') as domain_configuration_name, + json_extract_path_text(detail.Properties, 'AuthorizerConfig') as authorizer_config, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'ServerCertificateArns') as server_certificate_arns, + json_extract_path_text(detail.Properties, 'ServiceType') as service_type, + json_extract_path_text(detail.Properties, 'ValidationCertificateArn') as validation_certificate_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DomainConfigurationStatus') as domain_configuration_status, + json_extract_path_text(detail.Properties, 'DomainType') as domain_type, + json_extract_path_text(detail.Properties, 'ServerCertificateConfig') as server_certificate_config, + json_extract_path_text(detail.Properties, 'ServerCertificates') as server_certificates, + json_extract_path_text(detail.Properties, 'TlsConfig') as tls_config + 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::IoT::DomainConfiguration' + AND detail.data__TypeName = 'AWS::IoT::DomainConfiguration' + AND listing.region = 'us-east-1' + fleet_metrics: + name: fleet_metrics + id: aws.iot.fleet_metrics + x-cfn-schema-name: FleetMetric + x-cfn-type-name: AWS::IoT::FleetMetric x-identifiers: - MetricName x-type: cloud_control @@ -5952,10 +6820,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MetricName') as metric_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::FleetMetric' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MetricName') as metric_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.Period') as period, + JSON_EXTRACT(detail.Properties, '$.AggregationField') as aggregation_field, + JSON_EXTRACT(detail.Properties, '$.QueryVersion') as query_version, + JSON_EXTRACT(detail.Properties, '$.IndexName') as index_name, + JSON_EXTRACT(detail.Properties, '$.Unit') as unit, + JSON_EXTRACT(detail.Properties, '$.AggregationType') as aggregation_type, + JSON_EXTRACT(detail.Properties, '$.MetricArn') as metric_arn, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.LastModifiedDate') as last_modified_date, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::FleetMetric' + AND detail.data__TypeName = 'AWS::IoT::FleetMetric' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5983,10 +6869,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MetricName') as metric_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::FleetMetric' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MetricName') as metric_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'Period') as period, + json_extract_path_text(detail.Properties, 'AggregationField') as aggregation_field, + json_extract_path_text(detail.Properties, 'QueryVersion') as query_version, + json_extract_path_text(detail.Properties, 'IndexName') as index_name, + json_extract_path_text(detail.Properties, 'Unit') as unit, + json_extract_path_text(detail.Properties, 'AggregationType') as aggregation_type, + json_extract_path_text(detail.Properties, 'MetricArn') as metric_arn, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'LastModifiedDate') as last_modified_date, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::FleetMetric' + AND detail.data__TypeName = 'AWS::IoT::FleetMetric' + AND listing.region = 'us-east-1' + fleet_metrics_list_only: + name: fleet_metrics_list_only + id: aws.iot.fleet_metrics_list_only + x-cfn-schema-name: FleetMetric + x-cfn-type-name: AWS::IoT::FleetMetric + x-identifiers: + - MetricName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MetricName') as metric_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::FleetMetric' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MetricName') as metric_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::FleetMetric' + AND region = 'us-east-1' + fleet_metric_tags: + name: fleet_metric_tags + id: aws.iot.fleet_metric_tags + x-cfn-schema-name: FleetMetric + x-cfn-type-name: AWS::IoT::FleetMetric + 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, '$.MetricName') as metric_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.Period') as period, + JSON_EXTRACT(detail.Properties, '$.AggregationField') as aggregation_field, + JSON_EXTRACT(detail.Properties, '$.QueryVersion') as query_version, + JSON_EXTRACT(detail.Properties, '$.IndexName') as index_name, + JSON_EXTRACT(detail.Properties, '$.Unit') as unit, + JSON_EXTRACT(detail.Properties, '$.AggregationType') as aggregation_type, + JSON_EXTRACT(detail.Properties, '$.MetricArn') as metric_arn, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.LastModifiedDate') as last_modified_date, + JSON_EXTRACT(detail.Properties, '$.Version') as version + 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::IoT::FleetMetric' + AND detail.data__TypeName = 'AWS::IoT::FleetMetric' + 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, 'MetricName') as metric_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'Period') as period, + json_extract_path_text(detail.Properties, 'AggregationField') as aggregation_field, + json_extract_path_text(detail.Properties, 'QueryVersion') as query_version, + json_extract_path_text(detail.Properties, 'IndexName') as index_name, + json_extract_path_text(detail.Properties, 'Unit') as unit, + json_extract_path_text(detail.Properties, 'AggregationType') as aggregation_type, + json_extract_path_text(detail.Properties, 'MetricArn') as metric_arn, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'LastModifiedDate') as last_modified_date, + json_extract_path_text(detail.Properties, 'Version') as version + 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::IoT::FleetMetric' + AND detail.data__TypeName = 'AWS::IoT::FleetMetric' + AND listing.region = 'us-east-1' job_templates: name: job_templates id: aws.iot.job_templates @@ -6058,10 +7062,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.JobTemplateId') as job_template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::JobTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.JobArn') as job_arn, + JSON_EXTRACT(detail.Properties, '$.JobTemplateId') as job_template_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Document') as document, + JSON_EXTRACT(detail.Properties, '$.DocumentSource') as document_source, + JSON_EXTRACT(detail.Properties, '$.TimeoutConfig') as timeout_config, + JSON_EXTRACT(detail.Properties, '$.JobExecutionsRolloutConfig') as job_executions_rollout_config, + JSON_EXTRACT(detail.Properties, '$.AbortConfig') as abort_config, + JSON_EXTRACT(detail.Properties, '$.PresignedUrlConfig') as presigned_url_config, + JSON_EXTRACT(detail.Properties, '$.JobExecutionsRetryConfig') as job_executions_retry_config, + JSON_EXTRACT(detail.Properties, '$.MaintenanceWindows') as maintenance_windows, + JSON_EXTRACT(detail.Properties, '$.DestinationPackageVersions') as destination_package_versions, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::JobTemplate' + AND detail.data__TypeName = 'AWS::IoT::JobTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6089,10 +7111,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'JobTemplateId') as job_template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::JobTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'JobArn') as job_arn, + json_extract_path_text(detail.Properties, 'JobTemplateId') as job_template_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Document') as document, + json_extract_path_text(detail.Properties, 'DocumentSource') as document_source, + json_extract_path_text(detail.Properties, 'TimeoutConfig') as timeout_config, + json_extract_path_text(detail.Properties, 'JobExecutionsRolloutConfig') as job_executions_rollout_config, + json_extract_path_text(detail.Properties, 'AbortConfig') as abort_config, + json_extract_path_text(detail.Properties, 'PresignedUrlConfig') as presigned_url_config, + json_extract_path_text(detail.Properties, 'JobExecutionsRetryConfig') as job_executions_retry_config, + json_extract_path_text(detail.Properties, 'MaintenanceWindows') as maintenance_windows, + json_extract_path_text(detail.Properties, 'DestinationPackageVersions') as destination_package_versions, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::JobTemplate' + AND detail.data__TypeName = 'AWS::IoT::JobTemplate' + AND listing.region = 'us-east-1' + job_templates_list_only: + name: job_templates_list_only + id: aws.iot.job_templates_list_only + x-cfn-schema-name: JobTemplate + x-cfn-type-name: AWS::IoT::JobTemplate + x-identifiers: + - JobTemplateId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.JobTemplateId') as job_template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::JobTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'JobTemplateId') as job_template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::JobTemplate' + AND region = 'us-east-1' + job_template_tags: + name: job_template_tags + id: aws.iot.job_template_tags + x-cfn-schema-name: JobTemplate + x-cfn-type-name: AWS::IoT::JobTemplate + 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, '$.JobArn') as job_arn, + JSON_EXTRACT(detail.Properties, '$.JobTemplateId') as job_template_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Document') as document, + JSON_EXTRACT(detail.Properties, '$.DocumentSource') as document_source, + JSON_EXTRACT(detail.Properties, '$.TimeoutConfig') as timeout_config, + JSON_EXTRACT(detail.Properties, '$.JobExecutionsRolloutConfig') as job_executions_rollout_config, + JSON_EXTRACT(detail.Properties, '$.AbortConfig') as abort_config, + JSON_EXTRACT(detail.Properties, '$.PresignedUrlConfig') as presigned_url_config, + JSON_EXTRACT(detail.Properties, '$.JobExecutionsRetryConfig') as job_executions_retry_config, + JSON_EXTRACT(detail.Properties, '$.MaintenanceWindows') as maintenance_windows, + JSON_EXTRACT(detail.Properties, '$.DestinationPackageVersions') as destination_package_versions + 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::IoT::JobTemplate' + AND detail.data__TypeName = 'AWS::IoT::JobTemplate' + 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, 'JobArn') as job_arn, + json_extract_path_text(detail.Properties, 'JobTemplateId') as job_template_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Document') as document, + json_extract_path_text(detail.Properties, 'DocumentSource') as document_source, + json_extract_path_text(detail.Properties, 'TimeoutConfig') as timeout_config, + json_extract_path_text(detail.Properties, 'JobExecutionsRolloutConfig') as job_executions_rollout_config, + json_extract_path_text(detail.Properties, 'AbortConfig') as abort_config, + json_extract_path_text(detail.Properties, 'PresignedUrlConfig') as presigned_url_config, + json_extract_path_text(detail.Properties, 'JobExecutionsRetryConfig') as job_executions_retry_config, + json_extract_path_text(detail.Properties, 'MaintenanceWindows') as maintenance_windows, + json_extract_path_text(detail.Properties, 'DestinationPackageVersions') as destination_package_versions + 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::IoT::JobTemplate' + AND detail.data__TypeName = 'AWS::IoT::JobTemplate' + AND listing.region = 'us-east-1' loggings: name: loggings id: aws.iot.loggings @@ -6166,10 +7306,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Logging' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.DefaultLogLevel') as default_log_level + 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::IoT::Logging' + AND detail.data__TypeName = 'AWS::IoT::Logging' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6186,10 +7333,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Logging' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'DefaultLogLevel') as default_log_level + 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::IoT::Logging' + AND detail.data__TypeName = 'AWS::IoT::Logging' + AND listing.region = 'us-east-1' + loggings_list_only: + name: loggings_list_only + id: aws.iot.loggings_list_only + x-cfn-schema-name: Logging + x-cfn-type-name: AWS::IoT::Logging + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Logging' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Logging' + AND region = 'us-east-1' mitigation_actions: name: mitigation_actions id: aws.iot.mitigation_actions @@ -6266,10 +7451,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ActionName') as action_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::MitigationAction' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ActionName') as action_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ActionParams') as action_params, + JSON_EXTRACT(detail.Properties, '$.MitigationActionArn') as mitigation_action_arn, + JSON_EXTRACT(detail.Properties, '$.MitigationActionId') as mitigation_action_id + 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::IoT::MitigationAction' + AND detail.data__TypeName = 'AWS::IoT::MitigationAction' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6289,10 +7484,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ActionName') as action_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::MitigationAction' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ActionName') as action_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ActionParams') as action_params, + json_extract_path_text(detail.Properties, 'MitigationActionArn') as mitigation_action_arn, + json_extract_path_text(detail.Properties, 'MitigationActionId') as mitigation_action_id + 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::IoT::MitigationAction' + AND detail.data__TypeName = 'AWS::IoT::MitigationAction' + AND listing.region = 'us-east-1' + mitigation_actions_list_only: + name: mitigation_actions_list_only + id: aws.iot.mitigation_actions_list_only + x-cfn-schema-name: MitigationAction + x-cfn-type-name: AWS::IoT::MitigationAction + x-identifiers: + - ActionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ActionName') as action_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::MitigationAction' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ActionName') as action_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::MitigationAction' + AND region = 'us-east-1' + mitigation_action_tags: + name: mitigation_action_tags + id: aws.iot.mitigation_action_tags + x-cfn-schema-name: MitigationAction + x-cfn-type-name: AWS::IoT::MitigationAction + 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, '$.ActionName') as action_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.ActionParams') as action_params, + JSON_EXTRACT(detail.Properties, '$.MitigationActionArn') as mitigation_action_arn, + JSON_EXTRACT(detail.Properties, '$.MitigationActionId') as mitigation_action_id + 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::IoT::MitigationAction' + AND detail.data__TypeName = 'AWS::IoT::MitigationAction' + 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, 'ActionName') as action_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'ActionParams') as action_params, + json_extract_path_text(detail.Properties, 'MitigationActionArn') as mitigation_action_arn, + json_extract_path_text(detail.Properties, 'MitigationActionId') as mitigation_action_id + 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::IoT::MitigationAction' + AND detail.data__TypeName = 'AWS::IoT::MitigationAction' + AND listing.region = 'us-east-1' policies: name: policies id: aws.iot.policies @@ -6368,10 +7657,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Policy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::Policy' + AND detail.data__TypeName = 'AWS::IoT::Policy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6390,10 +7688,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Policy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::Policy' + AND detail.data__TypeName = 'AWS::IoT::Policy' + AND listing.region = 'us-east-1' + policies_list_only: + name: policies_list_only + id: aws.iot.policies_list_only + x-cfn-schema-name: Policy + x-cfn-type-name: AWS::IoT::Policy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Policy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Policy' + AND region = 'us-east-1' + policy_tags: + name: policy_tags + id: aws.iot.policy_tags + x-cfn-schema-name: Policy + x-cfn-type-name: AWS::IoT::Policy + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name + 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::IoT::Policy' + AND detail.data__TypeName = 'AWS::IoT::Policy' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name + 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::IoT::Policy' + AND detail.data__TypeName = 'AWS::IoT::Policy' + AND listing.region = 'us-east-1' provisioning_templates: name: provisioning_templates id: aws.iot.provisioning_templates @@ -6473,10 +7862,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TemplateName') as template_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ProvisioningTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TemplateArn') as template_arn, + JSON_EXTRACT(detail.Properties, '$.TemplateName') as template_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.ProvisioningRoleArn') as provisioning_role_arn, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.TemplateType') as template_type, + JSON_EXTRACT(detail.Properties, '$.PreProvisioningHook') as pre_provisioning_hook, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::ProvisioningTemplate' + AND detail.data__TypeName = 'AWS::IoT::ProvisioningTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6499,10 +7901,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TemplateName') as template_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ProvisioningTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TemplateArn') as template_arn, + json_extract_path_text(detail.Properties, 'TemplateName') as template_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'ProvisioningRoleArn') as provisioning_role_arn, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'TemplateType') as template_type, + json_extract_path_text(detail.Properties, 'PreProvisioningHook') as pre_provisioning_hook, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::ProvisioningTemplate' + AND detail.data__TypeName = 'AWS::IoT::ProvisioningTemplate' + AND listing.region = 'us-east-1' + provisioning_templates_list_only: + name: provisioning_templates_list_only + id: aws.iot.provisioning_templates_list_only + x-cfn-schema-name: ProvisioningTemplate + x-cfn-type-name: AWS::IoT::ProvisioningTemplate + x-identifiers: + - TemplateName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TemplateName') as template_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ProvisioningTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TemplateName') as template_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ProvisioningTemplate' + AND region = 'us-east-1' + provisioning_template_tags: + name: provisioning_template_tags + id: aws.iot.provisioning_template_tags + x-cfn-schema-name: ProvisioningTemplate + x-cfn-type-name: AWS::IoT::ProvisioningTemplate + 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, '$.TemplateArn') as template_arn, + JSON_EXTRACT(detail.Properties, '$.TemplateName') as template_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.ProvisioningRoleArn') as provisioning_role_arn, + JSON_EXTRACT(detail.Properties, '$.TemplateBody') as template_body, + JSON_EXTRACT(detail.Properties, '$.TemplateType') as template_type, + JSON_EXTRACT(detail.Properties, '$.PreProvisioningHook') as pre_provisioning_hook + 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::IoT::ProvisioningTemplate' + AND detail.data__TypeName = 'AWS::IoT::ProvisioningTemplate' + 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, 'TemplateArn') as template_arn, + json_extract_path_text(detail.Properties, 'TemplateName') as template_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'ProvisioningRoleArn') as provisioning_role_arn, + json_extract_path_text(detail.Properties, 'TemplateBody') as template_body, + json_extract_path_text(detail.Properties, 'TemplateType') as template_type, + json_extract_path_text(detail.Properties, 'PreProvisioningHook') as pre_provisioning_hook + 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::IoT::ProvisioningTemplate' + AND detail.data__TypeName = 'AWS::IoT::ProvisioningTemplate' + AND listing.region = 'us-east-1' resource_specific_loggings: name: resource_specific_loggings id: aws.iot.resource_specific_loggings @@ -6577,10 +8082,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TargetId') as target_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ResourceSpecificLogging' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TargetType') as target_type, + JSON_EXTRACT(detail.Properties, '$.TargetName') as target_name, + JSON_EXTRACT(detail.Properties, '$.LogLevel') as log_level, + JSON_EXTRACT(detail.Properties, '$.TargetId') as target_id + 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::IoT::ResourceSpecificLogging' + AND detail.data__TypeName = 'AWS::IoT::ResourceSpecificLogging' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6598,10 +8111,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TargetId') as target_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ResourceSpecificLogging' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TargetType') as target_type, + json_extract_path_text(detail.Properties, 'TargetName') as target_name, + json_extract_path_text(detail.Properties, 'LogLevel') as log_level, + json_extract_path_text(detail.Properties, 'TargetId') as target_id + 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::IoT::ResourceSpecificLogging' + AND detail.data__TypeName = 'AWS::IoT::ResourceSpecificLogging' + AND listing.region = 'us-east-1' + resource_specific_loggings_list_only: + name: resource_specific_loggings_list_only + id: aws.iot.resource_specific_loggings_list_only + x-cfn-schema-name: ResourceSpecificLogging + x-cfn-type-name: AWS::IoT::ResourceSpecificLogging + x-identifiers: + - TargetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TargetId') as target_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ResourceSpecificLogging' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TargetId') as target_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ResourceSpecificLogging' + AND region = 'us-east-1' role_aliases: name: role_aliases id: aws.iot.role_aliases @@ -6677,10 +8229,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RoleAlias') as role_alias - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::RoleAlias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RoleAlias') as role_alias, + JSON_EXTRACT(detail.Properties, '$.RoleAliasArn') as role_alias_arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.CredentialDurationSeconds') as credential_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::RoleAlias' + AND detail.data__TypeName = 'AWS::IoT::RoleAlias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6699,12 +8260,103 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RoleAlias') as role_alias - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::RoleAlias' - AND region = 'us-east-1' - scheduled_audits: - name: scheduled_audits + detail.region, + json_extract_path_text(detail.Properties, 'RoleAlias') as role_alias, + json_extract_path_text(detail.Properties, 'RoleAliasArn') as role_alias_arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'CredentialDurationSeconds') as credential_duration_seconds, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::RoleAlias' + AND detail.data__TypeName = 'AWS::IoT::RoleAlias' + AND listing.region = 'us-east-1' + role_aliases_list_only: + name: role_aliases_list_only + id: aws.iot.role_aliases_list_only + x-cfn-schema-name: RoleAlias + x-cfn-type-name: AWS::IoT::RoleAlias + x-identifiers: + - RoleAlias + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RoleAlias') as role_alias + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::RoleAlias' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RoleAlias') as role_alias + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::RoleAlias' + AND region = 'us-east-1' + role_alias_tags: + name: role_alias_tags + id: aws.iot.role_alias_tags + x-cfn-schema-name: RoleAlias + x-cfn-type-name: AWS::IoT::RoleAlias + 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, '$.RoleAlias') as role_alias, + JSON_EXTRACT(detail.Properties, '$.RoleAliasArn') as role_alias_arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.CredentialDurationSeconds') as credential_duration_seconds + 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::IoT::RoleAlias' + AND detail.data__TypeName = 'AWS::IoT::RoleAlias' + 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, 'RoleAlias') as role_alias, + json_extract_path_text(detail.Properties, 'RoleAliasArn') as role_alias_arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'CredentialDurationSeconds') as credential_duration_seconds + 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::IoT::RoleAlias' + AND detail.data__TypeName = 'AWS::IoT::RoleAlias' + AND listing.region = 'us-east-1' + scheduled_audits: + name: scheduled_audits id: aws.iot.scheduled_audits x-cfn-schema-name: ScheduledAudit x-cfn-type-name: AWS::IoT::ScheduledAudit @@ -6780,10 +8432,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ScheduledAuditName') as scheduled_audit_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ScheduledAudit' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ScheduledAuditName') as scheduled_audit_name, + JSON_EXTRACT(detail.Properties, '$.Frequency') as frequency, + JSON_EXTRACT(detail.Properties, '$.DayOfMonth') as day_of_month, + JSON_EXTRACT(detail.Properties, '$.DayOfWeek') as day_of_week, + JSON_EXTRACT(detail.Properties, '$.TargetCheckNames') as target_check_names, + JSON_EXTRACT(detail.Properties, '$.ScheduledAuditArn') as scheduled_audit_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::ScheduledAudit' + AND detail.data__TypeName = 'AWS::IoT::ScheduledAudit' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6804,10 +8467,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ScheduledAuditName') as scheduled_audit_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ScheduledAudit' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ScheduledAuditName') as scheduled_audit_name, + json_extract_path_text(detail.Properties, 'Frequency') as frequency, + json_extract_path_text(detail.Properties, 'DayOfMonth') as day_of_month, + json_extract_path_text(detail.Properties, 'DayOfWeek') as day_of_week, + json_extract_path_text(detail.Properties, 'TargetCheckNames') as target_check_names, + json_extract_path_text(detail.Properties, 'ScheduledAuditArn') as scheduled_audit_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::ScheduledAudit' + AND detail.data__TypeName = 'AWS::IoT::ScheduledAudit' + AND listing.region = 'us-east-1' + scheduled_audits_list_only: + name: scheduled_audits_list_only + id: aws.iot.scheduled_audits_list_only + x-cfn-schema-name: ScheduledAudit + x-cfn-type-name: AWS::IoT::ScheduledAudit + x-identifiers: + - ScheduledAuditName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ScheduledAuditName') as scheduled_audit_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ScheduledAudit' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ScheduledAuditName') as scheduled_audit_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ScheduledAudit' + AND region = 'us-east-1' + scheduled_audit_tags: + name: scheduled_audit_tags + id: aws.iot.scheduled_audit_tags + x-cfn-schema-name: ScheduledAudit + x-cfn-type-name: AWS::IoT::ScheduledAudit + 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, '$.ScheduledAuditName') as scheduled_audit_name, + JSON_EXTRACT(detail.Properties, '$.Frequency') as frequency, + JSON_EXTRACT(detail.Properties, '$.DayOfMonth') as day_of_month, + JSON_EXTRACT(detail.Properties, '$.DayOfWeek') as day_of_week, + JSON_EXTRACT(detail.Properties, '$.TargetCheckNames') as target_check_names, + JSON_EXTRACT(detail.Properties, '$.ScheduledAuditArn') as scheduled_audit_arn + 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::IoT::ScheduledAudit' + AND detail.data__TypeName = 'AWS::IoT::ScheduledAudit' + 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, 'ScheduledAuditName') as scheduled_audit_name, + json_extract_path_text(detail.Properties, 'Frequency') as frequency, + json_extract_path_text(detail.Properties, 'DayOfMonth') as day_of_month, + json_extract_path_text(detail.Properties, 'DayOfWeek') as day_of_week, + json_extract_path_text(detail.Properties, 'TargetCheckNames') as target_check_names, + json_extract_path_text(detail.Properties, 'ScheduledAuditArn') as scheduled_audit_arn + 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::IoT::ScheduledAudit' + AND detail.data__TypeName = 'AWS::IoT::ScheduledAudit' + AND listing.region = 'us-east-1' security_profiles: name: security_profiles id: aws.iot.security_profiles @@ -6887,10 +8647,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SecurityProfileName') as security_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SecurityProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileName') as security_profile_name, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileDescription') as security_profile_description, + JSON_EXTRACT(detail.Properties, '$.Behaviors') as behaviors, + JSON_EXTRACT(detail.Properties, '$.AlertTargets') as alert_targets, + JSON_EXTRACT(detail.Properties, '$.AdditionalMetricsToRetainV2') as additional_metrics_to_retain_v2, + JSON_EXTRACT(detail.Properties, '$.MetricsExportConfig') as metrics_export_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TargetArns') as target_arns, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileArn') as security_profile_arn + 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::IoT::SecurityProfile' + AND detail.data__TypeName = 'AWS::IoT::SecurityProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6913,10 +8686,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SecurityProfileName') as security_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SecurityProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SecurityProfileName') as security_profile_name, + json_extract_path_text(detail.Properties, 'SecurityProfileDescription') as security_profile_description, + json_extract_path_text(detail.Properties, 'Behaviors') as behaviors, + json_extract_path_text(detail.Properties, 'AlertTargets') as alert_targets, + json_extract_path_text(detail.Properties, 'AdditionalMetricsToRetainV2') as additional_metrics_to_retain_v2, + json_extract_path_text(detail.Properties, 'MetricsExportConfig') as metrics_export_config, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TargetArns') as target_arns, + json_extract_path_text(detail.Properties, 'SecurityProfileArn') as security_profile_arn + 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::IoT::SecurityProfile' + AND detail.data__TypeName = 'AWS::IoT::SecurityProfile' + AND listing.region = 'us-east-1' + security_profiles_list_only: + name: security_profiles_list_only + id: aws.iot.security_profiles_list_only + x-cfn-schema-name: SecurityProfile + x-cfn-type-name: AWS::IoT::SecurityProfile + x-identifiers: + - SecurityProfileName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SecurityProfileName') as security_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SecurityProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SecurityProfileName') as security_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SecurityProfile' + AND region = 'us-east-1' + security_profile_tags: + name: security_profile_tags + id: aws.iot.security_profile_tags + x-cfn-schema-name: SecurityProfile + x-cfn-type-name: AWS::IoT::SecurityProfile + 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, '$.SecurityProfileName') as security_profile_name, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileDescription') as security_profile_description, + JSON_EXTRACT(detail.Properties, '$.Behaviors') as behaviors, + JSON_EXTRACT(detail.Properties, '$.AlertTargets') as alert_targets, + JSON_EXTRACT(detail.Properties, '$.AdditionalMetricsToRetainV2') as additional_metrics_to_retain_v2, + JSON_EXTRACT(detail.Properties, '$.MetricsExportConfig') as metrics_export_config, + JSON_EXTRACT(detail.Properties, '$.TargetArns') as target_arns, + JSON_EXTRACT(detail.Properties, '$.SecurityProfileArn') as security_profile_arn + 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::IoT::SecurityProfile' + AND detail.data__TypeName = 'AWS::IoT::SecurityProfile' + 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, 'SecurityProfileName') as security_profile_name, + json_extract_path_text(detail.Properties, 'SecurityProfileDescription') as security_profile_description, + json_extract_path_text(detail.Properties, 'Behaviors') as behaviors, + json_extract_path_text(detail.Properties, 'AlertTargets') as alert_targets, + json_extract_path_text(detail.Properties, 'AdditionalMetricsToRetainV2') as additional_metrics_to_retain_v2, + json_extract_path_text(detail.Properties, 'MetricsExportConfig') as metrics_export_config, + json_extract_path_text(detail.Properties, 'TargetArns') as target_arns, + json_extract_path_text(detail.Properties, 'SecurityProfileArn') as security_profile_arn + 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::IoT::SecurityProfile' + AND detail.data__TypeName = 'AWS::IoT::SecurityProfile' + AND listing.region = 'us-east-1' software_packages: name: software_packages id: aws.iot.software_packages @@ -6991,10 +8867,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PackageName') as package_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackage' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PackageArn') as package_arn, + JSON_EXTRACT(detail.Properties, '$.PackageName') as package_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::SoftwarePackage' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackage' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7012,10 +8896,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PackageName') as package_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackage' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PackageArn') as package_arn, + json_extract_path_text(detail.Properties, 'PackageName') as package_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::SoftwarePackage' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackage' + AND listing.region = 'us-east-1' + software_packages_list_only: + name: software_packages_list_only + id: aws.iot.software_packages_list_only + x-cfn-schema-name: SoftwarePackage + x-cfn-type-name: AWS::IoT::SoftwarePackage + x-identifiers: + - PackageName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PackageName') as package_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackage' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PackageName') as package_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackage' + AND region = 'us-east-1' + software_package_tags: + name: software_package_tags + id: aws.iot.software_package_tags + x-cfn-schema-name: SoftwarePackage + x-cfn-type-name: AWS::IoT::SoftwarePackage + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PackageArn') as package_arn, + JSON_EXTRACT(detail.Properties, '$.PackageName') as package_name + 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::IoT::SoftwarePackage' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackage' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'PackageArn') as package_arn, + json_extract_path_text(detail.Properties, 'PackageName') as package_name + 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::IoT::SoftwarePackage' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackage' + AND listing.region = 'us-east-1' software_package_versions: name: software_package_versions id: aws.iot.software_package_versions @@ -7095,11 +9067,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PackageName') as package_name, - JSON_EXTRACT(Properties, '$.VersionName') as version_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackageVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Attributes') as attributes, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ErrorReason') as error_reason, + JSON_EXTRACT(detail.Properties, '$.PackageName') as package_name, + JSON_EXTRACT(detail.Properties, '$.PackageVersionArn') as package_version_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VersionName') as version_name + 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::IoT::SoftwarePackageVersion' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackageVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7121,11 +9104,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PackageName') as package_name, - json_extract_path_text(Properties, 'VersionName') as version_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackageVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Attributes') as attributes, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ErrorReason') as error_reason, + json_extract_path_text(detail.Properties, 'PackageName') as package_name, + json_extract_path_text(detail.Properties, 'PackageVersionArn') as package_version_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VersionName') as version_name + 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::IoT::SoftwarePackageVersion' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackageVersion' + AND listing.region = 'us-east-1' + software_package_versions_list_only: + name: software_package_versions_list_only + id: aws.iot.software_package_versions_list_only + x-cfn-schema-name: SoftwarePackageVersion + x-cfn-type-name: AWS::IoT::SoftwarePackageVersion + x-identifiers: + - PackageName + - VersionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PackageName') as package_name, + JSON_EXTRACT(Properties, '$.VersionName') as version_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackageVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PackageName') as package_name, + json_extract_path_text(Properties, 'VersionName') as version_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::SoftwarePackageVersion' + AND region = 'us-east-1' + software_package_version_tags: + name: software_package_version_tags + id: aws.iot.software_package_version_tags + x-cfn-schema-name: SoftwarePackageVersion + x-cfn-type-name: AWS::IoT::SoftwarePackageVersion + 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, '$.Attributes') as attributes, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ErrorReason') as error_reason, + JSON_EXTRACT(detail.Properties, '$.PackageName') as package_name, + JSON_EXTRACT(detail.Properties, '$.PackageVersionArn') as package_version_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.VersionName') as version_name + 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::IoT::SoftwarePackageVersion' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackageVersion' + 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, 'Attributes') as attributes, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ErrorReason') as error_reason, + json_extract_path_text(detail.Properties, 'PackageName') as package_name, + json_extract_path_text(detail.Properties, 'PackageVersionArn') as package_version_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'VersionName') as version_name + 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::IoT::SoftwarePackageVersion' + AND detail.data__TypeName = 'AWS::IoT::SoftwarePackageVersion' + AND listing.region = 'us-east-1' things: name: things id: aws.iot.things @@ -7200,10 +9285,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ThingName') as thing_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Thing' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AttributePayload') as attribute_payload, + JSON_EXTRACT(detail.Properties, '$.ThingName') as thing_name + 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::IoT::Thing' + AND detail.data__TypeName = 'AWS::IoT::Thing' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7221,10 +9314,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ThingName') as thing_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Thing' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AttributePayload') as attribute_payload, + json_extract_path_text(detail.Properties, 'ThingName') as thing_name + 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::IoT::Thing' + AND detail.data__TypeName = 'AWS::IoT::Thing' + AND listing.region = 'us-east-1' + things_list_only: + name: things_list_only + id: aws.iot.things_list_only + x-cfn-schema-name: Thing + x-cfn-type-name: AWS::IoT::Thing + x-identifiers: + - ThingName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ThingName') as thing_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Thing' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ThingName') as thing_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::Thing' + AND region = 'us-east-1' thing_groups: name: thing_groups id: aws.iot.thing_groups @@ -7302,10 +9434,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ThingGroupName') as thing_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ThingGroupName') as thing_group_name, + JSON_EXTRACT(detail.Properties, '$.ParentGroupName') as parent_group_name, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.ThingGroupProperties') as thing_group_properties, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::ThingGroup' + AND detail.data__TypeName = 'AWS::IoT::ThingGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7326,10 +9469,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ThingGroupName') as thing_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ThingGroupName') as thing_group_name, + json_extract_path_text(detail.Properties, 'ParentGroupName') as parent_group_name, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'ThingGroupProperties') as thing_group_properties, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::ThingGroup' + AND detail.data__TypeName = 'AWS::IoT::ThingGroup' + AND listing.region = 'us-east-1' + thing_groups_list_only: + name: thing_groups_list_only + id: aws.iot.thing_groups_list_only + x-cfn-schema-name: ThingGroup + x-cfn-type-name: AWS::IoT::ThingGroup + x-identifiers: + - ThingGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ThingGroupName') as thing_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ThingGroupName') as thing_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingGroup' + AND region = 'us-east-1' + thing_group_tags: + name: thing_group_tags + id: aws.iot.thing_group_tags + x-cfn-schema-name: ThingGroup + x-cfn-type-name: AWS::IoT::ThingGroup + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ThingGroupName') as thing_group_name, + JSON_EXTRACT(detail.Properties, '$.ParentGroupName') as parent_group_name, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.ThingGroupProperties') as thing_group_properties + 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::IoT::ThingGroup' + AND detail.data__TypeName = 'AWS::IoT::ThingGroup' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ThingGroupName') as thing_group_name, + json_extract_path_text(detail.Properties, 'ParentGroupName') as parent_group_name, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'ThingGroupProperties') as thing_group_properties + 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::IoT::ThingGroup' + AND detail.data__TypeName = 'AWS::IoT::ThingGroup' + AND listing.region = 'us-east-1' thing_types: name: thing_types id: aws.iot.thing_types @@ -7406,10 +9646,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ThingTypeName') as thing_type_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingType' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ThingTypeName') as thing_type_name, + JSON_EXTRACT(detail.Properties, '$.DeprecateThingType') as deprecate_thing_type, + JSON_EXTRACT(detail.Properties, '$.ThingTypeProperties') as thing_type_properties, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::ThingType' + AND detail.data__TypeName = 'AWS::IoT::ThingType' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7429,10 +9679,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ThingTypeName') as thing_type_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingType' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ThingTypeName') as thing_type_name, + json_extract_path_text(detail.Properties, 'DeprecateThingType') as deprecate_thing_type, + json_extract_path_text(detail.Properties, 'ThingTypeProperties') as thing_type_properties, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::ThingType' + AND detail.data__TypeName = 'AWS::IoT::ThingType' + AND listing.region = 'us-east-1' + thing_types_list_only: + name: thing_types_list_only + id: aws.iot.thing_types_list_only + x-cfn-schema-name: ThingType + x-cfn-type-name: AWS::IoT::ThingType + x-identifiers: + - ThingTypeName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ThingTypeName') as thing_type_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingType' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ThingTypeName') as thing_type_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::ThingType' + AND region = 'us-east-1' + thing_type_tags: + name: thing_type_tags + id: aws.iot.thing_type_tags + x-cfn-schema-name: ThingType + x-cfn-type-name: AWS::IoT::ThingType + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ThingTypeName') as thing_type_name, + JSON_EXTRACT(detail.Properties, '$.DeprecateThingType') as deprecate_thing_type, + JSON_EXTRACT(detail.Properties, '$.ThingTypeProperties') as thing_type_properties + 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::IoT::ThingType' + AND detail.data__TypeName = 'AWS::IoT::ThingType' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ThingTypeName') as thing_type_name, + json_extract_path_text(detail.Properties, 'DeprecateThingType') as deprecate_thing_type, + json_extract_path_text(detail.Properties, 'ThingTypeProperties') as thing_type_properties + 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::IoT::ThingType' + AND detail.data__TypeName = 'AWS::IoT::ThingType' + AND listing.region = 'us-east-1' topic_rules: name: topic_rules id: aws.iot.topic_rules @@ -7507,10 +9851,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RuleName') as rule_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::TopicRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RuleName') as rule_name, + JSON_EXTRACT(detail.Properties, '$.TopicRulePayload') as topic_rule_payload, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoT::TopicRule' + AND detail.data__TypeName = 'AWS::IoT::TopicRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7528,10 +9880,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RuleName') as rule_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::TopicRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RuleName') as rule_name, + json_extract_path_text(detail.Properties, 'TopicRulePayload') as topic_rule_payload, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoT::TopicRule' + AND detail.data__TypeName = 'AWS::IoT::TopicRule' + AND listing.region = 'us-east-1' + topic_rules_list_only: + name: topic_rules_list_only + id: aws.iot.topic_rules_list_only + x-cfn-schema-name: TopicRule + x-cfn-type-name: AWS::IoT::TopicRule + x-identifiers: + - RuleName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RuleName') as rule_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::TopicRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RuleName') as rule_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::TopicRule' + AND region = 'us-east-1' + topic_rule_tags: + name: topic_rule_tags + id: aws.iot.topic_rule_tags + x-cfn-schema-name: TopicRule + x-cfn-type-name: AWS::IoT::TopicRule + 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, '$.RuleName') as rule_name, + JSON_EXTRACT(detail.Properties, '$.TopicRulePayload') as topic_rule_payload + 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::IoT::TopicRule' + AND detail.data__TypeName = 'AWS::IoT::TopicRule' + 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, 'RuleName') as rule_name, + json_extract_path_text(detail.Properties, 'TopicRulePayload') as topic_rule_payload + 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::IoT::TopicRule' + AND detail.data__TypeName = 'AWS::IoT::TopicRule' + AND listing.region = 'us-east-1' topic_rule_destinations: name: topic_rule_destinations id: aws.iot.topic_rule_destinations @@ -7607,10 +10047,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::TopicRuleDestination' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.HttpUrlProperties') as http_url_properties, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.VpcProperties') as vpc_properties + 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::IoT::TopicRuleDestination' + AND detail.data__TypeName = 'AWS::IoT::TopicRuleDestination' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7629,10 +10078,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoT::TopicRuleDestination' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'HttpUrlProperties') as http_url_properties, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'VpcProperties') as vpc_properties + 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::IoT::TopicRuleDestination' + AND detail.data__TypeName = 'AWS::IoT::TopicRuleDestination' + AND listing.region = 'us-east-1' + topic_rule_destinations_list_only: + name: topic_rule_destinations_list_only + id: aws.iot.topic_rule_destinations_list_only + x-cfn-schema-name: TopicRuleDestination + x-cfn-type-name: AWS::IoT::TopicRuleDestination + 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::IoT::TopicRuleDestination' + 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::IoT::TopicRuleDestination' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iotanalytics.yaml b/providers/src/aws/v00.00.00000/services/iotanalytics.yaml index 1e6a09ba..3b24c6b5 100644 --- a/providers/src/aws/v00.00.00000/services/iotanalytics.yaml +++ b/providers/src/aws/v00.00.00000/services/iotanalytics.yaml @@ -1409,10 +1409,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatasetName') as dataset_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Dataset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.LateDataRules') as late_data_rules, + JSON_EXTRACT(detail.Properties, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.ContentDeliveryRules') as content_delivery_rules, + JSON_EXTRACT(detail.Properties, '$.Triggers') as triggers, + JSON_EXTRACT(detail.Properties, '$.VersioningConfiguration') as versioning_configuration, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.RetentionPeriod') as retention_period, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTAnalytics::Dataset' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Dataset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1435,10 +1448,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatasetName') as dataset_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Dataset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'LateDataRules') as late_data_rules, + json_extract_path_text(detail.Properties, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'ContentDeliveryRules') as content_delivery_rules, + json_extract_path_text(detail.Properties, 'Triggers') as triggers, + json_extract_path_text(detail.Properties, 'VersioningConfiguration') as versioning_configuration, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'RetentionPeriod') as retention_period, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTAnalytics::Dataset' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Dataset' + AND listing.region = 'us-east-1' + datasets_list_only: + name: datasets_list_only + id: aws.iotanalytics.datasets_list_only + x-cfn-schema-name: Dataset + x-cfn-type-name: AWS::IoTAnalytics::Dataset + x-identifiers: + - DatasetName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatasetName') as dataset_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Dataset' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatasetName') as dataset_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Dataset' + AND region = 'us-east-1' + dataset_tags: + name: dataset_tags + id: aws.iotanalytics.dataset_tags + x-cfn-schema-name: Dataset + x-cfn-type-name: AWS::IoTAnalytics::Dataset + 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, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.LateDataRules') as late_data_rules, + JSON_EXTRACT(detail.Properties, '$.DatasetName') as dataset_name, + JSON_EXTRACT(detail.Properties, '$.ContentDeliveryRules') as content_delivery_rules, + JSON_EXTRACT(detail.Properties, '$.Triggers') as triggers, + JSON_EXTRACT(detail.Properties, '$.VersioningConfiguration') as versioning_configuration, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.RetentionPeriod') as retention_period + 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::IoTAnalytics::Dataset' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Dataset' + 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, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'LateDataRules') as late_data_rules, + json_extract_path_text(detail.Properties, 'DatasetName') as dataset_name, + json_extract_path_text(detail.Properties, 'ContentDeliveryRules') as content_delivery_rules, + json_extract_path_text(detail.Properties, 'Triggers') as triggers, + json_extract_path_text(detail.Properties, 'VersioningConfiguration') as versioning_configuration, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'RetentionPeriod') as retention_period + 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::IoTAnalytics::Dataset' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Dataset' + AND listing.region = 'us-east-1' pipelines: name: pipelines id: aws.iotanalytics.pipelines @@ -1513,10 +1629,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PipelineName') as pipeline_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Pipeline' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PipelineName') as pipeline_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.PipelineActivities') as pipeline_activities + 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::IoTAnalytics::Pipeline' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Pipeline' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1534,10 +1658,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PipelineName') as pipeline_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Pipeline' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PipelineName') as pipeline_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'PipelineActivities') as pipeline_activities + 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::IoTAnalytics::Pipeline' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Pipeline' + AND listing.region = 'us-east-1' + pipelines_list_only: + name: pipelines_list_only + id: aws.iotanalytics.pipelines_list_only + x-cfn-schema-name: Pipeline + x-cfn-type-name: AWS::IoTAnalytics::Pipeline + x-identifiers: + - PipelineName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PipelineName') as pipeline_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Pipeline' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PipelineName') as pipeline_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTAnalytics::Pipeline' + AND region = 'us-east-1' + pipeline_tags: + name: pipeline_tags + id: aws.iotanalytics.pipeline_tags + x-cfn-schema-name: Pipeline + x-cfn-type-name: AWS::IoTAnalytics::Pipeline + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PipelineName') as pipeline_name, + JSON_EXTRACT(detail.Properties, '$.PipelineActivities') as pipeline_activities + 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::IoTAnalytics::Pipeline' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Pipeline' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'PipelineName') as pipeline_name, + json_extract_path_text(detail.Properties, 'PipelineActivities') as pipeline_activities + 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::IoTAnalytics::Pipeline' + AND detail.data__TypeName = 'AWS::IoTAnalytics::Pipeline' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iotcoredeviceadvisor.yaml b/providers/src/aws/v00.00.00000/services/iotcoredeviceadvisor.yaml index 41ca315d..3349e25e 100644 --- a/providers/src/aws/v00.00.00000/services/iotcoredeviceadvisor.yaml +++ b/providers/src/aws/v00.00.00000/services/iotcoredeviceadvisor.yaml @@ -671,10 +671,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SuiteDefinitionId') as suite_definition_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SuiteDefinitionConfiguration') as suite_definition_configuration, + JSON_EXTRACT(detail.Properties, '$.SuiteDefinitionId') as suite_definition_id, + JSON_EXTRACT(detail.Properties, '$.SuiteDefinitionArn') as suite_definition_arn, + JSON_EXTRACT(detail.Properties, '$.SuiteDefinitionVersion') as suite_definition_version, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTCoreDeviceAdvisor::SuiteDefinition' + AND detail.data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -693,10 +702,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SuiteDefinitionId') as suite_definition_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SuiteDefinitionConfiguration') as suite_definition_configuration, + json_extract_path_text(detail.Properties, 'SuiteDefinitionId') as suite_definition_id, + json_extract_path_text(detail.Properties, 'SuiteDefinitionArn') as suite_definition_arn, + json_extract_path_text(detail.Properties, 'SuiteDefinitionVersion') as suite_definition_version, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTCoreDeviceAdvisor::SuiteDefinition' + AND detail.data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' + AND listing.region = 'us-east-1' + suite_definitions_list_only: + name: suite_definitions_list_only + id: aws.iotcoredeviceadvisor.suite_definitions_list_only + x-cfn-schema-name: SuiteDefinition + x-cfn-type-name: AWS::IoTCoreDeviceAdvisor::SuiteDefinition + x-identifiers: + - SuiteDefinitionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SuiteDefinitionId') as suite_definition_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SuiteDefinitionId') as suite_definition_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' + AND region = 'us-east-1' + suite_definition_tags: + name: suite_definition_tags + id: aws.iotcoredeviceadvisor.suite_definition_tags + x-cfn-schema-name: SuiteDefinition + x-cfn-type-name: AWS::IoTCoreDeviceAdvisor::SuiteDefinition + 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, '$.SuiteDefinitionConfiguration') as suite_definition_configuration, + JSON_EXTRACT(detail.Properties, '$.SuiteDefinitionId') as suite_definition_id, + JSON_EXTRACT(detail.Properties, '$.SuiteDefinitionArn') as suite_definition_arn, + JSON_EXTRACT(detail.Properties, '$.SuiteDefinitionVersion') as suite_definition_version + 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::IoTCoreDeviceAdvisor::SuiteDefinition' + AND detail.data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' + 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, 'SuiteDefinitionConfiguration') as suite_definition_configuration, + json_extract_path_text(detail.Properties, 'SuiteDefinitionId') as suite_definition_id, + json_extract_path_text(detail.Properties, 'SuiteDefinitionArn') as suite_definition_arn, + json_extract_path_text(detail.Properties, 'SuiteDefinitionVersion') as suite_definition_version + 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::IoTCoreDeviceAdvisor::SuiteDefinition' + AND detail.data__TypeName = 'AWS::IoTCoreDeviceAdvisor::SuiteDefinition' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iotevents.yaml b/providers/src/aws/v00.00.00000/services/iotevents.yaml index 022d37dd..4889bd42 100644 --- a/providers/src/aws/v00.00.00000/services/iotevents.yaml +++ b/providers/src/aws/v00.00.00000/services/iotevents.yaml @@ -1497,10 +1497,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AlarmModelName') as alarm_model_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::AlarmModel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AlarmModelName') as alarm_model_name, + JSON_EXTRACT(detail.Properties, '$.AlarmModelDescription') as alarm_model_description, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Key') as key, + JSON_EXTRACT(detail.Properties, '$.Severity') as severity, + JSON_EXTRACT(detail.Properties, '$.AlarmRule') as alarm_rule, + JSON_EXTRACT(detail.Properties, '$.AlarmEventActions') as alarm_event_actions, + JSON_EXTRACT(detail.Properties, '$.AlarmCapabilities') as alarm_capabilities, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTEvents::AlarmModel' + AND detail.data__TypeName = 'AWS::IoTEvents::AlarmModel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1523,10 +1536,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AlarmModelName') as alarm_model_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::AlarmModel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AlarmModelName') as alarm_model_name, + json_extract_path_text(detail.Properties, 'AlarmModelDescription') as alarm_model_description, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Key') as key, + json_extract_path_text(detail.Properties, 'Severity') as severity, + json_extract_path_text(detail.Properties, 'AlarmRule') as alarm_rule, + json_extract_path_text(detail.Properties, 'AlarmEventActions') as alarm_event_actions, + json_extract_path_text(detail.Properties, 'AlarmCapabilities') as alarm_capabilities, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTEvents::AlarmModel' + AND detail.data__TypeName = 'AWS::IoTEvents::AlarmModel' + AND listing.region = 'us-east-1' + alarm_models_list_only: + name: alarm_models_list_only + id: aws.iotevents.alarm_models_list_only + x-cfn-schema-name: AlarmModel + x-cfn-type-name: AWS::IoTEvents::AlarmModel + x-identifiers: + - AlarmModelName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AlarmModelName') as alarm_model_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::AlarmModel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AlarmModelName') as alarm_model_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::AlarmModel' + AND region = 'us-east-1' + alarm_model_tags: + name: alarm_model_tags + id: aws.iotevents.alarm_model_tags + x-cfn-schema-name: AlarmModel + x-cfn-type-name: AWS::IoTEvents::AlarmModel + 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, '$.AlarmModelName') as alarm_model_name, + JSON_EXTRACT(detail.Properties, '$.AlarmModelDescription') as alarm_model_description, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Key') as key, + JSON_EXTRACT(detail.Properties, '$.Severity') as severity, + JSON_EXTRACT(detail.Properties, '$.AlarmRule') as alarm_rule, + JSON_EXTRACT(detail.Properties, '$.AlarmEventActions') as alarm_event_actions, + JSON_EXTRACT(detail.Properties, '$.AlarmCapabilities') as alarm_capabilities + 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::IoTEvents::AlarmModel' + AND detail.data__TypeName = 'AWS::IoTEvents::AlarmModel' + 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, 'AlarmModelName') as alarm_model_name, + json_extract_path_text(detail.Properties, 'AlarmModelDescription') as alarm_model_description, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Key') as key, + json_extract_path_text(detail.Properties, 'Severity') as severity, + json_extract_path_text(detail.Properties, 'AlarmRule') as alarm_rule, + json_extract_path_text(detail.Properties, 'AlarmEventActions') as alarm_event_actions, + json_extract_path_text(detail.Properties, 'AlarmCapabilities') as alarm_capabilities + 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::IoTEvents::AlarmModel' + AND detail.data__TypeName = 'AWS::IoTEvents::AlarmModel' + AND listing.region = 'us-east-1' detector_models: name: detector_models id: aws.iotevents.detector_models @@ -1604,10 +1720,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DetectorModelName') as detector_model_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::DetectorModel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DetectorModelDefinition') as detector_model_definition, + JSON_EXTRACT(detail.Properties, '$.DetectorModelDescription') as detector_model_description, + JSON_EXTRACT(detail.Properties, '$.DetectorModelName') as detector_model_name, + JSON_EXTRACT(detail.Properties, '$.EvaluationMethod') as evaluation_method, + JSON_EXTRACT(detail.Properties, '$.Key') as key, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTEvents::DetectorModel' + AND detail.data__TypeName = 'AWS::IoTEvents::DetectorModel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1628,10 +1755,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DetectorModelName') as detector_model_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::DetectorModel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DetectorModelDefinition') as detector_model_definition, + json_extract_path_text(detail.Properties, 'DetectorModelDescription') as detector_model_description, + json_extract_path_text(detail.Properties, 'DetectorModelName') as detector_model_name, + json_extract_path_text(detail.Properties, 'EvaluationMethod') as evaluation_method, + json_extract_path_text(detail.Properties, 'Key') as key, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTEvents::DetectorModel' + AND detail.data__TypeName = 'AWS::IoTEvents::DetectorModel' + AND listing.region = 'us-east-1' + detector_models_list_only: + name: detector_models_list_only + id: aws.iotevents.detector_models_list_only + x-cfn-schema-name: DetectorModel + x-cfn-type-name: AWS::IoTEvents::DetectorModel + x-identifiers: + - DetectorModelName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DetectorModelName') as detector_model_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::DetectorModel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DetectorModelName') as detector_model_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::DetectorModel' + AND region = 'us-east-1' + detector_model_tags: + name: detector_model_tags + id: aws.iotevents.detector_model_tags + x-cfn-schema-name: DetectorModel + x-cfn-type-name: AWS::IoTEvents::DetectorModel + 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, '$.DetectorModelDefinition') as detector_model_definition, + JSON_EXTRACT(detail.Properties, '$.DetectorModelDescription') as detector_model_description, + JSON_EXTRACT(detail.Properties, '$.DetectorModelName') as detector_model_name, + JSON_EXTRACT(detail.Properties, '$.EvaluationMethod') as evaluation_method, + JSON_EXTRACT(detail.Properties, '$.Key') as key, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn + 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::IoTEvents::DetectorModel' + AND detail.data__TypeName = 'AWS::IoTEvents::DetectorModel' + 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, 'DetectorModelDefinition') as detector_model_definition, + json_extract_path_text(detail.Properties, 'DetectorModelDescription') as detector_model_description, + json_extract_path_text(detail.Properties, 'DetectorModelName') as detector_model_name, + json_extract_path_text(detail.Properties, 'EvaluationMethod') as evaluation_method, + json_extract_path_text(detail.Properties, 'Key') as key, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn + 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::IoTEvents::DetectorModel' + AND detail.data__TypeName = 'AWS::IoTEvents::DetectorModel' + AND listing.region = 'us-east-1' inputs: name: inputs id: aws.iotevents.inputs @@ -1706,10 +1930,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InputName') as input_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::Input' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InputDefinition') as input_definition, + JSON_EXTRACT(detail.Properties, '$.InputDescription') as input_description, + JSON_EXTRACT(detail.Properties, '$.InputName') as input_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTEvents::Input' + AND detail.data__TypeName = 'AWS::IoTEvents::Input' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1727,10 +1959,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InputName') as input_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::Input' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InputDefinition') as input_definition, + json_extract_path_text(detail.Properties, 'InputDescription') as input_description, + json_extract_path_text(detail.Properties, 'InputName') as input_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTEvents::Input' + AND detail.data__TypeName = 'AWS::IoTEvents::Input' + AND listing.region = 'us-east-1' + inputs_list_only: + name: inputs_list_only + id: aws.iotevents.inputs_list_only + x-cfn-schema-name: Input + x-cfn-type-name: AWS::IoTEvents::Input + x-identifiers: + - InputName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InputName') as input_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::Input' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InputName') as input_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTEvents::Input' + AND region = 'us-east-1' + input_tags: + name: input_tags + id: aws.iotevents.input_tags + x-cfn-schema-name: Input + x-cfn-type-name: AWS::IoTEvents::Input + 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, '$.InputDefinition') as input_definition, + JSON_EXTRACT(detail.Properties, '$.InputDescription') as input_description, + JSON_EXTRACT(detail.Properties, '$.InputName') as input_name + 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::IoTEvents::Input' + AND detail.data__TypeName = 'AWS::IoTEvents::Input' + 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, 'InputDefinition') as input_definition, + json_extract_path_text(detail.Properties, 'InputDescription') as input_description, + json_extract_path_text(detail.Properties, 'InputName') as input_name + 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::IoTEvents::Input' + AND detail.data__TypeName = 'AWS::IoTEvents::Input' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iotfleethub.yaml b/providers/src/aws/v00.00.00000/services/iotfleethub.yaml index 8c670d48..329839e5 100644 --- a/providers/src/aws/v00.00.00000/services/iotfleethub.yaml +++ b/providers/src/aws/v00.00.00000/services/iotfleethub.yaml @@ -667,10 +667,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetHub::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.ApplicationDescription') as application_description, + JSON_EXTRACT(detail.Properties, '$.ApplicationUrl') as application_url, + JSON_EXTRACT(detail.Properties, '$.ApplicationState') as application_state, + JSON_EXTRACT(detail.Properties, '$.ApplicationCreationDate') as application_creation_date, + JSON_EXTRACT(detail.Properties, '$.ApplicationLastUpdateDate') as application_last_update_date, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SsoClientId') as sso_client_id, + JSON_EXTRACT(detail.Properties, '$.ErrorMessage') as error_message, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTFleetHub::Application' + AND detail.data__TypeName = 'AWS::IoTFleetHub::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -696,10 +712,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetHub::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'ApplicationDescription') as application_description, + json_extract_path_text(detail.Properties, 'ApplicationUrl') as application_url, + json_extract_path_text(detail.Properties, 'ApplicationState') as application_state, + json_extract_path_text(detail.Properties, 'ApplicationCreationDate') as application_creation_date, + json_extract_path_text(detail.Properties, 'ApplicationLastUpdateDate') as application_last_update_date, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SsoClientId') as sso_client_id, + json_extract_path_text(detail.Properties, 'ErrorMessage') as error_message, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTFleetHub::Application' + AND detail.data__TypeName = 'AWS::IoTFleetHub::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.iotfleethub.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::IoTFleetHub::Application + x-identifiers: + - ApplicationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetHub::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetHub::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.iotfleethub.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::IoTFleetHub::Application + 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, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.ApplicationDescription') as application_description, + JSON_EXTRACT(detail.Properties, '$.ApplicationUrl') as application_url, + JSON_EXTRACT(detail.Properties, '$.ApplicationState') as application_state, + JSON_EXTRACT(detail.Properties, '$.ApplicationCreationDate') as application_creation_date, + JSON_EXTRACT(detail.Properties, '$.ApplicationLastUpdateDate') as application_last_update_date, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SsoClientId') as sso_client_id, + JSON_EXTRACT(detail.Properties, '$.ErrorMessage') as error_message + 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::IoTFleetHub::Application' + AND detail.data__TypeName = 'AWS::IoTFleetHub::Application' + 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, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'ApplicationDescription') as application_description, + json_extract_path_text(detail.Properties, 'ApplicationUrl') as application_url, + json_extract_path_text(detail.Properties, 'ApplicationState') as application_state, + json_extract_path_text(detail.Properties, 'ApplicationCreationDate') as application_creation_date, + json_extract_path_text(detail.Properties, 'ApplicationLastUpdateDate') as application_last_update_date, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SsoClientId') as sso_client_id, + json_extract_path_text(detail.Properties, 'ErrorMessage') as error_message + 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::IoTFleetHub::Application' + AND detail.data__TypeName = 'AWS::IoTFleetHub::Application' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iotfleetwise.yaml b/providers/src/aws/v00.00.00000/services/iotfleetwise.yaml index 99019fff..9049411b 100644 --- a/providers/src/aws/v00.00.00000/services/iotfleetwise.yaml +++ b/providers/src/aws/v00.00.00000/services/iotfleetwise.yaml @@ -1983,10 +1983,35 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Campaign' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Compression') as compression, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.SignalsToCollect') as signals_to_collect, + JSON_EXTRACT(detail.Properties, '$.DataDestinationConfigs') as data_destination_configs, + JSON_EXTRACT(detail.Properties, '$.StartTime') as start_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ExpiryTime') as expiry_time, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.SpoolingMode') as spooling_mode, + JSON_EXTRACT(detail.Properties, '$.SignalCatalogArn') as signal_catalog_arn, + JSON_EXTRACT(detail.Properties, '$.PostTriggerCollectionDuration') as post_trigger_collection_duration, + JSON_EXTRACT(detail.Properties, '$.DataExtraDimensions') as data_extra_dimensions, + JSON_EXTRACT(detail.Properties, '$.DiagnosticsMode') as diagnostics_mode, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CollectionScheme') as collection_scheme, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTFleetWise::Campaign' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Campaign' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2021,10 +2046,149 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Campaign' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Compression') as compression, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'SignalsToCollect') as signals_to_collect, + json_extract_path_text(detail.Properties, 'DataDestinationConfigs') as data_destination_configs, + json_extract_path_text(detail.Properties, 'StartTime') as start_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ExpiryTime') as expiry_time, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'SpoolingMode') as spooling_mode, + json_extract_path_text(detail.Properties, 'SignalCatalogArn') as signal_catalog_arn, + json_extract_path_text(detail.Properties, 'PostTriggerCollectionDuration') as post_trigger_collection_duration, + json_extract_path_text(detail.Properties, 'DataExtraDimensions') as data_extra_dimensions, + json_extract_path_text(detail.Properties, 'DiagnosticsMode') as diagnostics_mode, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CollectionScheme') as collection_scheme, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTFleetWise::Campaign' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Campaign' + AND listing.region = 'us-east-1' + campaigns_list_only: + name: campaigns_list_only + id: aws.iotfleetwise.campaigns_list_only + x-cfn-schema-name: Campaign + x-cfn-type-name: AWS::IoTFleetWise::Campaign + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Campaign' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Campaign' + AND region = 'us-east-1' + campaign_tags: + name: campaign_tags + id: aws.iotfleetwise.campaign_tags + x-cfn-schema-name: Campaign + x-cfn-type-name: AWS::IoTFleetWise::Campaign + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Compression') as compression, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.SignalsToCollect') as signals_to_collect, + JSON_EXTRACT(detail.Properties, '$.DataDestinationConfigs') as data_destination_configs, + JSON_EXTRACT(detail.Properties, '$.StartTime') as start_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ExpiryTime') as expiry_time, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.SpoolingMode') as spooling_mode, + JSON_EXTRACT(detail.Properties, '$.SignalCatalogArn') as signal_catalog_arn, + JSON_EXTRACT(detail.Properties, '$.PostTriggerCollectionDuration') as post_trigger_collection_duration, + JSON_EXTRACT(detail.Properties, '$.DataExtraDimensions') as data_extra_dimensions, + JSON_EXTRACT(detail.Properties, '$.DiagnosticsMode') as diagnostics_mode, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CollectionScheme') as collection_scheme + 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::IoTFleetWise::Campaign' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Campaign' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Compression') as compression, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'SignalsToCollect') as signals_to_collect, + json_extract_path_text(detail.Properties, 'DataDestinationConfigs') as data_destination_configs, + json_extract_path_text(detail.Properties, 'StartTime') as start_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ExpiryTime') as expiry_time, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'SpoolingMode') as spooling_mode, + json_extract_path_text(detail.Properties, 'SignalCatalogArn') as signal_catalog_arn, + json_extract_path_text(detail.Properties, 'PostTriggerCollectionDuration') as post_trigger_collection_duration, + json_extract_path_text(detail.Properties, 'DataExtraDimensions') as data_extra_dimensions, + json_extract_path_text(detail.Properties, 'DiagnosticsMode') as diagnostics_mode, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CollectionScheme') as collection_scheme + 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::IoTFleetWise::Campaign' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Campaign' + AND listing.region = 'us-east-1' decoder_manifests: name: decoder_manifests id: aws.iotfleetwise.decoder_manifests @@ -2105,10 +2269,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.ModelManifestArn') as model_manifest_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaces') as network_interfaces, + JSON_EXTRACT(detail.Properties, '$.SignalDecoders') as signal_decoders, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTFleetWise::DecoderManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2132,10 +2310,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'ModelManifestArn') as model_manifest_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkInterfaces') as network_interfaces, + json_extract_path_text(detail.Properties, 'SignalDecoders') as signal_decoders, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTFleetWise::DecoderManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' + AND listing.region = 'us-east-1' + decoder_manifests_list_only: + name: decoder_manifests_list_only + id: aws.iotfleetwise.decoder_manifests_list_only + x-cfn-schema-name: DecoderManifest + x-cfn-type-name: AWS::IoTFleetWise::DecoderManifest + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' + AND region = 'us-east-1' + decoder_manifest_tags: + name: decoder_manifest_tags + id: aws.iotfleetwise.decoder_manifest_tags + x-cfn-schema-name: DecoderManifest + x-cfn-type-name: AWS::IoTFleetWise::DecoderManifest + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.ModelManifestArn') as model_manifest_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaces') as network_interfaces, + JSON_EXTRACT(detail.Properties, '$.SignalDecoders') as signal_decoders, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::IoTFleetWise::DecoderManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'ModelManifestArn') as model_manifest_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkInterfaces') as network_interfaces, + json_extract_path_text(detail.Properties, 'SignalDecoders') as signal_decoders, + json_extract_path_text(detail.Properties, 'Status') as status + 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::IoTFleetWise::DecoderManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::DecoderManifest' + AND listing.region = 'us-east-1' fleets: name: fleets id: aws.iotfleetwise.fleets @@ -2213,10 +2497,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Fleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.SignalCatalogArn') as signal_catalog_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTFleetWise::Fleet' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Fleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2237,10 +2532,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Fleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'SignalCatalogArn') as signal_catalog_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTFleetWise::Fleet' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Fleet' + AND listing.region = 'us-east-1' + fleets_list_only: + name: fleets_list_only + id: aws.iotfleetwise.fleets_list_only + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::IoTFleetWise::Fleet + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Fleet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Fleet' + AND region = 'us-east-1' + fleet_tags: + name: fleet_tags + id: aws.iotfleetwise.fleet_tags + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::IoTFleetWise::Fleet + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.SignalCatalogArn') as signal_catalog_arn + 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::IoTFleetWise::Fleet' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Fleet' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'SignalCatalogArn') as signal_catalog_arn + 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::IoTFleetWise::Fleet' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Fleet' + AND listing.region = 'us-east-1' model_manifests: name: model_manifests id: aws.iotfleetwise.model_manifests @@ -2320,10 +2712,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::ModelManifest' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Nodes') as nodes, + JSON_EXTRACT(detail.Properties, '$.SignalCatalogArn') as signal_catalog_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTFleetWise::ModelManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::ModelManifest' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2346,10 +2751,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::ModelManifest' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Nodes') as nodes, + json_extract_path_text(detail.Properties, 'SignalCatalogArn') as signal_catalog_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTFleetWise::ModelManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::ModelManifest' + AND listing.region = 'us-east-1' + model_manifests_list_only: + name: model_manifests_list_only + id: aws.iotfleetwise.model_manifests_list_only + x-cfn-schema-name: ModelManifest + x-cfn-type-name: AWS::IoTFleetWise::ModelManifest + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::ModelManifest' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::ModelManifest' + AND region = 'us-east-1' + model_manifest_tags: + name: model_manifest_tags + id: aws.iotfleetwise.model_manifest_tags + x-cfn-schema-name: ModelManifest + x-cfn-type-name: AWS::IoTFleetWise::ModelManifest + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Nodes') as nodes, + JSON_EXTRACT(detail.Properties, '$.SignalCatalogArn') as signal_catalog_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::IoTFleetWise::ModelManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::ModelManifest' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Nodes') as nodes, + json_extract_path_text(detail.Properties, 'SignalCatalogArn') as signal_catalog_arn, + json_extract_path_text(detail.Properties, 'Status') as status + 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::IoTFleetWise::ModelManifest' + AND detail.data__TypeName = 'AWS::IoTFleetWise::ModelManifest' + AND listing.region = 'us-east-1' signal_catalogs: name: signal_catalogs id: aws.iotfleetwise.signal_catalogs @@ -2428,10 +2936,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NodeCounts') as node_counts, + JSON_EXTRACT(detail.Properties, '$.Nodes') as nodes, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTFleetWise::SignalCatalog' + AND detail.data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2453,10 +2973,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NodeCounts') as node_counts, + json_extract_path_text(detail.Properties, 'Nodes') as nodes, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTFleetWise::SignalCatalog' + AND detail.data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' + AND listing.region = 'us-east-1' + signal_catalogs_list_only: + name: signal_catalogs_list_only + id: aws.iotfleetwise.signal_catalogs_list_only + x-cfn-schema-name: SignalCatalog + x-cfn-type-name: AWS::IoTFleetWise::SignalCatalog + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' + AND region = 'us-east-1' + signal_catalog_tags: + name: signal_catalog_tags + id: aws.iotfleetwise.signal_catalog_tags + x-cfn-schema-name: SignalCatalog + x-cfn-type-name: AWS::IoTFleetWise::SignalCatalog + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NodeCounts') as node_counts, + JSON_EXTRACT(detail.Properties, '$.Nodes') as nodes + 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::IoTFleetWise::SignalCatalog' + AND detail.data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NodeCounts') as node_counts, + json_extract_path_text(detail.Properties, 'Nodes') as nodes + 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::IoTFleetWise::SignalCatalog' + AND detail.data__TypeName = 'AWS::IoTFleetWise::SignalCatalog' + AND listing.region = 'us-east-1' vehicles: name: vehicles id: aws.iotfleetwise.vehicles @@ -2536,10 +3156,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Vehicle' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AssociationBehavior') as association_behavior, + JSON_EXTRACT(detail.Properties, '$.Attributes') as attributes, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.DecoderManifestArn') as decoder_manifest_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.ModelManifestArn') as model_manifest_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTFleetWise::Vehicle' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Vehicle' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2562,10 +3195,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Vehicle' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AssociationBehavior') as association_behavior, + json_extract_path_text(detail.Properties, 'Attributes') as attributes, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'DecoderManifestArn') as decoder_manifest_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'ModelManifestArn') as model_manifest_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTFleetWise::Vehicle' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Vehicle' + AND listing.region = 'us-east-1' + vehicles_list_only: + name: vehicles_list_only + id: aws.iotfleetwise.vehicles_list_only + x-cfn-schema-name: Vehicle + x-cfn-type-name: AWS::IoTFleetWise::Vehicle + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Vehicle' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTFleetWise::Vehicle' + AND region = 'us-east-1' + vehicle_tags: + name: vehicle_tags + id: aws.iotfleetwise.vehicle_tags + x-cfn-schema-name: Vehicle + x-cfn-type-name: AWS::IoTFleetWise::Vehicle + 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, '$.AssociationBehavior') as association_behavior, + JSON_EXTRACT(detail.Properties, '$.Attributes') as attributes, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.DecoderManifestArn') as decoder_manifest_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LastModificationTime') as last_modification_time, + JSON_EXTRACT(detail.Properties, '$.ModelManifestArn') as model_manifest_arn + 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::IoTFleetWise::Vehicle' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Vehicle' + 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, 'AssociationBehavior') as association_behavior, + json_extract_path_text(detail.Properties, 'Attributes') as attributes, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'DecoderManifestArn') as decoder_manifest_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LastModificationTime') as last_modification_time, + json_extract_path_text(detail.Properties, 'ModelManifestArn') as model_manifest_arn + 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::IoTFleetWise::Vehicle' + AND detail.data__TypeName = 'AWS::IoTFleetWise::Vehicle' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iotsitewise.yaml b/providers/src/aws/v00.00.00000/services/iotsitewise.yaml index b6050ce2..e327bae9 100644 --- a/providers/src/aws/v00.00.00000/services/iotsitewise.yaml +++ b/providers/src/aws/v00.00.00000/services/iotsitewise.yaml @@ -1917,10 +1917,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PortalId') as portal_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Portal' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PortalAuthMode') as portal_auth_mode, + JSON_EXTRACT(detail.Properties, '$.PortalArn') as portal_arn, + JSON_EXTRACT(detail.Properties, '$.PortalClientId') as portal_client_id, + JSON_EXTRACT(detail.Properties, '$.PortalContactEmail') as portal_contact_email, + JSON_EXTRACT(detail.Properties, '$.PortalDescription') as portal_description, + JSON_EXTRACT(detail.Properties, '$.PortalId') as portal_id, + JSON_EXTRACT(detail.Properties, '$.PortalName') as portal_name, + JSON_EXTRACT(detail.Properties, '$.PortalStartUrl') as portal_start_url, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.NotificationSenderEmail') as notification_sender_email, + JSON_EXTRACT(detail.Properties, '$.Alarms') as alarms, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTSiteWise::Portal' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Portal' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1946,10 +1962,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PortalId') as portal_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Portal' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PortalAuthMode') as portal_auth_mode, + json_extract_path_text(detail.Properties, 'PortalArn') as portal_arn, + json_extract_path_text(detail.Properties, 'PortalClientId') as portal_client_id, + json_extract_path_text(detail.Properties, 'PortalContactEmail') as portal_contact_email, + json_extract_path_text(detail.Properties, 'PortalDescription') as portal_description, + json_extract_path_text(detail.Properties, 'PortalId') as portal_id, + json_extract_path_text(detail.Properties, 'PortalName') as portal_name, + json_extract_path_text(detail.Properties, 'PortalStartUrl') as portal_start_url, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'NotificationSenderEmail') as notification_sender_email, + json_extract_path_text(detail.Properties, 'Alarms') as alarms, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTSiteWise::Portal' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Portal' + AND listing.region = 'us-east-1' + portals_list_only: + name: portals_list_only + id: aws.iotsitewise.portals_list_only + x-cfn-schema-name: Portal + x-cfn-type-name: AWS::IoTSiteWise::Portal + x-identifiers: + - PortalId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PortalId') as portal_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Portal' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PortalId') as portal_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Portal' + AND region = 'us-east-1' + portal_tags: + name: portal_tags + id: aws.iotsitewise.portal_tags + x-cfn-schema-name: Portal + x-cfn-type-name: AWS::IoTSiteWise::Portal + 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, '$.PortalAuthMode') as portal_auth_mode, + JSON_EXTRACT(detail.Properties, '$.PortalArn') as portal_arn, + JSON_EXTRACT(detail.Properties, '$.PortalClientId') as portal_client_id, + JSON_EXTRACT(detail.Properties, '$.PortalContactEmail') as portal_contact_email, + JSON_EXTRACT(detail.Properties, '$.PortalDescription') as portal_description, + JSON_EXTRACT(detail.Properties, '$.PortalId') as portal_id, + JSON_EXTRACT(detail.Properties, '$.PortalName') as portal_name, + JSON_EXTRACT(detail.Properties, '$.PortalStartUrl') as portal_start_url, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.NotificationSenderEmail') as notification_sender_email, + JSON_EXTRACT(detail.Properties, '$.Alarms') as alarms + 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::IoTSiteWise::Portal' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Portal' + 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, 'PortalAuthMode') as portal_auth_mode, + json_extract_path_text(detail.Properties, 'PortalArn') as portal_arn, + json_extract_path_text(detail.Properties, 'PortalClientId') as portal_client_id, + json_extract_path_text(detail.Properties, 'PortalContactEmail') as portal_contact_email, + json_extract_path_text(detail.Properties, 'PortalDescription') as portal_description, + json_extract_path_text(detail.Properties, 'PortalId') as portal_id, + json_extract_path_text(detail.Properties, 'PortalName') as portal_name, + json_extract_path_text(detail.Properties, 'PortalStartUrl') as portal_start_url, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'NotificationSenderEmail') as notification_sender_email, + json_extract_path_text(detail.Properties, 'Alarms') as alarms + 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::IoTSiteWise::Portal' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Portal' + AND listing.region = 'us-east-1' projects: name: projects id: aws.iotsitewise.projects @@ -2027,10 +2155,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProjectId') as project_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Project' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PortalId') as portal_id, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name, + JSON_EXTRACT(detail.Properties, '$.ProjectDescription') as project_description, + JSON_EXTRACT(detail.Properties, '$.ProjectArn') as project_arn, + JSON_EXTRACT(detail.Properties, '$.AssetIds') as asset_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTSiteWise::Project' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Project' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2051,10 +2190,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProjectId') as project_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Project' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PortalId') as portal_id, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name, + json_extract_path_text(detail.Properties, 'ProjectDescription') as project_description, + json_extract_path_text(detail.Properties, 'ProjectArn') as project_arn, + json_extract_path_text(detail.Properties, 'AssetIds') as asset_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTSiteWise::Project' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Project' + AND listing.region = 'us-east-1' + projects_list_only: + name: projects_list_only + id: aws.iotsitewise.projects_list_only + x-cfn-schema-name: Project + x-cfn-type-name: AWS::IoTSiteWise::Project + x-identifiers: + - ProjectId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProjectId') as project_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Project' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProjectId') as project_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Project' + AND region = 'us-east-1' + project_tags: + name: project_tags + id: aws.iotsitewise.project_tags + x-cfn-schema-name: Project + x-cfn-type-name: AWS::IoTSiteWise::Project + 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, '$.PortalId') as portal_id, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name, + JSON_EXTRACT(detail.Properties, '$.ProjectDescription') as project_description, + JSON_EXTRACT(detail.Properties, '$.ProjectArn') as project_arn, + JSON_EXTRACT(detail.Properties, '$.AssetIds') as asset_ids + 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::IoTSiteWise::Project' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Project' + 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, 'PortalId') as portal_id, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name, + json_extract_path_text(detail.Properties, 'ProjectDescription') as project_description, + json_extract_path_text(detail.Properties, 'ProjectArn') as project_arn, + json_extract_path_text(detail.Properties, 'AssetIds') as asset_ids + 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::IoTSiteWise::Project' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Project' + AND listing.region = 'us-east-1' access_policies: name: access_policies id: aws.iotsitewise.access_policies @@ -2130,10 +2366,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccessPolicyId') as access_policy_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AccessPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessPolicyId') as access_policy_id, + JSON_EXTRACT(detail.Properties, '$.AccessPolicyArn') as access_policy_arn, + JSON_EXTRACT(detail.Properties, '$.AccessPolicyIdentity') as access_policy_identity, + JSON_EXTRACT(detail.Properties, '$.AccessPolicyPermission') as access_policy_permission, + JSON_EXTRACT(detail.Properties, '$.AccessPolicyResource') as access_policy_resource + 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::IoTSiteWise::AccessPolicy' + AND detail.data__TypeName = 'AWS::IoTSiteWise::AccessPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2152,10 +2397,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccessPolicyId') as access_policy_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AccessPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessPolicyId') as access_policy_id, + json_extract_path_text(detail.Properties, 'AccessPolicyArn') as access_policy_arn, + json_extract_path_text(detail.Properties, 'AccessPolicyIdentity') as access_policy_identity, + json_extract_path_text(detail.Properties, 'AccessPolicyPermission') as access_policy_permission, + json_extract_path_text(detail.Properties, 'AccessPolicyResource') as access_policy_resource + 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::IoTSiteWise::AccessPolicy' + AND detail.data__TypeName = 'AWS::IoTSiteWise::AccessPolicy' + AND listing.region = 'us-east-1' + access_policies_list_only: + name: access_policies_list_only + id: aws.iotsitewise.access_policies_list_only + x-cfn-schema-name: AccessPolicy + x-cfn-type-name: AWS::IoTSiteWise::AccessPolicy + x-identifiers: + - AccessPolicyId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccessPolicyId') as access_policy_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AccessPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccessPolicyId') as access_policy_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AccessPolicy' + AND region = 'us-east-1' assets: name: assets id: aws.iotsitewise.assets @@ -2235,10 +2520,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssetId') as asset_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Asset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssetId') as asset_id, + JSON_EXTRACT(detail.Properties, '$.AssetExternalId') as asset_external_id, + JSON_EXTRACT(detail.Properties, '$.AssetModelId') as asset_model_id, + JSON_EXTRACT(detail.Properties, '$.AssetArn') as asset_arn, + JSON_EXTRACT(detail.Properties, '$.AssetName') as asset_name, + JSON_EXTRACT(detail.Properties, '$.AssetDescription') as asset_description, + JSON_EXTRACT(detail.Properties, '$.AssetProperties') as asset_properties, + JSON_EXTRACT(detail.Properties, '$.AssetHierarchies') as asset_hierarchies, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTSiteWise::Asset' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Asset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2261,10 +2559,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssetId') as asset_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Asset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssetId') as asset_id, + json_extract_path_text(detail.Properties, 'AssetExternalId') as asset_external_id, + json_extract_path_text(detail.Properties, 'AssetModelId') as asset_model_id, + json_extract_path_text(detail.Properties, 'AssetArn') as asset_arn, + json_extract_path_text(detail.Properties, 'AssetName') as asset_name, + json_extract_path_text(detail.Properties, 'AssetDescription') as asset_description, + json_extract_path_text(detail.Properties, 'AssetProperties') as asset_properties, + json_extract_path_text(detail.Properties, 'AssetHierarchies') as asset_hierarchies, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTSiteWise::Asset' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Asset' + AND listing.region = 'us-east-1' + assets_list_only: + name: assets_list_only + id: aws.iotsitewise.assets_list_only + x-cfn-schema-name: Asset + x-cfn-type-name: AWS::IoTSiteWise::Asset + x-identifiers: + - AssetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssetId') as asset_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Asset' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssetId') as asset_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Asset' + AND region = 'us-east-1' + asset_tags: + name: asset_tags + id: aws.iotsitewise.asset_tags + x-cfn-schema-name: Asset + x-cfn-type-name: AWS::IoTSiteWise::Asset + 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, '$.AssetId') as asset_id, + JSON_EXTRACT(detail.Properties, '$.AssetExternalId') as asset_external_id, + JSON_EXTRACT(detail.Properties, '$.AssetModelId') as asset_model_id, + JSON_EXTRACT(detail.Properties, '$.AssetArn') as asset_arn, + JSON_EXTRACT(detail.Properties, '$.AssetName') as asset_name, + JSON_EXTRACT(detail.Properties, '$.AssetDescription') as asset_description, + JSON_EXTRACT(detail.Properties, '$.AssetProperties') as asset_properties, + JSON_EXTRACT(detail.Properties, '$.AssetHierarchies') as asset_hierarchies + 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::IoTSiteWise::Asset' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Asset' + 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, 'AssetId') as asset_id, + json_extract_path_text(detail.Properties, 'AssetExternalId') as asset_external_id, + json_extract_path_text(detail.Properties, 'AssetModelId') as asset_model_id, + json_extract_path_text(detail.Properties, 'AssetArn') as asset_arn, + json_extract_path_text(detail.Properties, 'AssetName') as asset_name, + json_extract_path_text(detail.Properties, 'AssetDescription') as asset_description, + json_extract_path_text(detail.Properties, 'AssetProperties') as asset_properties, + json_extract_path_text(detail.Properties, 'AssetHierarchies') as asset_hierarchies + 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::IoTSiteWise::Asset' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Asset' + AND listing.region = 'us-east-1' asset_models: name: asset_models id: aws.iotsitewise.asset_models @@ -2345,10 +2746,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssetModelId') as asset_model_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AssetModel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssetModelId') as asset_model_id, + JSON_EXTRACT(detail.Properties, '$.AssetModelType') as asset_model_type, + JSON_EXTRACT(detail.Properties, '$.AssetModelExternalId') as asset_model_external_id, + JSON_EXTRACT(detail.Properties, '$.AssetModelArn') as asset_model_arn, + JSON_EXTRACT(detail.Properties, '$.AssetModelName') as asset_model_name, + JSON_EXTRACT(detail.Properties, '$.AssetModelDescription') as asset_model_description, + JSON_EXTRACT(detail.Properties, '$.AssetModelProperties') as asset_model_properties, + JSON_EXTRACT(detail.Properties, '$.AssetModelCompositeModels') as asset_model_composite_models, + JSON_EXTRACT(detail.Properties, '$.AssetModelHierarchies') as asset_model_hierarchies, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTSiteWise::AssetModel' + AND detail.data__TypeName = 'AWS::IoTSiteWise::AssetModel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2372,10 +2787,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssetModelId') as asset_model_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AssetModel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssetModelId') as asset_model_id, + json_extract_path_text(detail.Properties, 'AssetModelType') as asset_model_type, + json_extract_path_text(detail.Properties, 'AssetModelExternalId') as asset_model_external_id, + json_extract_path_text(detail.Properties, 'AssetModelArn') as asset_model_arn, + json_extract_path_text(detail.Properties, 'AssetModelName') as asset_model_name, + json_extract_path_text(detail.Properties, 'AssetModelDescription') as asset_model_description, + json_extract_path_text(detail.Properties, 'AssetModelProperties') as asset_model_properties, + json_extract_path_text(detail.Properties, 'AssetModelCompositeModels') as asset_model_composite_models, + json_extract_path_text(detail.Properties, 'AssetModelHierarchies') as asset_model_hierarchies, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTSiteWise::AssetModel' + AND detail.data__TypeName = 'AWS::IoTSiteWise::AssetModel' + AND listing.region = 'us-east-1' + asset_models_list_only: + name: asset_models_list_only + id: aws.iotsitewise.asset_models_list_only + x-cfn-schema-name: AssetModel + x-cfn-type-name: AWS::IoTSiteWise::AssetModel + x-identifiers: + - AssetModelId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssetModelId') as asset_model_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AssetModel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssetModelId') as asset_model_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::AssetModel' + AND region = 'us-east-1' + asset_model_tags: + name: asset_model_tags + id: aws.iotsitewise.asset_model_tags + x-cfn-schema-name: AssetModel + x-cfn-type-name: AWS::IoTSiteWise::AssetModel + 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, '$.AssetModelId') as asset_model_id, + JSON_EXTRACT(detail.Properties, '$.AssetModelType') as asset_model_type, + JSON_EXTRACT(detail.Properties, '$.AssetModelExternalId') as asset_model_external_id, + JSON_EXTRACT(detail.Properties, '$.AssetModelArn') as asset_model_arn, + JSON_EXTRACT(detail.Properties, '$.AssetModelName') as asset_model_name, + JSON_EXTRACT(detail.Properties, '$.AssetModelDescription') as asset_model_description, + JSON_EXTRACT(detail.Properties, '$.AssetModelProperties') as asset_model_properties, + JSON_EXTRACT(detail.Properties, '$.AssetModelCompositeModels') as asset_model_composite_models, + JSON_EXTRACT(detail.Properties, '$.AssetModelHierarchies') as asset_model_hierarchies + 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::IoTSiteWise::AssetModel' + AND detail.data__TypeName = 'AWS::IoTSiteWise::AssetModel' + 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, 'AssetModelId') as asset_model_id, + json_extract_path_text(detail.Properties, 'AssetModelType') as asset_model_type, + json_extract_path_text(detail.Properties, 'AssetModelExternalId') as asset_model_external_id, + json_extract_path_text(detail.Properties, 'AssetModelArn') as asset_model_arn, + json_extract_path_text(detail.Properties, 'AssetModelName') as asset_model_name, + json_extract_path_text(detail.Properties, 'AssetModelDescription') as asset_model_description, + json_extract_path_text(detail.Properties, 'AssetModelProperties') as asset_model_properties, + json_extract_path_text(detail.Properties, 'AssetModelCompositeModels') as asset_model_composite_models, + json_extract_path_text(detail.Properties, 'AssetModelHierarchies') as asset_model_hierarchies + 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::IoTSiteWise::AssetModel' + AND detail.data__TypeName = 'AWS::IoTSiteWise::AssetModel' + AND listing.region = 'us-east-1' dashboards: name: dashboards id: aws.iotsitewise.dashboards @@ -2453,10 +2974,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DashboardId') as dashboard_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Dashboard' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.DashboardId') as dashboard_id, + JSON_EXTRACT(detail.Properties, '$.DashboardName') as dashboard_name, + JSON_EXTRACT(detail.Properties, '$.DashboardDescription') as dashboard_description, + JSON_EXTRACT(detail.Properties, '$.DashboardDefinition') as dashboard_definition, + JSON_EXTRACT(detail.Properties, '$.DashboardArn') as dashboard_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTSiteWise::Dashboard' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Dashboard' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2477,10 +3009,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DashboardId') as dashboard_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Dashboard' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'DashboardId') as dashboard_id, + json_extract_path_text(detail.Properties, 'DashboardName') as dashboard_name, + json_extract_path_text(detail.Properties, 'DashboardDescription') as dashboard_description, + json_extract_path_text(detail.Properties, 'DashboardDefinition') as dashboard_definition, + json_extract_path_text(detail.Properties, 'DashboardArn') as dashboard_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTSiteWise::Dashboard' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Dashboard' + AND listing.region = 'us-east-1' + dashboards_list_only: + name: dashboards_list_only + id: aws.iotsitewise.dashboards_list_only + x-cfn-schema-name: Dashboard + x-cfn-type-name: AWS::IoTSiteWise::Dashboard + x-identifiers: + - DashboardId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DashboardId') as dashboard_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Dashboard' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DashboardId') as dashboard_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Dashboard' + AND region = 'us-east-1' + dashboard_tags: + name: dashboard_tags + id: aws.iotsitewise.dashboard_tags + x-cfn-schema-name: Dashboard + x-cfn-type-name: AWS::IoTSiteWise::Dashboard + 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, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.DashboardId') as dashboard_id, + JSON_EXTRACT(detail.Properties, '$.DashboardName') as dashboard_name, + JSON_EXTRACT(detail.Properties, '$.DashboardDescription') as dashboard_description, + JSON_EXTRACT(detail.Properties, '$.DashboardDefinition') as dashboard_definition, + JSON_EXTRACT(detail.Properties, '$.DashboardArn') as dashboard_arn + 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::IoTSiteWise::Dashboard' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Dashboard' + 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, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'DashboardId') as dashboard_id, + json_extract_path_text(detail.Properties, 'DashboardName') as dashboard_name, + json_extract_path_text(detail.Properties, 'DashboardDescription') as dashboard_description, + json_extract_path_text(detail.Properties, 'DashboardDefinition') as dashboard_definition, + json_extract_path_text(detail.Properties, 'DashboardArn') as dashboard_arn + 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::IoTSiteWise::Dashboard' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Dashboard' + AND listing.region = 'us-east-1' gateways: name: gateways id: aws.iotsitewise.gateways @@ -2556,10 +3185,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GatewayId') as gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Gateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GatewayName') as gateway_name, + JSON_EXTRACT(detail.Properties, '$.GatewayPlatform') as gateway_platform, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.GatewayId') as gateway_id, + JSON_EXTRACT(detail.Properties, '$.GatewayCapabilitySummaries') as gateway_capability_summaries + 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::IoTSiteWise::Gateway' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Gateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2578,10 +3216,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GatewayId') as gateway_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Gateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GatewayName') as gateway_name, + json_extract_path_text(detail.Properties, 'GatewayPlatform') as gateway_platform, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'GatewayId') as gateway_id, + json_extract_path_text(detail.Properties, 'GatewayCapabilitySummaries') as gateway_capability_summaries + 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::IoTSiteWise::Gateway' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Gateway' + AND listing.region = 'us-east-1' + gateways_list_only: + name: gateways_list_only + id: aws.iotsitewise.gateways_list_only + x-cfn-schema-name: Gateway + x-cfn-type-name: AWS::IoTSiteWise::Gateway + x-identifiers: + - GatewayId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GatewayId') as gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Gateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GatewayId') as gateway_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTSiteWise::Gateway' + AND region = 'us-east-1' + gateway_tags: + name: gateway_tags + id: aws.iotsitewise.gateway_tags + x-cfn-schema-name: Gateway + x-cfn-type-name: AWS::IoTSiteWise::Gateway + 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, '$.GatewayName') as gateway_name, + JSON_EXTRACT(detail.Properties, '$.GatewayPlatform') as gateway_platform, + JSON_EXTRACT(detail.Properties, '$.GatewayId') as gateway_id, + JSON_EXTRACT(detail.Properties, '$.GatewayCapabilitySummaries') as gateway_capability_summaries + 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::IoTSiteWise::Gateway' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Gateway' + 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, 'GatewayName') as gateway_name, + json_extract_path_text(detail.Properties, 'GatewayPlatform') as gateway_platform, + json_extract_path_text(detail.Properties, 'GatewayId') as gateway_id, + json_extract_path_text(detail.Properties, 'GatewayCapabilitySummaries') as gateway_capability_summaries + 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::IoTSiteWise::Gateway' + AND detail.data__TypeName = 'AWS::IoTSiteWise::Gateway' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iottwinmaker.yaml b/providers/src/aws/v00.00.00000/services/iottwinmaker.yaml index 9280aa30..9da3510a 100644 --- a/providers/src/aws/v00.00.00000/services/iottwinmaker.yaml +++ b/providers/src/aws/v00.00.00000/services/iottwinmaker.yaml @@ -1905,11 +1905,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, - JSON_EXTRACT(Properties, '$.ComponentTypeId') as component_type_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::ComponentType' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.ComponentTypeId') as component_type_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ExtendsFrom') as extends_from, + JSON_EXTRACT(detail.Properties, '$.Functions') as functions, + JSON_EXTRACT(detail.Properties, '$.IsSingleton') as is_singleton, + JSON_EXTRACT(detail.Properties, '$.PropertyDefinitions') as property_definitions, + JSON_EXTRACT(detail.Properties, '$.PropertyGroups') as property_groups, + JSON_EXTRACT(detail.Properties, '$.CompositeComponentTypes') as composite_component_types, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.IsAbstract') as is_abstract, + JSON_EXTRACT(detail.Properties, '$.IsSchemaInitialized') as is_schema_initialized, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTTwinMaker::ComponentType' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::ComponentType' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1939,11 +1958,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, - json_extract_path_text(Properties, 'ComponentTypeId') as component_type_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::ComponentType' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'ComponentTypeId') as component_type_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ExtendsFrom') as extends_from, + json_extract_path_text(detail.Properties, 'Functions') as functions, + json_extract_path_text(detail.Properties, 'IsSingleton') as is_singleton, + json_extract_path_text(detail.Properties, 'PropertyDefinitions') as property_definitions, + json_extract_path_text(detail.Properties, 'PropertyGroups') as property_groups, + json_extract_path_text(detail.Properties, 'CompositeComponentTypes') as composite_component_types, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'IsAbstract') as is_abstract, + json_extract_path_text(detail.Properties, 'IsSchemaInitialized') as is_schema_initialized, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTTwinMaker::ComponentType' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::ComponentType' + AND listing.region = 'us-east-1' + component_types_list_only: + name: component_types_list_only + id: aws.iottwinmaker.component_types_list_only + x-cfn-schema-name: ComponentType + x-cfn-type-name: AWS::IoTTwinMaker::ComponentType + x-identifiers: + - WorkspaceId + - ComponentTypeId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(Properties, '$.ComponentTypeId') as component_type_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::ComponentType' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(Properties, 'ComponentTypeId') as component_type_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::ComponentType' + AND region = 'us-east-1' + component_type_tags: + name: component_type_tags + id: aws.iottwinmaker.component_type_tags + x-cfn-schema-name: ComponentType + x-cfn-type-name: AWS::IoTTwinMaker::ComponentType + 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, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.ComponentTypeId') as component_type_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ExtendsFrom') as extends_from, + JSON_EXTRACT(detail.Properties, '$.Functions') as functions, + JSON_EXTRACT(detail.Properties, '$.IsSingleton') as is_singleton, + JSON_EXTRACT(detail.Properties, '$.PropertyDefinitions') as property_definitions, + JSON_EXTRACT(detail.Properties, '$.PropertyGroups') as property_groups, + JSON_EXTRACT(detail.Properties, '$.CompositeComponentTypes') as composite_component_types, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.IsAbstract') as is_abstract, + JSON_EXTRACT(detail.Properties, '$.IsSchemaInitialized') as is_schema_initialized + 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::IoTTwinMaker::ComponentType' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::ComponentType' + 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, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'ComponentTypeId') as component_type_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ExtendsFrom') as extends_from, + json_extract_path_text(detail.Properties, 'Functions') as functions, + json_extract_path_text(detail.Properties, 'IsSingleton') as is_singleton, + json_extract_path_text(detail.Properties, 'PropertyDefinitions') as property_definitions, + json_extract_path_text(detail.Properties, 'PropertyGroups') as property_groups, + json_extract_path_text(detail.Properties, 'CompositeComponentTypes') as composite_component_types, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'IsAbstract') as is_abstract, + json_extract_path_text(detail.Properties, 'IsSchemaInitialized') as is_schema_initialized + 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::IoTTwinMaker::ComponentType' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::ComponentType' + AND listing.region = 'us-east-1' entities: name: entities id: aws.iottwinmaker.entities @@ -2028,11 +2173,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, - JSON_EXTRACT(Properties, '$.EntityId') as entity_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Entity' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EntityId') as entity_id, + JSON_EXTRACT(detail.Properties, '$.EntityName') as entity_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.HasChildEntities') as has_child_entities, + JSON_EXTRACT(detail.Properties, '$.ParentEntityId') as parent_entity_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.CompositeComponents') as composite_components + 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::IoTTwinMaker::Entity' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Entity' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2059,11 +2220,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, - json_extract_path_text(Properties, 'EntityId') as entity_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Entity' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EntityId') as entity_id, + json_extract_path_text(detail.Properties, 'EntityName') as entity_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'HasChildEntities') as has_child_entities, + json_extract_path_text(detail.Properties, 'ParentEntityId') as parent_entity_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'CompositeComponents') as composite_components + 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::IoTTwinMaker::Entity' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Entity' + AND listing.region = 'us-east-1' + entities_list_only: + name: entities_list_only + id: aws.iottwinmaker.entities_list_only + x-cfn-schema-name: Entity + x-cfn-type-name: AWS::IoTTwinMaker::Entity + x-identifiers: + - WorkspaceId + - EntityId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(Properties, '$.EntityId') as entity_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Entity' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(Properties, 'EntityId') as entity_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Entity' + AND region = 'us-east-1' + entity_tags: + name: entity_tags + id: aws.iottwinmaker.entity_tags + x-cfn-schema-name: Entity + x-cfn-type-name: AWS::IoTTwinMaker::Entity + 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, '$.EntityId') as entity_id, + JSON_EXTRACT(detail.Properties, '$.EntityName') as entity_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.HasChildEntities') as has_child_entities, + JSON_EXTRACT(detail.Properties, '$.ParentEntityId') as parent_entity_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Components') as components, + JSON_EXTRACT(detail.Properties, '$.CompositeComponents') as composite_components + 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::IoTTwinMaker::Entity' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Entity' + 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, 'EntityId') as entity_id, + json_extract_path_text(detail.Properties, 'EntityName') as entity_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'HasChildEntities') as has_child_entities, + json_extract_path_text(detail.Properties, 'ParentEntityId') as parent_entity_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Components') as components, + json_extract_path_text(detail.Properties, 'CompositeComponents') as composite_components + 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::IoTTwinMaker::Entity' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Entity' + AND listing.region = 'us-east-1' scenes: name: scenes id: aws.iottwinmaker.scenes @@ -2146,11 +2424,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, - JSON_EXTRACT(Properties, '$.SceneId') as scene_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Scene' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SceneId') as scene_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ContentLocation') as content_location, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.SceneMetadata') as scene_metadata, + JSON_EXTRACT(detail.Properties, '$.GeneratedSceneMetadata') as generated_scene_metadata + 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::IoTTwinMaker::Scene' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Scene' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2175,11 +2467,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, - json_extract_path_text(Properties, 'SceneId') as scene_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Scene' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SceneId') as scene_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ContentLocation') as content_location, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'SceneMetadata') as scene_metadata, + json_extract_path_text(detail.Properties, 'GeneratedSceneMetadata') as generated_scene_metadata + 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::IoTTwinMaker::Scene' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Scene' + AND listing.region = 'us-east-1' + scenes_list_only: + name: scenes_list_only + id: aws.iottwinmaker.scenes_list_only + x-cfn-schema-name: Scene + x-cfn-type-name: AWS::IoTTwinMaker::Scene + x-identifiers: + - WorkspaceId + - SceneId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(Properties, '$.SceneId') as scene_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Scene' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(Properties, 'SceneId') as scene_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Scene' + AND region = 'us-east-1' + scene_tags: + name: scene_tags + id: aws.iottwinmaker.scene_tags + x-cfn-schema-name: Scene + x-cfn-type-name: AWS::IoTTwinMaker::Scene + 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, '$.SceneId') as scene_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ContentLocation') as content_location, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Capabilities') as capabilities, + JSON_EXTRACT(detail.Properties, '$.SceneMetadata') as scene_metadata, + JSON_EXTRACT(detail.Properties, '$.GeneratedSceneMetadata') as generated_scene_metadata + 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::IoTTwinMaker::Scene' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Scene' + 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, 'SceneId') as scene_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ContentLocation') as content_location, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Capabilities') as capabilities, + json_extract_path_text(detail.Properties, 'SceneMetadata') as scene_metadata, + json_extract_path_text(detail.Properties, 'GeneratedSceneMetadata') as generated_scene_metadata + 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::IoTTwinMaker::Scene' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Scene' + AND listing.region = 'us-east-1' sync_jobs: name: sync_jobs id: aws.iottwinmaker.sync_jobs @@ -2246,11 +2649,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, - JSON_EXTRACT(Properties, '$.SyncSource') as sync_source - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::SyncJob' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.SyncSource') as sync_source, + JSON_EXTRACT(detail.Properties, '$.SyncRole') as sync_role, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTTwinMaker::SyncJob' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::SyncJob' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2272,11 +2686,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, - json_extract_path_text(Properties, 'SyncSource') as sync_source - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::SyncJob' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'SyncSource') as sync_source, + json_extract_path_text(detail.Properties, 'SyncRole') as sync_role, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTTwinMaker::SyncJob' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::SyncJob' + AND listing.region = 'us-east-1' + sync_jobs_list_only: + name: sync_jobs_list_only + id: aws.iottwinmaker.sync_jobs_list_only + x-cfn-schema-name: SyncJob + x-cfn-type-name: AWS::IoTTwinMaker::SyncJob + x-identifiers: + - WorkspaceId + - SyncSource + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(Properties, '$.SyncSource') as sync_source + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::SyncJob' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(Properties, 'SyncSource') as sync_source + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::SyncJob' + AND region = 'us-east-1' + sync_job_tags: + name: sync_job_tags + id: aws.iottwinmaker.sync_job_tags + x-cfn-schema-name: SyncJob + x-cfn-type-name: AWS::IoTTwinMaker::SyncJob + 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, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.SyncSource') as sync_source, + JSON_EXTRACT(detail.Properties, '$.SyncRole') as sync_role, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::IoTTwinMaker::SyncJob' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::SyncJob' + 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, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'SyncSource') as sync_source, + json_extract_path_text(detail.Properties, 'SyncRole') as sync_role, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'State') as state + 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::IoTTwinMaker::SyncJob' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::SyncJob' + AND listing.region = 'us-east-1' workspaces: name: workspaces id: aws.iottwinmaker.workspaces @@ -2355,10 +2871,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Workspace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Role') as role, + JSON_EXTRACT(detail.Properties, '$.S3Location') as s3_location, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTTwinMaker::Workspace' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Workspace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2380,10 +2908,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkspaceId') as workspace_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Workspace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Role') as role, + json_extract_path_text(detail.Properties, 'S3Location') as s3_location, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTTwinMaker::Workspace' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Workspace' + AND listing.region = 'us-east-1' + workspaces_list_only: + name: workspaces_list_only + id: aws.iottwinmaker.workspaces_list_only + x-cfn-schema-name: Workspace + x-cfn-type-name: AWS::IoTTwinMaker::Workspace + x-identifiers: + - WorkspaceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkspaceId') as workspace_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Workspace' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkspaceId') as workspace_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTTwinMaker::Workspace' + AND region = 'us-east-1' + workspace_tags: + name: workspace_tags + id: aws.iottwinmaker.workspace_tags + x-cfn-schema-name: Workspace + x-cfn-type-name: AWS::IoTTwinMaker::Workspace + 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, '$.WorkspaceId') as workspace_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Role') as role, + JSON_EXTRACT(detail.Properties, '$.S3Location') as s3_location, + JSON_EXTRACT(detail.Properties, '$.CreationDateTime') as creation_date_time, + JSON_EXTRACT(detail.Properties, '$.UpdateDateTime') as update_date_time + 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::IoTTwinMaker::Workspace' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Workspace' + 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, 'WorkspaceId') as workspace_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Role') as role, + json_extract_path_text(detail.Properties, 'S3Location') as s3_location, + json_extract_path_text(detail.Properties, 'CreationDateTime') as creation_date_time, + json_extract_path_text(detail.Properties, 'UpdateDateTime') as update_date_time + 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::IoTTwinMaker::Workspace' + AND detail.data__TypeName = 'AWS::IoTTwinMaker::Workspace' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/iotwireless.yaml b/providers/src/aws/v00.00.00000/services/iotwireless.yaml index 04292e93..b75153bd 100644 --- a/providers/src/aws/v00.00.00000/services/iotwireless.yaml +++ b/providers/src/aws/v00.00.00000/services/iotwireless.yaml @@ -2386,10 +2386,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::Destination' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Expression') as expression, + JSON_EXTRACT(detail.Properties, '$.ExpressionType') as expression_type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoTWireless::Destination' + AND detail.data__TypeName = 'AWS::IoTWireless::Destination' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2410,10 +2421,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::Destination' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Expression') as expression, + json_extract_path_text(detail.Properties, 'ExpressionType') as expression_type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoTWireless::Destination' + AND detail.data__TypeName = 'AWS::IoTWireless::Destination' + AND listing.region = 'us-east-1' + destinations_list_only: + name: destinations_list_only + id: aws.iotwireless.destinations_list_only + x-cfn-schema-name: Destination + x-cfn-type-name: AWS::IoTWireless::Destination + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::Destination' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::Destination' + AND region = 'us-east-1' + destination_tags: + name: destination_tags + id: aws.iotwireless.destination_tags + x-cfn-schema-name: Destination + x-cfn-type-name: AWS::IoTWireless::Destination + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Expression') as expression, + JSON_EXTRACT(detail.Properties, '$.ExpressionType') as expression_type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoTWireless::Destination' + AND detail.data__TypeName = 'AWS::IoTWireless::Destination' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Expression') as expression, + json_extract_path_text(detail.Properties, 'ExpressionType') as expression_type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoTWireless::Destination' + AND detail.data__TypeName = 'AWS::IoTWireless::Destination' + AND listing.region = 'us-east-1' device_profiles: name: device_profiles id: aws.iotwireless.device_profiles @@ -2476,10 +2584,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::DeviceProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::IoTWireless::DeviceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::DeviceProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2498,10 +2615,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::DeviceProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::IoTWireless::DeviceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::DeviceProfile' + AND listing.region = 'us-east-1' + device_profiles_list_only: + name: device_profiles_list_only + id: aws.iotwireless.device_profiles_list_only + x-cfn-schema-name: DeviceProfile + x-cfn-type-name: AWS::IoTWireless::DeviceProfile + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::DeviceProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::DeviceProfile' + AND region = 'us-east-1' + device_profile_tags: + name: device_profile_tags + id: aws.iotwireless.device_profile_tags + x-cfn-schema-name: DeviceProfile + x-cfn-type-name: AWS::IoTWireless::DeviceProfile + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::IoTWireless::DeviceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::DeviceProfile' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::IoTWireless::DeviceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::DeviceProfile' + AND listing.region = 'us-east-1' fuota_tasks: name: fuota_tasks id: aws.iotwireless.fuota_tasks @@ -2585,10 +2793,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::FuotaTask' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.FirmwareUpdateImage') as firmware_update_image, + JSON_EXTRACT(detail.Properties, '$.FirmwareUpdateRole') as firmware_update_role, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.FuotaTaskStatus') as fuota_task_status, + JSON_EXTRACT(detail.Properties, '$.AssociateWirelessDevice') as associate_wireless_device, + JSON_EXTRACT(detail.Properties, '$.DisassociateWirelessDevice') as disassociate_wireless_device, + JSON_EXTRACT(detail.Properties, '$.AssociateMulticastGroup') as associate_multicast_group, + JSON_EXTRACT(detail.Properties, '$.DisassociateMulticastGroup') as disassociate_multicast_group + 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::IoTWireless::FuotaTask' + AND detail.data__TypeName = 'AWS::IoTWireless::FuotaTask' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2615,10 +2840,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::FuotaTask' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'FirmwareUpdateImage') as firmware_update_image, + json_extract_path_text(detail.Properties, 'FirmwareUpdateRole') as firmware_update_role, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'FuotaTaskStatus') as fuota_task_status, + json_extract_path_text(detail.Properties, 'AssociateWirelessDevice') as associate_wireless_device, + json_extract_path_text(detail.Properties, 'DisassociateWirelessDevice') as disassociate_wireless_device, + json_extract_path_text(detail.Properties, 'AssociateMulticastGroup') as associate_multicast_group, + json_extract_path_text(detail.Properties, 'DisassociateMulticastGroup') as disassociate_multicast_group + 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::IoTWireless::FuotaTask' + AND detail.data__TypeName = 'AWS::IoTWireless::FuotaTask' + AND listing.region = 'us-east-1' + fuota_tasks_list_only: + name: fuota_tasks_list_only + id: aws.iotwireless.fuota_tasks_list_only + x-cfn-schema-name: FuotaTask + x-cfn-type-name: AWS::IoTWireless::FuotaTask + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::FuotaTask' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::FuotaTask' + AND region = 'us-east-1' + fuota_task_tags: + name: fuota_task_tags + id: aws.iotwireless.fuota_task_tags + x-cfn-schema-name: FuotaTask + x-cfn-type-name: AWS::IoTWireless::FuotaTask + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.FirmwareUpdateImage') as firmware_update_image, + JSON_EXTRACT(detail.Properties, '$.FirmwareUpdateRole') as firmware_update_role, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.FuotaTaskStatus') as fuota_task_status, + JSON_EXTRACT(detail.Properties, '$.AssociateWirelessDevice') as associate_wireless_device, + JSON_EXTRACT(detail.Properties, '$.DisassociateWirelessDevice') as disassociate_wireless_device, + JSON_EXTRACT(detail.Properties, '$.AssociateMulticastGroup') as associate_multicast_group, + JSON_EXTRACT(detail.Properties, '$.DisassociateMulticastGroup') as disassociate_multicast_group + 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::IoTWireless::FuotaTask' + AND detail.data__TypeName = 'AWS::IoTWireless::FuotaTask' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'FirmwareUpdateImage') as firmware_update_image, + json_extract_path_text(detail.Properties, 'FirmwareUpdateRole') as firmware_update_role, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'FuotaTaskStatus') as fuota_task_status, + json_extract_path_text(detail.Properties, 'AssociateWirelessDevice') as associate_wireless_device, + json_extract_path_text(detail.Properties, 'DisassociateWirelessDevice') as disassociate_wireless_device, + json_extract_path_text(detail.Properties, 'AssociateMulticastGroup') as associate_multicast_group, + json_extract_path_text(detail.Properties, 'DisassociateMulticastGroup') as disassociate_multicast_group + 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::IoTWireless::FuotaTask' + AND detail.data__TypeName = 'AWS::IoTWireless::FuotaTask' + AND listing.region = 'us-east-1' multicast_groups: name: multicast_groups id: aws.iotwireless.multicast_groups @@ -2698,10 +3038,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::MulticastGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.AssociateWirelessDevice') as associate_wireless_device, + JSON_EXTRACT(detail.Properties, '$.DisassociateWirelessDevice') as disassociate_wireless_device + 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::IoTWireless::MulticastGroup' + AND detail.data__TypeName = 'AWS::IoTWireless::MulticastGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2724,10 +3077,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::MulticastGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'AssociateWirelessDevice') as associate_wireless_device, + json_extract_path_text(detail.Properties, 'DisassociateWirelessDevice') as disassociate_wireless_device + 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::IoTWireless::MulticastGroup' + AND detail.data__TypeName = 'AWS::IoTWireless::MulticastGroup' + AND listing.region = 'us-east-1' + multicast_groups_list_only: + name: multicast_groups_list_only + id: aws.iotwireless.multicast_groups_list_only + x-cfn-schema-name: MulticastGroup + x-cfn-type-name: AWS::IoTWireless::MulticastGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::MulticastGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::MulticastGroup' + AND region = 'us-east-1' + multicast_group_tags: + name: multicast_group_tags + id: aws.iotwireless.multicast_group_tags + x-cfn-schema-name: MulticastGroup + x-cfn-type-name: AWS::IoTWireless::MulticastGroup + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.AssociateWirelessDevice') as associate_wireless_device, + JSON_EXTRACT(detail.Properties, '$.DisassociateWirelessDevice') as disassociate_wireless_device + 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::IoTWireless::MulticastGroup' + AND detail.data__TypeName = 'AWS::IoTWireless::MulticastGroup' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'AssociateWirelessDevice') as associate_wireless_device, + json_extract_path_text(detail.Properties, 'DisassociateWirelessDevice') as disassociate_wireless_device + 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::IoTWireless::MulticastGroup' + AND detail.data__TypeName = 'AWS::IoTWireless::MulticastGroup' + AND listing.region = 'us-east-1' network_analyzer_configurations: name: network_analyzer_configurations id: aws.iotwireless.network_analyzer_configurations @@ -2805,10 +3261,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TraceContent') as trace_content, + JSON_EXTRACT(detail.Properties, '$.WirelessDevices') as wireless_devices, + JSON_EXTRACT(detail.Properties, '$.WirelessGateways') as wireless_gateways, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTWireless::NetworkAnalyzerConfiguration' + AND detail.data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2829,10 +3296,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TraceContent') as trace_content, + json_extract_path_text(detail.Properties, 'WirelessDevices') as wireless_devices, + json_extract_path_text(detail.Properties, 'WirelessGateways') as wireless_gateways, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTWireless::NetworkAnalyzerConfiguration' + AND detail.data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' + AND listing.region = 'us-east-1' + network_analyzer_configurations_list_only: + name: network_analyzer_configurations_list_only + id: aws.iotwireless.network_analyzer_configurations_list_only + x-cfn-schema-name: NetworkAnalyzerConfiguration + x-cfn-type-name: AWS::IoTWireless::NetworkAnalyzerConfiguration + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' + AND region = 'us-east-1' + network_analyzer_configuration_tags: + name: network_analyzer_configuration_tags + id: aws.iotwireless.network_analyzer_configuration_tags + x-cfn-schema-name: NetworkAnalyzerConfiguration + x-cfn-type-name: AWS::IoTWireless::NetworkAnalyzerConfiguration + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TraceContent') as trace_content, + JSON_EXTRACT(detail.Properties, '$.WirelessDevices') as wireless_devices, + JSON_EXTRACT(detail.Properties, '$.WirelessGateways') as wireless_gateways, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoTWireless::NetworkAnalyzerConfiguration' + AND detail.data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TraceContent') as trace_content, + json_extract_path_text(detail.Properties, 'WirelessDevices') as wireless_devices, + json_extract_path_text(detail.Properties, 'WirelessGateways') as wireless_gateways, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoTWireless::NetworkAnalyzerConfiguration' + AND detail.data__TypeName = 'AWS::IoTWireless::NetworkAnalyzerConfiguration' + AND listing.region = 'us-east-1' partner_accounts: name: partner_accounts id: aws.iotwireless.partner_accounts @@ -2912,10 +3476,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PartnerAccountId') as partner_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::PartnerAccount' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Sidewalk') as sidewalk, + JSON_EXTRACT(detail.Properties, '$.PartnerAccountId') as partner_account_id, + JSON_EXTRACT(detail.Properties, '$.PartnerType') as partner_type, + JSON_EXTRACT(detail.Properties, '$.SidewalkResponse') as sidewalk_response, + JSON_EXTRACT(detail.Properties, '$.AccountLinked') as account_linked, + JSON_EXTRACT(detail.Properties, '$.SidewalkUpdate') as sidewalk_update, + JSON_EXTRACT(detail.Properties, '$.Fingerprint') as fingerprint, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTWireless::PartnerAccount' + AND detail.data__TypeName = 'AWS::IoTWireless::PartnerAccount' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2938,10 +3515,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PartnerAccountId') as partner_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::PartnerAccount' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Sidewalk') as sidewalk, + json_extract_path_text(detail.Properties, 'PartnerAccountId') as partner_account_id, + json_extract_path_text(detail.Properties, 'PartnerType') as partner_type, + json_extract_path_text(detail.Properties, 'SidewalkResponse') as sidewalk_response, + json_extract_path_text(detail.Properties, 'AccountLinked') as account_linked, + json_extract_path_text(detail.Properties, 'SidewalkUpdate') as sidewalk_update, + json_extract_path_text(detail.Properties, 'Fingerprint') as fingerprint, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTWireless::PartnerAccount' + AND detail.data__TypeName = 'AWS::IoTWireless::PartnerAccount' + AND listing.region = 'us-east-1' + partner_accounts_list_only: + name: partner_accounts_list_only + id: aws.iotwireless.partner_accounts_list_only + x-cfn-schema-name: PartnerAccount + x-cfn-type-name: AWS::IoTWireless::PartnerAccount + x-identifiers: + - PartnerAccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PartnerAccountId') as partner_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::PartnerAccount' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PartnerAccountId') as partner_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::PartnerAccount' + AND region = 'us-east-1' + partner_account_tags: + name: partner_account_tags + id: aws.iotwireless.partner_account_tags + x-cfn-schema-name: PartnerAccount + x-cfn-type-name: AWS::IoTWireless::PartnerAccount + 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, '$.Sidewalk') as sidewalk, + JSON_EXTRACT(detail.Properties, '$.PartnerAccountId') as partner_account_id, + JSON_EXTRACT(detail.Properties, '$.PartnerType') as partner_type, + JSON_EXTRACT(detail.Properties, '$.SidewalkResponse') as sidewalk_response, + JSON_EXTRACT(detail.Properties, '$.AccountLinked') as account_linked, + JSON_EXTRACT(detail.Properties, '$.SidewalkUpdate') as sidewalk_update, + JSON_EXTRACT(detail.Properties, '$.Fingerprint') as fingerprint, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoTWireless::PartnerAccount' + AND detail.data__TypeName = 'AWS::IoTWireless::PartnerAccount' + 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, 'Sidewalk') as sidewalk, + json_extract_path_text(detail.Properties, 'PartnerAccountId') as partner_account_id, + json_extract_path_text(detail.Properties, 'PartnerType') as partner_type, + json_extract_path_text(detail.Properties, 'SidewalkResponse') as sidewalk_response, + json_extract_path_text(detail.Properties, 'AccountLinked') as account_linked, + json_extract_path_text(detail.Properties, 'SidewalkUpdate') as sidewalk_update, + json_extract_path_text(detail.Properties, 'Fingerprint') as fingerprint, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoTWireless::PartnerAccount' + AND detail.data__TypeName = 'AWS::IoTWireless::PartnerAccount' + AND listing.region = 'us-east-1' service_profiles: name: service_profiles id: aws.iotwireless.service_profiles @@ -3004,10 +3684,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::ServiceProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::IoTWireless::ServiceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::ServiceProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3026,10 +3715,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::ServiceProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::IoTWireless::ServiceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::ServiceProfile' + AND listing.region = 'us-east-1' + service_profiles_list_only: + name: service_profiles_list_only + id: aws.iotwireless.service_profiles_list_only + x-cfn-schema-name: ServiceProfile + x-cfn-type-name: AWS::IoTWireless::ServiceProfile + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::ServiceProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::ServiceProfile' + AND region = 'us-east-1' + service_profile_tags: + name: service_profile_tags + id: aws.iotwireless.service_profile_tags + x-cfn-schema-name: ServiceProfile + x-cfn-type-name: AWS::IoTWireless::ServiceProfile + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::IoTWireless::ServiceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::ServiceProfile' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::IoTWireless::ServiceProfile' + AND detail.data__TypeName = 'AWS::IoTWireless::ServiceProfile' + AND listing.region = 'us-east-1' task_definitions: name: task_definitions id: aws.iotwireless.task_definitions @@ -3095,10 +3875,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::TaskDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AutoCreateTasks') as auto_create_tasks, + JSON_EXTRACT(detail.Properties, '$.Update') as _update, + JSON_EXTRACT(detail.Properties, '$.LoRaWANUpdateGatewayTaskEntry') as lo_ra_wan_update_gateway_task_entry, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.TaskDefinitionType') as task_definition_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTWireless::TaskDefinition' + AND detail.data__TypeName = 'AWS::IoTWireless::TaskDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3120,10 +3912,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::TaskDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AutoCreateTasks') as auto_create_tasks, + json_extract_path_text(detail.Properties, 'Update') as _update, + json_extract_path_text(detail.Properties, 'LoRaWANUpdateGatewayTaskEntry') as lo_ra_wan_update_gateway_task_entry, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'TaskDefinitionType') as task_definition_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTWireless::TaskDefinition' + AND detail.data__TypeName = 'AWS::IoTWireless::TaskDefinition' + AND listing.region = 'us-east-1' + task_definitions_list_only: + name: task_definitions_list_only + id: aws.iotwireless.task_definitions_list_only + x-cfn-schema-name: TaskDefinition + x-cfn-type-name: AWS::IoTWireless::TaskDefinition + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::TaskDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::TaskDefinition' + AND region = 'us-east-1' + task_definition_tags: + name: task_definition_tags + id: aws.iotwireless.task_definition_tags + x-cfn-schema-name: TaskDefinition + x-cfn-type-name: AWS::IoTWireless::TaskDefinition + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AutoCreateTasks') as auto_create_tasks, + JSON_EXTRACT(detail.Properties, '$.Update') as _update, + JSON_EXTRACT(detail.Properties, '$.LoRaWANUpdateGatewayTaskEntry') as lo_ra_wan_update_gateway_task_entry, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.TaskDefinitionType') as task_definition_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IoTWireless::TaskDefinition' + AND detail.data__TypeName = 'AWS::IoTWireless::TaskDefinition' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'AutoCreateTasks') as auto_create_tasks, + json_extract_path_text(detail.Properties, 'Update') as _update, + json_extract_path_text(detail.Properties, 'LoRaWANUpdateGatewayTaskEntry') as lo_ra_wan_update_gateway_task_entry, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'TaskDefinitionType') as task_definition_type, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IoTWireless::TaskDefinition' + AND detail.data__TypeName = 'AWS::IoTWireless::TaskDefinition' + AND listing.region = 'us-east-1' wireless_devices: name: wireless_devices id: aws.iotwireless.wireless_devices @@ -3206,10 +4098,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDevice' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DestinationName') as destination_name, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ThingArn') as thing_arn, + JSON_EXTRACT(detail.Properties, '$.ThingName') as thing_name, + JSON_EXTRACT(detail.Properties, '$.LastUplinkReceivedAt') as last_uplink_received_at, + JSON_EXTRACT(detail.Properties, '$.Positioning') as positioning + 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::IoTWireless::WirelessDevice' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDevice' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3235,10 +4143,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDevice' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DestinationName') as destination_name, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ThingArn') as thing_arn, + json_extract_path_text(detail.Properties, 'ThingName') as thing_name, + json_extract_path_text(detail.Properties, 'LastUplinkReceivedAt') as last_uplink_received_at, + json_extract_path_text(detail.Properties, 'Positioning') as positioning + 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::IoTWireless::WirelessDevice' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDevice' + AND listing.region = 'us-east-1' + wireless_devices_list_only: + name: wireless_devices_list_only + id: aws.iotwireless.wireless_devices_list_only + x-cfn-schema-name: WirelessDevice + x-cfn-type-name: AWS::IoTWireless::WirelessDevice + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDevice' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDevice' + AND region = 'us-east-1' + wireless_device_tags: + name: wireless_device_tags + id: aws.iotwireless.wireless_device_tags + x-cfn-schema-name: WirelessDevice + x-cfn-type-name: AWS::IoTWireless::WirelessDevice + 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, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DestinationName') as destination_name, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ThingArn') as thing_arn, + JSON_EXTRACT(detail.Properties, '$.ThingName') as thing_name, + JSON_EXTRACT(detail.Properties, '$.LastUplinkReceivedAt') as last_uplink_received_at, + JSON_EXTRACT(detail.Properties, '$.Positioning') as positioning + 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::IoTWireless::WirelessDevice' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDevice' + 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, 'Type') as type, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DestinationName') as destination_name, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ThingArn') as thing_arn, + json_extract_path_text(detail.Properties, 'ThingName') as thing_name, + json_extract_path_text(detail.Properties, 'LastUplinkReceivedAt') as last_uplink_received_at, + json_extract_path_text(detail.Properties, 'Positioning') as positioning + 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::IoTWireless::WirelessDevice' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDevice' + AND listing.region = 'us-east-1' wireless_device_import_tasks: name: wireless_device_import_tasks id: aws.iotwireless.wireless_device_import_tasks @@ -3321,10 +4341,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DestinationName') as destination_name, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.Sidewalk') as sidewalk, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.InitializedImportedDevicesCount') as initialized_imported_devices_count, + JSON_EXTRACT(detail.Properties, '$.PendingImportedDevicesCount') as pending_imported_devices_count, + JSON_EXTRACT(detail.Properties, '$.OnboardedImportedDevicesCount') as onboarded_imported_devices_count, + JSON_EXTRACT(detail.Properties, '$.FailedImportedDevicesCount') as failed_imported_devices_count, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IoTWireless::WirelessDeviceImportTask' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3350,10 +4386,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DestinationName') as destination_name, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'Sidewalk') as sidewalk, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'InitializedImportedDevicesCount') as initialized_imported_devices_count, + json_extract_path_text(detail.Properties, 'PendingImportedDevicesCount') as pending_imported_devices_count, + json_extract_path_text(detail.Properties, 'OnboardedImportedDevicesCount') as onboarded_imported_devices_count, + json_extract_path_text(detail.Properties, 'FailedImportedDevicesCount') as failed_imported_devices_count, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IoTWireless::WirelessDeviceImportTask' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' + AND listing.region = 'us-east-1' + wireless_device_import_tasks_list_only: + name: wireless_device_import_tasks_list_only + id: aws.iotwireless.wireless_device_import_tasks_list_only + x-cfn-schema-name: WirelessDeviceImportTask + x-cfn-type-name: AWS::IoTWireless::WirelessDeviceImportTask + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' + AND region = 'us-east-1' + wireless_device_import_task_tags: + name: wireless_device_import_task_tags + id: aws.iotwireless.wireless_device_import_task_tags + x-cfn-schema-name: WirelessDeviceImportTask + x-cfn-type-name: AWS::IoTWireless::WirelessDeviceImportTask + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DestinationName') as destination_name, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.Sidewalk') as sidewalk, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.InitializedImportedDevicesCount') as initialized_imported_devices_count, + JSON_EXTRACT(detail.Properties, '$.PendingImportedDevicesCount') as pending_imported_devices_count, + JSON_EXTRACT(detail.Properties, '$.OnboardedImportedDevicesCount') as onboarded_imported_devices_count, + JSON_EXTRACT(detail.Properties, '$.FailedImportedDevicesCount') as failed_imported_devices_count + 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::IoTWireless::WirelessDeviceImportTask' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DestinationName') as destination_name, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'Sidewalk') as sidewalk, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'InitializedImportedDevicesCount') as initialized_imported_devices_count, + json_extract_path_text(detail.Properties, 'PendingImportedDevicesCount') as pending_imported_devices_count, + json_extract_path_text(detail.Properties, 'OnboardedImportedDevicesCount') as onboarded_imported_devices_count, + json_extract_path_text(detail.Properties, 'FailedImportedDevicesCount') as failed_imported_devices_count + 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::IoTWireless::WirelessDeviceImportTask' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessDeviceImportTask' + AND listing.region = 'us-east-1' wireless_gateways: name: wireless_gateways id: aws.iotwireless.wireless_gateways @@ -3433,10 +4581,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessGateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ThingArn') as thing_arn, + JSON_EXTRACT(detail.Properties, '$.ThingName') as thing_name, + JSON_EXTRACT(detail.Properties, '$.LastUplinkReceivedAt') as last_uplink_received_at + 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::IoTWireless::WirelessGateway' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessGateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3459,10 +4620,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessGateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ThingArn') as thing_arn, + json_extract_path_text(detail.Properties, 'ThingName') as thing_name, + json_extract_path_text(detail.Properties, 'LastUplinkReceivedAt') as last_uplink_received_at + 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::IoTWireless::WirelessGateway' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessGateway' + AND listing.region = 'us-east-1' + wireless_gateways_list_only: + name: wireless_gateways_list_only + id: aws.iotwireless.wireless_gateways_list_only + x-cfn-schema-name: WirelessGateway + x-cfn-type-name: AWS::IoTWireless::WirelessGateway + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessGateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IoTWireless::WirelessGateway' + AND region = 'us-east-1' + wireless_gateway_tags: + name: wireless_gateway_tags + id: aws.iotwireless.wireless_gateway_tags + x-cfn-schema-name: WirelessGateway + x-cfn-type-name: AWS::IoTWireless::WirelessGateway + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LoRaWAN') as lo_ra_wan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ThingArn') as thing_arn, + JSON_EXTRACT(detail.Properties, '$.ThingName') as thing_name, + JSON_EXTRACT(detail.Properties, '$.LastUplinkReceivedAt') as last_uplink_received_at + 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::IoTWireless::WirelessGateway' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessGateway' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LoRaWAN') as lo_ra_wan, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ThingArn') as thing_arn, + json_extract_path_text(detail.Properties, 'ThingName') as thing_name, + json_extract_path_text(detail.Properties, 'LastUplinkReceivedAt') as last_uplink_received_at + 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::IoTWireless::WirelessGateway' + AND detail.data__TypeName = 'AWS::IoTWireless::WirelessGateway' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ivs.yaml b/providers/src/aws/v00.00.00000/services/ivs.yaml index d314a0b7..bd1e04b3 100644 --- a/providers/src/aws/v00.00.00000/services/ivs.yaml +++ b/providers/src/aws/v00.00.00000/services/ivs.yaml @@ -1657,10 +1657,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::Channel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Authorized') as authorized, + JSON_EXTRACT(detail.Properties, '$.InsecureIngest') as insecure_ingest, + JSON_EXTRACT(detail.Properties, '$.LatencyMode') as latency_mode, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.PlaybackUrl') as playback_url, + JSON_EXTRACT(detail.Properties, '$.IngestEndpoint') as ingest_endpoint, + JSON_EXTRACT(detail.Properties, '$.RecordingConfigurationArn') as recording_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.Preset') as preset + 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::IVS::Channel' + AND detail.data__TypeName = 'AWS::IVS::Channel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1685,10 +1700,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::IVS::Channel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Authorized') as authorized, + json_extract_path_text(detail.Properties, 'InsecureIngest') as insecure_ingest, + json_extract_path_text(detail.Properties, 'LatencyMode') as latency_mode, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'PlaybackUrl') as playback_url, + json_extract_path_text(detail.Properties, 'IngestEndpoint') as ingest_endpoint, + json_extract_path_text(detail.Properties, 'RecordingConfigurationArn') as recording_configuration_arn, + json_extract_path_text(detail.Properties, 'Preset') as preset + 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::IVS::Channel' + AND detail.data__TypeName = 'AWS::IVS::Channel' + AND listing.region = 'us-east-1' + channels_list_only: + name: channels_list_only + id: aws.ivs.channels_list_only + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::IVS::Channel + 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::IVS::Channel' + 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::IVS::Channel' + AND region = 'us-east-1' + channel_tags: + name: channel_tags + id: aws.ivs.channel_tags + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::IVS::Channel + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Authorized') as authorized, + JSON_EXTRACT(detail.Properties, '$.InsecureIngest') as insecure_ingest, + JSON_EXTRACT(detail.Properties, '$.LatencyMode') as latency_mode, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.PlaybackUrl') as playback_url, + JSON_EXTRACT(detail.Properties, '$.IngestEndpoint') as ingest_endpoint, + JSON_EXTRACT(detail.Properties, '$.RecordingConfigurationArn') as recording_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.Preset') as preset + 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::IVS::Channel' + AND detail.data__TypeName = 'AWS::IVS::Channel' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Authorized') as authorized, + json_extract_path_text(detail.Properties, 'InsecureIngest') as insecure_ingest, + json_extract_path_text(detail.Properties, 'LatencyMode') as latency_mode, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'PlaybackUrl') as playback_url, + json_extract_path_text(detail.Properties, 'IngestEndpoint') as ingest_endpoint, + json_extract_path_text(detail.Properties, 'RecordingConfigurationArn') as recording_configuration_arn, + json_extract_path_text(detail.Properties, 'Preset') as preset + 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::IVS::Channel' + AND detail.data__TypeName = 'AWS::IVS::Channel' + AND listing.region = 'us-east-1' encoder_configurations: name: encoder_configurations id: aws.ivs.encoder_configurations @@ -1763,10 +1887,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::EncoderConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Video') as video, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IVS::EncoderConfiguration' + AND detail.data__TypeName = 'AWS::IVS::EncoderConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1784,10 +1916,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::EncoderConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Video') as video, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IVS::EncoderConfiguration' + AND detail.data__TypeName = 'AWS::IVS::EncoderConfiguration' + AND listing.region = 'us-east-1' + encoder_configurations_list_only: + name: encoder_configurations_list_only + id: aws.ivs.encoder_configurations_list_only + x-cfn-schema-name: EncoderConfiguration + x-cfn-type-name: AWS::IVS::EncoderConfiguration + 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::IVS::EncoderConfiguration' + 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::IVS::EncoderConfiguration' + AND region = 'us-east-1' + encoder_configuration_tags: + name: encoder_configuration_tags + id: aws.ivs.encoder_configuration_tags + x-cfn-schema-name: EncoderConfiguration + x-cfn-type-name: AWS::IVS::EncoderConfiguration + 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, '$.Video') as video, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::IVS::EncoderConfiguration' + AND detail.data__TypeName = 'AWS::IVS::EncoderConfiguration' + 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, 'Video') as video, + json_extract_path_text(detail.Properties, 'Name') as name + 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::IVS::EncoderConfiguration' + AND detail.data__TypeName = 'AWS::IVS::EncoderConfiguration' + AND listing.region = 'us-east-1' playback_key_pairs: name: playback_key_pairs id: aws.ivs.playback_key_pairs @@ -1863,10 +2083,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::PlaybackKeyPair' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PublicKeyMaterial') as public_key_material, + JSON_EXTRACT(detail.Properties, '$.Fingerprint') as fingerprint, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IVS::PlaybackKeyPair' + AND detail.data__TypeName = 'AWS::IVS::PlaybackKeyPair' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1885,10 +2114,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::PlaybackKeyPair' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PublicKeyMaterial') as public_key_material, + json_extract_path_text(detail.Properties, 'Fingerprint') as fingerprint, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IVS::PlaybackKeyPair' + AND detail.data__TypeName = 'AWS::IVS::PlaybackKeyPair' + AND listing.region = 'us-east-1' + playback_key_pairs_list_only: + name: playback_key_pairs_list_only + id: aws.ivs.playback_key_pairs_list_only + x-cfn-schema-name: PlaybackKeyPair + x-cfn-type-name: AWS::IVS::PlaybackKeyPair + 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::IVS::PlaybackKeyPair' + 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::IVS::PlaybackKeyPair' + AND region = 'us-east-1' + playback_key_pair_tags: + name: playback_key_pair_tags + id: aws.ivs.playback_key_pair_tags + x-cfn-schema-name: PlaybackKeyPair + x-cfn-type-name: AWS::IVS::PlaybackKeyPair + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PublicKeyMaterial') as public_key_material, + JSON_EXTRACT(detail.Properties, '$.Fingerprint') as fingerprint, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::IVS::PlaybackKeyPair' + AND detail.data__TypeName = 'AWS::IVS::PlaybackKeyPair' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'PublicKeyMaterial') as public_key_material, + json_extract_path_text(detail.Properties, 'Fingerprint') as fingerprint, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::IVS::PlaybackKeyPair' + AND detail.data__TypeName = 'AWS::IVS::PlaybackKeyPair' + AND listing.region = 'us-east-1' playback_restriction_policies: name: playback_restriction_policies id: aws.ivs.playback_restriction_policies @@ -1965,10 +2285,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::PlaybackRestrictionPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AllowedCountries') as allowed_countries, + JSON_EXTRACT(detail.Properties, '$.AllowedOrigins') as allowed_origins, + JSON_EXTRACT(detail.Properties, '$.EnableStrictOriginEnforcement') as enable_strict_origin_enforcement, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IVS::PlaybackRestrictionPolicy' + AND detail.data__TypeName = 'AWS::IVS::PlaybackRestrictionPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1988,10 +2318,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::IVS::PlaybackRestrictionPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AllowedCountries') as allowed_countries, + json_extract_path_text(detail.Properties, 'AllowedOrigins') as allowed_origins, + json_extract_path_text(detail.Properties, 'EnableStrictOriginEnforcement') as enable_strict_origin_enforcement, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IVS::PlaybackRestrictionPolicy' + AND detail.data__TypeName = 'AWS::IVS::PlaybackRestrictionPolicy' + AND listing.region = 'us-east-1' + playback_restriction_policies_list_only: + name: playback_restriction_policies_list_only + id: aws.ivs.playback_restriction_policies_list_only + x-cfn-schema-name: PlaybackRestrictionPolicy + x-cfn-type-name: AWS::IVS::PlaybackRestrictionPolicy + 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::IVS::PlaybackRestrictionPolicy' + 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::IVS::PlaybackRestrictionPolicy' + AND region = 'us-east-1' + playback_restriction_policy_tags: + name: playback_restriction_policy_tags + id: aws.ivs.playback_restriction_policy_tags + x-cfn-schema-name: PlaybackRestrictionPolicy + x-cfn-type-name: AWS::IVS::PlaybackRestrictionPolicy + 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, '$.AllowedCountries') as allowed_countries, + JSON_EXTRACT(detail.Properties, '$.AllowedOrigins') as allowed_origins, + JSON_EXTRACT(detail.Properties, '$.EnableStrictOriginEnforcement') as enable_strict_origin_enforcement, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::IVS::PlaybackRestrictionPolicy' + AND detail.data__TypeName = 'AWS::IVS::PlaybackRestrictionPolicy' + 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, 'AllowedCountries') as allowed_countries, + json_extract_path_text(detail.Properties, 'AllowedOrigins') as allowed_origins, + json_extract_path_text(detail.Properties, 'EnableStrictOriginEnforcement') as enable_strict_origin_enforcement, + json_extract_path_text(detail.Properties, 'Name') as name + 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::IVS::PlaybackRestrictionPolicy' + AND detail.data__TypeName = 'AWS::IVS::PlaybackRestrictionPolicy' + AND listing.region = 'us-east-1' recording_configurations: name: recording_configurations id: aws.ivs.recording_configurations @@ -2070,10 +2494,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::RecordingConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.RecordingReconnectWindowSeconds') as recording_reconnect_window_seconds, + JSON_EXTRACT(detail.Properties, '$.DestinationConfiguration') as destination_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ThumbnailConfiguration') as thumbnail_configuration, + JSON_EXTRACT(detail.Properties, '$.RenditionConfiguration') as rendition_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::IVS::RecordingConfiguration' + AND detail.data__TypeName = 'AWS::IVS::RecordingConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2095,10 +2531,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::RecordingConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'RecordingReconnectWindowSeconds') as recording_reconnect_window_seconds, + json_extract_path_text(detail.Properties, 'DestinationConfiguration') as destination_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ThumbnailConfiguration') as thumbnail_configuration, + json_extract_path_text(detail.Properties, 'RenditionConfiguration') as rendition_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::IVS::RecordingConfiguration' + AND detail.data__TypeName = 'AWS::IVS::RecordingConfiguration' + AND listing.region = 'us-east-1' + recording_configurations_list_only: + name: recording_configurations_list_only + id: aws.ivs.recording_configurations_list_only + x-cfn-schema-name: RecordingConfiguration + x-cfn-type-name: AWS::IVS::RecordingConfiguration + 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::IVS::RecordingConfiguration' + 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::IVS::RecordingConfiguration' + AND region = 'us-east-1' + recording_configuration_tags: + name: recording_configuration_tags + id: aws.ivs.recording_configuration_tags + x-cfn-schema-name: RecordingConfiguration + x-cfn-type-name: AWS::IVS::RecordingConfiguration + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.RecordingReconnectWindowSeconds') as recording_reconnect_window_seconds, + JSON_EXTRACT(detail.Properties, '$.DestinationConfiguration') as destination_configuration, + JSON_EXTRACT(detail.Properties, '$.ThumbnailConfiguration') as thumbnail_configuration, + JSON_EXTRACT(detail.Properties, '$.RenditionConfiguration') as rendition_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::IVS::RecordingConfiguration' + AND detail.data__TypeName = 'AWS::IVS::RecordingConfiguration' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'RecordingReconnectWindowSeconds') as recording_reconnect_window_seconds, + json_extract_path_text(detail.Properties, 'DestinationConfiguration') as destination_configuration, + json_extract_path_text(detail.Properties, 'ThumbnailConfiguration') as thumbnail_configuration, + json_extract_path_text(detail.Properties, 'RenditionConfiguration') as rendition_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::IVS::RecordingConfiguration' + AND detail.data__TypeName = 'AWS::IVS::RecordingConfiguration' + AND listing.region = 'us-east-1' stages: name: stages id: aws.ivs.stages @@ -2173,10 +2709,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::Stage' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ActiveSessionId') as active_session_id + 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::IVS::Stage' + AND detail.data__TypeName = 'AWS::IVS::Stage' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2194,10 +2738,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::Stage' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ActiveSessionId') as active_session_id + 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::IVS::Stage' + AND detail.data__TypeName = 'AWS::IVS::Stage' + AND listing.region = 'us-east-1' + stages_list_only: + name: stages_list_only + id: aws.ivs.stages_list_only + x-cfn-schema-name: Stage + x-cfn-type-name: AWS::IVS::Stage + 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::IVS::Stage' + 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::IVS::Stage' + AND region = 'us-east-1' + stage_tags: + name: stage_tags + id: aws.ivs.stage_tags + x-cfn-schema-name: Stage + x-cfn-type-name: AWS::IVS::Stage + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ActiveSessionId') as active_session_id + 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::IVS::Stage' + AND detail.data__TypeName = 'AWS::IVS::Stage' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'ActiveSessionId') as active_session_id + 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::IVS::Stage' + AND detail.data__TypeName = 'AWS::IVS::Stage' + AND listing.region = 'us-east-1' storage_configurations: name: storage_configurations id: aws.ivs.storage_configurations @@ -2272,10 +2904,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::StorageConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.S3') as s3, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IVS::StorageConfiguration' + AND detail.data__TypeName = 'AWS::IVS::StorageConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2293,10 +2933,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::StorageConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'S3') as s3, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IVS::StorageConfiguration' + AND detail.data__TypeName = 'AWS::IVS::StorageConfiguration' + AND listing.region = 'us-east-1' + storage_configurations_list_only: + name: storage_configurations_list_only + id: aws.ivs.storage_configurations_list_only + x-cfn-schema-name: StorageConfiguration + x-cfn-type-name: AWS::IVS::StorageConfiguration + 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::IVS::StorageConfiguration' + 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::IVS::StorageConfiguration' + AND region = 'us-east-1' + storage_configuration_tags: + name: storage_configuration_tags + id: aws.ivs.storage_configuration_tags + x-cfn-schema-name: StorageConfiguration + x-cfn-type-name: AWS::IVS::StorageConfiguration + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.S3') as s3 + 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::IVS::StorageConfiguration' + AND detail.data__TypeName = 'AWS::IVS::StorageConfiguration' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'S3') as s3 + 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::IVS::StorageConfiguration' + AND detail.data__TypeName = 'AWS::IVS::StorageConfiguration' + AND listing.region = 'us-east-1' stream_keys: name: stream_keys id: aws.ivs.stream_keys @@ -2371,10 +3099,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::StreamKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ChannelArn') as channel_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Value') as value + 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::IVS::StreamKey' + AND detail.data__TypeName = 'AWS::IVS::StreamKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2392,10 +3128,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVS::StreamKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ChannelArn') as channel_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Value') as value + 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::IVS::StreamKey' + AND detail.data__TypeName = 'AWS::IVS::StreamKey' + AND listing.region = 'us-east-1' + stream_keys_list_only: + name: stream_keys_list_only + id: aws.ivs.stream_keys_list_only + x-cfn-schema-name: StreamKey + x-cfn-type-name: AWS::IVS::StreamKey + 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::IVS::StreamKey' + 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::IVS::StreamKey' + AND region = 'us-east-1' + stream_key_tags: + name: stream_key_tags + id: aws.ivs.stream_key_tags + x-cfn-schema-name: StreamKey + x-cfn-type-name: AWS::IVS::StreamKey + 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, '$.ChannelArn') as channel_arn, + JSON_EXTRACT(detail.Properties, '$.Value') as value + 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::IVS::StreamKey' + AND detail.data__TypeName = 'AWS::IVS::StreamKey' + 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, 'ChannelArn') as channel_arn, + json_extract_path_text(detail.Properties, 'Value') as value + 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::IVS::StreamKey' + AND detail.data__TypeName = 'AWS::IVS::StreamKey' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ivschat.yaml b/providers/src/aws/v00.00.00000/services/ivschat.yaml index 1e5724aa..16ad6193 100644 --- a/providers/src/aws/v00.00.00000/services/ivschat.yaml +++ b/providers/src/aws/v00.00.00000/services/ivschat.yaml @@ -872,10 +872,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVSChat::LoggingConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DestinationConfiguration') as destination_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IVSChat::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::IVSChat::LoggingConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -895,10 +905,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::IVSChat::LoggingConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DestinationConfiguration') as destination_configuration, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IVSChat::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::IVSChat::LoggingConfiguration' + AND listing.region = 'us-east-1' + logging_configurations_list_only: + name: logging_configurations_list_only + id: aws.ivschat.logging_configurations_list_only + x-cfn-schema-name: LoggingConfiguration + x-cfn-type-name: AWS::IVSChat::LoggingConfiguration + 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::IVSChat::LoggingConfiguration' + 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::IVSChat::LoggingConfiguration' + AND region = 'us-east-1' + logging_configuration_tags: + name: logging_configuration_tags + id: aws.ivschat.logging_configuration_tags + x-cfn-schema-name: LoggingConfiguration + x-cfn-type-name: AWS::IVSChat::LoggingConfiguration + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DestinationConfiguration') as destination_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::IVSChat::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::IVSChat::LoggingConfiguration' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'DestinationConfiguration') as destination_configuration, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'State') as state + 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::IVSChat::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::IVSChat::LoggingConfiguration' + AND listing.region = 'us-east-1' rooms: name: rooms id: aws.ivschat.rooms @@ -977,10 +1081,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVSChat::Room' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoggingConfigurationIdentifiers') as logging_configuration_identifiers, + JSON_EXTRACT(detail.Properties, '$.MaximumMessageLength') as maximum_message_length, + JSON_EXTRACT(detail.Properties, '$.MaximumMessageRatePerSecond') as maximum_message_rate_per_second, + JSON_EXTRACT(detail.Properties, '$.MessageReviewHandler') as message_review_handler, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::IVSChat::Room' + AND detail.data__TypeName = 'AWS::IVSChat::Room' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1002,10 +1118,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::IVSChat::Room' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoggingConfigurationIdentifiers') as logging_configuration_identifiers, + json_extract_path_text(detail.Properties, 'MaximumMessageLength') as maximum_message_length, + json_extract_path_text(detail.Properties, 'MaximumMessageRatePerSecond') as maximum_message_rate_per_second, + json_extract_path_text(detail.Properties, 'MessageReviewHandler') as message_review_handler, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::IVSChat::Room' + AND detail.data__TypeName = 'AWS::IVSChat::Room' + AND listing.region = 'us-east-1' + rooms_list_only: + name: rooms_list_only + id: aws.ivschat.rooms_list_only + x-cfn-schema-name: Room + x-cfn-type-name: AWS::IVSChat::Room + 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::IVSChat::Room' + 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::IVSChat::Room' + AND region = 'us-east-1' + room_tags: + name: room_tags + id: aws.ivschat.room_tags + x-cfn-schema-name: Room + x-cfn-type-name: AWS::IVSChat::Room + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.LoggingConfigurationIdentifiers') as logging_configuration_identifiers, + JSON_EXTRACT(detail.Properties, '$.MaximumMessageLength') as maximum_message_length, + JSON_EXTRACT(detail.Properties, '$.MaximumMessageRatePerSecond') as maximum_message_rate_per_second, + JSON_EXTRACT(detail.Properties, '$.MessageReviewHandler') as message_review_handler + 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::IVSChat::Room' + AND detail.data__TypeName = 'AWS::IVSChat::Room' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'LoggingConfigurationIdentifiers') as logging_configuration_identifiers, + json_extract_path_text(detail.Properties, 'MaximumMessageLength') as maximum_message_length, + json_extract_path_text(detail.Properties, 'MaximumMessageRatePerSecond') as maximum_message_rate_per_second, + json_extract_path_text(detail.Properties, 'MessageReviewHandler') as message_review_handler + 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::IVSChat::Room' + AND detail.data__TypeName = 'AWS::IVSChat::Room' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/kafkaconnect.yaml b/providers/src/aws/v00.00.00000/services/kafkaconnect.yaml index 2a231f7b..a24936bf 100644 --- a/providers/src/aws/v00.00.00000/services/kafkaconnect.yaml +++ b/providers/src/aws/v00.00.00000/services/kafkaconnect.yaml @@ -1238,10 +1238,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CustomPluginArn') as custom_plugin_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::CustomPlugin' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CustomPluginArn') as custom_plugin_arn, + JSON_EXTRACT(detail.Properties, '$.ContentType') as content_type, + JSON_EXTRACT(detail.Properties, '$.FileDescription') as file_description, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Revision') as revision, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::KafkaConnect::CustomPlugin' + AND detail.data__TypeName = 'AWS::KafkaConnect::CustomPlugin' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1263,10 +1275,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CustomPluginArn') as custom_plugin_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::CustomPlugin' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CustomPluginArn') as custom_plugin_arn, + json_extract_path_text(detail.Properties, 'ContentType') as content_type, + json_extract_path_text(detail.Properties, 'FileDescription') as file_description, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Revision') as revision, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::KafkaConnect::CustomPlugin' + AND detail.data__TypeName = 'AWS::KafkaConnect::CustomPlugin' + AND listing.region = 'us-east-1' + custom_plugins_list_only: + name: custom_plugins_list_only + id: aws.kafkaconnect.custom_plugins_list_only + x-cfn-schema-name: CustomPlugin + x-cfn-type-name: AWS::KafkaConnect::CustomPlugin + x-identifiers: + - CustomPluginArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CustomPluginArn') as custom_plugin_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::CustomPlugin' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CustomPluginArn') as custom_plugin_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::CustomPlugin' + AND region = 'us-east-1' + custom_plugin_tags: + name: custom_plugin_tags + id: aws.kafkaconnect.custom_plugin_tags + x-cfn-schema-name: CustomPlugin + x-cfn-type-name: AWS::KafkaConnect::CustomPlugin + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CustomPluginArn') as custom_plugin_arn, + JSON_EXTRACT(detail.Properties, '$.ContentType') as content_type, + JSON_EXTRACT(detail.Properties, '$.FileDescription') as file_description, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Revision') as revision + 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::KafkaConnect::CustomPlugin' + AND detail.data__TypeName = 'AWS::KafkaConnect::CustomPlugin' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CustomPluginArn') as custom_plugin_arn, + json_extract_path_text(detail.Properties, 'ContentType') as content_type, + json_extract_path_text(detail.Properties, 'FileDescription') as file_description, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Revision') as revision + 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::KafkaConnect::CustomPlugin' + AND detail.data__TypeName = 'AWS::KafkaConnect::CustomPlugin' + AND listing.region = 'us-east-1' worker_configurations: name: worker_configurations id: aws.kafkaconnect.worker_configurations @@ -1343,10 +1455,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkerConfigurationArn') as worker_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.WorkerConfigurationArn') as worker_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.PropertiesFileContent') as properties_file_content, + JSON_EXTRACT(detail.Properties, '$.Revision') as revision, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::KafkaConnect::WorkerConfiguration' + AND detail.data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1366,10 +1488,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkerConfigurationArn') as worker_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'WorkerConfigurationArn') as worker_configuration_arn, + json_extract_path_text(detail.Properties, 'PropertiesFileContent') as properties_file_content, + json_extract_path_text(detail.Properties, 'Revision') as revision, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::KafkaConnect::WorkerConfiguration' + AND detail.data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' + AND listing.region = 'us-east-1' + worker_configurations_list_only: + name: worker_configurations_list_only + id: aws.kafkaconnect.worker_configurations_list_only + x-cfn-schema-name: WorkerConfiguration + x-cfn-type-name: AWS::KafkaConnect::WorkerConfiguration + x-identifiers: + - WorkerConfigurationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkerConfigurationArn') as worker_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkerConfigurationArn') as worker_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' + AND region = 'us-east-1' + worker_configuration_tags: + name: worker_configuration_tags + id: aws.kafkaconnect.worker_configuration_tags + x-cfn-schema-name: WorkerConfiguration + x-cfn-type-name: AWS::KafkaConnect::WorkerConfiguration + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.WorkerConfigurationArn') as worker_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.PropertiesFileContent') as properties_file_content, + JSON_EXTRACT(detail.Properties, '$.Revision') as revision + 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::KafkaConnect::WorkerConfiguration' + AND detail.data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'WorkerConfigurationArn') as worker_configuration_arn, + json_extract_path_text(detail.Properties, 'PropertiesFileContent') as properties_file_content, + json_extract_path_text(detail.Properties, 'Revision') as revision + 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::KafkaConnect::WorkerConfiguration' + AND detail.data__TypeName = 'AWS::KafkaConnect::WorkerConfiguration' + AND listing.region = 'us-east-1' connectors: name: connectors id: aws.kafkaconnect.connectors @@ -1454,10 +1670,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectorArn') as connector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::Connector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorConfiguration') as connector_configuration, + JSON_EXTRACT(detail.Properties, '$.ConnectorDescription') as connector_description, + JSON_EXTRACT(detail.Properties, '$.ConnectorName') as connector_name, + JSON_EXTRACT(detail.Properties, '$.KafkaCluster') as kafka_cluster, + JSON_EXTRACT(detail.Properties, '$.KafkaClusterClientAuthentication') as kafka_cluster_client_authentication, + JSON_EXTRACT(detail.Properties, '$.KafkaClusterEncryptionInTransit') as kafka_cluster_encryption_in_transit, + JSON_EXTRACT(detail.Properties, '$.KafkaConnectVersion') as kafka_connect_version, + JSON_EXTRACT(detail.Properties, '$.LogDelivery') as log_delivery, + JSON_EXTRACT(detail.Properties, '$.Plugins') as plugins, + JSON_EXTRACT(detail.Properties, '$.ServiceExecutionRoleArn') as service_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.WorkerConfiguration') as worker_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::KafkaConnect::Connector' + AND detail.data__TypeName = 'AWS::KafkaConnect::Connector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1485,10 +1719,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectorArn') as connector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::Connector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'ConnectorConfiguration') as connector_configuration, + json_extract_path_text(detail.Properties, 'ConnectorDescription') as connector_description, + json_extract_path_text(detail.Properties, 'ConnectorName') as connector_name, + json_extract_path_text(detail.Properties, 'KafkaCluster') as kafka_cluster, + json_extract_path_text(detail.Properties, 'KafkaClusterClientAuthentication') as kafka_cluster_client_authentication, + json_extract_path_text(detail.Properties, 'KafkaClusterEncryptionInTransit') as kafka_cluster_encryption_in_transit, + json_extract_path_text(detail.Properties, 'KafkaConnectVersion') as kafka_connect_version, + json_extract_path_text(detail.Properties, 'LogDelivery') as log_delivery, + json_extract_path_text(detail.Properties, 'Plugins') as plugins, + json_extract_path_text(detail.Properties, 'ServiceExecutionRoleArn') as service_execution_role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'WorkerConfiguration') as worker_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::KafkaConnect::Connector' + AND detail.data__TypeName = 'AWS::KafkaConnect::Connector' + AND listing.region = 'us-east-1' + connectors_list_only: + name: connectors_list_only + id: aws.kafkaconnect.connectors_list_only + x-cfn-schema-name: Connector + x-cfn-type-name: AWS::KafkaConnect::Connector + x-identifiers: + - ConnectorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectorArn') as connector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::Connector' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectorArn') as connector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KafkaConnect::Connector' + AND region = 'us-east-1' + connector_tags: + name: connector_tags + id: aws.kafkaconnect.connector_tags + x-cfn-schema-name: Connector + x-cfn-type-name: AWS::KafkaConnect::Connector + 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, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorConfiguration') as connector_configuration, + JSON_EXTRACT(detail.Properties, '$.ConnectorDescription') as connector_description, + JSON_EXTRACT(detail.Properties, '$.ConnectorName') as connector_name, + JSON_EXTRACT(detail.Properties, '$.KafkaCluster') as kafka_cluster, + JSON_EXTRACT(detail.Properties, '$.KafkaClusterClientAuthentication') as kafka_cluster_client_authentication, + JSON_EXTRACT(detail.Properties, '$.KafkaClusterEncryptionInTransit') as kafka_cluster_encryption_in_transit, + JSON_EXTRACT(detail.Properties, '$.KafkaConnectVersion') as kafka_connect_version, + JSON_EXTRACT(detail.Properties, '$.LogDelivery') as log_delivery, + JSON_EXTRACT(detail.Properties, '$.Plugins') as plugins, + JSON_EXTRACT(detail.Properties, '$.ServiceExecutionRoleArn') as service_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.WorkerConfiguration') as worker_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::KafkaConnect::Connector' + AND detail.data__TypeName = 'AWS::KafkaConnect::Connector' + 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, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'ConnectorConfiguration') as connector_configuration, + json_extract_path_text(detail.Properties, 'ConnectorDescription') as connector_description, + json_extract_path_text(detail.Properties, 'ConnectorName') as connector_name, + json_extract_path_text(detail.Properties, 'KafkaCluster') as kafka_cluster, + json_extract_path_text(detail.Properties, 'KafkaClusterClientAuthentication') as kafka_cluster_client_authentication, + json_extract_path_text(detail.Properties, 'KafkaClusterEncryptionInTransit') as kafka_cluster_encryption_in_transit, + json_extract_path_text(detail.Properties, 'KafkaConnectVersion') as kafka_connect_version, + json_extract_path_text(detail.Properties, 'LogDelivery') as log_delivery, + json_extract_path_text(detail.Properties, 'Plugins') as plugins, + json_extract_path_text(detail.Properties, 'ServiceExecutionRoleArn') as service_execution_role_arn, + json_extract_path_text(detail.Properties, 'WorkerConfiguration') as worker_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::KafkaConnect::Connector' + AND detail.data__TypeName = 'AWS::KafkaConnect::Connector' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/kendra.yaml b/providers/src/aws/v00.00.00000/services/kendra.yaml index 43aae834..af4b7291 100644 --- a/providers/src/aws/v00.00.00000/services/kendra.yaml +++ b/providers/src/aws/v00.00.00000/services/kendra.yaml @@ -2226,11 +2226,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::DataSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.DataSourceConfiguration') as data_source_configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CustomDocumentEnrichmentConfiguration') as custom_document_enrichment_configuration, + JSON_EXTRACT(detail.Properties, '$.LanguageCode') as language_code + 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::Kendra::DataSource' + AND detail.data__TypeName = 'AWS::Kendra::DataSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2256,11 +2271,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::DataSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'DataSourceConfiguration') as data_source_configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CustomDocumentEnrichmentConfiguration') as custom_document_enrichment_configuration, + json_extract_path_text(detail.Properties, 'LanguageCode') as language_code + 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::Kendra::DataSource' + AND detail.data__TypeName = 'AWS::Kendra::DataSource' + AND listing.region = 'us-east-1' + data_sources_list_only: + name: data_sources_list_only + id: aws.kendra.data_sources_list_only + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::Kendra::DataSource + x-identifiers: + - Id + - IndexId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::DataSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::DataSource' + AND region = 'us-east-1' + data_source_tags: + name: data_source_tags + id: aws.kendra.data_source_tags + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::Kendra::DataSource + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.DataSourceConfiguration') as data_source_configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.CustomDocumentEnrichmentConfiguration') as custom_document_enrichment_configuration, + JSON_EXTRACT(detail.Properties, '$.LanguageCode') as language_code + 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::Kendra::DataSource' + AND detail.data__TypeName = 'AWS::Kendra::DataSource' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'DataSourceConfiguration') as data_source_configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'CustomDocumentEnrichmentConfiguration') as custom_document_enrichment_configuration, + json_extract_path_text(detail.Properties, 'LanguageCode') as language_code + 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::Kendra::DataSource' + AND detail.data__TypeName = 'AWS::Kendra::DataSource' + AND listing.region = 'us-east-1' faqs: name: faqs id: aws.kendra.faqs @@ -2342,11 +2471,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Faq' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FileFormat') as file_format, + JSON_EXTRACT(detail.Properties, '$.S3Path') as s3_path, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.LanguageCode') as language_code + 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::Kendra::Faq' + AND detail.data__TypeName = 'AWS::Kendra::Faq' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2370,11 +2512,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Faq' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FileFormat') as file_format, + json_extract_path_text(detail.Properties, 'S3Path') as s3_path, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'LanguageCode') as language_code + 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::Kendra::Faq' + AND detail.data__TypeName = 'AWS::Kendra::Faq' + AND listing.region = 'us-east-1' + faqs_list_only: + name: faqs_list_only + id: aws.kendra.faqs_list_only + x-cfn-schema-name: Faq + x-cfn-type-name: AWS::Kendra::Faq + x-identifiers: + - Id + - IndexId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Faq' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Faq' + AND region = 'us-east-1' + faq_tags: + name: faq_tags + id: aws.kendra.faq_tags + x-cfn-schema-name: Faq + x-cfn-type-name: AWS::Kendra::Faq + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FileFormat') as file_format, + JSON_EXTRACT(detail.Properties, '$.S3Path') as s3_path, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.LanguageCode') as language_code + 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::Kendra::Faq' + AND detail.data__TypeName = 'AWS::Kendra::Faq' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FileFormat') as file_format, + json_extract_path_text(detail.Properties, 'S3Path') as s3_path, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'LanguageCode') as language_code + 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::Kendra::Faq' + AND detail.data__TypeName = 'AWS::Kendra::Faq' + AND listing.region = 'us-east-1' indices: name: indices id: aws.kendra.indices @@ -2457,10 +2707,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Index' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Edition') as edition, + JSON_EXTRACT(detail.Properties, '$.DocumentMetadataConfigurations') as document_metadata_configurations, + JSON_EXTRACT(detail.Properties, '$.CapacityUnits') as capacity_units, + JSON_EXTRACT(detail.Properties, '$.UserContextPolicy') as user_context_policy, + JSON_EXTRACT(detail.Properties, '$.UserTokenConfigurations') as user_token_configurations + 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::Kendra::Index' + AND detail.data__TypeName = 'AWS::Kendra::Index' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2486,10 +2752,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Index' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Edition') as edition, + json_extract_path_text(detail.Properties, 'DocumentMetadataConfigurations') as document_metadata_configurations, + json_extract_path_text(detail.Properties, 'CapacityUnits') as capacity_units, + json_extract_path_text(detail.Properties, 'UserContextPolicy') as user_context_policy, + json_extract_path_text(detail.Properties, 'UserTokenConfigurations') as user_token_configurations + 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::Kendra::Index' + AND detail.data__TypeName = 'AWS::Kendra::Index' + AND listing.region = 'us-east-1' + indices_list_only: + name: indices_list_only + id: aws.kendra.indices_list_only + x-cfn-schema-name: Index + x-cfn-type-name: AWS::Kendra::Index + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Index' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kendra::Index' + AND region = 'us-east-1' + index_tags: + name: index_tags + id: aws.kendra.index_tags + x-cfn-schema-name: Index + x-cfn-type-name: AWS::Kendra::Index + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Edition') as edition, + JSON_EXTRACT(detail.Properties, '$.DocumentMetadataConfigurations') as document_metadata_configurations, + JSON_EXTRACT(detail.Properties, '$.CapacityUnits') as capacity_units, + JSON_EXTRACT(detail.Properties, '$.UserContextPolicy') as user_context_policy, + JSON_EXTRACT(detail.Properties, '$.UserTokenConfigurations') as user_token_configurations + 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::Kendra::Index' + AND detail.data__TypeName = 'AWS::Kendra::Index' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Edition') as edition, + json_extract_path_text(detail.Properties, 'DocumentMetadataConfigurations') as document_metadata_configurations, + json_extract_path_text(detail.Properties, 'CapacityUnits') as capacity_units, + json_extract_path_text(detail.Properties, 'UserContextPolicy') as user_context_policy, + json_extract_path_text(detail.Properties, 'UserTokenConfigurations') as user_token_configurations + 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::Kendra::Index' + AND detail.data__TypeName = 'AWS::Kendra::Index' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/kendraranking.yaml b/providers/src/aws/v00.00.00000/services/kendraranking.yaml index b2b541e7..e9b87621 100644 --- a/providers/src/aws/v00.00.00000/services/kendraranking.yaml +++ b/providers/src/aws/v00.00.00000/services/kendraranking.yaml @@ -610,10 +610,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KendraRanking::ExecutionPlan' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CapacityUnits') as capacity_units + 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::KendraRanking::ExecutionPlan' + AND detail.data__TypeName = 'AWS::KendraRanking::ExecutionPlan' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -633,10 +643,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KendraRanking::ExecutionPlan' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CapacityUnits') as capacity_units + 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::KendraRanking::ExecutionPlan' + AND detail.data__TypeName = 'AWS::KendraRanking::ExecutionPlan' + AND listing.region = 'us-east-1' + execution_plans_list_only: + name: execution_plans_list_only + id: aws.kendraranking.execution_plans_list_only + x-cfn-schema-name: ExecutionPlan + x-cfn-type-name: AWS::KendraRanking::ExecutionPlan + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KendraRanking::ExecutionPlan' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KendraRanking::ExecutionPlan' + AND region = 'us-east-1' + execution_plan_tags: + name: execution_plan_tags + id: aws.kendraranking.execution_plan_tags + x-cfn-schema-name: ExecutionPlan + x-cfn-type-name: AWS::KendraRanking::ExecutionPlan + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CapacityUnits') as capacity_units + 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::KendraRanking::ExecutionPlan' + AND detail.data__TypeName = 'AWS::KendraRanking::ExecutionPlan' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CapacityUnits') as capacity_units + 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::KendraRanking::ExecutionPlan' + AND detail.data__TypeName = 'AWS::KendraRanking::ExecutionPlan' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/kinesis.yaml b/providers/src/aws/v00.00.00000/services/kinesis.yaml index e5eeaae4..e8a5a997 100644 --- a/providers/src/aws/v00.00.00000/services/kinesis.yaml +++ b/providers/src/aws/v00.00.00000/services/kinesis.yaml @@ -658,10 +658,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kinesis::Stream' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StreamModeDetails') as stream_mode_details, + JSON_EXTRACT(detail.Properties, '$.StreamEncryption') as stream_encryption, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RetentionPeriodHours') as retention_period_hours, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ShardCount') as shard_count + 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::Kinesis::Stream' + AND detail.data__TypeName = 'AWS::Kinesis::Stream' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -682,10 +693,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kinesis::Stream' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StreamModeDetails') as stream_mode_details, + json_extract_path_text(detail.Properties, 'StreamEncryption') as stream_encryption, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RetentionPeriodHours') as retention_period_hours, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ShardCount') as shard_count + 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::Kinesis::Stream' + AND detail.data__TypeName = 'AWS::Kinesis::Stream' + AND listing.region = 'us-east-1' + streams_list_only: + name: streams_list_only + id: aws.kinesis.streams_list_only + x-cfn-schema-name: Stream + x-cfn-type-name: AWS::Kinesis::Stream + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kinesis::Stream' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Kinesis::Stream' + AND region = 'us-east-1' + stream_tags: + name: stream_tags + id: aws.kinesis.stream_tags + x-cfn-schema-name: Stream + x-cfn-type-name: AWS::Kinesis::Stream + 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, '$.StreamModeDetails') as stream_mode_details, + JSON_EXTRACT(detail.Properties, '$.StreamEncryption') as stream_encryption, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.RetentionPeriodHours') as retention_period_hours, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ShardCount') as shard_count + 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::Kinesis::Stream' + AND detail.data__TypeName = 'AWS::Kinesis::Stream' + 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, 'StreamModeDetails') as stream_mode_details, + json_extract_path_text(detail.Properties, 'StreamEncryption') as stream_encryption, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'RetentionPeriodHours') as retention_period_hours, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ShardCount') as shard_count + 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::Kinesis::Stream' + AND detail.data__TypeName = 'AWS::Kinesis::Stream' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/kinesisanalyticsv2.yaml b/providers/src/aws/v00.00.00000/services/kinesisanalyticsv2.yaml index fca1de30..46c8afe7 100644 --- a/providers/src/aws/v00.00.00000/services/kinesisanalyticsv2.yaml +++ b/providers/src/aws/v00.00.00000/services/kinesisanalyticsv2.yaml @@ -1280,10 +1280,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationName') as application_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisAnalyticsV2::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationConfiguration') as application_configuration, + JSON_EXTRACT(detail.Properties, '$.ApplicationDescription') as application_description, + JSON_EXTRACT(detail.Properties, '$.ApplicationMode') as application_mode, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.RuntimeEnvironment') as runtime_environment, + JSON_EXTRACT(detail.Properties, '$.ServiceExecutionRole') as service_execution_role, + JSON_EXTRACT(detail.Properties, '$.RunConfiguration') as run_configuration, + JSON_EXTRACT(detail.Properties, '$.ApplicationMaintenanceConfiguration') as application_maintenance_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::KinesisAnalyticsV2::Application' + AND detail.data__TypeName = 'AWS::KinesisAnalyticsV2::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1306,10 +1319,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationName') as application_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisAnalyticsV2::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationConfiguration') as application_configuration, + json_extract_path_text(detail.Properties, 'ApplicationDescription') as application_description, + json_extract_path_text(detail.Properties, 'ApplicationMode') as application_mode, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'RuntimeEnvironment') as runtime_environment, + json_extract_path_text(detail.Properties, 'ServiceExecutionRole') as service_execution_role, + json_extract_path_text(detail.Properties, 'RunConfiguration') as run_configuration, + json_extract_path_text(detail.Properties, 'ApplicationMaintenanceConfiguration') as application_maintenance_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::KinesisAnalyticsV2::Application' + AND detail.data__TypeName = 'AWS::KinesisAnalyticsV2::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.kinesisanalyticsv2.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::KinesisAnalyticsV2::Application + x-identifiers: + - ApplicationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationName') as application_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisAnalyticsV2::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationName') as application_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisAnalyticsV2::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.kinesisanalyticsv2.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::KinesisAnalyticsV2::Application + 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, '$.ApplicationConfiguration') as application_configuration, + JSON_EXTRACT(detail.Properties, '$.ApplicationDescription') as application_description, + JSON_EXTRACT(detail.Properties, '$.ApplicationMode') as application_mode, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name, + JSON_EXTRACT(detail.Properties, '$.RuntimeEnvironment') as runtime_environment, + JSON_EXTRACT(detail.Properties, '$.ServiceExecutionRole') as service_execution_role, + JSON_EXTRACT(detail.Properties, '$.RunConfiguration') as run_configuration, + JSON_EXTRACT(detail.Properties, '$.ApplicationMaintenanceConfiguration') as application_maintenance_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::KinesisAnalyticsV2::Application' + AND detail.data__TypeName = 'AWS::KinesisAnalyticsV2::Application' + 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, 'ApplicationConfiguration') as application_configuration, + json_extract_path_text(detail.Properties, 'ApplicationDescription') as application_description, + json_extract_path_text(detail.Properties, 'ApplicationMode') as application_mode, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name, + json_extract_path_text(detail.Properties, 'RuntimeEnvironment') as runtime_environment, + json_extract_path_text(detail.Properties, 'ServiceExecutionRole') as service_execution_role, + json_extract_path_text(detail.Properties, 'RunConfiguration') as run_configuration, + json_extract_path_text(detail.Properties, 'ApplicationMaintenanceConfiguration') as application_maintenance_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::KinesisAnalyticsV2::Application' + AND detail.data__TypeName = 'AWS::KinesisAnalyticsV2::Application' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/kinesisfirehose.yaml b/providers/src/aws/v00.00.00000/services/kinesisfirehose.yaml index 798417a0..0a2a5292 100644 --- a/providers/src/aws/v00.00.00000/services/kinesisfirehose.yaml +++ b/providers/src/aws/v00.00.00000/services/kinesisfirehose.yaml @@ -1576,10 +1576,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DeliveryStreamName') as delivery_stream_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DeliveryStreamEncryptionConfigurationInput') as delivery_stream_encryption_configuration_input, + JSON_EXTRACT(detail.Properties, '$.DeliveryStreamName') as delivery_stream_name, + JSON_EXTRACT(detail.Properties, '$.DeliveryStreamType') as delivery_stream_type, + JSON_EXTRACT(detail.Properties, '$.ElasticsearchDestinationConfiguration') as elasticsearch_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.AmazonopensearchserviceDestinationConfiguration') as amazonopensearchservice_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.AmazonOpenSearchServerlessDestinationConfiguration') as amazon_open_search_serverless_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.ExtendedS3DestinationConfiguration') as extended_s3_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.KinesisStreamSourceConfiguration') as kinesis_stream_source_configuration, + JSON_EXTRACT(detail.Properties, '$.MSKSourceConfiguration') as msk_source_configuration, + JSON_EXTRACT(detail.Properties, '$.RedshiftDestinationConfiguration') as redshift_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.S3DestinationConfiguration') as s3_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.SplunkDestinationConfiguration') as splunk_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.HttpEndpointDestinationConfiguration') as http_endpoint_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.SnowflakeDestinationConfiguration') as snowflake_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::KinesisFirehose::DeliveryStream' + AND detail.data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1609,10 +1629,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DeliveryStreamName') as delivery_stream_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DeliveryStreamEncryptionConfigurationInput') as delivery_stream_encryption_configuration_input, + json_extract_path_text(detail.Properties, 'DeliveryStreamName') as delivery_stream_name, + json_extract_path_text(detail.Properties, 'DeliveryStreamType') as delivery_stream_type, + json_extract_path_text(detail.Properties, 'ElasticsearchDestinationConfiguration') as elasticsearch_destination_configuration, + json_extract_path_text(detail.Properties, 'AmazonopensearchserviceDestinationConfiguration') as amazonopensearchservice_destination_configuration, + json_extract_path_text(detail.Properties, 'AmazonOpenSearchServerlessDestinationConfiguration') as amazon_open_search_serverless_destination_configuration, + json_extract_path_text(detail.Properties, 'ExtendedS3DestinationConfiguration') as extended_s3_destination_configuration, + json_extract_path_text(detail.Properties, 'KinesisStreamSourceConfiguration') as kinesis_stream_source_configuration, + json_extract_path_text(detail.Properties, 'MSKSourceConfiguration') as msk_source_configuration, + json_extract_path_text(detail.Properties, 'RedshiftDestinationConfiguration') as redshift_destination_configuration, + json_extract_path_text(detail.Properties, 'S3DestinationConfiguration') as s3_destination_configuration, + json_extract_path_text(detail.Properties, 'SplunkDestinationConfiguration') as splunk_destination_configuration, + json_extract_path_text(detail.Properties, 'HttpEndpointDestinationConfiguration') as http_endpoint_destination_configuration, + json_extract_path_text(detail.Properties, 'SnowflakeDestinationConfiguration') as snowflake_destination_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::KinesisFirehose::DeliveryStream' + AND detail.data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' + AND listing.region = 'us-east-1' + delivery_streams_list_only: + name: delivery_streams_list_only + id: aws.kinesisfirehose.delivery_streams_list_only + x-cfn-schema-name: DeliveryStream + x-cfn-type-name: AWS::KinesisFirehose::DeliveryStream + x-identifiers: + - DeliveryStreamName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DeliveryStreamName') as delivery_stream_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DeliveryStreamName') as delivery_stream_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' + AND region = 'us-east-1' + delivery_stream_tags: + name: delivery_stream_tags + id: aws.kinesisfirehose.delivery_stream_tags + x-cfn-schema-name: DeliveryStream + x-cfn-type-name: AWS::KinesisFirehose::DeliveryStream + 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, '$.DeliveryStreamEncryptionConfigurationInput') as delivery_stream_encryption_configuration_input, + JSON_EXTRACT(detail.Properties, '$.DeliveryStreamName') as delivery_stream_name, + JSON_EXTRACT(detail.Properties, '$.DeliveryStreamType') as delivery_stream_type, + JSON_EXTRACT(detail.Properties, '$.ElasticsearchDestinationConfiguration') as elasticsearch_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.AmazonopensearchserviceDestinationConfiguration') as amazonopensearchservice_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.AmazonOpenSearchServerlessDestinationConfiguration') as amazon_open_search_serverless_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.ExtendedS3DestinationConfiguration') as extended_s3_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.KinesisStreamSourceConfiguration') as kinesis_stream_source_configuration, + JSON_EXTRACT(detail.Properties, '$.MSKSourceConfiguration') as msk_source_configuration, + JSON_EXTRACT(detail.Properties, '$.RedshiftDestinationConfiguration') as redshift_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.S3DestinationConfiguration') as s3_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.SplunkDestinationConfiguration') as splunk_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.HttpEndpointDestinationConfiguration') as http_endpoint_destination_configuration, + JSON_EXTRACT(detail.Properties, '$.SnowflakeDestinationConfiguration') as snowflake_destination_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::KinesisFirehose::DeliveryStream' + AND detail.data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' + 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, 'DeliveryStreamEncryptionConfigurationInput') as delivery_stream_encryption_configuration_input, + json_extract_path_text(detail.Properties, 'DeliveryStreamName') as delivery_stream_name, + json_extract_path_text(detail.Properties, 'DeliveryStreamType') as delivery_stream_type, + json_extract_path_text(detail.Properties, 'ElasticsearchDestinationConfiguration') as elasticsearch_destination_configuration, + json_extract_path_text(detail.Properties, 'AmazonopensearchserviceDestinationConfiguration') as amazonopensearchservice_destination_configuration, + json_extract_path_text(detail.Properties, 'AmazonOpenSearchServerlessDestinationConfiguration') as amazon_open_search_serverless_destination_configuration, + json_extract_path_text(detail.Properties, 'ExtendedS3DestinationConfiguration') as extended_s3_destination_configuration, + json_extract_path_text(detail.Properties, 'KinesisStreamSourceConfiguration') as kinesis_stream_source_configuration, + json_extract_path_text(detail.Properties, 'MSKSourceConfiguration') as msk_source_configuration, + json_extract_path_text(detail.Properties, 'RedshiftDestinationConfiguration') as redshift_destination_configuration, + json_extract_path_text(detail.Properties, 'S3DestinationConfiguration') as s3_destination_configuration, + json_extract_path_text(detail.Properties, 'SplunkDestinationConfiguration') as splunk_destination_configuration, + json_extract_path_text(detail.Properties, 'HttpEndpointDestinationConfiguration') as http_endpoint_destination_configuration, + json_extract_path_text(detail.Properties, 'SnowflakeDestinationConfiguration') as snowflake_destination_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::KinesisFirehose::DeliveryStream' + AND detail.data__TypeName = 'AWS::KinesisFirehose::DeliveryStream' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/kms.yaml b/providers/src/aws/v00.00.00000/services/kms.yaml index c59ebf7c..6a4bb5c6 100644 --- a/providers/src/aws/v00.00.00000/services/kms.yaml +++ b/providers/src/aws/v00.00.00000/services/kms.yaml @@ -1159,10 +1159,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AliasName') as alias_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Alias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TargetKeyId') as target_key_id, + JSON_EXTRACT(detail.Properties, '$.AliasName') as alias_name + 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::KMS::Alias' + AND detail.data__TypeName = 'AWS::KMS::Alias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1178,10 +1184,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AliasName') as alias_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Alias' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TargetKeyId') as target_key_id, + json_extract_path_text(detail.Properties, 'AliasName') as alias_name + 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::KMS::Alias' + AND detail.data__TypeName = 'AWS::KMS::Alias' + AND listing.region = 'us-east-1' + aliases_list_only: + name: aliases_list_only + id: aws.kms.aliases_list_only + x-cfn-schema-name: Alias + x-cfn-type-name: AWS::KMS::Alias + x-identifiers: + - AliasName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AliasName') as alias_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Alias' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AliasName') as alias_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Alias' + AND region = 'us-east-1' keys: name: keys id: aws.kms.keys @@ -1266,10 +1309,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KeyId') as key_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Key' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.EnableKeyRotation') as enable_key_rotation, + JSON_EXTRACT(detail.Properties, '$.KeyPolicy') as key_policy, + JSON_EXTRACT(detail.Properties, '$.KeyUsage') as key_usage, + JSON_EXTRACT(detail.Properties, '$.Origin') as origin, + JSON_EXTRACT(detail.Properties, '$.KeySpec') as key_spec, + JSON_EXTRACT(detail.Properties, '$.MultiRegion') as multi_region, + JSON_EXTRACT(detail.Properties, '$.PendingWindowInDays') as pending_window_in_days, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.KeyId') as key_id, + JSON_EXTRACT(detail.Properties, '$.BypassPolicyLockoutSafetyCheck') as bypass_policy_lockout_safety_check, + JSON_EXTRACT(detail.Properties, '$.RotationPeriodInDays') as rotation_period_in_days + 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::KMS::Key' + AND detail.data__TypeName = 'AWS::KMS::Key' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1297,10 +1358,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KeyId') as key_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Key' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'EnableKeyRotation') as enable_key_rotation, + json_extract_path_text(detail.Properties, 'KeyPolicy') as key_policy, + json_extract_path_text(detail.Properties, 'KeyUsage') as key_usage, + json_extract_path_text(detail.Properties, 'Origin') as origin, + json_extract_path_text(detail.Properties, 'KeySpec') as key_spec, + json_extract_path_text(detail.Properties, 'MultiRegion') as multi_region, + json_extract_path_text(detail.Properties, 'PendingWindowInDays') as pending_window_in_days, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'KeyId') as key_id, + json_extract_path_text(detail.Properties, 'BypassPolicyLockoutSafetyCheck') as bypass_policy_lockout_safety_check, + json_extract_path_text(detail.Properties, 'RotationPeriodInDays') as rotation_period_in_days + 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::KMS::Key' + AND detail.data__TypeName = 'AWS::KMS::Key' + AND listing.region = 'us-east-1' + keys_list_only: + name: keys_list_only + id: aws.kms.keys_list_only + x-cfn-schema-name: Key + x-cfn-type-name: AWS::KMS::Key + x-identifiers: + - KeyId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KeyId') as key_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Key' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KeyId') as key_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::Key' + AND region = 'us-east-1' + key_tags: + name: key_tags + id: aws.kms.key_tags + x-cfn-schema-name: Key + x-cfn-type-name: AWS::KMS::Key + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.EnableKeyRotation') as enable_key_rotation, + JSON_EXTRACT(detail.Properties, '$.KeyPolicy') as key_policy, + JSON_EXTRACT(detail.Properties, '$.KeyUsage') as key_usage, + JSON_EXTRACT(detail.Properties, '$.Origin') as origin, + JSON_EXTRACT(detail.Properties, '$.KeySpec') as key_spec, + JSON_EXTRACT(detail.Properties, '$.MultiRegion') as multi_region, + JSON_EXTRACT(detail.Properties, '$.PendingWindowInDays') as pending_window_in_days, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.KeyId') as key_id, + JSON_EXTRACT(detail.Properties, '$.BypassPolicyLockoutSafetyCheck') as bypass_policy_lockout_safety_check, + JSON_EXTRACT(detail.Properties, '$.RotationPeriodInDays') as rotation_period_in_days + 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::KMS::Key' + AND detail.data__TypeName = 'AWS::KMS::Key' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'EnableKeyRotation') as enable_key_rotation, + json_extract_path_text(detail.Properties, 'KeyPolicy') as key_policy, + json_extract_path_text(detail.Properties, 'KeyUsage') as key_usage, + json_extract_path_text(detail.Properties, 'Origin') as origin, + json_extract_path_text(detail.Properties, 'KeySpec') as key_spec, + json_extract_path_text(detail.Properties, 'MultiRegion') as multi_region, + json_extract_path_text(detail.Properties, 'PendingWindowInDays') as pending_window_in_days, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'KeyId') as key_id, + json_extract_path_text(detail.Properties, 'BypassPolicyLockoutSafetyCheck') as bypass_policy_lockout_safety_check, + json_extract_path_text(detail.Properties, 'RotationPeriodInDays') as rotation_period_in_days + 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::KMS::Key' + AND detail.data__TypeName = 'AWS::KMS::Key' + AND listing.region = 'us-east-1' replica_keys: name: replica_keys id: aws.kms.replica_keys @@ -1379,10 +1558,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KeyId') as key_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::ReplicaKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PendingWindowInDays') as pending_window_in_days, + JSON_EXTRACT(detail.Properties, '$.KeyPolicy') as key_policy, + JSON_EXTRACT(detail.Properties, '$.PrimaryKeyArn') as primary_key_arn, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.KeyId') as key_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::KMS::ReplicaKey' + AND detail.data__TypeName = 'AWS::KMS::ReplicaKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1404,10 +1595,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KeyId') as key_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::ReplicaKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PendingWindowInDays') as pending_window_in_days, + json_extract_path_text(detail.Properties, 'KeyPolicy') as key_policy, + json_extract_path_text(detail.Properties, 'PrimaryKeyArn') as primary_key_arn, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'KeyId') as key_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::KMS::ReplicaKey' + AND detail.data__TypeName = 'AWS::KMS::ReplicaKey' + AND listing.region = 'us-east-1' + replica_keys_list_only: + name: replica_keys_list_only + id: aws.kms.replica_keys_list_only + x-cfn-schema-name: ReplicaKey + x-cfn-type-name: AWS::KMS::ReplicaKey + x-identifiers: + - KeyId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KeyId') as key_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::ReplicaKey' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KeyId') as key_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::KMS::ReplicaKey' + AND region = 'us-east-1' + replica_key_tags: + name: replica_key_tags + id: aws.kms.replica_key_tags + x-cfn-schema-name: ReplicaKey + x-cfn-type-name: AWS::KMS::ReplicaKey + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PendingWindowInDays') as pending_window_in_days, + JSON_EXTRACT(detail.Properties, '$.KeyPolicy') as key_policy, + JSON_EXTRACT(detail.Properties, '$.PrimaryKeyArn') as primary_key_arn, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.KeyId') as key_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::KMS::ReplicaKey' + AND detail.data__TypeName = 'AWS::KMS::ReplicaKey' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'PendingWindowInDays') as pending_window_in_days, + json_extract_path_text(detail.Properties, 'KeyPolicy') as key_policy, + json_extract_path_text(detail.Properties, 'PrimaryKeyArn') as primary_key_arn, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'KeyId') as key_id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::KMS::ReplicaKey' + AND detail.data__TypeName = 'AWS::KMS::ReplicaKey' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/lakeformation.yaml b/providers/src/aws/v00.00.00000/services/lakeformation.yaml index 42154467..b5ac776d 100644 --- a/providers/src/aws/v00.00.00000/services/lakeformation.yaml +++ b/providers/src/aws/v00.00.00000/services/lakeformation.yaml @@ -1096,13 +1096,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TableCatalogId') as table_catalog_id, - JSON_EXTRACT(Properties, '$.DatabaseName') as database_name, - JSON_EXTRACT(Properties, '$.TableName') as table_name, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::DataCellsFilter' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TableCatalogId') as table_catalog_id, + JSON_EXTRACT(detail.Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RowFilter') as row_filter, + JSON_EXTRACT(detail.Properties, '$.ColumnNames') as column_names, + JSON_EXTRACT(detail.Properties, '$.ColumnWildcard') as column_wildcard + 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::LakeFormation::DataCellsFilter' + AND detail.data__TypeName = 'AWS::LakeFormation::DataCellsFilter' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1123,13 +1131,61 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TableCatalogId') as table_catalog_id, - json_extract_path_text(Properties, 'DatabaseName') as database_name, - json_extract_path_text(Properties, 'TableName') as table_name, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::DataCellsFilter' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TableCatalogId') as table_catalog_id, + json_extract_path_text(detail.Properties, 'DatabaseName') as database_name, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RowFilter') as row_filter, + json_extract_path_text(detail.Properties, 'ColumnNames') as column_names, + json_extract_path_text(detail.Properties, 'ColumnWildcard') as column_wildcard + 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::LakeFormation::DataCellsFilter' + AND detail.data__TypeName = 'AWS::LakeFormation::DataCellsFilter' + AND listing.region = 'us-east-1' + data_cells_filters_list_only: + name: data_cells_filters_list_only + id: aws.lakeformation.data_cells_filters_list_only + x-cfn-schema-name: DataCellsFilter + x-cfn-type-name: AWS::LakeFormation::DataCellsFilter + x-identifiers: + - TableCatalogId + - DatabaseName + - TableName + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TableCatalogId') as table_catalog_id, + JSON_EXTRACT(Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(Properties, '$.TableName') as table_name, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::DataCellsFilter' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TableCatalogId') as table_catalog_id, + json_extract_path_text(Properties, 'DatabaseName') as database_name, + json_extract_path_text(Properties, 'TableName') as table_name, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::DataCellsFilter' + AND region = 'us-east-1' principal_permissions: name: principal_permissions id: aws.lakeformation.principal_permissions @@ -1280,10 +1336,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TagKey') as tag_key - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::Tag' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CatalogId') as catalog_id, + JSON_EXTRACT(detail.Properties, '$.TagKey') as tag_key, + JSON_EXTRACT(detail.Properties, '$.TagValues') as tag_values + 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::LakeFormation::Tag' + AND detail.data__TypeName = 'AWS::LakeFormation::Tag' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1300,10 +1363,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TagKey') as tag_key - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::Tag' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CatalogId') as catalog_id, + json_extract_path_text(detail.Properties, 'TagKey') as tag_key, + json_extract_path_text(detail.Properties, 'TagValues') as tag_values + 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::LakeFormation::Tag' + AND detail.data__TypeName = 'AWS::LakeFormation::Tag' + AND listing.region = 'us-east-1' + tags_list_only: + name: tags_list_only + id: aws.lakeformation.tags_list_only + x-cfn-schema-name: Tag + x-cfn-type-name: AWS::LakeFormation::Tag + x-identifiers: + - TagKey + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TagKey') as tag_key + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::Tag' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TagKey') as tag_key + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LakeFormation::Tag' + AND region = 'us-east-1' tag_associations: name: tag_associations id: aws.lakeformation.tag_associations diff --git a/providers/src/aws/v00.00.00000/services/lambda.yaml b/providers/src/aws/v00.00.00000/services/lambda.yaml index 2d33598b..867985da 100644 --- a/providers/src/aws/v00.00.00000/services/lambda.yaml +++ b/providers/src/aws/v00.00.00000/services/lambda.yaml @@ -2585,10 +2585,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CodeSigningConfigArn') as code_signing_config_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::CodeSigningConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AllowedPublishers') as allowed_publishers, + JSON_EXTRACT(detail.Properties, '$.CodeSigningPolicies') as code_signing_policies, + JSON_EXTRACT(detail.Properties, '$.CodeSigningConfigId') as code_signing_config_id, + JSON_EXTRACT(detail.Properties, '$.CodeSigningConfigArn') as code_signing_config_arn + 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::Lambda::CodeSigningConfig' + AND detail.data__TypeName = 'AWS::Lambda::CodeSigningConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2607,10 +2616,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CodeSigningConfigArn') as code_signing_config_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::CodeSigningConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AllowedPublishers') as allowed_publishers, + json_extract_path_text(detail.Properties, 'CodeSigningPolicies') as code_signing_policies, + json_extract_path_text(detail.Properties, 'CodeSigningConfigId') as code_signing_config_id, + json_extract_path_text(detail.Properties, 'CodeSigningConfigArn') as code_signing_config_arn + 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::Lambda::CodeSigningConfig' + AND detail.data__TypeName = 'AWS::Lambda::CodeSigningConfig' + AND listing.region = 'us-east-1' + code_signing_configs_list_only: + name: code_signing_configs_list_only + id: aws.lambda.code_signing_configs_list_only + x-cfn-schema-name: CodeSigningConfig + x-cfn-type-name: AWS::Lambda::CodeSigningConfig + x-identifiers: + - CodeSigningConfigArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CodeSigningConfigArn') as code_signing_config_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::CodeSigningConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CodeSigningConfigArn') as code_signing_config_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::CodeSigningConfig' + AND region = 'us-east-1' event_invoke_configs: name: event_invoke_configs id: aws.lambda.event_invoke_configs @@ -2687,11 +2736,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FunctionName') as function_name, - JSON_EXTRACT(Properties, '$.Qualifier') as qualifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventInvokeConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DestinationConfig') as destination_config, + JSON_EXTRACT(detail.Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(detail.Properties, '$.MaximumEventAgeInSeconds') as maximum_event_age_in_seconds, + JSON_EXTRACT(detail.Properties, '$.MaximumRetryAttempts') as maximum_retry_attempts, + JSON_EXTRACT(detail.Properties, '$.Qualifier') as qualifier + 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::Lambda::EventInvokeConfig' + AND detail.data__TypeName = 'AWS::Lambda::EventInvokeConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2710,11 +2767,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FunctionName') as function_name, - json_extract_path_text(Properties, 'Qualifier') as qualifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventInvokeConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DestinationConfig') as destination_config, + json_extract_path_text(detail.Properties, 'FunctionName') as function_name, + json_extract_path_text(detail.Properties, 'MaximumEventAgeInSeconds') as maximum_event_age_in_seconds, + json_extract_path_text(detail.Properties, 'MaximumRetryAttempts') as maximum_retry_attempts, + json_extract_path_text(detail.Properties, 'Qualifier') as qualifier + 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::Lambda::EventInvokeConfig' + AND detail.data__TypeName = 'AWS::Lambda::EventInvokeConfig' + AND listing.region = 'us-east-1' + event_invoke_configs_list_only: + name: event_invoke_configs_list_only + id: aws.lambda.event_invoke_configs_list_only + x-cfn-schema-name: EventInvokeConfig + x-cfn-type-name: AWS::Lambda::EventInvokeConfig + x-identifiers: + - FunctionName + - Qualifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(Properties, '$.Qualifier') as qualifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventInvokeConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FunctionName') as function_name, + json_extract_path_text(Properties, 'Qualifier') as qualifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventInvokeConfig' + AND region = 'us-east-1' event_source_mappings: name: event_source_mappings id: aws.lambda.event_source_mappings @@ -2809,10 +2908,38 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventSourceMapping' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StartingPosition') as starting_position, + JSON_EXTRACT(detail.Properties, '$.SelfManagedEventSource') as self_managed_event_source, + JSON_EXTRACT(detail.Properties, '$.ParallelizationFactor') as parallelization_factor, + JSON_EXTRACT(detail.Properties, '$.FilterCriteria') as filter_criteria, + JSON_EXTRACT(detail.Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(detail.Properties, '$.DestinationConfig') as destination_config, + JSON_EXTRACT(detail.Properties, '$.AmazonManagedKafkaEventSourceConfig') as amazon_managed_kafka_event_source_config, + JSON_EXTRACT(detail.Properties, '$.SourceAccessConfigurations') as source_access_configurations, + JSON_EXTRACT(detail.Properties, '$.MaximumBatchingWindowInSeconds') as maximum_batching_window_in_seconds, + JSON_EXTRACT(detail.Properties, '$.BatchSize') as batch_size, + JSON_EXTRACT(detail.Properties, '$.MaximumRetryAttempts') as maximum_retry_attempts, + JSON_EXTRACT(detail.Properties, '$.Topics') as topics, + JSON_EXTRACT(detail.Properties, '$.ScalingConfig') as scaling_config, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.EventSourceArn') as event_source_arn, + JSON_EXTRACT(detail.Properties, '$.SelfManagedKafkaEventSourceConfig') as self_managed_kafka_event_source_config, + JSON_EXTRACT(detail.Properties, '$.DocumentDBEventSourceConfig') as document_db_event_source_config, + JSON_EXTRACT(detail.Properties, '$.TumblingWindowInSeconds') as tumbling_window_in_seconds, + JSON_EXTRACT(detail.Properties, '$.BisectBatchOnFunctionError') as bisect_batch_on_function_error, + JSON_EXTRACT(detail.Properties, '$.MaximumRecordAgeInSeconds') as maximum_record_age_in_seconds, + JSON_EXTRACT(detail.Properties, '$.StartingPositionTimestamp') as starting_position_timestamp, + JSON_EXTRACT(detail.Properties, '$.Queues') as queues, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.FunctionResponseTypes') as function_response_types + 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::Lambda::EventSourceMapping' + AND detail.data__TypeName = 'AWS::Lambda::EventSourceMapping' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2850,10 +2977,69 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventSourceMapping' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StartingPosition') as starting_position, + json_extract_path_text(detail.Properties, 'SelfManagedEventSource') as self_managed_event_source, + json_extract_path_text(detail.Properties, 'ParallelizationFactor') as parallelization_factor, + json_extract_path_text(detail.Properties, 'FilterCriteria') as filter_criteria, + json_extract_path_text(detail.Properties, 'FunctionName') as function_name, + json_extract_path_text(detail.Properties, 'DestinationConfig') as destination_config, + json_extract_path_text(detail.Properties, 'AmazonManagedKafkaEventSourceConfig') as amazon_managed_kafka_event_source_config, + json_extract_path_text(detail.Properties, 'SourceAccessConfigurations') as source_access_configurations, + json_extract_path_text(detail.Properties, 'MaximumBatchingWindowInSeconds') as maximum_batching_window_in_seconds, + json_extract_path_text(detail.Properties, 'BatchSize') as batch_size, + json_extract_path_text(detail.Properties, 'MaximumRetryAttempts') as maximum_retry_attempts, + json_extract_path_text(detail.Properties, 'Topics') as topics, + json_extract_path_text(detail.Properties, 'ScalingConfig') as scaling_config, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'EventSourceArn') as event_source_arn, + json_extract_path_text(detail.Properties, 'SelfManagedKafkaEventSourceConfig') as self_managed_kafka_event_source_config, + json_extract_path_text(detail.Properties, 'DocumentDBEventSourceConfig') as document_db_event_source_config, + json_extract_path_text(detail.Properties, 'TumblingWindowInSeconds') as tumbling_window_in_seconds, + json_extract_path_text(detail.Properties, 'BisectBatchOnFunctionError') as bisect_batch_on_function_error, + json_extract_path_text(detail.Properties, 'MaximumRecordAgeInSeconds') as maximum_record_age_in_seconds, + json_extract_path_text(detail.Properties, 'StartingPositionTimestamp') as starting_position_timestamp, + json_extract_path_text(detail.Properties, 'Queues') as queues, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'FunctionResponseTypes') as function_response_types + 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::Lambda::EventSourceMapping' + AND detail.data__TypeName = 'AWS::Lambda::EventSourceMapping' + AND listing.region = 'us-east-1' + event_source_mappings_list_only: + name: event_source_mappings_list_only + id: aws.lambda.event_source_mappings_list_only + x-cfn-schema-name: EventSourceMapping + x-cfn-type-name: AWS::Lambda::EventSourceMapping + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventSourceMapping' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::EventSourceMapping' + AND region = 'us-east-1' functions: name: functions id: aws.lambda.functions @@ -2951,10 +3137,41 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FunctionName') as function_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Function' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TracingConfig') as tracing_config, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.RuntimeManagementConfig') as runtime_management_config, + JSON_EXTRACT(detail.Properties, '$.ReservedConcurrentExecutions') as reserved_concurrent_executions, + JSON_EXTRACT(detail.Properties, '$.SnapStart') as snap_start, + JSON_EXTRACT(detail.Properties, '$.FileSystemConfigs') as file_system_configs, + JSON_EXTRACT(detail.Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(detail.Properties, '$.Runtime') as runtime, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.PackageType') as package_type, + JSON_EXTRACT(detail.Properties, '$.CodeSigningConfigArn') as code_signing_config_arn, + JSON_EXTRACT(detail.Properties, '$.Layers') as layers, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ImageConfig') as image_config, + JSON_EXTRACT(detail.Properties, '$.MemorySize') as memory_size, + JSON_EXTRACT(detail.Properties, '$.DeadLetterConfig') as dead_letter_config, + JSON_EXTRACT(detail.Properties, '$.Timeout') as timeout, + JSON_EXTRACT(detail.Properties, '$.Handler') as handler, + JSON_EXTRACT(detail.Properties, '$.SnapStartResponse') as snap_start_response, + JSON_EXTRACT(detail.Properties, '$.Code') as code, + JSON_EXTRACT(detail.Properties, '$.Role') as role, + JSON_EXTRACT(detail.Properties, '$.LoggingConfig') as logging_config, + JSON_EXTRACT(detail.Properties, '$.Environment') as environment, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.EphemeralStorage') as ephemeral_storage, + JSON_EXTRACT(detail.Properties, '$.Architectures') as architectures + 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::Lambda::Function' + AND detail.data__TypeName = 'AWS::Lambda::Function' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2995,10 +3212,167 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FunctionName') as function_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Function' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TracingConfig') as tracing_config, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'RuntimeManagementConfig') as runtime_management_config, + json_extract_path_text(detail.Properties, 'ReservedConcurrentExecutions') as reserved_concurrent_executions, + json_extract_path_text(detail.Properties, 'SnapStart') as snap_start, + json_extract_path_text(detail.Properties, 'FileSystemConfigs') as file_system_configs, + json_extract_path_text(detail.Properties, 'FunctionName') as function_name, + json_extract_path_text(detail.Properties, 'Runtime') as runtime, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'PackageType') as package_type, + json_extract_path_text(detail.Properties, 'CodeSigningConfigArn') as code_signing_config_arn, + json_extract_path_text(detail.Properties, 'Layers') as layers, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ImageConfig') as image_config, + json_extract_path_text(detail.Properties, 'MemorySize') as memory_size, + json_extract_path_text(detail.Properties, 'DeadLetterConfig') as dead_letter_config, + json_extract_path_text(detail.Properties, 'Timeout') as timeout, + json_extract_path_text(detail.Properties, 'Handler') as handler, + json_extract_path_text(detail.Properties, 'SnapStartResponse') as snap_start_response, + json_extract_path_text(detail.Properties, 'Code') as code, + json_extract_path_text(detail.Properties, 'Role') as role, + json_extract_path_text(detail.Properties, 'LoggingConfig') as logging_config, + json_extract_path_text(detail.Properties, 'Environment') as environment, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'EphemeralStorage') as ephemeral_storage, + json_extract_path_text(detail.Properties, 'Architectures') as architectures + 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::Lambda::Function' + AND detail.data__TypeName = 'AWS::Lambda::Function' + AND listing.region = 'us-east-1' + functions_list_only: + name: functions_list_only + id: aws.lambda.functions_list_only + x-cfn-schema-name: Function + x-cfn-type-name: AWS::Lambda::Function + x-identifiers: + - FunctionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FunctionName') as function_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Function' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FunctionName') as function_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Function' + AND region = 'us-east-1' + function_tags: + name: function_tags + id: aws.lambda.function_tags + x-cfn-schema-name: Function + x-cfn-type-name: AWS::Lambda::Function + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TracingConfig') as tracing_config, + JSON_EXTRACT(detail.Properties, '$.VpcConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.RuntimeManagementConfig') as runtime_management_config, + JSON_EXTRACT(detail.Properties, '$.ReservedConcurrentExecutions') as reserved_concurrent_executions, + JSON_EXTRACT(detail.Properties, '$.SnapStart') as snap_start, + JSON_EXTRACT(detail.Properties, '$.FileSystemConfigs') as file_system_configs, + JSON_EXTRACT(detail.Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(detail.Properties, '$.Runtime') as runtime, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.PackageType') as package_type, + JSON_EXTRACT(detail.Properties, '$.CodeSigningConfigArn') as code_signing_config_arn, + JSON_EXTRACT(detail.Properties, '$.Layers') as layers, + JSON_EXTRACT(detail.Properties, '$.ImageConfig') as image_config, + JSON_EXTRACT(detail.Properties, '$.MemorySize') as memory_size, + JSON_EXTRACT(detail.Properties, '$.DeadLetterConfig') as dead_letter_config, + JSON_EXTRACT(detail.Properties, '$.Timeout') as timeout, + JSON_EXTRACT(detail.Properties, '$.Handler') as handler, + JSON_EXTRACT(detail.Properties, '$.SnapStartResponse') as snap_start_response, + JSON_EXTRACT(detail.Properties, '$.Code') as code, + JSON_EXTRACT(detail.Properties, '$.Role') as role, + JSON_EXTRACT(detail.Properties, '$.LoggingConfig') as logging_config, + JSON_EXTRACT(detail.Properties, '$.Environment') as environment, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.EphemeralStorage') as ephemeral_storage, + JSON_EXTRACT(detail.Properties, '$.Architectures') as architectures + 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::Lambda::Function' + AND detail.data__TypeName = 'AWS::Lambda::Function' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'TracingConfig') as tracing_config, + json_extract_path_text(detail.Properties, 'VpcConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'RuntimeManagementConfig') as runtime_management_config, + json_extract_path_text(detail.Properties, 'ReservedConcurrentExecutions') as reserved_concurrent_executions, + json_extract_path_text(detail.Properties, 'SnapStart') as snap_start, + json_extract_path_text(detail.Properties, 'FileSystemConfigs') as file_system_configs, + json_extract_path_text(detail.Properties, 'FunctionName') as function_name, + json_extract_path_text(detail.Properties, 'Runtime') as runtime, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'PackageType') as package_type, + json_extract_path_text(detail.Properties, 'CodeSigningConfigArn') as code_signing_config_arn, + json_extract_path_text(detail.Properties, 'Layers') as layers, + json_extract_path_text(detail.Properties, 'ImageConfig') as image_config, + json_extract_path_text(detail.Properties, 'MemorySize') as memory_size, + json_extract_path_text(detail.Properties, 'DeadLetterConfig') as dead_letter_config, + json_extract_path_text(detail.Properties, 'Timeout') as timeout, + json_extract_path_text(detail.Properties, 'Handler') as handler, + json_extract_path_text(detail.Properties, 'SnapStartResponse') as snap_start_response, + json_extract_path_text(detail.Properties, 'Code') as code, + json_extract_path_text(detail.Properties, 'Role') as role, + json_extract_path_text(detail.Properties, 'LoggingConfig') as logging_config, + json_extract_path_text(detail.Properties, 'Environment') as environment, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'EphemeralStorage') as ephemeral_storage, + json_extract_path_text(detail.Properties, 'Architectures') as architectures + 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::Lambda::Function' + AND detail.data__TypeName = 'AWS::Lambda::Function' + AND listing.region = 'us-east-1' layer_versions: name: layer_versions id: aws.lambda.layer_versions @@ -3063,10 +3437,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LayerVersionArn') as layer_version_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CompatibleRuntimes') as compatible_runtimes, + JSON_EXTRACT(detail.Properties, '$.LicenseInfo') as license_info, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.LayerName') as layer_name, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.LayerVersionArn') as layer_version_arn, + JSON_EXTRACT(detail.Properties, '$.CompatibleArchitectures') as compatible_architectures + 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::Lambda::LayerVersion' + AND detail.data__TypeName = 'AWS::Lambda::LayerVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3087,10 +3472,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LayerVersionArn') as layer_version_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CompatibleRuntimes') as compatible_runtimes, + json_extract_path_text(detail.Properties, 'LicenseInfo') as license_info, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'LayerName') as layer_name, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'LayerVersionArn') as layer_version_arn, + json_extract_path_text(detail.Properties, 'CompatibleArchitectures') as compatible_architectures + 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::Lambda::LayerVersion' + AND detail.data__TypeName = 'AWS::Lambda::LayerVersion' + AND listing.region = 'us-east-1' + layer_versions_list_only: + name: layer_versions_list_only + id: aws.lambda.layer_versions_list_only + x-cfn-schema-name: LayerVersion + x-cfn-type-name: AWS::Lambda::LayerVersion + x-identifiers: + - LayerVersionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LayerVersionArn') as layer_version_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LayerVersionArn') as layer_version_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersion' + AND region = 'us-east-1' layer_version_permissions: name: layer_version_permissions id: aws.lambda.layer_version_permissions @@ -3153,10 +3580,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersionPermission' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.LayerVersionArn') as layer_version_arn, + JSON_EXTRACT(detail.Properties, '$.OrganizationId') as organization_id, + JSON_EXTRACT(detail.Properties, '$.Principal') as principal + 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::Lambda::LayerVersionPermission' + AND detail.data__TypeName = 'AWS::Lambda::LayerVersionPermission' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3175,10 +3611,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersionPermission' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'LayerVersionArn') as layer_version_arn, + json_extract_path_text(detail.Properties, 'OrganizationId') as organization_id, + json_extract_path_text(detail.Properties, 'Principal') as principal + 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::Lambda::LayerVersionPermission' + AND detail.data__TypeName = 'AWS::Lambda::LayerVersionPermission' + AND listing.region = 'us-east-1' + layer_version_permissions_list_only: + name: layer_version_permissions_list_only + id: aws.lambda.layer_version_permissions_list_only + x-cfn-schema-name: LayerVersionPermission + x-cfn-type-name: AWS::Lambda::LayerVersionPermission + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersionPermission' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::LayerVersionPermission' + AND region = 'us-east-1' permissions: name: permissions id: aws.lambda.permissions @@ -3246,11 +3722,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FunctionName') as function_name, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Permission' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.EventSourceToken') as event_source_token, + JSON_EXTRACT(detail.Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(detail.Properties, '$.FunctionUrlAuthType') as function_url_auth_type, + JSON_EXTRACT(detail.Properties, '$.Principal') as principal, + JSON_EXTRACT(detail.Properties, '$.PrincipalOrgID') as principal_org_id, + JSON_EXTRACT(detail.Properties, '$.SourceAccount') as source_account, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn + 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::Lambda::Permission' + AND detail.data__TypeName = 'AWS::Lambda::Permission' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3273,11 +3761,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FunctionName') as function_name, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Permission' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'EventSourceToken') as event_source_token, + json_extract_path_text(detail.Properties, 'FunctionName') as function_name, + json_extract_path_text(detail.Properties, 'FunctionUrlAuthType') as function_url_auth_type, + json_extract_path_text(detail.Properties, 'Principal') as principal, + json_extract_path_text(detail.Properties, 'PrincipalOrgID') as principal_org_id, + json_extract_path_text(detail.Properties, 'SourceAccount') as source_account, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn + 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::Lambda::Permission' + AND detail.data__TypeName = 'AWS::Lambda::Permission' + AND listing.region = 'us-east-1' + permissions_list_only: + name: permissions_list_only + id: aws.lambda.permissions_list_only + x-cfn-schema-name: Permission + x-cfn-type-name: AWS::Lambda::Permission + x-identifiers: + - FunctionName + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Permission' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FunctionName') as function_name, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Permission' + AND region = 'us-east-1' urls: name: urls id: aws.lambda.urls @@ -3355,10 +3889,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FunctionArn') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Url' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TargetFunctionArn') as target_function_arn, + JSON_EXTRACT(detail.Properties, '$.Qualifier') as qualifier, + JSON_EXTRACT(detail.Properties, '$.AuthType') as auth_type, + JSON_EXTRACT(detail.Properties, '$.InvokeMode') as invoke_mode, + JSON_EXTRACT(detail.Properties, '$.FunctionArn') as function_arn, + JSON_EXTRACT(detail.Properties, '$.FunctionUrl') as function_url, + JSON_EXTRACT(detail.Properties, '$.Cors') as cors + 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::Lambda::Url' + AND detail.data__TypeName = 'AWS::Lambda::Url' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3379,10 +3924,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FunctionArn') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Url' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TargetFunctionArn') as target_function_arn, + json_extract_path_text(detail.Properties, 'Qualifier') as qualifier, + json_extract_path_text(detail.Properties, 'AuthType') as auth_type, + json_extract_path_text(detail.Properties, 'InvokeMode') as invoke_mode, + json_extract_path_text(detail.Properties, 'FunctionArn') as function_arn, + json_extract_path_text(detail.Properties, 'FunctionUrl') as function_url, + json_extract_path_text(detail.Properties, 'Cors') as cors + 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::Lambda::Url' + AND detail.data__TypeName = 'AWS::Lambda::Url' + AND listing.region = 'us-east-1' + urls_list_only: + name: urls_list_only + id: aws.lambda.urls_list_only + x-cfn-schema-name: Url + x-cfn-type-name: AWS::Lambda::Url + x-identifiers: + - FunctionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FunctionArn') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Url' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FunctionArn') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Url' + AND region = 'us-east-1' versions: name: versions id: aws.lambda.versions @@ -3448,10 +4035,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FunctionArn') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Version' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FunctionArn') as function_arn, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.CodeSha256') as code_sha256, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FunctionName') as function_name, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.ProvisionedConcurrencyConfig') as provisioned_concurrency_config, + JSON_EXTRACT(detail.Properties, '$.RuntimePolicy') as runtime_policy + 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::Lambda::Version' + AND detail.data__TypeName = 'AWS::Lambda::Version' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3473,10 +4072,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FunctionArn') as function_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Version' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FunctionArn') as function_arn, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'CodeSha256') as code_sha256, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FunctionName') as function_name, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'ProvisionedConcurrencyConfig') as provisioned_concurrency_config, + json_extract_path_text(detail.Properties, 'RuntimePolicy') as runtime_policy + 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::Lambda::Version' + AND detail.data__TypeName = 'AWS::Lambda::Version' + AND listing.region = 'us-east-1' + versions_list_only: + name: versions_list_only + id: aws.lambda.versions_list_only + x-cfn-schema-name: Version + x-cfn-type-name: AWS::Lambda::Version + x-identifiers: + - FunctionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FunctionArn') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Version' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FunctionArn') as function_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lambda::Version' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/lex.yaml b/providers/src/aws/v00.00.00000/services/lex.yaml index fa91e5b0..c4041713 100644 --- a/providers/src/aws/v00.00.00000/services/lex.yaml +++ b/providers/src/aws/v00.00.00000/services/lex.yaml @@ -2615,10 +2615,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::Bot' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.DataPrivacy') as data_privacy, + JSON_EXTRACT(detail.Properties, '$.IdleSessionTTLInSeconds') as idle_session_ttl_in_seconds, + JSON_EXTRACT(detail.Properties, '$.BotLocales') as bot_locales, + JSON_EXTRACT(detail.Properties, '$.BotFileS3Location') as bot_file_s3_location, + JSON_EXTRACT(detail.Properties, '$.BotTags') as bot_tags, + JSON_EXTRACT(detail.Properties, '$.TestBotAliasTags') as test_bot_alias_tags, + JSON_EXTRACT(detail.Properties, '$.AutoBuildBotLocales') as auto_build_bot_locales, + JSON_EXTRACT(detail.Properties, '$.TestBotAliasSettings') as test_bot_alias_settings + 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::Lex::Bot' + AND detail.data__TypeName = 'AWS::Lex::Bot' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2645,10 +2662,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::Bot' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'DataPrivacy') as data_privacy, + json_extract_path_text(detail.Properties, 'IdleSessionTTLInSeconds') as idle_session_ttl_in_seconds, + json_extract_path_text(detail.Properties, 'BotLocales') as bot_locales, + json_extract_path_text(detail.Properties, 'BotFileS3Location') as bot_file_s3_location, + json_extract_path_text(detail.Properties, 'BotTags') as bot_tags, + json_extract_path_text(detail.Properties, 'TestBotAliasTags') as test_bot_alias_tags, + json_extract_path_text(detail.Properties, 'AutoBuildBotLocales') as auto_build_bot_locales, + json_extract_path_text(detail.Properties, 'TestBotAliasSettings') as test_bot_alias_settings + 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::Lex::Bot' + AND detail.data__TypeName = 'AWS::Lex::Bot' + AND listing.region = 'us-east-1' + bots_list_only: + name: bots_list_only + id: aws.lex.bots_list_only + x-cfn-schema-name: Bot + x-cfn-type-name: AWS::Lex::Bot + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::Bot' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::Bot' + AND region = 'us-east-1' bot_versions: name: bot_versions id: aws.lex.bot_versions @@ -2711,11 +2776,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BotId') as bot_id, - JSON_EXTRACT(Properties, '$.BotVersion') as bot_version - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BotId') as bot_id, + JSON_EXTRACT(detail.Properties, '$.BotVersion') as bot_version, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.BotVersionLocaleSpecification') as bot_version_locale_specification + 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::Lex::BotVersion' + AND detail.data__TypeName = 'AWS::Lex::BotVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2733,11 +2805,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BotId') as bot_id, - json_extract_path_text(Properties, 'BotVersion') as bot_version - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BotId') as bot_id, + json_extract_path_text(detail.Properties, 'BotVersion') as bot_version, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'BotVersionLocaleSpecification') as bot_version_locale_specification + 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::Lex::BotVersion' + AND detail.data__TypeName = 'AWS::Lex::BotVersion' + AND listing.region = 'us-east-1' + bot_versions_list_only: + name: bot_versions_list_only + id: aws.lex.bot_versions_list_only + x-cfn-schema-name: BotVersion + x-cfn-type-name: AWS::Lex::BotVersion + x-identifiers: + - BotId + - BotVersion + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BotId') as bot_id, + JSON_EXTRACT(Properties, '$.BotVersion') as bot_version + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BotId') as bot_id, + json_extract_path_text(Properties, 'BotVersion') as bot_version + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotVersion' + AND region = 'us-east-1' bot_aliases: name: bot_aliases id: aws.lex.bot_aliases @@ -2820,11 +2933,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BotAliasId') as bot_alias_id, - JSON_EXTRACT(Properties, '$.BotId') as bot_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotAlias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BotAliasId') as bot_alias_id, + JSON_EXTRACT(detail.Properties, '$.BotId') as bot_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.BotAliasStatus') as bot_alias_status, + JSON_EXTRACT(detail.Properties, '$.BotAliasLocaleSettings') as bot_alias_locale_settings, + JSON_EXTRACT(detail.Properties, '$.BotAliasName') as bot_alias_name, + JSON_EXTRACT(detail.Properties, '$.BotVersion') as bot_version, + JSON_EXTRACT(detail.Properties, '$.ConversationLogSettings') as conversation_log_settings, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SentimentAnalysisSettings') as sentiment_analysis_settings, + JSON_EXTRACT(detail.Properties, '$.BotAliasTags') as bot_alias_tags + 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::Lex::BotAlias' + AND detail.data__TypeName = 'AWS::Lex::BotAlias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2849,11 +2976,59 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BotAliasId') as bot_alias_id, - json_extract_path_text(Properties, 'BotId') as bot_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotAlias' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BotAliasId') as bot_alias_id, + json_extract_path_text(detail.Properties, 'BotId') as bot_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'BotAliasStatus') as bot_alias_status, + json_extract_path_text(detail.Properties, 'BotAliasLocaleSettings') as bot_alias_locale_settings, + json_extract_path_text(detail.Properties, 'BotAliasName') as bot_alias_name, + json_extract_path_text(detail.Properties, 'BotVersion') as bot_version, + json_extract_path_text(detail.Properties, 'ConversationLogSettings') as conversation_log_settings, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SentimentAnalysisSettings') as sentiment_analysis_settings, + json_extract_path_text(detail.Properties, 'BotAliasTags') as bot_alias_tags + 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::Lex::BotAlias' + AND detail.data__TypeName = 'AWS::Lex::BotAlias' + AND listing.region = 'us-east-1' + bot_aliases_list_only: + name: bot_aliases_list_only + id: aws.lex.bot_aliases_list_only + x-cfn-schema-name: BotAlias + x-cfn-type-name: AWS::Lex::BotAlias + x-identifiers: + - BotAliasId + - BotId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BotAliasId') as bot_alias_id, + JSON_EXTRACT(Properties, '$.BotId') as bot_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotAlias' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BotAliasId') as bot_alias_id, + json_extract_path_text(Properties, 'BotId') as bot_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::BotAlias' + AND region = 'us-east-1' resource_policies: name: resource_policies id: aws.lex.resource_policies @@ -2928,10 +3103,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.RevisionId') as revision_id, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::Lex::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Lex::ResourcePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2949,10 +3132,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'RevisionId') as revision_id, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'Id') as id + 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::Lex::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Lex::ResourcePolicy' + AND listing.region = 'us-east-1' + resource_policies_list_only: + name: resource_policies_list_only + id: aws.lex.resource_policies_list_only + x-cfn-schema-name: ResourcePolicy + x-cfn-type-name: AWS::Lex::ResourcePolicy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::ResourcePolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lex::ResourcePolicy' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/licensemanager.yaml b/providers/src/aws/v00.00.00000/services/licensemanager.yaml index c12fcf0f..33838294 100644 --- a/providers/src/aws/v00.00.00000/services/licensemanager.yaml +++ b/providers/src/aws/v00.00.00000/services/licensemanager.yaml @@ -798,10 +798,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GrantArn') as grant_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::Grant' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GrantArn') as grant_arn, + JSON_EXTRACT(detail.Properties, '$.GrantName') as grant_name, + JSON_EXTRACT(detail.Properties, '$.LicenseArn') as license_arn, + JSON_EXTRACT(detail.Properties, '$.HomeRegion') as home_region, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.AllowedOperations') as allowed_operations, + JSON_EXTRACT(detail.Properties, '$.Principals') as principals, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::LicenseManager::Grant' + AND detail.data__TypeName = 'AWS::LicenseManager::Grant' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -823,10 +835,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GrantArn') as grant_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::Grant' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GrantArn') as grant_arn, + json_extract_path_text(detail.Properties, 'GrantName') as grant_name, + json_extract_path_text(detail.Properties, 'LicenseArn') as license_arn, + json_extract_path_text(detail.Properties, 'HomeRegion') as home_region, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'AllowedOperations') as allowed_operations, + json_extract_path_text(detail.Properties, 'Principals') as principals, + json_extract_path_text(detail.Properties, 'Status') as status + 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::LicenseManager::Grant' + AND detail.data__TypeName = 'AWS::LicenseManager::Grant' + AND listing.region = 'us-east-1' + grants_list_only: + name: grants_list_only + id: aws.licensemanager.grants_list_only + x-cfn-schema-name: Grant + x-cfn-type-name: AWS::LicenseManager::Grant + x-identifiers: + - GrantArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GrantArn') as grant_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::Grant' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GrantArn') as grant_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::Grant' + AND region = 'us-east-1' licenses: name: licenses id: aws.licensemanager.licenses @@ -910,10 +965,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LicenseArn') as license_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::License' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProductSKU') as product_sku, + JSON_EXTRACT(detail.Properties, '$.Issuer') as issuer, + JSON_EXTRACT(detail.Properties, '$.LicenseName') as license_name, + JSON_EXTRACT(detail.Properties, '$.ProductName') as product_name, + JSON_EXTRACT(detail.Properties, '$.HomeRegion') as home_region, + JSON_EXTRACT(detail.Properties, '$.Validity') as validity, + JSON_EXTRACT(detail.Properties, '$.Entitlements') as entitlements, + JSON_EXTRACT(detail.Properties, '$.Beneficiary') as beneficiary, + JSON_EXTRACT(detail.Properties, '$.ConsumptionConfiguration') as consumption_configuration, + JSON_EXTRACT(detail.Properties, '$.LicenseMetadata') as license_metadata, + JSON_EXTRACT(detail.Properties, '$.LicenseArn') as license_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Version') as version + 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::LicenseManager::License' + AND detail.data__TypeName = 'AWS::LicenseManager::License' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -940,10 +1012,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LicenseArn') as license_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::License' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProductSKU') as product_sku, + json_extract_path_text(detail.Properties, 'Issuer') as issuer, + json_extract_path_text(detail.Properties, 'LicenseName') as license_name, + json_extract_path_text(detail.Properties, 'ProductName') as product_name, + json_extract_path_text(detail.Properties, 'HomeRegion') as home_region, + json_extract_path_text(detail.Properties, 'Validity') as validity, + json_extract_path_text(detail.Properties, 'Entitlements') as entitlements, + json_extract_path_text(detail.Properties, 'Beneficiary') as beneficiary, + json_extract_path_text(detail.Properties, 'ConsumptionConfiguration') as consumption_configuration, + json_extract_path_text(detail.Properties, 'LicenseMetadata') as license_metadata, + json_extract_path_text(detail.Properties, 'LicenseArn') as license_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Version') as version + 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::LicenseManager::License' + AND detail.data__TypeName = 'AWS::LicenseManager::License' + AND listing.region = 'us-east-1' + licenses_list_only: + name: licenses_list_only + id: aws.licensemanager.licenses_list_only + x-cfn-schema-name: License + x-cfn-type-name: AWS::LicenseManager::License + x-identifiers: + - LicenseArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LicenseArn') as license_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::License' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LicenseArn') as license_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LicenseManager::License' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/lightsail.yaml b/providers/src/aws/v00.00.00000/services/lightsail.yaml index 4048370a..acbdfdda 100644 --- a/providers/src/aws/v00.00.00000/services/lightsail.yaml +++ b/providers/src/aws/v00.00.00000/services/lightsail.yaml @@ -2468,10 +2468,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AlarmName') as alarm_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Alarm' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AlarmName') as alarm_name, + JSON_EXTRACT(detail.Properties, '$.MonitoredResourceName') as monitored_resource_name, + JSON_EXTRACT(detail.Properties, '$.MetricName') as metric_name, + JSON_EXTRACT(detail.Properties, '$.ComparisonOperator') as comparison_operator, + JSON_EXTRACT(detail.Properties, '$.ContactProtocols') as contact_protocols, + JSON_EXTRACT(detail.Properties, '$.AlarmArn') as alarm_arn, + JSON_EXTRACT(detail.Properties, '$.DatapointsToAlarm') as datapoints_to_alarm, + JSON_EXTRACT(detail.Properties, '$.EvaluationPeriods') as evaluation_periods, + JSON_EXTRACT(detail.Properties, '$.NotificationEnabled') as notification_enabled, + JSON_EXTRACT(detail.Properties, '$.NotificationTriggers') as notification_triggers, + JSON_EXTRACT(detail.Properties, '$.Threshold') as threshold, + JSON_EXTRACT(detail.Properties, '$.TreatMissingData') as treat_missing_data, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::Lightsail::Alarm' + AND detail.data__TypeName = 'AWS::Lightsail::Alarm' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2498,10 +2515,58 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AlarmName') as alarm_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Alarm' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AlarmName') as alarm_name, + json_extract_path_text(detail.Properties, 'MonitoredResourceName') as monitored_resource_name, + json_extract_path_text(detail.Properties, 'MetricName') as metric_name, + json_extract_path_text(detail.Properties, 'ComparisonOperator') as comparison_operator, + json_extract_path_text(detail.Properties, 'ContactProtocols') as contact_protocols, + json_extract_path_text(detail.Properties, 'AlarmArn') as alarm_arn, + json_extract_path_text(detail.Properties, 'DatapointsToAlarm') as datapoints_to_alarm, + json_extract_path_text(detail.Properties, 'EvaluationPeriods') as evaluation_periods, + json_extract_path_text(detail.Properties, 'NotificationEnabled') as notification_enabled, + json_extract_path_text(detail.Properties, 'NotificationTriggers') as notification_triggers, + json_extract_path_text(detail.Properties, 'Threshold') as threshold, + json_extract_path_text(detail.Properties, 'TreatMissingData') as treat_missing_data, + json_extract_path_text(detail.Properties, 'State') as state + 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::Lightsail::Alarm' + AND detail.data__TypeName = 'AWS::Lightsail::Alarm' + AND listing.region = 'us-east-1' + alarms_list_only: + name: alarms_list_only + id: aws.lightsail.alarms_list_only + x-cfn-schema-name: Alarm + x-cfn-type-name: AWS::Lightsail::Alarm + x-identifiers: + - AlarmName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AlarmName') as alarm_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Alarm' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AlarmName') as alarm_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Alarm' + AND region = 'us-east-1' buckets: name: buckets id: aws.lightsail.buckets @@ -2582,10 +2647,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BucketName') as bucket_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Bucket' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.BundleId') as bundle_id, + JSON_EXTRACT(detail.Properties, '$.BucketArn') as bucket_arn, + JSON_EXTRACT(detail.Properties, '$.ObjectVersioning') as object_versioning, + JSON_EXTRACT(detail.Properties, '$.AccessRules') as access_rules, + JSON_EXTRACT(detail.Properties, '$.ResourcesReceivingAccess') as resources_receiving_access, + JSON_EXTRACT(detail.Properties, '$.ReadOnlyAccessAccounts') as read_only_access_accounts, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.AbleToUpdateBundle') as able_to_update_bundle + 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::Lightsail::Bucket' + AND detail.data__TypeName = 'AWS::Lightsail::Bucket' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2609,10 +2688,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BucketName') as bucket_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Bucket' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'BundleId') as bundle_id, + json_extract_path_text(detail.Properties, 'BucketArn') as bucket_arn, + json_extract_path_text(detail.Properties, 'ObjectVersioning') as object_versioning, + json_extract_path_text(detail.Properties, 'AccessRules') as access_rules, + json_extract_path_text(detail.Properties, 'ResourcesReceivingAccess') as resources_receiving_access, + json_extract_path_text(detail.Properties, 'ReadOnlyAccessAccounts') as read_only_access_accounts, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'AbleToUpdateBundle') as able_to_update_bundle + 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::Lightsail::Bucket' + AND detail.data__TypeName = 'AWS::Lightsail::Bucket' + AND listing.region = 'us-east-1' + buckets_list_only: + name: buckets_list_only + id: aws.lightsail.buckets_list_only + x-cfn-schema-name: Bucket + x-cfn-type-name: AWS::Lightsail::Bucket + x-identifiers: + - BucketName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BucketName') as bucket_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Bucket' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BucketName') as bucket_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Bucket' + AND region = 'us-east-1' + bucket_tags: + name: bucket_tags + id: aws.lightsail.bucket_tags + x-cfn-schema-name: Bucket + x-cfn-type-name: AWS::Lightsail::Bucket + 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, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.BundleId') as bundle_id, + JSON_EXTRACT(detail.Properties, '$.BucketArn') as bucket_arn, + JSON_EXTRACT(detail.Properties, '$.ObjectVersioning') as object_versioning, + JSON_EXTRACT(detail.Properties, '$.AccessRules') as access_rules, + JSON_EXTRACT(detail.Properties, '$.ResourcesReceivingAccess') as resources_receiving_access, + JSON_EXTRACT(detail.Properties, '$.ReadOnlyAccessAccounts') as read_only_access_accounts, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.AbleToUpdateBundle') as able_to_update_bundle + 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::Lightsail::Bucket' + AND detail.data__TypeName = 'AWS::Lightsail::Bucket' + 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, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'BundleId') as bundle_id, + json_extract_path_text(detail.Properties, 'BucketArn') as bucket_arn, + json_extract_path_text(detail.Properties, 'ObjectVersioning') as object_versioning, + json_extract_path_text(detail.Properties, 'AccessRules') as access_rules, + json_extract_path_text(detail.Properties, 'ResourcesReceivingAccess') as resources_receiving_access, + json_extract_path_text(detail.Properties, 'ReadOnlyAccessAccounts') as read_only_access_accounts, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'AbleToUpdateBundle') as able_to_update_bundle + 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::Lightsail::Bucket' + AND detail.data__TypeName = 'AWS::Lightsail::Bucket' + AND listing.region = 'us-east-1' certificates: name: certificates id: aws.lightsail.certificates @@ -2689,10 +2874,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CertificateName') as certificate_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Certificate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CertificateName') as certificate_name, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.SubjectAlternativeNames') as subject_alternative_names, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Lightsail::Certificate' + AND detail.data__TypeName = 'AWS::Lightsail::Certificate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2712,10 +2907,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CertificateName') as certificate_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Certificate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CertificateName') as certificate_name, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'SubjectAlternativeNames') as subject_alternative_names, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Lightsail::Certificate' + AND detail.data__TypeName = 'AWS::Lightsail::Certificate' + AND listing.region = 'us-east-1' + certificates_list_only: + name: certificates_list_only + id: aws.lightsail.certificates_list_only + x-cfn-schema-name: Certificate + x-cfn-type-name: AWS::Lightsail::Certificate + x-identifiers: + - CertificateName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CertificateName') as certificate_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Certificate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CertificateName') as certificate_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Certificate' + AND region = 'us-east-1' + certificate_tags: + name: certificate_tags + id: aws.lightsail.certificate_tags + x-cfn-schema-name: Certificate + x-cfn-type-name: AWS::Lightsail::Certificate + 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, '$.CertificateName') as certificate_name, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.SubjectAlternativeNames') as subject_alternative_names, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Lightsail::Certificate' + AND detail.data__TypeName = 'AWS::Lightsail::Certificate' + 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, 'CertificateName') as certificate_name, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'SubjectAlternativeNames') as subject_alternative_names, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Lightsail::Certificate' + AND detail.data__TypeName = 'AWS::Lightsail::Certificate' + AND listing.region = 'us-east-1' containers: name: containers id: aws.lightsail.containers @@ -2797,10 +3086,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServiceName') as service_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Container' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.Power') as power, + JSON_EXTRACT(detail.Properties, '$.ContainerArn') as container_arn, + JSON_EXTRACT(detail.Properties, '$.Scale') as scale, + JSON_EXTRACT(detail.Properties, '$.PublicDomainNames') as public_domain_names, + JSON_EXTRACT(detail.Properties, '$.ContainerServiceDeployment') as container_service_deployment, + JSON_EXTRACT(detail.Properties, '$.IsDisabled') as is_disabled, + JSON_EXTRACT(detail.Properties, '$.PrivateRegistryAccess') as private_registry_access, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.PrincipalArn') as principal_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Lightsail::Container' + AND detail.data__TypeName = 'AWS::Lightsail::Container' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2825,10 +3129,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServiceName') as service_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Container' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'Power') as power, + json_extract_path_text(detail.Properties, 'ContainerArn') as container_arn, + json_extract_path_text(detail.Properties, 'Scale') as scale, + json_extract_path_text(detail.Properties, 'PublicDomainNames') as public_domain_names, + json_extract_path_text(detail.Properties, 'ContainerServiceDeployment') as container_service_deployment, + json_extract_path_text(detail.Properties, 'IsDisabled') as is_disabled, + json_extract_path_text(detail.Properties, 'PrivateRegistryAccess') as private_registry_access, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'PrincipalArn') as principal_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Lightsail::Container' + AND detail.data__TypeName = 'AWS::Lightsail::Container' + AND listing.region = 'us-east-1' + containers_list_only: + name: containers_list_only + id: aws.lightsail.containers_list_only + x-cfn-schema-name: Container + x-cfn-type-name: AWS::Lightsail::Container + x-identifiers: + - ServiceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServiceName') as service_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Container' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServiceName') as service_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Container' + AND region = 'us-east-1' + container_tags: + name: container_tags + id: aws.lightsail.container_tags + x-cfn-schema-name: Container + x-cfn-type-name: AWS::Lightsail::Container + 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, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.Power') as power, + JSON_EXTRACT(detail.Properties, '$.ContainerArn') as container_arn, + JSON_EXTRACT(detail.Properties, '$.Scale') as scale, + JSON_EXTRACT(detail.Properties, '$.PublicDomainNames') as public_domain_names, + JSON_EXTRACT(detail.Properties, '$.ContainerServiceDeployment') as container_service_deployment, + JSON_EXTRACT(detail.Properties, '$.IsDisabled') as is_disabled, + JSON_EXTRACT(detail.Properties, '$.PrivateRegistryAccess') as private_registry_access, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.PrincipalArn') as principal_arn + 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::Lightsail::Container' + AND detail.data__TypeName = 'AWS::Lightsail::Container' + 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, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'Power') as power, + json_extract_path_text(detail.Properties, 'ContainerArn') as container_arn, + json_extract_path_text(detail.Properties, 'Scale') as scale, + json_extract_path_text(detail.Properties, 'PublicDomainNames') as public_domain_names, + json_extract_path_text(detail.Properties, 'ContainerServiceDeployment') as container_service_deployment, + json_extract_path_text(detail.Properties, 'IsDisabled') as is_disabled, + json_extract_path_text(detail.Properties, 'PrivateRegistryAccess') as private_registry_access, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'PrincipalArn') as principal_arn + 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::Lightsail::Container' + AND detail.data__TypeName = 'AWS::Lightsail::Container' + AND listing.region = 'us-east-1' databases: name: databases id: aws.lightsail.databases @@ -2915,10 +3328,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RelationalDatabaseName') as relational_database_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Database' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RelationalDatabaseName') as relational_database_name, + JSON_EXTRACT(detail.Properties, '$.DatabaseArn') as database_arn, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.RelationalDatabaseBlueprintId') as relational_database_blueprint_id, + JSON_EXTRACT(detail.Properties, '$.RelationalDatabaseBundleId') as relational_database_bundle_id, + JSON_EXTRACT(detail.Properties, '$.MasterDatabaseName') as master_database_name, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.CaCertificateIdentifier') as ca_certificate_identifier, + JSON_EXTRACT(detail.Properties, '$.BackupRetention') as backup_retention, + JSON_EXTRACT(detail.Properties, '$.RotateMasterUserPassword') as rotate_master_user_password, + JSON_EXTRACT(detail.Properties, '$.RelationalDatabaseParameters') as relational_database_parameters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Lightsail::Database' + AND detail.data__TypeName = 'AWS::Lightsail::Database' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2948,10 +3381,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RelationalDatabaseName') as relational_database_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Database' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RelationalDatabaseName') as relational_database_name, + json_extract_path_text(detail.Properties, 'DatabaseArn') as database_arn, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'RelationalDatabaseBlueprintId') as relational_database_blueprint_id, + json_extract_path_text(detail.Properties, 'RelationalDatabaseBundleId') as relational_database_bundle_id, + json_extract_path_text(detail.Properties, 'MasterDatabaseName') as master_database_name, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'CaCertificateIdentifier') as ca_certificate_identifier, + json_extract_path_text(detail.Properties, 'BackupRetention') as backup_retention, + json_extract_path_text(detail.Properties, 'RotateMasterUserPassword') as rotate_master_user_password, + json_extract_path_text(detail.Properties, 'RelationalDatabaseParameters') as relational_database_parameters, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Lightsail::Database' + AND detail.data__TypeName = 'AWS::Lightsail::Database' + AND listing.region = 'us-east-1' + databases_list_only: + name: databases_list_only + id: aws.lightsail.databases_list_only + x-cfn-schema-name: Database + x-cfn-type-name: AWS::Lightsail::Database + x-identifiers: + - RelationalDatabaseName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RelationalDatabaseName') as relational_database_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Database' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RelationalDatabaseName') as relational_database_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Database' + AND region = 'us-east-1' + database_tags: + name: database_tags + id: aws.lightsail.database_tags + x-cfn-schema-name: Database + x-cfn-type-name: AWS::Lightsail::Database + 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, '$.RelationalDatabaseName') as relational_database_name, + JSON_EXTRACT(detail.Properties, '$.DatabaseArn') as database_arn, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.RelationalDatabaseBlueprintId') as relational_database_blueprint_id, + JSON_EXTRACT(detail.Properties, '$.RelationalDatabaseBundleId') as relational_database_bundle_id, + JSON_EXTRACT(detail.Properties, '$.MasterDatabaseName') as master_database_name, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.CaCertificateIdentifier') as ca_certificate_identifier, + JSON_EXTRACT(detail.Properties, '$.BackupRetention') as backup_retention, + JSON_EXTRACT(detail.Properties, '$.RotateMasterUserPassword') as rotate_master_user_password, + JSON_EXTRACT(detail.Properties, '$.RelationalDatabaseParameters') as relational_database_parameters + 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::Lightsail::Database' + AND detail.data__TypeName = 'AWS::Lightsail::Database' + 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, 'RelationalDatabaseName') as relational_database_name, + json_extract_path_text(detail.Properties, 'DatabaseArn') as database_arn, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'RelationalDatabaseBlueprintId') as relational_database_blueprint_id, + json_extract_path_text(detail.Properties, 'RelationalDatabaseBundleId') as relational_database_bundle_id, + json_extract_path_text(detail.Properties, 'MasterDatabaseName') as master_database_name, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'CaCertificateIdentifier') as ca_certificate_identifier, + json_extract_path_text(detail.Properties, 'BackupRetention') as backup_retention, + json_extract_path_text(detail.Properties, 'RotateMasterUserPassword') as rotate_master_user_password, + json_extract_path_text(detail.Properties, 'RelationalDatabaseParameters') as relational_database_parameters + 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::Lightsail::Database' + AND detail.data__TypeName = 'AWS::Lightsail::Database' + AND listing.region = 'us-east-1' distributions: name: distributions id: aws.lightsail.distributions @@ -3035,10 +3592,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DistributionName') as distribution_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Distribution' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DistributionName') as distribution_name, + JSON_EXTRACT(detail.Properties, '$.DistributionArn') as distribution_arn, + JSON_EXTRACT(detail.Properties, '$.BundleId') as bundle_id, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.CacheBehaviors') as cache_behaviors, + JSON_EXTRACT(detail.Properties, '$.CacheBehaviorSettings') as cache_behavior_settings, + JSON_EXTRACT(detail.Properties, '$.DefaultCacheBehavior') as default_cache_behavior, + JSON_EXTRACT(detail.Properties, '$.Origin') as origin, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.AbleToUpdateBundle') as able_to_update_bundle, + JSON_EXTRACT(detail.Properties, '$.IsEnabled') as is_enabled, + JSON_EXTRACT(detail.Properties, '$.CertificateName') as certificate_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Lightsail::Distribution' + AND detail.data__TypeName = 'AWS::Lightsail::Distribution' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3065,10 +3639,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DistributionName') as distribution_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Distribution' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DistributionName') as distribution_name, + json_extract_path_text(detail.Properties, 'DistributionArn') as distribution_arn, + json_extract_path_text(detail.Properties, 'BundleId') as bundle_id, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'CacheBehaviors') as cache_behaviors, + json_extract_path_text(detail.Properties, 'CacheBehaviorSettings') as cache_behavior_settings, + json_extract_path_text(detail.Properties, 'DefaultCacheBehavior') as default_cache_behavior, + json_extract_path_text(detail.Properties, 'Origin') as origin, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'AbleToUpdateBundle') as able_to_update_bundle, + json_extract_path_text(detail.Properties, 'IsEnabled') as is_enabled, + json_extract_path_text(detail.Properties, 'CertificateName') as certificate_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Lightsail::Distribution' + AND detail.data__TypeName = 'AWS::Lightsail::Distribution' + AND listing.region = 'us-east-1' + distributions_list_only: + name: distributions_list_only + id: aws.lightsail.distributions_list_only + x-cfn-schema-name: Distribution + x-cfn-type-name: AWS::Lightsail::Distribution + x-identifiers: + - DistributionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DistributionName') as distribution_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Distribution' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DistributionName') as distribution_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Distribution' + AND region = 'us-east-1' + distribution_tags: + name: distribution_tags + id: aws.lightsail.distribution_tags + x-cfn-schema-name: Distribution + x-cfn-type-name: AWS::Lightsail::Distribution + 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, '$.DistributionName') as distribution_name, + JSON_EXTRACT(detail.Properties, '$.DistributionArn') as distribution_arn, + JSON_EXTRACT(detail.Properties, '$.BundleId') as bundle_id, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.CacheBehaviors') as cache_behaviors, + JSON_EXTRACT(detail.Properties, '$.CacheBehaviorSettings') as cache_behavior_settings, + JSON_EXTRACT(detail.Properties, '$.DefaultCacheBehavior') as default_cache_behavior, + JSON_EXTRACT(detail.Properties, '$.Origin') as origin, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.AbleToUpdateBundle') as able_to_update_bundle, + JSON_EXTRACT(detail.Properties, '$.IsEnabled') as is_enabled, + JSON_EXTRACT(detail.Properties, '$.CertificateName') as certificate_name + 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::Lightsail::Distribution' + AND detail.data__TypeName = 'AWS::Lightsail::Distribution' + 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, 'DistributionName') as distribution_name, + json_extract_path_text(detail.Properties, 'DistributionArn') as distribution_arn, + json_extract_path_text(detail.Properties, 'BundleId') as bundle_id, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'CacheBehaviors') as cache_behaviors, + json_extract_path_text(detail.Properties, 'CacheBehaviorSettings') as cache_behavior_settings, + json_extract_path_text(detail.Properties, 'DefaultCacheBehavior') as default_cache_behavior, + json_extract_path_text(detail.Properties, 'Origin') as origin, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'AbleToUpdateBundle') as able_to_update_bundle, + json_extract_path_text(detail.Properties, 'IsEnabled') as is_enabled, + json_extract_path_text(detail.Properties, 'CertificateName') as certificate_name + 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::Lightsail::Distribution' + AND detail.data__TypeName = 'AWS::Lightsail::Distribution' + AND listing.region = 'us-east-1' instances: name: instances id: aws.lightsail.instances @@ -3160,10 +3849,35 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceName') as instance_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Instance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SupportCode') as support_code, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.IsStaticIp') as is_static_ip, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.PublicIpAddress') as public_ip_address, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Hardware') as hardware, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Networking') as networking, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.SshKeyName') as ssh_key_name, + JSON_EXTRACT(detail.Properties, '$.InstanceName') as instance_name, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.BundleId') as bundle_id, + JSON_EXTRACT(detail.Properties, '$.BlueprintId') as blueprint_id, + JSON_EXTRACT(detail.Properties, '$.AddOns') as add_ons, + JSON_EXTRACT(detail.Properties, '$.UserData') as user_data, + JSON_EXTRACT(detail.Properties, '$.KeyPairName') as key_pair_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn + 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::Lightsail::Instance' + AND detail.data__TypeName = 'AWS::Lightsail::Instance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3198,10 +3912,149 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceName') as instance_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Instance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SupportCode') as support_code, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'IsStaticIp') as is_static_ip, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'PublicIpAddress') as public_ip_address, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Hardware') as hardware, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Networking') as networking, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'SshKeyName') as ssh_key_name, + json_extract_path_text(detail.Properties, 'InstanceName') as instance_name, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'BundleId') as bundle_id, + json_extract_path_text(detail.Properties, 'BlueprintId') as blueprint_id, + json_extract_path_text(detail.Properties, 'AddOns') as add_ons, + json_extract_path_text(detail.Properties, 'UserData') as user_data, + json_extract_path_text(detail.Properties, 'KeyPairName') as key_pair_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn + 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::Lightsail::Instance' + AND detail.data__TypeName = 'AWS::Lightsail::Instance' + AND listing.region = 'us-east-1' + instances_list_only: + name: instances_list_only + id: aws.lightsail.instances_list_only + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::Lightsail::Instance + x-identifiers: + - InstanceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceName') as instance_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Instance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceName') as instance_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::Instance' + AND region = 'us-east-1' + instance_tags: + name: instance_tags + id: aws.lightsail.instance_tags + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::Lightsail::Instance + 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, '$.SupportCode') as support_code, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.IsStaticIp') as is_static_ip, + JSON_EXTRACT(detail.Properties, '$.PrivateIpAddress') as private_ip_address, + JSON_EXTRACT(detail.Properties, '$.PublicIpAddress') as public_ip_address, + JSON_EXTRACT(detail.Properties, '$.Ipv6Addresses') as ipv6_addresses, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Hardware') as hardware, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Networking') as networking, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.SshKeyName') as ssh_key_name, + JSON_EXTRACT(detail.Properties, '$.InstanceName') as instance_name, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.BundleId') as bundle_id, + JSON_EXTRACT(detail.Properties, '$.BlueprintId') as blueprint_id, + JSON_EXTRACT(detail.Properties, '$.AddOns') as add_ons, + JSON_EXTRACT(detail.Properties, '$.UserData') as user_data, + JSON_EXTRACT(detail.Properties, '$.KeyPairName') as key_pair_name, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn + 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::Lightsail::Instance' + AND detail.data__TypeName = 'AWS::Lightsail::Instance' + 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, 'SupportCode') as support_code, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'IsStaticIp') as is_static_ip, + json_extract_path_text(detail.Properties, 'PrivateIpAddress') as private_ip_address, + json_extract_path_text(detail.Properties, 'PublicIpAddress') as public_ip_address, + json_extract_path_text(detail.Properties, 'Ipv6Addresses') as ipv6_addresses, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Hardware') as hardware, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Networking') as networking, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'SshKeyName') as ssh_key_name, + json_extract_path_text(detail.Properties, 'InstanceName') as instance_name, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'BundleId') as bundle_id, + json_extract_path_text(detail.Properties, 'BlueprintId') as blueprint_id, + json_extract_path_text(detail.Properties, 'AddOns') as add_ons, + json_extract_path_text(detail.Properties, 'UserData') as user_data, + json_extract_path_text(detail.Properties, 'KeyPairName') as key_pair_name, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn + 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::Lightsail::Instance' + AND detail.data__TypeName = 'AWS::Lightsail::Instance' + AND listing.region = 'us-east-1' load_balancers: name: load_balancers id: aws.lightsail.load_balancers @@ -3282,10 +4135,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LoadBalancerName') as load_balancer_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerName') as load_balancer_name, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerArn') as load_balancer_arn, + JSON_EXTRACT(detail.Properties, '$.InstancePort') as instance_port, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.AttachedInstances') as attached_instances, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPath') as health_check_path, + JSON_EXTRACT(detail.Properties, '$.SessionStickinessEnabled') as session_stickiness_enabled, + JSON_EXTRACT(detail.Properties, '$.SessionStickinessLBCookieDurationSeconds') as session_stickiness_lb_cookie_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.TlsPolicyName') as tls_policy_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Lightsail::LoadBalancer' + AND detail.data__TypeName = 'AWS::Lightsail::LoadBalancer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3309,10 +4176,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LoadBalancerName') as load_balancer_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LoadBalancerName') as load_balancer_name, + json_extract_path_text(detail.Properties, 'LoadBalancerArn') as load_balancer_arn, + json_extract_path_text(detail.Properties, 'InstancePort') as instance_port, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'AttachedInstances') as attached_instances, + json_extract_path_text(detail.Properties, 'HealthCheckPath') as health_check_path, + json_extract_path_text(detail.Properties, 'SessionStickinessEnabled') as session_stickiness_enabled, + json_extract_path_text(detail.Properties, 'SessionStickinessLBCookieDurationSeconds') as session_stickiness_lb_cookie_duration_seconds, + json_extract_path_text(detail.Properties, 'TlsPolicyName') as tls_policy_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Lightsail::LoadBalancer' + AND detail.data__TypeName = 'AWS::Lightsail::LoadBalancer' + AND listing.region = 'us-east-1' + load_balancers_list_only: + name: load_balancers_list_only + id: aws.lightsail.load_balancers_list_only + x-cfn-schema-name: LoadBalancer + x-cfn-type-name: AWS::Lightsail::LoadBalancer + x-identifiers: + - LoadBalancerName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LoadBalancerName') as load_balancer_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LoadBalancerName') as load_balancer_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancer' + AND region = 'us-east-1' + load_balancer_tags: + name: load_balancer_tags + id: aws.lightsail.load_balancer_tags + x-cfn-schema-name: LoadBalancer + x-cfn-type-name: AWS::Lightsail::LoadBalancer + 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, '$.LoadBalancerName') as load_balancer_name, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerArn') as load_balancer_arn, + JSON_EXTRACT(detail.Properties, '$.InstancePort') as instance_port, + JSON_EXTRACT(detail.Properties, '$.IpAddressType') as ip_address_type, + JSON_EXTRACT(detail.Properties, '$.AttachedInstances') as attached_instances, + JSON_EXTRACT(detail.Properties, '$.HealthCheckPath') as health_check_path, + JSON_EXTRACT(detail.Properties, '$.SessionStickinessEnabled') as session_stickiness_enabled, + JSON_EXTRACT(detail.Properties, '$.SessionStickinessLBCookieDurationSeconds') as session_stickiness_lb_cookie_duration_seconds, + JSON_EXTRACT(detail.Properties, '$.TlsPolicyName') as tls_policy_name + 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::Lightsail::LoadBalancer' + AND detail.data__TypeName = 'AWS::Lightsail::LoadBalancer' + 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, 'LoadBalancerName') as load_balancer_name, + json_extract_path_text(detail.Properties, 'LoadBalancerArn') as load_balancer_arn, + json_extract_path_text(detail.Properties, 'InstancePort') as instance_port, + json_extract_path_text(detail.Properties, 'IpAddressType') as ip_address_type, + json_extract_path_text(detail.Properties, 'AttachedInstances') as attached_instances, + json_extract_path_text(detail.Properties, 'HealthCheckPath') as health_check_path, + json_extract_path_text(detail.Properties, 'SessionStickinessEnabled') as session_stickiness_enabled, + json_extract_path_text(detail.Properties, 'SessionStickinessLBCookieDurationSeconds') as session_stickiness_lb_cookie_duration_seconds, + json_extract_path_text(detail.Properties, 'TlsPolicyName') as tls_policy_name + 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::Lightsail::LoadBalancer' + AND detail.data__TypeName = 'AWS::Lightsail::LoadBalancer' + AND listing.region = 'us-east-1' load_balancer_tls_certificates: name: load_balancer_tls_certificates id: aws.lightsail.load_balancer_tls_certificates @@ -3392,11 +4365,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CertificateName') as certificate_name, - JSON_EXTRACT(Properties, '$.LoadBalancerName') as load_balancer_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancerTlsCertificate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerName') as load_balancer_name, + JSON_EXTRACT(detail.Properties, '$.CertificateName') as certificate_name, + JSON_EXTRACT(detail.Properties, '$.CertificateDomainName') as certificate_domain_name, + JSON_EXTRACT(detail.Properties, '$.CertificateAlternativeNames') as certificate_alternative_names, + JSON_EXTRACT(detail.Properties, '$.LoadBalancerTlsCertificateArn') as load_balancer_tls_certificate_arn, + JSON_EXTRACT(detail.Properties, '$.IsAttached') as is_attached, + JSON_EXTRACT(detail.Properties, '$.HttpsRedirectionEnabled') as https_redirection_enabled, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Lightsail::LoadBalancerTlsCertificate' + AND detail.data__TypeName = 'AWS::Lightsail::LoadBalancerTlsCertificate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3418,11 +4402,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CertificateName') as certificate_name, - json_extract_path_text(Properties, 'LoadBalancerName') as load_balancer_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancerTlsCertificate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LoadBalancerName') as load_balancer_name, + json_extract_path_text(detail.Properties, 'CertificateName') as certificate_name, + json_extract_path_text(detail.Properties, 'CertificateDomainName') as certificate_domain_name, + json_extract_path_text(detail.Properties, 'CertificateAlternativeNames') as certificate_alternative_names, + json_extract_path_text(detail.Properties, 'LoadBalancerTlsCertificateArn') as load_balancer_tls_certificate_arn, + json_extract_path_text(detail.Properties, 'IsAttached') as is_attached, + json_extract_path_text(detail.Properties, 'HttpsRedirectionEnabled') as https_redirection_enabled, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Lightsail::LoadBalancerTlsCertificate' + AND detail.data__TypeName = 'AWS::Lightsail::LoadBalancerTlsCertificate' + AND listing.region = 'us-east-1' + load_balancer_tls_certificates_list_only: + name: load_balancer_tls_certificates_list_only + id: aws.lightsail.load_balancer_tls_certificates_list_only + x-cfn-schema-name: LoadBalancerTlsCertificate + x-cfn-type-name: AWS::Lightsail::LoadBalancerTlsCertificate + x-identifiers: + - CertificateName + - LoadBalancerName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CertificateName') as certificate_name, + JSON_EXTRACT(Properties, '$.LoadBalancerName') as load_balancer_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancerTlsCertificate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CertificateName') as certificate_name, + json_extract_path_text(Properties, 'LoadBalancerName') as load_balancer_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::LoadBalancerTlsCertificate' + AND region = 'us-east-1' static_ips: name: static_ips id: aws.lightsail.static_ips @@ -3498,10 +4527,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StaticIpName') as static_ip_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::StaticIp' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StaticIpName') as static_ip_name, + JSON_EXTRACT(detail.Properties, '$.AttachedTo') as attached_to, + JSON_EXTRACT(detail.Properties, '$.IsAttached') as is_attached, + JSON_EXTRACT(detail.Properties, '$.IpAddress') as ip_address, + JSON_EXTRACT(detail.Properties, '$.StaticIpArn') as static_ip_arn + 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::Lightsail::StaticIp' + AND detail.data__TypeName = 'AWS::Lightsail::StaticIp' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3520,10 +4558,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StaticIpName') as static_ip_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::StaticIp' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StaticIpName') as static_ip_name, + json_extract_path_text(detail.Properties, 'AttachedTo') as attached_to, + json_extract_path_text(detail.Properties, 'IsAttached') as is_attached, + json_extract_path_text(detail.Properties, 'IpAddress') as ip_address, + json_extract_path_text(detail.Properties, 'StaticIpArn') as static_ip_arn + 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::Lightsail::StaticIp' + AND detail.data__TypeName = 'AWS::Lightsail::StaticIp' + AND listing.region = 'us-east-1' + static_ips_list_only: + name: static_ips_list_only + id: aws.lightsail.static_ips_list_only + x-cfn-schema-name: StaticIp + x-cfn-type-name: AWS::Lightsail::StaticIp + x-identifiers: + - StaticIpName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StaticIpName') as static_ip_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::StaticIp' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StaticIpName') as static_ip_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Lightsail::StaticIp' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/location.yaml b/providers/src/aws/v00.00.00000/services/location.yaml index c129f19d..1a219880 100644 --- a/providers/src/aws/v00.00.00000/services/location.yaml +++ b/providers/src/aws/v00.00.00000/services/location.yaml @@ -1527,10 +1527,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KeyName') as key_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::APIKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ExpireTime') as expire_time, + JSON_EXTRACT(detail.Properties, '$.ForceUpdate') as force_update, + JSON_EXTRACT(detail.Properties, '$.KeyArn') as key_arn, + JSON_EXTRACT(detail.Properties, '$.KeyName') as key_name, + JSON_EXTRACT(detail.Properties, '$.NoExpiry') as no_expiry, + JSON_EXTRACT(detail.Properties, '$.Restrictions') as restrictions, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.ForceDelete') as force_delete, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::APIKey' + AND detail.data__TypeName = 'AWS::Location::APIKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1556,10 +1572,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KeyName') as key_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::APIKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ExpireTime') as expire_time, + json_extract_path_text(detail.Properties, 'ForceUpdate') as force_update, + json_extract_path_text(detail.Properties, 'KeyArn') as key_arn, + json_extract_path_text(detail.Properties, 'KeyName') as key_name, + json_extract_path_text(detail.Properties, 'NoExpiry') as no_expiry, + json_extract_path_text(detail.Properties, 'Restrictions') as restrictions, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'ForceDelete') as force_delete, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::APIKey' + AND detail.data__TypeName = 'AWS::Location::APIKey' + AND listing.region = 'us-east-1' + api_keys_list_only: + name: api_keys_list_only + id: aws.location.api_keys_list_only + x-cfn-schema-name: APIKey + x-cfn-type-name: AWS::Location::APIKey + x-identifiers: + - KeyName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KeyName') as key_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::APIKey' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KeyName') as key_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::APIKey' + AND region = 'us-east-1' + api_key_tags: + name: api_key_tags + id: aws.location.api_key_tags + x-cfn-schema-name: APIKey + x-cfn-type-name: AWS::Location::APIKey + 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, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ExpireTime') as expire_time, + JSON_EXTRACT(detail.Properties, '$.ForceUpdate') as force_update, + JSON_EXTRACT(detail.Properties, '$.KeyArn') as key_arn, + JSON_EXTRACT(detail.Properties, '$.KeyName') as key_name, + JSON_EXTRACT(detail.Properties, '$.NoExpiry') as no_expiry, + JSON_EXTRACT(detail.Properties, '$.Restrictions') as restrictions, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.ForceDelete') as force_delete, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::APIKey' + AND detail.data__TypeName = 'AWS::Location::APIKey' + 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, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ExpireTime') as expire_time, + json_extract_path_text(detail.Properties, 'ForceUpdate') as force_update, + json_extract_path_text(detail.Properties, 'KeyArn') as key_arn, + json_extract_path_text(detail.Properties, 'KeyName') as key_name, + json_extract_path_text(detail.Properties, 'NoExpiry') as no_expiry, + json_extract_path_text(detail.Properties, 'Restrictions') as restrictions, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'ForceDelete') as force_delete, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::APIKey' + AND detail.data__TypeName = 'AWS::Location::APIKey' + AND listing.region = 'us-east-1' geofence_collections: name: geofence_collections id: aws.location.geofence_collections @@ -1640,10 +1768,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CollectionName') as collection_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::GeofenceCollection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CollectionArn') as collection_arn, + JSON_EXTRACT(detail.Properties, '$.CollectionName') as collection_name, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.PricingPlanDataSource') as pricing_plan_data_source, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::GeofenceCollection' + AND detail.data__TypeName = 'AWS::Location::GeofenceCollection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1667,10 +1809,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CollectionName') as collection_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::GeofenceCollection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CollectionArn') as collection_arn, + json_extract_path_text(detail.Properties, 'CollectionName') as collection_name, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'PricingPlanDataSource') as pricing_plan_data_source, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::GeofenceCollection' + AND detail.data__TypeName = 'AWS::Location::GeofenceCollection' + AND listing.region = 'us-east-1' + geofence_collections_list_only: + name: geofence_collections_list_only + id: aws.location.geofence_collections_list_only + x-cfn-schema-name: GeofenceCollection + x-cfn-type-name: AWS::Location::GeofenceCollection + x-identifiers: + - CollectionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CollectionName') as collection_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::GeofenceCollection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CollectionName') as collection_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::GeofenceCollection' + AND region = 'us-east-1' + geofence_collection_tags: + name: geofence_collection_tags + id: aws.location.geofence_collection_tags + x-cfn-schema-name: GeofenceCollection + x-cfn-type-name: AWS::Location::GeofenceCollection + 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, '$.CollectionArn') as collection_arn, + JSON_EXTRACT(detail.Properties, '$.CollectionName') as collection_name, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.PricingPlanDataSource') as pricing_plan_data_source, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::GeofenceCollection' + AND detail.data__TypeName = 'AWS::Location::GeofenceCollection' + 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, 'CollectionArn') as collection_arn, + json_extract_path_text(detail.Properties, 'CollectionName') as collection_name, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'PricingPlanDataSource') as pricing_plan_data_source, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::GeofenceCollection' + AND detail.data__TypeName = 'AWS::Location::GeofenceCollection' + AND listing.region = 'us-east-1' maps: name: maps id: aws.location.maps @@ -1750,10 +1998,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MapName') as map_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Map' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MapArn') as map_arn, + JSON_EXTRACT(detail.Properties, '$.MapName') as map_name, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::Map' + AND detail.data__TypeName = 'AWS::Location::Map' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1776,10 +2037,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MapName') as map_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Map' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MapArn') as map_arn, + json_extract_path_text(detail.Properties, 'MapName') as map_name, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::Map' + AND detail.data__TypeName = 'AWS::Location::Map' + AND listing.region = 'us-east-1' + maps_list_only: + name: maps_list_only + id: aws.location.maps_list_only + x-cfn-schema-name: Map + x-cfn-type-name: AWS::Location::Map + x-identifiers: + - MapName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MapName') as map_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Map' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MapName') as map_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Map' + AND region = 'us-east-1' + map_tags: + name: map_tags + id: aws.location.map_tags + x-cfn-schema-name: Map + x-cfn-type-name: AWS::Location::Map + 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, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.MapArn') as map_arn, + JSON_EXTRACT(detail.Properties, '$.MapName') as map_name, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::Map' + AND detail.data__TypeName = 'AWS::Location::Map' + 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, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'MapArn') as map_arn, + json_extract_path_text(detail.Properties, 'MapName') as map_name, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::Map' + AND detail.data__TypeName = 'AWS::Location::Map' + AND listing.region = 'us-east-1' place_indices: name: place_indices id: aws.location.place_indices @@ -1860,10 +2224,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IndexName') as index_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::PlaceIndex' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.DataSource') as data_source, + JSON_EXTRACT(detail.Properties, '$.DataSourceConfiguration') as data_source_configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IndexArn') as index_arn, + JSON_EXTRACT(detail.Properties, '$.IndexName') as index_name, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::PlaceIndex' + AND detail.data__TypeName = 'AWS::Location::PlaceIndex' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1887,10 +2265,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IndexName') as index_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::PlaceIndex' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'DataSource') as data_source, + json_extract_path_text(detail.Properties, 'DataSourceConfiguration') as data_source_configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IndexArn') as index_arn, + json_extract_path_text(detail.Properties, 'IndexName') as index_name, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::PlaceIndex' + AND detail.data__TypeName = 'AWS::Location::PlaceIndex' + AND listing.region = 'us-east-1' + place_indices_list_only: + name: place_indices_list_only + id: aws.location.place_indices_list_only + x-cfn-schema-name: PlaceIndex + x-cfn-type-name: AWS::Location::PlaceIndex + x-identifiers: + - IndexName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IndexName') as index_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::PlaceIndex' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IndexName') as index_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::PlaceIndex' + AND region = 'us-east-1' + place_index_tags: + name: place_index_tags + id: aws.location.place_index_tags + x-cfn-schema-name: PlaceIndex + x-cfn-type-name: AWS::Location::PlaceIndex + 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, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.DataSource') as data_source, + JSON_EXTRACT(detail.Properties, '$.DataSourceConfiguration') as data_source_configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IndexArn') as index_arn, + JSON_EXTRACT(detail.Properties, '$.IndexName') as index_name, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::PlaceIndex' + AND detail.data__TypeName = 'AWS::Location::PlaceIndex' + 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, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'DataSource') as data_source, + json_extract_path_text(detail.Properties, 'DataSourceConfiguration') as data_source_configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IndexArn') as index_arn, + json_extract_path_text(detail.Properties, 'IndexName') as index_name, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::PlaceIndex' + AND detail.data__TypeName = 'AWS::Location::PlaceIndex' + AND listing.region = 'us-east-1' route_calculators: name: route_calculators id: aws.location.route_calculators @@ -1970,10 +2454,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CalculatorName') as calculator_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::RouteCalculator' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CalculatorArn') as calculator_arn, + JSON_EXTRACT(detail.Properties, '$.CalculatorName') as calculator_name, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.DataSource') as data_source, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::RouteCalculator' + AND detail.data__TypeName = 'AWS::Location::RouteCalculator' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1996,10 +2493,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CalculatorName') as calculator_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::RouteCalculator' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CalculatorArn') as calculator_arn, + json_extract_path_text(detail.Properties, 'CalculatorName') as calculator_name, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'DataSource') as data_source, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::RouteCalculator' + AND detail.data__TypeName = 'AWS::Location::RouteCalculator' + AND listing.region = 'us-east-1' + route_calculators_list_only: + name: route_calculators_list_only + id: aws.location.route_calculators_list_only + x-cfn-schema-name: RouteCalculator + x-cfn-type-name: AWS::Location::RouteCalculator + x-identifiers: + - CalculatorName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CalculatorName') as calculator_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::RouteCalculator' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CalculatorName') as calculator_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::RouteCalculator' + AND region = 'us-east-1' + route_calculator_tags: + name: route_calculator_tags + id: aws.location.route_calculator_tags + x-cfn-schema-name: RouteCalculator + x-cfn-type-name: AWS::Location::RouteCalculator + 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, '$.CalculatorArn') as calculator_arn, + JSON_EXTRACT(detail.Properties, '$.CalculatorName') as calculator_name, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.DataSource') as data_source, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::RouteCalculator' + AND detail.data__TypeName = 'AWS::Location::RouteCalculator' + 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, 'CalculatorArn') as calculator_arn, + json_extract_path_text(detail.Properties, 'CalculatorName') as calculator_name, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'DataSource') as data_source, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::RouteCalculator' + AND detail.data__TypeName = 'AWS::Location::RouteCalculator' + AND listing.region = 'us-east-1' trackers: name: trackers id: aws.location.trackers @@ -2083,10 +2683,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrackerName') as tracker_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Tracker' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EventBridgeEnabled') as event_bridge_enabled, + JSON_EXTRACT(detail.Properties, '$.KmsKeyEnableGeospatialQueries') as kms_key_enable_geospatial_queries, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.PositionFiltering') as position_filtering, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.PricingPlanDataSource') as pricing_plan_data_source, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrackerArn') as tracker_arn, + JSON_EXTRACT(detail.Properties, '$.TrackerName') as tracker_name, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::Tracker' + AND detail.data__TypeName = 'AWS::Location::Tracker' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2113,10 +2730,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrackerName') as tracker_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Tracker' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EventBridgeEnabled') as event_bridge_enabled, + json_extract_path_text(detail.Properties, 'KmsKeyEnableGeospatialQueries') as kms_key_enable_geospatial_queries, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'PositionFiltering') as position_filtering, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'PricingPlanDataSource') as pricing_plan_data_source, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrackerArn') as tracker_arn, + json_extract_path_text(detail.Properties, 'TrackerName') as tracker_name, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::Tracker' + AND detail.data__TypeName = 'AWS::Location::Tracker' + AND listing.region = 'us-east-1' + trackers_list_only: + name: trackers_list_only + id: aws.location.trackers_list_only + x-cfn-schema-name: Tracker + x-cfn-type-name: AWS::Location::Tracker + x-identifiers: + - TrackerName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrackerName') as tracker_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Tracker' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrackerName') as tracker_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::Tracker' + AND region = 'us-east-1' + tracker_tags: + name: tracker_tags + id: aws.location.tracker_tags + x-cfn-schema-name: Tracker + x-cfn-type-name: AWS::Location::Tracker + 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, '$.CreateTime') as create_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EventBridgeEnabled') as event_bridge_enabled, + JSON_EXTRACT(detail.Properties, '$.KmsKeyEnableGeospatialQueries') as kms_key_enable_geospatial_queries, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.PositionFiltering') as position_filtering, + JSON_EXTRACT(detail.Properties, '$.PricingPlan') as pricing_plan, + JSON_EXTRACT(detail.Properties, '$.PricingPlanDataSource') as pricing_plan_data_source, + JSON_EXTRACT(detail.Properties, '$.TrackerArn') as tracker_arn, + JSON_EXTRACT(detail.Properties, '$.TrackerName') as tracker_name, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Location::Tracker' + AND detail.data__TypeName = 'AWS::Location::Tracker' + 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, 'CreateTime') as create_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EventBridgeEnabled') as event_bridge_enabled, + json_extract_path_text(detail.Properties, 'KmsKeyEnableGeospatialQueries') as kms_key_enable_geospatial_queries, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'PositionFiltering') as position_filtering, + json_extract_path_text(detail.Properties, 'PricingPlan') as pricing_plan, + json_extract_path_text(detail.Properties, 'PricingPlanDataSource') as pricing_plan_data_source, + json_extract_path_text(detail.Properties, 'TrackerArn') as tracker_arn, + json_extract_path_text(detail.Properties, 'TrackerName') as tracker_name, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Location::Tracker' + AND detail.data__TypeName = 'AWS::Location::Tracker' + AND listing.region = 'us-east-1' tracker_consumers: name: tracker_consumers id: aws.location.tracker_consumers @@ -2177,11 +2909,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrackerName') as tracker_name, - JSON_EXTRACT(Properties, '$.ConsumerArn') as consumer_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::TrackerConsumer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConsumerArn') as consumer_arn, + JSON_EXTRACT(detail.Properties, '$.TrackerName') as tracker_name + 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::Location::TrackerConsumer' + AND detail.data__TypeName = 'AWS::Location::TrackerConsumer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2197,11 +2934,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrackerName') as tracker_name, - json_extract_path_text(Properties, 'ConsumerArn') as consumer_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::TrackerConsumer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConsumerArn') as consumer_arn, + json_extract_path_text(detail.Properties, 'TrackerName') as tracker_name + 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::Location::TrackerConsumer' + AND detail.data__TypeName = 'AWS::Location::TrackerConsumer' + AND listing.region = 'us-east-1' + tracker_consumers_list_only: + name: tracker_consumers_list_only + id: aws.location.tracker_consumers_list_only + x-cfn-schema-name: TrackerConsumer + x-cfn-type-name: AWS::Location::TrackerConsumer + x-identifiers: + - TrackerName + - ConsumerArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrackerName') as tracker_name, + JSON_EXTRACT(Properties, '$.ConsumerArn') as consumer_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::TrackerConsumer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrackerName') as tracker_name, + json_extract_path_text(Properties, 'ConsumerArn') as consumer_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Location::TrackerConsumer' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/logs.yaml b/providers/src/aws/v00.00.00000/services/logs.yaml index d81f13b0..bcdc8654 100644 --- a/providers/src/aws/v00.00.00000/services/logs.yaml +++ b/providers/src/aws/v00.00.00000/services/logs.yaml @@ -1858,12 +1858,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id, - JSON_EXTRACT(Properties, '$.PolicyType') as policy_type, - JSON_EXTRACT(Properties, '$.PolicyName') as policy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::AccountPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.PolicyType') as policy_type, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.SelectionCriteria') as selection_criteria + 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::Logs::AccountPolicy' + AND detail.data__TypeName = 'AWS::Logs::AccountPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1883,12 +1891,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id, - json_extract_path_text(Properties, 'PolicyType') as policy_type, - json_extract_path_text(Properties, 'PolicyName') as policy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::AccountPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'PolicyType') as policy_type, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'SelectionCriteria') as selection_criteria + 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::Logs::AccountPolicy' + AND detail.data__TypeName = 'AWS::Logs::AccountPolicy' + AND listing.region = 'us-east-1' + account_policies_list_only: + name: account_policies_list_only + id: aws.logs.account_policies_list_only + x-cfn-schema-name: AccountPolicy + x-cfn-type-name: AWS::Logs::AccountPolicy + x-identifiers: + - AccountId + - PolicyType + - PolicyName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id, + JSON_EXTRACT(Properties, '$.PolicyType') as policy_type, + JSON_EXTRACT(Properties, '$.PolicyName') as policy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::AccountPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id, + json_extract_path_text(Properties, 'PolicyType') as policy_type, + json_extract_path_text(Properties, 'PolicyName') as policy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::AccountPolicy' + AND region = 'us-east-1' deliveries: name: deliveries id: aws.logs.deliveries @@ -1965,10 +2018,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DeliveryId') as delivery_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Delivery' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DeliveryId') as delivery_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DeliverySourceName') as delivery_source_name, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationArn') as delivery_destination_arn, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationType') as delivery_destination_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Logs::Delivery' + AND detail.data__TypeName = 'AWS::Logs::Delivery' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1988,10 +2051,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DeliveryId') as delivery_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Delivery' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DeliveryId') as delivery_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DeliverySourceName') as delivery_source_name, + json_extract_path_text(detail.Properties, 'DeliveryDestinationArn') as delivery_destination_arn, + json_extract_path_text(detail.Properties, 'DeliveryDestinationType') as delivery_destination_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Logs::Delivery' + AND detail.data__TypeName = 'AWS::Logs::Delivery' + AND listing.region = 'us-east-1' + deliveries_list_only: + name: deliveries_list_only + id: aws.logs.deliveries_list_only + x-cfn-schema-name: Delivery + x-cfn-type-name: AWS::Logs::Delivery + x-identifiers: + - DeliveryId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DeliveryId') as delivery_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Delivery' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DeliveryId') as delivery_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Delivery' + AND region = 'us-east-1' + delivery_tags: + name: delivery_tags + id: aws.logs.delivery_tags + x-cfn-schema-name: Delivery + x-cfn-type-name: AWS::Logs::Delivery + 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, '$.DeliveryId') as delivery_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DeliverySourceName') as delivery_source_name, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationArn') as delivery_destination_arn, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationType') as delivery_destination_type + 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::Logs::Delivery' + AND detail.data__TypeName = 'AWS::Logs::Delivery' + 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, 'DeliveryId') as delivery_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DeliverySourceName') as delivery_source_name, + json_extract_path_text(detail.Properties, 'DeliveryDestinationArn') as delivery_destination_arn, + json_extract_path_text(detail.Properties, 'DeliveryDestinationType') as delivery_destination_type + 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::Logs::Delivery' + AND detail.data__TypeName = 'AWS::Logs::Delivery' + AND listing.region = 'us-east-1' delivery_destinations: name: delivery_destinations id: aws.logs.delivery_destinations @@ -2068,10 +2225,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliveryDestination' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DestinationResourceArn') as destination_resource_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationType') as delivery_destination_type, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationPolicy') as delivery_destination_policy + 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::Logs::DeliveryDestination' + AND detail.data__TypeName = 'AWS::Logs::DeliveryDestination' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2091,10 +2258,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliveryDestination' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DestinationResourceArn') as destination_resource_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'DeliveryDestinationType') as delivery_destination_type, + json_extract_path_text(detail.Properties, 'DeliveryDestinationPolicy') as delivery_destination_policy + 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::Logs::DeliveryDestination' + AND detail.data__TypeName = 'AWS::Logs::DeliveryDestination' + AND listing.region = 'us-east-1' + delivery_destinations_list_only: + name: delivery_destinations_list_only + id: aws.logs.delivery_destinations_list_only + x-cfn-schema-name: DeliveryDestination + x-cfn-type-name: AWS::Logs::DeliveryDestination + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliveryDestination' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliveryDestination' + AND region = 'us-east-1' + delivery_destination_tags: + name: delivery_destination_tags + id: aws.logs.delivery_destination_tags + x-cfn-schema-name: DeliveryDestination + x-cfn-type-name: AWS::Logs::DeliveryDestination + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DestinationResourceArn') as destination_resource_arn, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationType') as delivery_destination_type, + JSON_EXTRACT(detail.Properties, '$.DeliveryDestinationPolicy') as delivery_destination_policy + 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::Logs::DeliveryDestination' + AND detail.data__TypeName = 'AWS::Logs::DeliveryDestination' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DestinationResourceArn') as destination_resource_arn, + json_extract_path_text(detail.Properties, 'DeliveryDestinationType') as delivery_destination_type, + json_extract_path_text(detail.Properties, 'DeliveryDestinationPolicy') as delivery_destination_policy + 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::Logs::DeliveryDestination' + AND detail.data__TypeName = 'AWS::Logs::DeliveryDestination' + AND listing.region = 'us-east-1' delivery_sources: name: delivery_sources id: aws.logs.delivery_sources @@ -2172,10 +2433,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliverySource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ResourceArns') as resource_arns, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.Service') as service, + JSON_EXTRACT(detail.Properties, '$.LogType') as log_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Logs::DeliverySource' + AND detail.data__TypeName = 'AWS::Logs::DeliverySource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2196,10 +2468,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliverySource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ResourceArns') as resource_arns, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'Service') as service, + json_extract_path_text(detail.Properties, 'LogType') as log_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Logs::DeliverySource' + AND detail.data__TypeName = 'AWS::Logs::DeliverySource' + AND listing.region = 'us-east-1' + delivery_sources_list_only: + name: delivery_sources_list_only + id: aws.logs.delivery_sources_list_only + x-cfn-schema-name: DeliverySource + x-cfn-type-name: AWS::Logs::DeliverySource + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliverySource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::DeliverySource' + AND region = 'us-east-1' + delivery_source_tags: + name: delivery_source_tags + id: aws.logs.delivery_source_tags + x-cfn-schema-name: DeliverySource + x-cfn-type-name: AWS::Logs::DeliverySource + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ResourceArns') as resource_arns, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.Service') as service, + JSON_EXTRACT(detail.Properties, '$.LogType') as log_type + 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::Logs::DeliverySource' + AND detail.data__TypeName = 'AWS::Logs::DeliverySource' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ResourceArns') as resource_arns, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'Service') as service, + json_extract_path_text(detail.Properties, 'LogType') as log_type + 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::Logs::DeliverySource' + AND detail.data__TypeName = 'AWS::Logs::DeliverySource' + AND listing.region = 'us-east-1' destinations: name: destinations id: aws.logs.destinations @@ -2275,10 +2644,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DestinationName') as destination_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Destination' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DestinationName') as destination_name, + JSON_EXTRACT(detail.Properties, '$.DestinationPolicy') as destination_policy, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn + 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::Logs::Destination' + AND detail.data__TypeName = 'AWS::Logs::Destination' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2297,10 +2675,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DestinationName') as destination_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Destination' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DestinationName') as destination_name, + json_extract_path_text(detail.Properties, 'DestinationPolicy') as destination_policy, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn + 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::Logs::Destination' + AND detail.data__TypeName = 'AWS::Logs::Destination' + AND listing.region = 'us-east-1' + destinations_list_only: + name: destinations_list_only + id: aws.logs.destinations_list_only + x-cfn-schema-name: Destination + x-cfn-type-name: AWS::Logs::Destination + x-identifiers: + - DestinationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DestinationName') as destination_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Destination' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DestinationName') as destination_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::Destination' + AND region = 'us-east-1' log_anomaly_detectors: name: log_anomaly_detectors id: aws.logs.log_anomaly_detectors @@ -2382,10 +2800,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AnomalyDetectorArn') as anomaly_detector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogAnomalyDetector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.DetectorName') as detector_name, + JSON_EXTRACT(detail.Properties, '$.LogGroupArnList') as log_group_arn_list, + JSON_EXTRACT(detail.Properties, '$.EvaluationFrequency') as evaluation_frequency, + JSON_EXTRACT(detail.Properties, '$.FilterPattern') as filter_pattern, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectorStatus') as anomaly_detector_status, + JSON_EXTRACT(detail.Properties, '$.AnomalyVisibilityTime') as anomaly_visibility_time, + JSON_EXTRACT(detail.Properties, '$.CreationTimeStamp') as creation_time_stamp, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTimeStamp') as last_modified_time_stamp, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectorArn') as anomaly_detector_arn + 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::Logs::LogAnomalyDetector' + AND detail.data__TypeName = 'AWS::Logs::LogAnomalyDetector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2410,10 +2843,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AnomalyDetectorArn') as anomaly_detector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogAnomalyDetector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'DetectorName') as detector_name, + json_extract_path_text(detail.Properties, 'LogGroupArnList') as log_group_arn_list, + json_extract_path_text(detail.Properties, 'EvaluationFrequency') as evaluation_frequency, + json_extract_path_text(detail.Properties, 'FilterPattern') as filter_pattern, + json_extract_path_text(detail.Properties, 'AnomalyDetectorStatus') as anomaly_detector_status, + json_extract_path_text(detail.Properties, 'AnomalyVisibilityTime') as anomaly_visibility_time, + json_extract_path_text(detail.Properties, 'CreationTimeStamp') as creation_time_stamp, + json_extract_path_text(detail.Properties, 'LastModifiedTimeStamp') as last_modified_time_stamp, + json_extract_path_text(detail.Properties, 'AnomalyDetectorArn') as anomaly_detector_arn + 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::Logs::LogAnomalyDetector' + AND detail.data__TypeName = 'AWS::Logs::LogAnomalyDetector' + AND listing.region = 'us-east-1' + log_anomaly_detectors_list_only: + name: log_anomaly_detectors_list_only + id: aws.logs.log_anomaly_detectors_list_only + x-cfn-schema-name: LogAnomalyDetector + x-cfn-type-name: AWS::Logs::LogAnomalyDetector + x-identifiers: + - AnomalyDetectorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AnomalyDetectorArn') as anomaly_detector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogAnomalyDetector' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AnomalyDetectorArn') as anomaly_detector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogAnomalyDetector' + AND region = 'us-east-1' log_streams: name: log_streams id: aws.logs.log_streams @@ -2474,11 +2953,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LogGroupName') as log_group_name, - JSON_EXTRACT(Properties, '$.LogStreamName') as log_stream_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogStream' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LogStreamName') as log_stream_name, + JSON_EXTRACT(detail.Properties, '$.LogGroupName') as log_group_name + 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::Logs::LogStream' + AND detail.data__TypeName = 'AWS::Logs::LogStream' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2494,11 +2978,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LogGroupName') as log_group_name, - json_extract_path_text(Properties, 'LogStreamName') as log_stream_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogStream' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LogStreamName') as log_stream_name, + json_extract_path_text(detail.Properties, 'LogGroupName') as log_group_name + 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::Logs::LogStream' + AND detail.data__TypeName = 'AWS::Logs::LogStream' + AND listing.region = 'us-east-1' + log_streams_list_only: + name: log_streams_list_only + id: aws.logs.log_streams_list_only + x-cfn-schema-name: LogStream + x-cfn-type-name: AWS::Logs::LogStream + x-identifiers: + - LogGroupName + - LogStreamName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(Properties, '$.LogStreamName') as log_stream_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogStream' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(Properties, 'LogStreamName') as log_stream_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::LogStream' + AND region = 'us-east-1' metric_filters: name: metric_filters id: aws.logs.metric_filters @@ -2574,11 +3097,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LogGroupName') as log_group_name, - JSON_EXTRACT(Properties, '$.FilterName') as filter_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::MetricFilter' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MetricTransformations') as metric_transformations, + JSON_EXTRACT(detail.Properties, '$.FilterPattern') as filter_pattern, + JSON_EXTRACT(detail.Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(detail.Properties, '$.FilterName') as filter_name + 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::Logs::MetricFilter' + AND detail.data__TypeName = 'AWS::Logs::MetricFilter' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2596,11 +3126,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LogGroupName') as log_group_name, - json_extract_path_text(Properties, 'FilterName') as filter_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::MetricFilter' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MetricTransformations') as metric_transformations, + json_extract_path_text(detail.Properties, 'FilterPattern') as filter_pattern, + json_extract_path_text(detail.Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(detail.Properties, 'FilterName') as filter_name + 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::Logs::MetricFilter' + AND detail.data__TypeName = 'AWS::Logs::MetricFilter' + AND listing.region = 'us-east-1' + metric_filters_list_only: + name: metric_filters_list_only + id: aws.logs.metric_filters_list_only + x-cfn-schema-name: MetricFilter + x-cfn-type-name: AWS::Logs::MetricFilter + x-identifiers: + - LogGroupName + - FilterName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(Properties, '$.FilterName') as filter_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::MetricFilter' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(Properties, 'FilterName') as filter_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::MetricFilter' + AND region = 'us-east-1' query_definitions: name: query_definitions id: aws.logs.query_definitions @@ -2675,10 +3246,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.QueryDefinitionId') as query_definition_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::QueryDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.LogGroupNames') as log_group_names, + JSON_EXTRACT(detail.Properties, '$.QueryDefinitionId') as query_definition_id + 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::Logs::QueryDefinition' + AND detail.data__TypeName = 'AWS::Logs::QueryDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2696,10 +3275,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'QueryDefinitionId') as query_definition_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::QueryDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'LogGroupNames') as log_group_names, + json_extract_path_text(detail.Properties, 'QueryDefinitionId') as query_definition_id + 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::Logs::QueryDefinition' + AND detail.data__TypeName = 'AWS::Logs::QueryDefinition' + AND listing.region = 'us-east-1' + query_definitions_list_only: + name: query_definitions_list_only + id: aws.logs.query_definitions_list_only + x-cfn-schema-name: QueryDefinition + x-cfn-type-name: AWS::Logs::QueryDefinition + x-identifiers: + - QueryDefinitionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.QueryDefinitionId') as query_definition_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::QueryDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'QueryDefinitionId') as query_definition_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::QueryDefinition' + AND region = 'us-east-1' resource_policies: name: resource_policies id: aws.logs.resource_policies @@ -2772,10 +3390,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyName') as policy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document + 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::Logs::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Logs::ResourcePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2791,10 +3415,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyName') as policy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document + 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::Logs::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Logs::ResourcePolicy' + AND listing.region = 'us-east-1' + resource_policies_list_only: + name: resource_policies_list_only + id: aws.logs.resource_policies_list_only + x-cfn-schema-name: ResourcePolicy + x-cfn-type-name: AWS::Logs::ResourcePolicy + x-identifiers: + - PolicyName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyName') as policy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::ResourcePolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyName') as policy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::ResourcePolicy' + AND region = 'us-east-1' subscription_filters: name: subscription_filters id: aws.logs.subscription_filters @@ -2872,11 +3533,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FilterName') as filter_name, - JSON_EXTRACT(Properties, '$.LogGroupName') as log_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::SubscriptionFilter' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FilterName') as filter_name, + JSON_EXTRACT(detail.Properties, '$.DestinationArn') as destination_arn, + JSON_EXTRACT(detail.Properties, '$.FilterPattern') as filter_pattern, + JSON_EXTRACT(detail.Properties, '$.LogGroupName') as log_group_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Distribution') as distribution + 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::Logs::SubscriptionFilter' + AND detail.data__TypeName = 'AWS::Logs::SubscriptionFilter' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2896,11 +3566,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FilterName') as filter_name, - json_extract_path_text(Properties, 'LogGroupName') as log_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::SubscriptionFilter' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FilterName') as filter_name, + json_extract_path_text(detail.Properties, 'DestinationArn') as destination_arn, + json_extract_path_text(detail.Properties, 'FilterPattern') as filter_pattern, + json_extract_path_text(detail.Properties, 'LogGroupName') as log_group_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Distribution') as distribution + 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::Logs::SubscriptionFilter' + AND detail.data__TypeName = 'AWS::Logs::SubscriptionFilter' + AND listing.region = 'us-east-1' + subscription_filters_list_only: + name: subscription_filters_list_only + id: aws.logs.subscription_filters_list_only + x-cfn-schema-name: SubscriptionFilter + x-cfn-type-name: AWS::Logs::SubscriptionFilter + x-identifiers: + - FilterName + - LogGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FilterName') as filter_name, + JSON_EXTRACT(Properties, '$.LogGroupName') as log_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::SubscriptionFilter' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FilterName') as filter_name, + json_extract_path_text(Properties, 'LogGroupName') as log_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Logs::SubscriptionFilter' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/lookoutequipment.yaml b/providers/src/aws/v00.00.00000/services/lookoutequipment.yaml index e697233e..02e4d546 100644 --- a/providers/src/aws/v00.00.00000/services/lookoutequipment.yaml +++ b/providers/src/aws/v00.00.00000/services/lookoutequipment.yaml @@ -765,10 +765,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InferenceSchedulerName') as inference_scheduler_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DataDelayOffsetInMinutes') as data_delay_offset_in_minutes, + JSON_EXTRACT(detail.Properties, '$.DataInputConfiguration') as data_input_configuration, + JSON_EXTRACT(detail.Properties, '$.DataOutputConfiguration') as data_output_configuration, + JSON_EXTRACT(detail.Properties, '$.DataUploadFrequency') as data_upload_frequency, + JSON_EXTRACT(detail.Properties, '$.InferenceSchedulerName') as inference_scheduler_name, + JSON_EXTRACT(detail.Properties, '$.ModelName') as model_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.ServerSideKmsKeyId') as server_side_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.InferenceSchedulerArn') as inference_scheduler_arn + 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::LookoutEquipment::InferenceScheduler' + AND detail.data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -792,10 +806,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InferenceSchedulerName') as inference_scheduler_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DataDelayOffsetInMinutes') as data_delay_offset_in_minutes, + json_extract_path_text(detail.Properties, 'DataInputConfiguration') as data_input_configuration, + json_extract_path_text(detail.Properties, 'DataOutputConfiguration') as data_output_configuration, + json_extract_path_text(detail.Properties, 'DataUploadFrequency') as data_upload_frequency, + json_extract_path_text(detail.Properties, 'InferenceSchedulerName') as inference_scheduler_name, + json_extract_path_text(detail.Properties, 'ModelName') as model_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'ServerSideKmsKeyId') as server_side_kms_key_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'InferenceSchedulerArn') as inference_scheduler_arn + 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::LookoutEquipment::InferenceScheduler' + AND detail.data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' + AND listing.region = 'us-east-1' + inference_schedulers_list_only: + name: inference_schedulers_list_only + id: aws.lookoutequipment.inference_schedulers_list_only + x-cfn-schema-name: InferenceScheduler + x-cfn-type-name: AWS::LookoutEquipment::InferenceScheduler + x-identifiers: + - InferenceSchedulerName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InferenceSchedulerName') as inference_scheduler_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InferenceSchedulerName') as inference_scheduler_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' + AND region = 'us-east-1' + inference_scheduler_tags: + name: inference_scheduler_tags + id: aws.lookoutequipment.inference_scheduler_tags + x-cfn-schema-name: InferenceScheduler + x-cfn-type-name: AWS::LookoutEquipment::InferenceScheduler + 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, '$.DataDelayOffsetInMinutes') as data_delay_offset_in_minutes, + JSON_EXTRACT(detail.Properties, '$.DataInputConfiguration') as data_input_configuration, + JSON_EXTRACT(detail.Properties, '$.DataOutputConfiguration') as data_output_configuration, + JSON_EXTRACT(detail.Properties, '$.DataUploadFrequency') as data_upload_frequency, + JSON_EXTRACT(detail.Properties, '$.InferenceSchedulerName') as inference_scheduler_name, + JSON_EXTRACT(detail.Properties, '$.ModelName') as model_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.ServerSideKmsKeyId') as server_side_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.InferenceSchedulerArn') as inference_scheduler_arn + 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::LookoutEquipment::InferenceScheduler' + AND detail.data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' + 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, 'DataDelayOffsetInMinutes') as data_delay_offset_in_minutes, + json_extract_path_text(detail.Properties, 'DataInputConfiguration') as data_input_configuration, + json_extract_path_text(detail.Properties, 'DataOutputConfiguration') as data_output_configuration, + json_extract_path_text(detail.Properties, 'DataUploadFrequency') as data_upload_frequency, + json_extract_path_text(detail.Properties, 'InferenceSchedulerName') as inference_scheduler_name, + json_extract_path_text(detail.Properties, 'ModelName') as model_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'ServerSideKmsKeyId') as server_side_kms_key_id, + json_extract_path_text(detail.Properties, 'InferenceSchedulerArn') as inference_scheduler_arn + 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::LookoutEquipment::InferenceScheduler' + AND detail.data__TypeName = 'AWS::LookoutEquipment::InferenceScheduler' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/lookoutmetrics.yaml b/providers/src/aws/v00.00.00000/services/lookoutmetrics.yaml index 0b32c1c3..6f0fa676 100644 --- a/providers/src/aws/v00.00.00000/services/lookoutmetrics.yaml +++ b/providers/src/aws/v00.00.00000/services/lookoutmetrics.yaml @@ -1043,10 +1043,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutMetrics::Alert' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AlertName') as alert_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AlertDescription') as alert_description, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectorArn') as anomaly_detector_arn, + JSON_EXTRACT(detail.Properties, '$.AlertSensitivityThreshold') as alert_sensitivity_threshold, + JSON_EXTRACT(detail.Properties, '$.Action') as action + 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::LookoutMetrics::Alert' + AND detail.data__TypeName = 'AWS::LookoutMetrics::Alert' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1066,10 +1076,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutMetrics::Alert' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AlertName') as alert_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AlertDescription') as alert_description, + json_extract_path_text(detail.Properties, 'AnomalyDetectorArn') as anomaly_detector_arn, + json_extract_path_text(detail.Properties, 'AlertSensitivityThreshold') as alert_sensitivity_threshold, + json_extract_path_text(detail.Properties, 'Action') as action + 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::LookoutMetrics::Alert' + AND detail.data__TypeName = 'AWS::LookoutMetrics::Alert' + AND listing.region = 'us-east-1' + alerts_list_only: + name: alerts_list_only + id: aws.lookoutmetrics.alerts_list_only + x-cfn-schema-name: Alert + x-cfn-type-name: AWS::LookoutMetrics::Alert + 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::LookoutMetrics::Alert' + 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::LookoutMetrics::Alert' + AND region = 'us-east-1' anomaly_detectors: name: anomaly_detectors id: aws.lookoutmetrics.anomaly_detectors @@ -1146,10 +1197,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutMetrics::AnomalyDetector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectorName') as anomaly_detector_name, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectorDescription') as anomaly_detector_description, + JSON_EXTRACT(detail.Properties, '$.AnomalyDetectorConfig') as anomaly_detector_config, + JSON_EXTRACT(detail.Properties, '$.MetricSetList') as metric_set_list, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn + 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::LookoutMetrics::AnomalyDetector' + AND detail.data__TypeName = 'AWS::LookoutMetrics::AnomalyDetector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1169,10 +1230,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutMetrics::AnomalyDetector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AnomalyDetectorName') as anomaly_detector_name, + json_extract_path_text(detail.Properties, 'AnomalyDetectorDescription') as anomaly_detector_description, + json_extract_path_text(detail.Properties, 'AnomalyDetectorConfig') as anomaly_detector_config, + json_extract_path_text(detail.Properties, 'MetricSetList') as metric_set_list, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn + 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::LookoutMetrics::AnomalyDetector' + AND detail.data__TypeName = 'AWS::LookoutMetrics::AnomalyDetector' + AND listing.region = 'us-east-1' + anomaly_detectors_list_only: + name: anomaly_detectors_list_only + id: aws.lookoutmetrics.anomaly_detectors_list_only + x-cfn-schema-name: AnomalyDetector + x-cfn-type-name: AWS::LookoutMetrics::AnomalyDetector + 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::LookoutMetrics::AnomalyDetector' + 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::LookoutMetrics::AnomalyDetector' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/lookoutvision.yaml b/providers/src/aws/v00.00.00000/services/lookoutvision.yaml index 2a787845..d512a9ae 100644 --- a/providers/src/aws/v00.00.00000/services/lookoutvision.yaml +++ b/providers/src/aws/v00.00.00000/services/lookoutvision.yaml @@ -512,10 +512,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProjectName') as project_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutVision::Project' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name + 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::LookoutVision::Project' + AND detail.data__TypeName = 'AWS::LookoutVision::Project' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -531,10 +537,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProjectName') as project_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutVision::Project' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name + 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::LookoutVision::Project' + AND detail.data__TypeName = 'AWS::LookoutVision::Project' + AND listing.region = 'us-east-1' + projects_list_only: + name: projects_list_only + id: aws.lookoutvision.projects_list_only + x-cfn-schema-name: Project + x-cfn-type-name: AWS::LookoutVision::Project + x-identifiers: + - ProjectName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProjectName') as project_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutVision::Project' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProjectName') as project_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::LookoutVision::Project' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/m2.yaml b/providers/src/aws/v00.00.00000/services/m2.yaml index 73e6fc65..2d9dfe93 100644 --- a/providers/src/aws/v00.00.00000/services/m2.yaml +++ b/providers/src/aws/v00.00.00000/services/m2.yaml @@ -913,10 +913,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EngineType') as engine_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::M2::Application' + AND detail.data__TypeName = 'AWS::M2::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -939,10 +952,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationArn') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EngineType') as engine_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::M2::Application' + AND detail.data__TypeName = 'AWS::M2::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.m2.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::M2::Application + x-identifiers: + - ApplicationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationArn') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.m2.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::M2::Application + 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, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EngineType') as engine_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn + 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::M2::Application' + AND detail.data__TypeName = 'AWS::M2::Application' + 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, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EngineType') as engine_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn + 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::M2::Application' + AND detail.data__TypeName = 'AWS::M2::Application' + AND listing.region = 'us-east-1' environments: name: environments id: aws.m2.environments @@ -1028,10 +1144,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnvironmentArn') as environment_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EngineType') as engine_type, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.EnvironmentArn') as environment_arn, + JSON_EXTRACT(detail.Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.HighAvailabilityConfig') as high_availability_config, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.StorageConfigurations') as storage_configurations, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::M2::Environment' + AND detail.data__TypeName = 'AWS::M2::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1060,10 +1195,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnvironmentArn') as environment_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EngineType') as engine_type, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'EnvironmentArn') as environment_arn, + json_extract_path_text(detail.Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'HighAvailabilityConfig') as high_availability_config, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'StorageConfigurations') as storage_configurations, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::M2::Environment' + AND detail.data__TypeName = 'AWS::M2::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.m2.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::M2::Environment + x-identifiers: + - EnvironmentArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnvironmentArn') as environment_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnvironmentArn') as environment_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::M2::Environment' + AND region = 'us-east-1' + environment_tags: + name: environment_tags + id: aws.m2.environment_tags + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::M2::Environment + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EngineType') as engine_type, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.EnvironmentArn') as environment_arn, + JSON_EXTRACT(detail.Properties, '$.EnvironmentId') as environment_id, + JSON_EXTRACT(detail.Properties, '$.HighAvailabilityConfig') as high_availability_config, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.StorageConfigurations') as storage_configurations, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids + 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::M2::Environment' + AND detail.data__TypeName = 'AWS::M2::Environment' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'EngineType') as engine_type, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'EnvironmentArn') as environment_arn, + json_extract_path_text(detail.Properties, 'EnvironmentId') as environment_id, + json_extract_path_text(detail.Properties, 'HighAvailabilityConfig') as high_availability_config, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'StorageConfigurations') as storage_configurations, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids + 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::M2::Environment' + AND detail.data__TypeName = 'AWS::M2::Environment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/macie.yaml b/providers/src/aws/v00.00.00000/services/macie.yaml index 92b3f591..48b955b4 100644 --- a/providers/src/aws/v00.00.00000/services/macie.yaml +++ b/providers/src/aws/v00.00.00000/services/macie.yaml @@ -1016,10 +1016,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::AllowList' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Criteria') as criteria, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Macie::AllowList' + AND detail.data__TypeName = 'AWS::Macie::AllowList' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1040,10 +1051,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::AllowList' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Criteria') as criteria, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Macie::AllowList' + AND detail.data__TypeName = 'AWS::Macie::AllowList' + AND listing.region = 'us-east-1' + allow_lists_list_only: + name: allow_lists_list_only + id: aws.macie.allow_lists_list_only + x-cfn-schema-name: AllowList + x-cfn-type-name: AWS::Macie::AllowList + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::AllowList' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::AllowList' + AND region = 'us-east-1' + allow_list_tags: + name: allow_list_tags + id: aws.macie.allow_list_tags + x-cfn-schema-name: AllowList + x-cfn-type-name: AWS::Macie::AllowList + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Criteria') as criteria, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Macie::AllowList' + AND detail.data__TypeName = 'AWS::Macie::AllowList' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Criteria') as criteria, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Macie::AllowList' + AND detail.data__TypeName = 'AWS::Macie::AllowList' + AND listing.region = 'us-east-1' custom_data_identifiers: name: custom_data_identifiers id: aws.macie.custom_data_identifiers @@ -1123,10 +1231,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::CustomDataIdentifier' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Regex') as regex, + JSON_EXTRACT(detail.Properties, '$.MaximumMatchDistance') as maximum_match_distance, + JSON_EXTRACT(detail.Properties, '$.Keywords') as keywords, + JSON_EXTRACT(detail.Properties, '$.IgnoreWords') as ignore_words, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Macie::CustomDataIdentifier' + AND detail.data__TypeName = 'AWS::Macie::CustomDataIdentifier' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1149,10 +1270,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::CustomDataIdentifier' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Regex') as regex, + json_extract_path_text(detail.Properties, 'MaximumMatchDistance') as maximum_match_distance, + json_extract_path_text(detail.Properties, 'Keywords') as keywords, + json_extract_path_text(detail.Properties, 'IgnoreWords') as ignore_words, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Macie::CustomDataIdentifier' + AND detail.data__TypeName = 'AWS::Macie::CustomDataIdentifier' + AND listing.region = 'us-east-1' + custom_data_identifiers_list_only: + name: custom_data_identifiers_list_only + id: aws.macie.custom_data_identifiers_list_only + x-cfn-schema-name: CustomDataIdentifier + x-cfn-type-name: AWS::Macie::CustomDataIdentifier + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::CustomDataIdentifier' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::CustomDataIdentifier' + AND region = 'us-east-1' + custom_data_identifier_tags: + name: custom_data_identifier_tags + id: aws.macie.custom_data_identifier_tags + x-cfn-schema-name: CustomDataIdentifier + x-cfn-type-name: AWS::Macie::CustomDataIdentifier + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Regex') as regex, + JSON_EXTRACT(detail.Properties, '$.MaximumMatchDistance') as maximum_match_distance, + JSON_EXTRACT(detail.Properties, '$.Keywords') as keywords, + JSON_EXTRACT(detail.Properties, '$.IgnoreWords') as ignore_words, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Macie::CustomDataIdentifier' + AND detail.data__TypeName = 'AWS::Macie::CustomDataIdentifier' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Regex') as regex, + json_extract_path_text(detail.Properties, 'MaximumMatchDistance') as maximum_match_distance, + json_extract_path_text(detail.Properties, 'Keywords') as keywords, + json_extract_path_text(detail.Properties, 'IgnoreWords') as ignore_words, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Macie::CustomDataIdentifier' + AND detail.data__TypeName = 'AWS::Macie::CustomDataIdentifier' + AND listing.region = 'us-east-1' findings_filters: name: findings_filters id: aws.macie.findings_filters @@ -1231,10 +1455,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::FindingsFilter' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FindingCriteria') as finding_criteria, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Position') as position, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Macie::FindingsFilter' + AND detail.data__TypeName = 'AWS::Macie::FindingsFilter' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1256,10 +1492,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::FindingsFilter' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FindingCriteria') as finding_criteria, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'Position') as position, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Macie::FindingsFilter' + AND detail.data__TypeName = 'AWS::Macie::FindingsFilter' + AND listing.region = 'us-east-1' + findings_filters_list_only: + name: findings_filters_list_only + id: aws.macie.findings_filters_list_only + x-cfn-schema-name: FindingsFilter + x-cfn-type-name: AWS::Macie::FindingsFilter + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::FindingsFilter' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::FindingsFilter' + AND region = 'us-east-1' + findings_filter_tags: + name: findings_filter_tags + id: aws.macie.findings_filter_tags + x-cfn-schema-name: FindingsFilter + x-cfn-type-name: AWS::Macie::FindingsFilter + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.FindingCriteria') as finding_criteria, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Position') as position, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Macie::FindingsFilter' + AND detail.data__TypeName = 'AWS::Macie::FindingsFilter' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'FindingCriteria') as finding_criteria, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'Position') as position, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Macie::FindingsFilter' + AND detail.data__TypeName = 'AWS::Macie::FindingsFilter' + AND listing.region = 'us-east-1' sessions: name: sessions id: aws.macie.sessions @@ -1334,10 +1670,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::Session' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.FindingPublishingFrequency') as finding_publishing_frequency, + JSON_EXTRACT(detail.Properties, '$.ServiceRole') as service_role + 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::Macie::Session' + AND detail.data__TypeName = 'AWS::Macie::Session' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1355,10 +1699,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::Session' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'FindingPublishingFrequency') as finding_publishing_frequency, + json_extract_path_text(detail.Properties, 'ServiceRole') as service_role + 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::Macie::Session' + AND detail.data__TypeName = 'AWS::Macie::Session' + AND listing.region = 'us-east-1' + sessions_list_only: + name: sessions_list_only + id: aws.macie.sessions_list_only + x-cfn-schema-name: Session + x-cfn-type-name: AWS::Macie::Session + x-identifiers: + - AwsAccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::Session' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Macie::Session' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/managedblockchain.yaml b/providers/src/aws/v00.00.00000/services/managedblockchain.yaml index e8fa08d6..df7c16a1 100644 --- a/providers/src/aws/v00.00.00000/services/managedblockchain.yaml +++ b/providers/src/aws/v00.00.00000/services/managedblockchain.yaml @@ -628,10 +628,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ManagedBlockchain::Accessor' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.BillingToken') as billing_token, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.AccessorType') as accessor_type, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ManagedBlockchain::Accessor' + AND detail.data__TypeName = 'AWS::ManagedBlockchain::Accessor' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -653,10 +665,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ManagedBlockchain::Accessor' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'BillingToken') as billing_token, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'AccessorType') as accessor_type, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ManagedBlockchain::Accessor' + AND detail.data__TypeName = 'AWS::ManagedBlockchain::Accessor' + AND listing.region = 'us-east-1' + accessors_list_only: + name: accessors_list_only + id: aws.managedblockchain.accessors_list_only + x-cfn-schema-name: Accessor + x-cfn-type-name: AWS::ManagedBlockchain::Accessor + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ManagedBlockchain::Accessor' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ManagedBlockchain::Accessor' + AND region = 'us-east-1' + accessor_tags: + name: accessor_tags + id: aws.managedblockchain.accessor_tags + x-cfn-schema-name: Accessor + x-cfn-type-name: AWS::ManagedBlockchain::Accessor + 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, '$.BillingToken') as billing_token, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.AccessorType') as accessor_type, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type + 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::ManagedBlockchain::Accessor' + AND detail.data__TypeName = 'AWS::ManagedBlockchain::Accessor' + 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, 'BillingToken') as billing_token, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'AccessorType') as accessor_type, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type + 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::ManagedBlockchain::Accessor' + AND detail.data__TypeName = 'AWS::ManagedBlockchain::Accessor' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/mediaconnect.yaml b/providers/src/aws/v00.00.00000/services/mediaconnect.yaml index e7141e54..c11fd456 100644 --- a/providers/src/aws/v00.00.00000/services/mediaconnect.yaml +++ b/providers/src/aws/v00.00.00000/services/mediaconnect.yaml @@ -2320,10 +2320,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BridgeArn') as bridge_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Bridge' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.BridgeArn') as bridge_arn, + JSON_EXTRACT(detail.Properties, '$.PlacementArn') as placement_arn, + JSON_EXTRACT(detail.Properties, '$.BridgeState') as bridge_state, + JSON_EXTRACT(detail.Properties, '$.SourceFailoverConfig') as source_failover_config, + JSON_EXTRACT(detail.Properties, '$.Outputs') as outputs, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.IngressGatewayBridge') as ingress_gateway_bridge, + JSON_EXTRACT(detail.Properties, '$.EgressGatewayBridge') as egress_gateway_bridge + 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::MediaConnect::Bridge' + AND detail.data__TypeName = 'AWS::MediaConnect::Bridge' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2346,10 +2359,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BridgeArn') as bridge_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Bridge' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'BridgeArn') as bridge_arn, + json_extract_path_text(detail.Properties, 'PlacementArn') as placement_arn, + json_extract_path_text(detail.Properties, 'BridgeState') as bridge_state, + json_extract_path_text(detail.Properties, 'SourceFailoverConfig') as source_failover_config, + json_extract_path_text(detail.Properties, 'Outputs') as outputs, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'IngressGatewayBridge') as ingress_gateway_bridge, + json_extract_path_text(detail.Properties, 'EgressGatewayBridge') as egress_gateway_bridge + 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::MediaConnect::Bridge' + AND detail.data__TypeName = 'AWS::MediaConnect::Bridge' + AND listing.region = 'us-east-1' + bridges_list_only: + name: bridges_list_only + id: aws.mediaconnect.bridges_list_only + x-cfn-schema-name: Bridge + x-cfn-type-name: AWS::MediaConnect::Bridge + x-identifiers: + - BridgeArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BridgeArn') as bridge_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Bridge' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BridgeArn') as bridge_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Bridge' + AND region = 'us-east-1' flows: name: flows id: aws.mediaconnect.flows @@ -2430,10 +2487,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FlowArn') as flow_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Flow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FlowArn') as flow_arn, + JSON_EXTRACT(detail.Properties, '$.EgressIp') as egress_ip, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.FlowAvailabilityZone') as flow_availability_zone, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.SourceFailoverConfig') as source_failover_config, + JSON_EXTRACT(detail.Properties, '$.VpcInterfaces') as vpc_interfaces, + JSON_EXTRACT(detail.Properties, '$.MediaStreams') as media_streams, + JSON_EXTRACT(detail.Properties, '$.Maintenance') as maintenance + 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::MediaConnect::Flow' + AND detail.data__TypeName = 'AWS::MediaConnect::Flow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2457,10 +2528,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FlowArn') as flow_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Flow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FlowArn') as flow_arn, + json_extract_path_text(detail.Properties, 'EgressIp') as egress_ip, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'FlowAvailabilityZone') as flow_availability_zone, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'SourceFailoverConfig') as source_failover_config, + json_extract_path_text(detail.Properties, 'VpcInterfaces') as vpc_interfaces, + json_extract_path_text(detail.Properties, 'MediaStreams') as media_streams, + json_extract_path_text(detail.Properties, 'Maintenance') as maintenance + 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::MediaConnect::Flow' + AND detail.data__TypeName = 'AWS::MediaConnect::Flow' + AND listing.region = 'us-east-1' + flows_list_only: + name: flows_list_only + id: aws.mediaconnect.flows_list_only + x-cfn-schema-name: Flow + x-cfn-type-name: AWS::MediaConnect::Flow + x-identifiers: + - FlowArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FlowArn') as flow_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Flow' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FlowArn') as flow_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Flow' + AND region = 'us-east-1' flow_entitlements: name: flow_entitlements id: aws.mediaconnect.flow_entitlements @@ -2539,10 +2655,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EntitlementArn') as entitlement_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowEntitlement' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FlowArn') as flow_arn, + JSON_EXTRACT(detail.Properties, '$.EntitlementArn') as entitlement_arn, + JSON_EXTRACT(detail.Properties, '$.DataTransferSubscriberFeePercent') as data_transfer_subscriber_fee_percent, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Encryption') as encryption, + JSON_EXTRACT(detail.Properties, '$.EntitlementStatus') as entitlement_status, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Subscribers') as subscribers + 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::MediaConnect::FlowEntitlement' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowEntitlement' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2564,10 +2692,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EntitlementArn') as entitlement_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowEntitlement' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FlowArn') as flow_arn, + json_extract_path_text(detail.Properties, 'EntitlementArn') as entitlement_arn, + json_extract_path_text(detail.Properties, 'DataTransferSubscriberFeePercent') as data_transfer_subscriber_fee_percent, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Encryption') as encryption, + json_extract_path_text(detail.Properties, 'EntitlementStatus') as entitlement_status, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Subscribers') as subscribers + 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::MediaConnect::FlowEntitlement' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowEntitlement' + AND listing.region = 'us-east-1' + flow_entitlements_list_only: + name: flow_entitlements_list_only + id: aws.mediaconnect.flow_entitlements_list_only + x-cfn-schema-name: FlowEntitlement + x-cfn-type-name: AWS::MediaConnect::FlowEntitlement + x-identifiers: + - EntitlementArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EntitlementArn') as entitlement_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowEntitlement' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EntitlementArn') as entitlement_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowEntitlement' + AND region = 'us-east-1' flow_outputs: name: flow_outputs id: aws.mediaconnect.flow_outputs @@ -2654,10 +2825,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.OutputArn') as output_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowOutput' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FlowArn') as flow_arn, + JSON_EXTRACT(detail.Properties, '$.OutputArn') as output_arn, + JSON_EXTRACT(detail.Properties, '$.CidrAllowList') as cidr_allow_list, + JSON_EXTRACT(detail.Properties, '$.Encryption') as encryption, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Destination') as destination, + JSON_EXTRACT(detail.Properties, '$.MaxLatency') as max_latency, + JSON_EXTRACT(detail.Properties, '$.MinLatency') as min_latency, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.RemoteId') as remote_id, + JSON_EXTRACT(detail.Properties, '$.SmoothingLatency') as smoothing_latency, + JSON_EXTRACT(detail.Properties, '$.StreamId') as stream_id, + JSON_EXTRACT(detail.Properties, '$.VpcInterfaceAttachment') as vpc_interface_attachment, + JSON_EXTRACT(detail.Properties, '$.MediaStreamOutputConfigurations') as media_stream_output_configurations + 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::MediaConnect::FlowOutput' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowOutput' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2687,10 +2878,61 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'OutputArn') as output_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowOutput' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FlowArn') as flow_arn, + json_extract_path_text(detail.Properties, 'OutputArn') as output_arn, + json_extract_path_text(detail.Properties, 'CidrAllowList') as cidr_allow_list, + json_extract_path_text(detail.Properties, 'Encryption') as encryption, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Destination') as destination, + json_extract_path_text(detail.Properties, 'MaxLatency') as max_latency, + json_extract_path_text(detail.Properties, 'MinLatency') as min_latency, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'RemoteId') as remote_id, + json_extract_path_text(detail.Properties, 'SmoothingLatency') as smoothing_latency, + json_extract_path_text(detail.Properties, 'StreamId') as stream_id, + json_extract_path_text(detail.Properties, 'VpcInterfaceAttachment') as vpc_interface_attachment, + json_extract_path_text(detail.Properties, 'MediaStreamOutputConfigurations') as media_stream_output_configurations + 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::MediaConnect::FlowOutput' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowOutput' + AND listing.region = 'us-east-1' + flow_outputs_list_only: + name: flow_outputs_list_only + id: aws.mediaconnect.flow_outputs_list_only + x-cfn-schema-name: FlowOutput + x-cfn-type-name: AWS::MediaConnect::FlowOutput + x-identifiers: + - OutputArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.OutputArn') as output_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowOutput' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'OutputArn') as output_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowOutput' + AND region = 'us-east-1' flow_sources: name: flow_sources id: aws.mediaconnect.flow_sources @@ -2782,10 +3024,35 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SourceArn') as source_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FlowArn') as flow_arn, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.Decryption') as decryption, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EntitlementArn') as entitlement_arn, + JSON_EXTRACT(detail.Properties, '$.GatewayBridgeSource') as gateway_bridge_source, + JSON_EXTRACT(detail.Properties, '$.IngestIp') as ingest_ip, + JSON_EXTRACT(detail.Properties, '$.IngestPort') as ingest_port, + JSON_EXTRACT(detail.Properties, '$.MaxBitrate') as max_bitrate, + JSON_EXTRACT(detail.Properties, '$.MaxLatency') as max_latency, + JSON_EXTRACT(detail.Properties, '$.MinLatency') as min_latency, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.SenderIpAddress') as sender_ip_address, + JSON_EXTRACT(detail.Properties, '$.SenderControlPort') as sender_control_port, + JSON_EXTRACT(detail.Properties, '$.StreamId') as stream_id, + JSON_EXTRACT(detail.Properties, '$.SourceIngestPort') as source_ingest_port, + JSON_EXTRACT(detail.Properties, '$.SourceListenerAddress') as source_listener_address, + JSON_EXTRACT(detail.Properties, '$.SourceListenerPort') as source_listener_port, + JSON_EXTRACT(detail.Properties, '$.VpcInterfaceName') as vpc_interface_name, + JSON_EXTRACT(detail.Properties, '$.WhitelistCidr') as whitelist_cidr + 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::MediaConnect::FlowSource' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2820,10 +3087,66 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SourceArn') as source_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FlowArn') as flow_arn, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'Decryption') as decryption, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EntitlementArn') as entitlement_arn, + json_extract_path_text(detail.Properties, 'GatewayBridgeSource') as gateway_bridge_source, + json_extract_path_text(detail.Properties, 'IngestIp') as ingest_ip, + json_extract_path_text(detail.Properties, 'IngestPort') as ingest_port, + json_extract_path_text(detail.Properties, 'MaxBitrate') as max_bitrate, + json_extract_path_text(detail.Properties, 'MaxLatency') as max_latency, + json_extract_path_text(detail.Properties, 'MinLatency') as min_latency, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'SenderIpAddress') as sender_ip_address, + json_extract_path_text(detail.Properties, 'SenderControlPort') as sender_control_port, + json_extract_path_text(detail.Properties, 'StreamId') as stream_id, + json_extract_path_text(detail.Properties, 'SourceIngestPort') as source_ingest_port, + json_extract_path_text(detail.Properties, 'SourceListenerAddress') as source_listener_address, + json_extract_path_text(detail.Properties, 'SourceListenerPort') as source_listener_port, + json_extract_path_text(detail.Properties, 'VpcInterfaceName') as vpc_interface_name, + json_extract_path_text(detail.Properties, 'WhitelistCidr') as whitelist_cidr + 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::MediaConnect::FlowSource' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowSource' + AND listing.region = 'us-east-1' + flow_sources_list_only: + name: flow_sources_list_only + id: aws.mediaconnect.flow_sources_list_only + x-cfn-schema-name: FlowSource + x-cfn-type-name: AWS::MediaConnect::FlowSource + x-identifiers: + - SourceArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SourceArn') as source_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SourceArn') as source_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowSource' + AND region = 'us-east-1' flow_vpc_interfaces: name: flow_vpc_interfaces id: aws.mediaconnect.flow_vpc_interfaces @@ -2901,11 +3224,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FlowArn') as flow_arn, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowVpcInterface' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FlowArn') as flow_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaceIds') as network_interface_ids + 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::MediaConnect::FlowVpcInterface' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowVpcInterface' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2925,11 +3257,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FlowArn') as flow_arn, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowVpcInterface' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FlowArn') as flow_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'NetworkInterfaceIds') as network_interface_ids + 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::MediaConnect::FlowVpcInterface' + AND detail.data__TypeName = 'AWS::MediaConnect::FlowVpcInterface' + AND listing.region = 'us-east-1' + flow_vpc_interfaces_list_only: + name: flow_vpc_interfaces_list_only + id: aws.mediaconnect.flow_vpc_interfaces_list_only + x-cfn-schema-name: FlowVpcInterface + x-cfn-type-name: AWS::MediaConnect::FlowVpcInterface + x-identifiers: + - FlowArn + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FlowArn') as flow_arn, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowVpcInterface' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FlowArn') as flow_arn, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::FlowVpcInterface' + AND region = 'us-east-1' gateways: name: gateways id: aws.mediaconnect.gateways @@ -2992,10 +3367,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GatewayArn') as gateway_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Gateway' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.GatewayArn') as gateway_arn, + JSON_EXTRACT(detail.Properties, '$.GatewayState') as gateway_state, + JSON_EXTRACT(detail.Properties, '$.EgressCidrBlocks') as egress_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.Networks') as networks + 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::MediaConnect::Gateway' + AND detail.data__TypeName = 'AWS::MediaConnect::Gateway' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3014,10 +3398,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GatewayArn') as gateway_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Gateway' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'GatewayArn') as gateway_arn, + json_extract_path_text(detail.Properties, 'GatewayState') as gateway_state, + json_extract_path_text(detail.Properties, 'EgressCidrBlocks') as egress_cidr_blocks, + json_extract_path_text(detail.Properties, 'Networks') as networks + 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::MediaConnect::Gateway' + AND detail.data__TypeName = 'AWS::MediaConnect::Gateway' + AND listing.region = 'us-east-1' + gateways_list_only: + name: gateways_list_only + id: aws.mediaconnect.gateways_list_only + x-cfn-schema-name: Gateway + x-cfn-type-name: AWS::MediaConnect::Gateway + x-identifiers: + - GatewayArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GatewayArn') as gateway_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Gateway' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GatewayArn') as gateway_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaConnect::Gateway' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/medialive.yaml b/providers/src/aws/v00.00.00000/services/medialive.yaml index be02e455..38714bb6 100644 --- a/providers/src/aws/v00.00.00000/services/medialive.yaml +++ b/providers/src/aws/v00.00.00000/services/medialive.yaml @@ -929,10 +929,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplex' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.Destinations') as destinations, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.MultiplexSettings') as multiplex_settings, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PipelinesRunningCount') as pipelines_running_count, + JSON_EXTRACT(detail.Properties, '$.ProgramCount') as program_count, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaLive::Multiplex' + AND detail.data__TypeName = 'AWS::MediaLive::Multiplex' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -956,10 +970,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplex' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'Destinations') as destinations, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'MultiplexSettings') as multiplex_settings, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PipelinesRunningCount') as pipelines_running_count, + json_extract_path_text(detail.Properties, 'ProgramCount') as program_count, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaLive::Multiplex' + AND detail.data__TypeName = 'AWS::MediaLive::Multiplex' + AND listing.region = 'us-east-1' + multiplexes_list_only: + name: multiplexes_list_only + id: aws.medialive.multiplexes_list_only + x-cfn-schema-name: Multiplex + x-cfn-type-name: AWS::MediaLive::Multiplex + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplex' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplex' + AND region = 'us-east-1' + multiplex_tags: + name: multiplex_tags + id: aws.medialive.multiplex_tags + x-cfn-schema-name: Multiplex + x-cfn-type-name: AWS::MediaLive::Multiplex + 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, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.Destinations') as destinations, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.MultiplexSettings') as multiplex_settings, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PipelinesRunningCount') as pipelines_running_count, + JSON_EXTRACT(detail.Properties, '$.ProgramCount') as program_count, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::MediaLive::Multiplex' + AND detail.data__TypeName = 'AWS::MediaLive::Multiplex' + 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, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'Destinations') as destinations, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'MultiplexSettings') as multiplex_settings, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PipelinesRunningCount') as pipelines_running_count, + json_extract_path_text(detail.Properties, 'ProgramCount') as program_count, + json_extract_path_text(detail.Properties, 'State') as state + 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::MediaLive::Multiplex' + AND detail.data__TypeName = 'AWS::MediaLive::Multiplex' + AND listing.region = 'us-east-1' multiplexprograms: name: multiplexprograms id: aws.medialive.multiplexprograms @@ -1038,11 +1158,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProgramName') as program_name, - JSON_EXTRACT(Properties, '$.MultiplexId') as multiplex_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplexprogram' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ChannelId') as channel_id, + JSON_EXTRACT(detail.Properties, '$.MultiplexId') as multiplex_id, + JSON_EXTRACT(detail.Properties, '$.MultiplexProgramSettings') as multiplex_program_settings, + JSON_EXTRACT(detail.Properties, '$.PreferredChannelPipeline') as preferred_channel_pipeline, + JSON_EXTRACT(detail.Properties, '$.PacketIdentifiersMap') as packet_identifiers_map, + JSON_EXTRACT(detail.Properties, '$.PipelineDetails') as pipeline_details, + JSON_EXTRACT(detail.Properties, '$.ProgramName') as program_name + 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::MediaLive::Multiplexprogram' + AND detail.data__TypeName = 'AWS::MediaLive::Multiplexprogram' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1063,11 +1193,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProgramName') as program_name, - json_extract_path_text(Properties, 'MultiplexId') as multiplex_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplexprogram' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ChannelId') as channel_id, + json_extract_path_text(detail.Properties, 'MultiplexId') as multiplex_id, + json_extract_path_text(detail.Properties, 'MultiplexProgramSettings') as multiplex_program_settings, + json_extract_path_text(detail.Properties, 'PreferredChannelPipeline') as preferred_channel_pipeline, + json_extract_path_text(detail.Properties, 'PacketIdentifiersMap') as packet_identifiers_map, + json_extract_path_text(detail.Properties, 'PipelineDetails') as pipeline_details, + json_extract_path_text(detail.Properties, 'ProgramName') as program_name + 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::MediaLive::Multiplexprogram' + AND detail.data__TypeName = 'AWS::MediaLive::Multiplexprogram' + AND listing.region = 'us-east-1' + multiplexprograms_list_only: + name: multiplexprograms_list_only + id: aws.medialive.multiplexprograms_list_only + x-cfn-schema-name: Multiplexprogram + x-cfn-type-name: AWS::MediaLive::Multiplexprogram + x-identifiers: + - ProgramName + - MultiplexId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProgramName') as program_name, + JSON_EXTRACT(Properties, '$.MultiplexId') as multiplex_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplexprogram' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProgramName') as program_name, + json_extract_path_text(Properties, 'MultiplexId') as multiplex_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaLive::Multiplexprogram' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/mediapackage.yaml b/providers/src/aws/v00.00.00000/services/mediapackage.yaml index 60beb1b8..1a7a0318 100644 --- a/providers/src/aws/v00.00.00000/services/mediapackage.yaml +++ b/providers/src/aws/v00.00.00000/services/mediapackage.yaml @@ -1459,10 +1459,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Asset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EgressEndpoints') as egress_endpoints, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PackagingGroupId') as packaging_group_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.SourceRoleArn') as source_role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaPackage::Asset' + AND detail.data__TypeName = 'AWS::MediaPackage::Asset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1485,10 +1498,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Asset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EgressEndpoints') as egress_endpoints, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PackagingGroupId') as packaging_group_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'SourceRoleArn') as source_role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaPackage::Asset' + AND detail.data__TypeName = 'AWS::MediaPackage::Asset' + AND listing.region = 'us-east-1' + assets_list_only: + name: assets_list_only + id: aws.mediapackage.assets_list_only + x-cfn-schema-name: Asset + x-cfn-type-name: AWS::MediaPackage::Asset + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Asset' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Asset' + AND region = 'us-east-1' + asset_tags: + name: asset_tags + id: aws.mediapackage.asset_tags + x-cfn-schema-name: Asset + x-cfn-type-name: AWS::MediaPackage::Asset + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.EgressEndpoints') as egress_endpoints, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PackagingGroupId') as packaging_group_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.SourceRoleArn') as source_role_arn + 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::MediaPackage::Asset' + AND detail.data__TypeName = 'AWS::MediaPackage::Asset' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'EgressEndpoints') as egress_endpoints, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PackagingGroupId') as packaging_group_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'SourceRoleArn') as source_role_arn + 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::MediaPackage::Asset' + AND detail.data__TypeName = 'AWS::MediaPackage::Asset' + AND listing.region = 'us-east-1' channels: name: channels id: aws.mediapackage.channels @@ -1566,10 +1682,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Channel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.HlsIngest') as hls_ingest, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.EgressAccessLogs') as egress_access_logs, + JSON_EXTRACT(detail.Properties, '$.IngressAccessLogs') as ingress_access_logs + 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::MediaPackage::Channel' + AND detail.data__TypeName = 'AWS::MediaPackage::Channel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1590,10 +1717,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Channel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'HlsIngest') as hls_ingest, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'EgressAccessLogs') as egress_access_logs, + json_extract_path_text(detail.Properties, 'IngressAccessLogs') as ingress_access_logs + 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::MediaPackage::Channel' + AND detail.data__TypeName = 'AWS::MediaPackage::Channel' + AND listing.region = 'us-east-1' + channels_list_only: + name: channels_list_only + id: aws.mediapackage.channels_list_only + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::MediaPackage::Channel + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Channel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::Channel' + AND region = 'us-east-1' + channel_tags: + name: channel_tags + id: aws.mediapackage.channel_tags + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::MediaPackage::Channel + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.HlsIngest') as hls_ingest, + JSON_EXTRACT(detail.Properties, '$.EgressAccessLogs') as egress_access_logs, + JSON_EXTRACT(detail.Properties, '$.IngressAccessLogs') as ingress_access_logs + 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::MediaPackage::Channel' + AND detail.data__TypeName = 'AWS::MediaPackage::Channel' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'HlsIngest') as hls_ingest, + json_extract_path_text(detail.Properties, 'EgressAccessLogs') as egress_access_logs, + json_extract_path_text(detail.Properties, 'IngressAccessLogs') as ingress_access_logs + 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::MediaPackage::Channel' + AND detail.data__TypeName = 'AWS::MediaPackage::Channel' + AND listing.region = 'us-east-1' origin_endpoints: name: origin_endpoints id: aws.mediapackage.origin_endpoints @@ -1680,10 +1904,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::OriginEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ChannelId') as channel_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Whitelist') as whitelist, + JSON_EXTRACT(detail.Properties, '$.StartoverWindowSeconds') as startover_window_seconds, + JSON_EXTRACT(detail.Properties, '$.TimeDelaySeconds') as time_delay_seconds, + JSON_EXTRACT(detail.Properties, '$.ManifestName') as manifest_name, + JSON_EXTRACT(detail.Properties, '$.Origination') as origination, + JSON_EXTRACT(detail.Properties, '$.Authorization') as authorization, + JSON_EXTRACT(detail.Properties, '$.HlsPackage') as hls_package, + JSON_EXTRACT(detail.Properties, '$.DashPackage') as dash_package, + JSON_EXTRACT(detail.Properties, '$.MssPackage') as mss_package, + JSON_EXTRACT(detail.Properties, '$.CmafPackage') as cmaf_package, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaPackage::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackage::OriginEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1713,10 +1957,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::OriginEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ChannelId') as channel_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Whitelist') as whitelist, + json_extract_path_text(detail.Properties, 'StartoverWindowSeconds') as startover_window_seconds, + json_extract_path_text(detail.Properties, 'TimeDelaySeconds') as time_delay_seconds, + json_extract_path_text(detail.Properties, 'ManifestName') as manifest_name, + json_extract_path_text(detail.Properties, 'Origination') as origination, + json_extract_path_text(detail.Properties, 'Authorization') as authorization, + json_extract_path_text(detail.Properties, 'HlsPackage') as hls_package, + json_extract_path_text(detail.Properties, 'DashPackage') as dash_package, + json_extract_path_text(detail.Properties, 'MssPackage') as mss_package, + json_extract_path_text(detail.Properties, 'CmafPackage') as cmaf_package, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaPackage::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackage::OriginEndpoint' + AND listing.region = 'us-east-1' + origin_endpoints_list_only: + name: origin_endpoints_list_only + id: aws.mediapackage.origin_endpoints_list_only + x-cfn-schema-name: OriginEndpoint + x-cfn-type-name: AWS::MediaPackage::OriginEndpoint + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::OriginEndpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::OriginEndpoint' + AND region = 'us-east-1' + origin_endpoint_tags: + name: origin_endpoint_tags + id: aws.mediapackage.origin_endpoint_tags + x-cfn-schema-name: OriginEndpoint + x-cfn-type-name: AWS::MediaPackage::OriginEndpoint + 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, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ChannelId') as channel_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Whitelist') as whitelist, + JSON_EXTRACT(detail.Properties, '$.StartoverWindowSeconds') as startover_window_seconds, + JSON_EXTRACT(detail.Properties, '$.TimeDelaySeconds') as time_delay_seconds, + JSON_EXTRACT(detail.Properties, '$.ManifestName') as manifest_name, + JSON_EXTRACT(detail.Properties, '$.Origination') as origination, + JSON_EXTRACT(detail.Properties, '$.Authorization') as authorization, + JSON_EXTRACT(detail.Properties, '$.HlsPackage') as hls_package, + JSON_EXTRACT(detail.Properties, '$.DashPackage') as dash_package, + JSON_EXTRACT(detail.Properties, '$.MssPackage') as mss_package, + JSON_EXTRACT(detail.Properties, '$.CmafPackage') as cmaf_package + 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::MediaPackage::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackage::OriginEndpoint' + 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, 'Url') as url, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ChannelId') as channel_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Whitelist') as whitelist, + json_extract_path_text(detail.Properties, 'StartoverWindowSeconds') as startover_window_seconds, + json_extract_path_text(detail.Properties, 'TimeDelaySeconds') as time_delay_seconds, + json_extract_path_text(detail.Properties, 'ManifestName') as manifest_name, + json_extract_path_text(detail.Properties, 'Origination') as origination, + json_extract_path_text(detail.Properties, 'Authorization') as authorization, + json_extract_path_text(detail.Properties, 'HlsPackage') as hls_package, + json_extract_path_text(detail.Properties, 'DashPackage') as dash_package, + json_extract_path_text(detail.Properties, 'MssPackage') as mss_package, + json_extract_path_text(detail.Properties, 'CmafPackage') as cmaf_package + 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::MediaPackage::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackage::OriginEndpoint' + AND listing.region = 'us-east-1' packaging_configurations: name: packaging_configurations id: aws.mediapackage.packaging_configurations @@ -1782,10 +2150,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PackagingGroupId') as packaging_group_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CmafPackage') as cmaf_package, + JSON_EXTRACT(detail.Properties, '$.DashPackage') as dash_package, + JSON_EXTRACT(detail.Properties, '$.HlsPackage') as hls_package, + JSON_EXTRACT(detail.Properties, '$.MssPackage') as mss_package, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaPackage::PackagingConfiguration' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1807,10 +2187,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'PackagingGroupId') as packaging_group_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CmafPackage') as cmaf_package, + json_extract_path_text(detail.Properties, 'DashPackage') as dash_package, + json_extract_path_text(detail.Properties, 'HlsPackage') as hls_package, + json_extract_path_text(detail.Properties, 'MssPackage') as mss_package, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaPackage::PackagingConfiguration' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' + AND listing.region = 'us-east-1' + packaging_configurations_list_only: + name: packaging_configurations_list_only + id: aws.mediapackage.packaging_configurations_list_only + x-cfn-schema-name: PackagingConfiguration + x-cfn-type-name: AWS::MediaPackage::PackagingConfiguration + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' + AND region = 'us-east-1' + packaging_configuration_tags: + name: packaging_configuration_tags + id: aws.mediapackage.packaging_configuration_tags + x-cfn-schema-name: PackagingConfiguration + x-cfn-type-name: AWS::MediaPackage::PackagingConfiguration + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.PackagingGroupId') as packaging_group_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CmafPackage') as cmaf_package, + JSON_EXTRACT(detail.Properties, '$.DashPackage') as dash_package, + JSON_EXTRACT(detail.Properties, '$.HlsPackage') as hls_package, + JSON_EXTRACT(detail.Properties, '$.MssPackage') as mss_package + 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::MediaPackage::PackagingConfiguration' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'PackagingGroupId') as packaging_group_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CmafPackage') as cmaf_package, + json_extract_path_text(detail.Properties, 'DashPackage') as dash_package, + json_extract_path_text(detail.Properties, 'HlsPackage') as hls_package, + json_extract_path_text(detail.Properties, 'MssPackage') as mss_package + 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::MediaPackage::PackagingConfiguration' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingConfiguration' + AND listing.region = 'us-east-1' packaging_groups: name: packaging_groups id: aws.mediapackage.packaging_groups @@ -1887,10 +2367,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Authorization') as authorization, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.EgressAccessLogs') as egress_access_logs + 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::MediaPackage::PackagingGroup' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1910,10 +2400,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Authorization') as authorization, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'EgressAccessLogs') as egress_access_logs + 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::MediaPackage::PackagingGroup' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingGroup' + AND listing.region = 'us-east-1' + packaging_groups_list_only: + name: packaging_groups_list_only + id: aws.mediapackage.packaging_groups_list_only + x-cfn-schema-name: PackagingGroup + x-cfn-type-name: AWS::MediaPackage::PackagingGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackage::PackagingGroup' + AND region = 'us-east-1' + packaging_group_tags: + name: packaging_group_tags + id: aws.mediapackage.packaging_group_tags + x-cfn-schema-name: PackagingGroup + x-cfn-type-name: AWS::MediaPackage::PackagingGroup + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Authorization') as authorization, + JSON_EXTRACT(detail.Properties, '$.EgressAccessLogs') as egress_access_logs + 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::MediaPackage::PackagingGroup' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingGroup' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Authorization') as authorization, + json_extract_path_text(detail.Properties, 'EgressAccessLogs') as egress_access_logs + 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::MediaPackage::PackagingGroup' + AND detail.data__TypeName = 'AWS::MediaPackage::PackagingGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/mediapackagev2.yaml b/providers/src/aws/v00.00.00000/services/mediapackagev2.yaml index ae243b5e..99962a71 100644 --- a/providers/src/aws/v00.00.00000/services/mediapackagev2.yaml +++ b/providers/src/aws/v00.00.00000/services/mediapackagev2.yaml @@ -1493,10 +1493,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackageV2::Channel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ChannelGroupName') as channel_group_name, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IngestEndpoints') as ingest_endpoints, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaPackageV2::Channel' + AND detail.data__TypeName = 'AWS::MediaPackageV2::Channel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1518,10 +1530,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackageV2::Channel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ChannelGroupName') as channel_group_name, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IngestEndpoints') as ingest_endpoints, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaPackageV2::Channel' + AND detail.data__TypeName = 'AWS::MediaPackageV2::Channel' + AND listing.region = 'us-east-1' + channels_list_only: + name: channels_list_only + id: aws.mediapackagev2.channels_list_only + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::MediaPackageV2::Channel + 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::MediaPackageV2::Channel' + 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::MediaPackageV2::Channel' + AND region = 'us-east-1' + channel_tags: + name: channel_tags + id: aws.mediapackagev2.channel_tags + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::MediaPackageV2::Channel + 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, '$.ChannelGroupName') as channel_group_name, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.IngestEndpoints') as ingest_endpoints, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at + 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::MediaPackageV2::Channel' + AND detail.data__TypeName = 'AWS::MediaPackageV2::Channel' + 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, 'ChannelGroupName') as channel_group_name, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'IngestEndpoints') as ingest_endpoints, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at + 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::MediaPackageV2::Channel' + AND detail.data__TypeName = 'AWS::MediaPackageV2::Channel' + AND listing.region = 'us-east-1' channel_groups: name: channel_groups id: aws.mediapackagev2.channel_groups @@ -1599,10 +1711,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackageV2::ChannelGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ChannelGroupName') as channel_group_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EgressDomain') as egress_domain, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaPackageV2::ChannelGroup' + AND detail.data__TypeName = 'AWS::MediaPackageV2::ChannelGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1623,10 +1746,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackageV2::ChannelGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ChannelGroupName') as channel_group_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EgressDomain') as egress_domain, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaPackageV2::ChannelGroup' + AND detail.data__TypeName = 'AWS::MediaPackageV2::ChannelGroup' + AND listing.region = 'us-east-1' + channel_groups_list_only: + name: channel_groups_list_only + id: aws.mediapackagev2.channel_groups_list_only + x-cfn-schema-name: ChannelGroup + x-cfn-type-name: AWS::MediaPackageV2::ChannelGroup + 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::MediaPackageV2::ChannelGroup' + 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::MediaPackageV2::ChannelGroup' + AND region = 'us-east-1' + channel_group_tags: + name: channel_group_tags + id: aws.mediapackagev2.channel_group_tags + x-cfn-schema-name: ChannelGroup + x-cfn-type-name: AWS::MediaPackageV2::ChannelGroup + 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, '$.ChannelGroupName') as channel_group_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EgressDomain') as egress_domain, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at + 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::MediaPackageV2::ChannelGroup' + AND detail.data__TypeName = 'AWS::MediaPackageV2::ChannelGroup' + 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, 'ChannelGroupName') as channel_group_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EgressDomain') as egress_domain, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at + 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::MediaPackageV2::ChannelGroup' + AND detail.data__TypeName = 'AWS::MediaPackageV2::ChannelGroup' + AND listing.region = 'us-east-1' channel_policies: name: channel_policies id: aws.mediapackagev2.channel_policies @@ -1793,10 +2013,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackageV2::OriginEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ChannelGroupName') as channel_group_name, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.ContainerType') as container_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DashManifests') as dash_manifests, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.HlsManifests') as hls_manifests, + JSON_EXTRACT(detail.Properties, '$.LowLatencyHlsManifests') as low_latency_hls_manifests, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.OriginEndpointName') as origin_endpoint_name, + JSON_EXTRACT(detail.Properties, '$.Segment') as segment, + JSON_EXTRACT(detail.Properties, '$.StartoverWindowSeconds') as startover_window_seconds, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaPackageV2::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackageV2::OriginEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1824,10 +2062,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaPackageV2::OriginEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ChannelGroupName') as channel_group_name, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'ContainerType') as container_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DashManifests') as dash_manifests, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'HlsManifests') as hls_manifests, + json_extract_path_text(detail.Properties, 'LowLatencyHlsManifests') as low_latency_hls_manifests, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'OriginEndpointName') as origin_endpoint_name, + json_extract_path_text(detail.Properties, 'Segment') as segment, + json_extract_path_text(detail.Properties, 'StartoverWindowSeconds') as startover_window_seconds, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaPackageV2::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackageV2::OriginEndpoint' + AND listing.region = 'us-east-1' + origin_endpoints_list_only: + name: origin_endpoints_list_only + id: aws.mediapackagev2.origin_endpoints_list_only + x-cfn-schema-name: OriginEndpoint + x-cfn-type-name: AWS::MediaPackageV2::OriginEndpoint + 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::MediaPackageV2::OriginEndpoint' + 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::MediaPackageV2::OriginEndpoint' + AND region = 'us-east-1' + origin_endpoint_tags: + name: origin_endpoint_tags + id: aws.mediapackagev2.origin_endpoint_tags + x-cfn-schema-name: OriginEndpoint + x-cfn-type-name: AWS::MediaPackageV2::OriginEndpoint + 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, '$.ChannelGroupName') as channel_group_name, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.ContainerType') as container_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DashManifests') as dash_manifests, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.HlsManifests') as hls_manifests, + JSON_EXTRACT(detail.Properties, '$.LowLatencyHlsManifests') as low_latency_hls_manifests, + JSON_EXTRACT(detail.Properties, '$.ModifiedAt') as modified_at, + JSON_EXTRACT(detail.Properties, '$.OriginEndpointName') as origin_endpoint_name, + JSON_EXTRACT(detail.Properties, '$.Segment') as segment, + JSON_EXTRACT(detail.Properties, '$.StartoverWindowSeconds') as startover_window_seconds + 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::MediaPackageV2::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackageV2::OriginEndpoint' + 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, 'ChannelGroupName') as channel_group_name, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'ContainerType') as container_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DashManifests') as dash_manifests, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'HlsManifests') as hls_manifests, + json_extract_path_text(detail.Properties, 'LowLatencyHlsManifests') as low_latency_hls_manifests, + json_extract_path_text(detail.Properties, 'ModifiedAt') as modified_at, + json_extract_path_text(detail.Properties, 'OriginEndpointName') as origin_endpoint_name, + json_extract_path_text(detail.Properties, 'Segment') as segment, + json_extract_path_text(detail.Properties, 'StartoverWindowSeconds') as startover_window_seconds + 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::MediaPackageV2::OriginEndpoint' + AND detail.data__TypeName = 'AWS::MediaPackageV2::OriginEndpoint' + AND listing.region = 'us-east-1' origin_endpoint_policies: name: origin_endpoint_policies id: aws.mediapackagev2.origin_endpoint_policies diff --git a/providers/src/aws/v00.00.00000/services/mediatailor.yaml b/providers/src/aws/v00.00.00000/services/mediatailor.yaml index 0a10e784..bc526c6d 100644 --- a/providers/src/aws/v00.00.00000/services/mediatailor.yaml +++ b/providers/src/aws/v00.00.00000/services/mediatailor.yaml @@ -1461,10 +1461,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ChannelName') as channel_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::Channel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Audiences') as audiences, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.FillerSlate') as filler_slate, + JSON_EXTRACT(detail.Properties, '$.LogConfiguration') as log_configuration, + JSON_EXTRACT(detail.Properties, '$.Outputs') as outputs, + JSON_EXTRACT(detail.Properties, '$.PlaybackMode') as playback_mode, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.TimeShiftConfiguration') as time_shift_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::MediaTailor::Channel' + AND detail.data__TypeName = 'AWS::MediaTailor::Channel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1488,10 +1502,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ChannelName') as channel_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::Channel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Audiences') as audiences, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'FillerSlate') as filler_slate, + json_extract_path_text(detail.Properties, 'LogConfiguration') as log_configuration, + json_extract_path_text(detail.Properties, 'Outputs') as outputs, + json_extract_path_text(detail.Properties, 'PlaybackMode') as playback_mode, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'TimeShiftConfiguration') as time_shift_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::MediaTailor::Channel' + AND detail.data__TypeName = 'AWS::MediaTailor::Channel' + AND listing.region = 'us-east-1' + channels_list_only: + name: channels_list_only + id: aws.mediatailor.channels_list_only + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::MediaTailor::Channel + x-identifiers: + - ChannelName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ChannelName') as channel_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::Channel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ChannelName') as channel_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::Channel' + AND region = 'us-east-1' + channel_tags: + name: channel_tags + id: aws.mediatailor.channel_tags + x-cfn-schema-name: Channel + x-cfn-type-name: AWS::MediaTailor::Channel + 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, '$.Audiences') as audiences, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.FillerSlate') as filler_slate, + JSON_EXTRACT(detail.Properties, '$.LogConfiguration') as log_configuration, + JSON_EXTRACT(detail.Properties, '$.Outputs') as outputs, + JSON_EXTRACT(detail.Properties, '$.PlaybackMode') as playback_mode, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.TimeShiftConfiguration') as time_shift_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::MediaTailor::Channel' + AND detail.data__TypeName = 'AWS::MediaTailor::Channel' + 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, 'Audiences') as audiences, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'FillerSlate') as filler_slate, + json_extract_path_text(detail.Properties, 'LogConfiguration') as log_configuration, + json_extract_path_text(detail.Properties, 'Outputs') as outputs, + json_extract_path_text(detail.Properties, 'PlaybackMode') as playback_mode, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'TimeShiftConfiguration') as time_shift_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::MediaTailor::Channel' + AND detail.data__TypeName = 'AWS::MediaTailor::Channel' + AND listing.region = 'us-east-1' channel_policies: name: channel_policies id: aws.mediatailor.channel_policies @@ -1647,11 +1767,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LiveSourceName') as live_source_name, - JSON_EXTRACT(Properties, '$.SourceLocationName') as source_location_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::LiveSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.HttpPackageConfigurations') as http_package_configurations, + JSON_EXTRACT(detail.Properties, '$.LiveSourceName') as live_source_name, + JSON_EXTRACT(detail.Properties, '$.SourceLocationName') as source_location_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaTailor::LiveSource' + AND detail.data__TypeName = 'AWS::MediaTailor::LiveSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1670,11 +1798,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LiveSourceName') as live_source_name, - json_extract_path_text(Properties, 'SourceLocationName') as source_location_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::LiveSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'HttpPackageConfigurations') as http_package_configurations, + json_extract_path_text(detail.Properties, 'LiveSourceName') as live_source_name, + json_extract_path_text(detail.Properties, 'SourceLocationName') as source_location_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaTailor::LiveSource' + AND detail.data__TypeName = 'AWS::MediaTailor::LiveSource' + AND listing.region = 'us-east-1' + live_sources_list_only: + name: live_sources_list_only + id: aws.mediatailor.live_sources_list_only + x-cfn-schema-name: LiveSource + x-cfn-type-name: AWS::MediaTailor::LiveSource + x-identifiers: + - LiveSourceName + - SourceLocationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LiveSourceName') as live_source_name, + JSON_EXTRACT(Properties, '$.SourceLocationName') as source_location_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::LiveSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LiveSourceName') as live_source_name, + json_extract_path_text(Properties, 'SourceLocationName') as source_location_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::LiveSource' + AND region = 'us-east-1' + live_source_tags: + name: live_source_tags + id: aws.mediatailor.live_source_tags + x-cfn-schema-name: LiveSource + x-cfn-type-name: AWS::MediaTailor::LiveSource + 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, '$.HttpPackageConfigurations') as http_package_configurations, + JSON_EXTRACT(detail.Properties, '$.LiveSourceName') as live_source_name, + JSON_EXTRACT(detail.Properties, '$.SourceLocationName') as source_location_name + 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::MediaTailor::LiveSource' + AND detail.data__TypeName = 'AWS::MediaTailor::LiveSource' + 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, 'HttpPackageConfigurations') as http_package_configurations, + json_extract_path_text(detail.Properties, 'LiveSourceName') as live_source_name, + json_extract_path_text(detail.Properties, 'SourceLocationName') as source_location_name + 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::MediaTailor::LiveSource' + AND detail.data__TypeName = 'AWS::MediaTailor::LiveSource' + AND listing.region = 'us-east-1' playback_configurations: name: playback_configurations id: aws.mediatailor.playback_configurations @@ -1763,10 +1984,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdDecisionServerUrl') as ad_decision_server_url, + JSON_EXTRACT(detail.Properties, '$.AvailSuppression') as avail_suppression, + JSON_EXTRACT(detail.Properties, '$.Bumper') as bumper, + JSON_EXTRACT(detail.Properties, '$.CdnConfiguration') as cdn_configuration, + JSON_EXTRACT(detail.Properties, '$.ConfigurationAliases') as configuration_aliases, + JSON_EXTRACT(detail.Properties, '$.DashConfiguration') as dash_configuration, + JSON_EXTRACT(detail.Properties, '$.LivePreRollConfiguration') as live_pre_roll_configuration, + JSON_EXTRACT(detail.Properties, '$.ManifestProcessingRules') as manifest_processing_rules, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PersonalizationThresholdSeconds') as personalization_threshold_seconds, + JSON_EXTRACT(detail.Properties, '$.SessionInitializationEndpointPrefix') as session_initialization_endpoint_prefix, + JSON_EXTRACT(detail.Properties, '$.HlsConfiguration') as hls_configuration, + JSON_EXTRACT(detail.Properties, '$.PlaybackConfigurationArn') as playback_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.PlaybackEndpointPrefix') as playback_endpoint_prefix, + JSON_EXTRACT(detail.Properties, '$.SlateAdUrl') as slate_ad_url, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TranscodeProfileName') as transcode_profile_name, + JSON_EXTRACT(detail.Properties, '$.VideoContentSourceUrl') as video_content_source_url + 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::MediaTailor::PlaybackConfiguration' + AND detail.data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1798,10 +2041,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdDecisionServerUrl') as ad_decision_server_url, + json_extract_path_text(detail.Properties, 'AvailSuppression') as avail_suppression, + json_extract_path_text(detail.Properties, 'Bumper') as bumper, + json_extract_path_text(detail.Properties, 'CdnConfiguration') as cdn_configuration, + json_extract_path_text(detail.Properties, 'ConfigurationAliases') as configuration_aliases, + json_extract_path_text(detail.Properties, 'DashConfiguration') as dash_configuration, + json_extract_path_text(detail.Properties, 'LivePreRollConfiguration') as live_pre_roll_configuration, + json_extract_path_text(detail.Properties, 'ManifestProcessingRules') as manifest_processing_rules, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PersonalizationThresholdSeconds') as personalization_threshold_seconds, + json_extract_path_text(detail.Properties, 'SessionInitializationEndpointPrefix') as session_initialization_endpoint_prefix, + json_extract_path_text(detail.Properties, 'HlsConfiguration') as hls_configuration, + json_extract_path_text(detail.Properties, 'PlaybackConfigurationArn') as playback_configuration_arn, + json_extract_path_text(detail.Properties, 'PlaybackEndpointPrefix') as playback_endpoint_prefix, + json_extract_path_text(detail.Properties, 'SlateAdUrl') as slate_ad_url, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TranscodeProfileName') as transcode_profile_name, + json_extract_path_text(detail.Properties, 'VideoContentSourceUrl') as video_content_source_url + 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::MediaTailor::PlaybackConfiguration' + AND detail.data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' + AND listing.region = 'us-east-1' + playback_configurations_list_only: + name: playback_configurations_list_only + id: aws.mediatailor.playback_configurations_list_only + x-cfn-schema-name: PlaybackConfiguration + x-cfn-type-name: AWS::MediaTailor::PlaybackConfiguration + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' + AND region = 'us-east-1' + playback_configuration_tags: + name: playback_configuration_tags + id: aws.mediatailor.playback_configuration_tags + x-cfn-schema-name: PlaybackConfiguration + x-cfn-type-name: AWS::MediaTailor::PlaybackConfiguration + 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, '$.AdDecisionServerUrl') as ad_decision_server_url, + JSON_EXTRACT(detail.Properties, '$.AvailSuppression') as avail_suppression, + JSON_EXTRACT(detail.Properties, '$.Bumper') as bumper, + JSON_EXTRACT(detail.Properties, '$.CdnConfiguration') as cdn_configuration, + JSON_EXTRACT(detail.Properties, '$.ConfigurationAliases') as configuration_aliases, + JSON_EXTRACT(detail.Properties, '$.DashConfiguration') as dash_configuration, + JSON_EXTRACT(detail.Properties, '$.LivePreRollConfiguration') as live_pre_roll_configuration, + JSON_EXTRACT(detail.Properties, '$.ManifestProcessingRules') as manifest_processing_rules, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PersonalizationThresholdSeconds') as personalization_threshold_seconds, + JSON_EXTRACT(detail.Properties, '$.SessionInitializationEndpointPrefix') as session_initialization_endpoint_prefix, + JSON_EXTRACT(detail.Properties, '$.HlsConfiguration') as hls_configuration, + JSON_EXTRACT(detail.Properties, '$.PlaybackConfigurationArn') as playback_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.PlaybackEndpointPrefix') as playback_endpoint_prefix, + JSON_EXTRACT(detail.Properties, '$.SlateAdUrl') as slate_ad_url, + JSON_EXTRACT(detail.Properties, '$.TranscodeProfileName') as transcode_profile_name, + JSON_EXTRACT(detail.Properties, '$.VideoContentSourceUrl') as video_content_source_url + 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::MediaTailor::PlaybackConfiguration' + AND detail.data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' + 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, 'AdDecisionServerUrl') as ad_decision_server_url, + json_extract_path_text(detail.Properties, 'AvailSuppression') as avail_suppression, + json_extract_path_text(detail.Properties, 'Bumper') as bumper, + json_extract_path_text(detail.Properties, 'CdnConfiguration') as cdn_configuration, + json_extract_path_text(detail.Properties, 'ConfigurationAliases') as configuration_aliases, + json_extract_path_text(detail.Properties, 'DashConfiguration') as dash_configuration, + json_extract_path_text(detail.Properties, 'LivePreRollConfiguration') as live_pre_roll_configuration, + json_extract_path_text(detail.Properties, 'ManifestProcessingRules') as manifest_processing_rules, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PersonalizationThresholdSeconds') as personalization_threshold_seconds, + json_extract_path_text(detail.Properties, 'SessionInitializationEndpointPrefix') as session_initialization_endpoint_prefix, + json_extract_path_text(detail.Properties, 'HlsConfiguration') as hls_configuration, + json_extract_path_text(detail.Properties, 'PlaybackConfigurationArn') as playback_configuration_arn, + json_extract_path_text(detail.Properties, 'PlaybackEndpointPrefix') as playback_endpoint_prefix, + json_extract_path_text(detail.Properties, 'SlateAdUrl') as slate_ad_url, + json_extract_path_text(detail.Properties, 'TranscodeProfileName') as transcode_profile_name, + json_extract_path_text(detail.Properties, 'VideoContentSourceUrl') as video_content_source_url + 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::MediaTailor::PlaybackConfiguration' + AND detail.data__TypeName = 'AWS::MediaTailor::PlaybackConfiguration' + AND listing.region = 'us-east-1' source_locations: name: source_locations id: aws.mediatailor.source_locations @@ -1879,10 +2252,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SourceLocationName') as source_location_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::SourceLocation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessConfiguration') as access_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DefaultSegmentDeliveryConfiguration') as default_segment_delivery_configuration, + JSON_EXTRACT(detail.Properties, '$.HttpConfiguration') as http_configuration, + JSON_EXTRACT(detail.Properties, '$.SegmentDeliveryConfigurations') as segment_delivery_configurations, + JSON_EXTRACT(detail.Properties, '$.SourceLocationName') as source_location_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MediaTailor::SourceLocation' + AND detail.data__TypeName = 'AWS::MediaTailor::SourceLocation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1903,10 +2287,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SourceLocationName') as source_location_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::SourceLocation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessConfiguration') as access_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DefaultSegmentDeliveryConfiguration') as default_segment_delivery_configuration, + json_extract_path_text(detail.Properties, 'HttpConfiguration') as http_configuration, + json_extract_path_text(detail.Properties, 'SegmentDeliveryConfigurations') as segment_delivery_configurations, + json_extract_path_text(detail.Properties, 'SourceLocationName') as source_location_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MediaTailor::SourceLocation' + AND detail.data__TypeName = 'AWS::MediaTailor::SourceLocation' + AND listing.region = 'us-east-1' + source_locations_list_only: + name: source_locations_list_only + id: aws.mediatailor.source_locations_list_only + x-cfn-schema-name: SourceLocation + x-cfn-type-name: AWS::MediaTailor::SourceLocation + x-identifiers: + - SourceLocationName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SourceLocationName') as source_location_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::SourceLocation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SourceLocationName') as source_location_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::SourceLocation' + AND region = 'us-east-1' + source_location_tags: + name: source_location_tags + id: aws.mediatailor.source_location_tags + x-cfn-schema-name: SourceLocation + x-cfn-type-name: AWS::MediaTailor::SourceLocation + 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, '$.AccessConfiguration') as access_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DefaultSegmentDeliveryConfiguration') as default_segment_delivery_configuration, + JSON_EXTRACT(detail.Properties, '$.HttpConfiguration') as http_configuration, + JSON_EXTRACT(detail.Properties, '$.SegmentDeliveryConfigurations') as segment_delivery_configurations, + JSON_EXTRACT(detail.Properties, '$.SourceLocationName') as source_location_name + 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::MediaTailor::SourceLocation' + AND detail.data__TypeName = 'AWS::MediaTailor::SourceLocation' + 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, 'AccessConfiguration') as access_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DefaultSegmentDeliveryConfiguration') as default_segment_delivery_configuration, + json_extract_path_text(detail.Properties, 'HttpConfiguration') as http_configuration, + json_extract_path_text(detail.Properties, 'SegmentDeliveryConfigurations') as segment_delivery_configurations, + json_extract_path_text(detail.Properties, 'SourceLocationName') as source_location_name + 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::MediaTailor::SourceLocation' + AND detail.data__TypeName = 'AWS::MediaTailor::SourceLocation' + AND listing.region = 'us-east-1' vod_sources: name: vod_sources id: aws.mediatailor.vod_sources @@ -1983,11 +2464,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SourceLocationName') as source_location_name, - JSON_EXTRACT(Properties, '$.VodSourceName') as vod_source_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::VodSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.HttpPackageConfigurations') as http_package_configurations, + JSON_EXTRACT(detail.Properties, '$.SourceLocationName') as source_location_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VodSourceName') as vod_source_name + 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::MediaTailor::VodSource' + AND detail.data__TypeName = 'AWS::MediaTailor::VodSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2006,11 +2495,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SourceLocationName') as source_location_name, - json_extract_path_text(Properties, 'VodSourceName') as vod_source_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::VodSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'HttpPackageConfigurations') as http_package_configurations, + json_extract_path_text(detail.Properties, 'SourceLocationName') as source_location_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VodSourceName') as vod_source_name + 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::MediaTailor::VodSource' + AND detail.data__TypeName = 'AWS::MediaTailor::VodSource' + AND listing.region = 'us-east-1' + vod_sources_list_only: + name: vod_sources_list_only + id: aws.mediatailor.vod_sources_list_only + x-cfn-schema-name: VodSource + x-cfn-type-name: AWS::MediaTailor::VodSource + x-identifiers: + - SourceLocationName + - VodSourceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SourceLocationName') as source_location_name, + JSON_EXTRACT(Properties, '$.VodSourceName') as vod_source_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::VodSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SourceLocationName') as source_location_name, + json_extract_path_text(Properties, 'VodSourceName') as vod_source_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MediaTailor::VodSource' + AND region = 'us-east-1' + vod_source_tags: + name: vod_source_tags + id: aws.mediatailor.vod_source_tags + x-cfn-schema-name: VodSource + x-cfn-type-name: AWS::MediaTailor::VodSource + 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, '$.HttpPackageConfigurations') as http_package_configurations, + JSON_EXTRACT(detail.Properties, '$.SourceLocationName') as source_location_name, + JSON_EXTRACT(detail.Properties, '$.VodSourceName') as vod_source_name + 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::MediaTailor::VodSource' + AND detail.data__TypeName = 'AWS::MediaTailor::VodSource' + 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, 'HttpPackageConfigurations') as http_package_configurations, + json_extract_path_text(detail.Properties, 'SourceLocationName') as source_location_name, + json_extract_path_text(detail.Properties, 'VodSourceName') as vod_source_name + 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::MediaTailor::VodSource' + AND detail.data__TypeName = 'AWS::MediaTailor::VodSource' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/memorydb.yaml b/providers/src/aws/v00.00.00000/services/memorydb.yaml index c531b454..7a6f4b51 100644 --- a/providers/src/aws/v00.00.00000/services/memorydb.yaml +++ b/providers/src/aws/v00.00.00000/services/memorydb.yaml @@ -1249,10 +1249,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ACLName') as acl_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ACL' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ACLName') as acl_name, + JSON_EXTRACT(detail.Properties, '$.UserNames') as user_names, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MemoryDB::ACL' + AND detail.data__TypeName = 'AWS::MemoryDB::ACL' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1271,10 +1280,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ACLName') as acl_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ACL' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ACLName') as acl_name, + json_extract_path_text(detail.Properties, 'UserNames') as user_names, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MemoryDB::ACL' + AND detail.data__TypeName = 'AWS::MemoryDB::ACL' + AND listing.region = 'us-east-1' + acls_list_only: + name: acls_list_only + id: aws.memorydb.acls_list_only + x-cfn-schema-name: ACL + x-cfn-type-name: AWS::MemoryDB::ACL + x-identifiers: + - ACLName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ACLName') as acl_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ACL' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ACLName') as acl_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ACL' + AND region = 'us-east-1' + acl_tags: + name: acl_tags + id: aws.memorydb.acl_tags + x-cfn-schema-name: ACL + x-cfn-type-name: AWS::MemoryDB::ACL + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ACLName') as acl_name, + JSON_EXTRACT(detail.Properties, '$.UserNames') as user_names, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::MemoryDB::ACL' + AND detail.data__TypeName = 'AWS::MemoryDB::ACL' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'ACLName') as acl_name, + json_extract_path_text(detail.Properties, 'UserNames') as user_names, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::MemoryDB::ACL' + AND detail.data__TypeName = 'AWS::MemoryDB::ACL' + AND listing.region = 'us-east-1' clusters: name: clusters id: aws.memorydb.clusters @@ -1373,10 +1473,42 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::Cluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.NodeType') as node_type, + JSON_EXTRACT(detail.Properties, '$.NumShards') as num_shards, + JSON_EXTRACT(detail.Properties, '$.NumReplicasPerShard') as num_replicas_per_shard, + JSON_EXTRACT(detail.Properties, '$.SubnetGroupName') as subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.MaintenanceWindow') as maintenance_window, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupName') as parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupStatus') as parameter_group_status, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.SnapshotRetentionLimit') as snapshot_retention_limit, + JSON_EXTRACT(detail.Properties, '$.SnapshotWindow') as snapshot_window, + JSON_EXTRACT(detail.Properties, '$.ACLName') as acl_name, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicStatus') as sns_topic_status, + JSON_EXTRACT(detail.Properties, '$.TLSEnabled') as tls_enabled, + JSON_EXTRACT(detail.Properties, '$.DataTiering') as data_tiering, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SnapshotArns') as snapshot_arns, + JSON_EXTRACT(detail.Properties, '$.SnapshotName') as snapshot_name, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotName') as final_snapshot_name, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.ClusterEndpoint') as cluster_endpoint, + JSON_EXTRACT(detail.Properties, '$.AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MemoryDB::Cluster' + AND detail.data__TypeName = 'AWS::MemoryDB::Cluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1418,10 +1550,170 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterName') as cluster_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::Cluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'NodeType') as node_type, + json_extract_path_text(detail.Properties, 'NumShards') as num_shards, + json_extract_path_text(detail.Properties, 'NumReplicasPerShard') as num_replicas_per_shard, + json_extract_path_text(detail.Properties, 'SubnetGroupName') as subnet_group_name, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'MaintenanceWindow') as maintenance_window, + json_extract_path_text(detail.Properties, 'ParameterGroupName') as parameter_group_name, + json_extract_path_text(detail.Properties, 'ParameterGroupStatus') as parameter_group_status, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'SnapshotRetentionLimit') as snapshot_retention_limit, + json_extract_path_text(detail.Properties, 'SnapshotWindow') as snapshot_window, + json_extract_path_text(detail.Properties, 'ACLName') as acl_name, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'SnsTopicStatus') as sns_topic_status, + json_extract_path_text(detail.Properties, 'TLSEnabled') as tls_enabled, + json_extract_path_text(detail.Properties, 'DataTiering') as data_tiering, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SnapshotArns') as snapshot_arns, + json_extract_path_text(detail.Properties, 'SnapshotName') as snapshot_name, + json_extract_path_text(detail.Properties, 'FinalSnapshotName') as final_snapshot_name, + json_extract_path_text(detail.Properties, 'ARN') as arn, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'ClusterEndpoint') as cluster_endpoint, + json_extract_path_text(detail.Properties, 'AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MemoryDB::Cluster' + AND detail.data__TypeName = 'AWS::MemoryDB::Cluster' + AND listing.region = 'us-east-1' + clusters_list_only: + name: clusters_list_only + id: aws.memorydb.clusters_list_only + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::MemoryDB::Cluster + x-identifiers: + - ClusterName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterName') as cluster_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::Cluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterName') as cluster_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::Cluster' + AND region = 'us-east-1' + cluster_tags: + name: cluster_tags + id: aws.memorydb.cluster_tags + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::MemoryDB::Cluster + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.NodeType') as node_type, + JSON_EXTRACT(detail.Properties, '$.NumShards') as num_shards, + JSON_EXTRACT(detail.Properties, '$.NumReplicasPerShard') as num_replicas_per_shard, + JSON_EXTRACT(detail.Properties, '$.SubnetGroupName') as subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.MaintenanceWindow') as maintenance_window, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupName') as parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupStatus') as parameter_group_status, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.SnapshotRetentionLimit') as snapshot_retention_limit, + JSON_EXTRACT(detail.Properties, '$.SnapshotWindow') as snapshot_window, + JSON_EXTRACT(detail.Properties, '$.ACLName') as acl_name, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.SnsTopicStatus') as sns_topic_status, + JSON_EXTRACT(detail.Properties, '$.TLSEnabled') as tls_enabled, + JSON_EXTRACT(detail.Properties, '$.DataTiering') as data_tiering, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SnapshotArns') as snapshot_arns, + JSON_EXTRACT(detail.Properties, '$.SnapshotName') as snapshot_name, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotName') as final_snapshot_name, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.ClusterEndpoint') as cluster_endpoint, + JSON_EXTRACT(detail.Properties, '$.AutoMinorVersionUpgrade') as auto_minor_version_upgrade + 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::MemoryDB::Cluster' + AND detail.data__TypeName = 'AWS::MemoryDB::Cluster' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'NodeType') as node_type, + json_extract_path_text(detail.Properties, 'NumShards') as num_shards, + json_extract_path_text(detail.Properties, 'NumReplicasPerShard') as num_replicas_per_shard, + json_extract_path_text(detail.Properties, 'SubnetGroupName') as subnet_group_name, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'MaintenanceWindow') as maintenance_window, + json_extract_path_text(detail.Properties, 'ParameterGroupName') as parameter_group_name, + json_extract_path_text(detail.Properties, 'ParameterGroupStatus') as parameter_group_status, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'SnapshotRetentionLimit') as snapshot_retention_limit, + json_extract_path_text(detail.Properties, 'SnapshotWindow') as snapshot_window, + json_extract_path_text(detail.Properties, 'ACLName') as acl_name, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'SnsTopicStatus') as sns_topic_status, + json_extract_path_text(detail.Properties, 'TLSEnabled') as tls_enabled, + json_extract_path_text(detail.Properties, 'DataTiering') as data_tiering, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SnapshotArns') as snapshot_arns, + json_extract_path_text(detail.Properties, 'SnapshotName') as snapshot_name, + json_extract_path_text(detail.Properties, 'FinalSnapshotName') as final_snapshot_name, + json_extract_path_text(detail.Properties, 'ARN') as arn, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'ClusterEndpoint') as cluster_endpoint, + json_extract_path_text(detail.Properties, 'AutoMinorVersionUpgrade') as auto_minor_version_upgrade + 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::MemoryDB::Cluster' + AND detail.data__TypeName = 'AWS::MemoryDB::Cluster' + AND listing.region = 'us-east-1' parameter_groups: name: parameter_groups id: aws.memorydb.parameter_groups @@ -1498,10 +1790,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ParameterGroupName') as parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ParameterGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupName') as parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn + 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::MemoryDB::ParameterGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::ParameterGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1521,10 +1823,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ParameterGroupName') as parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ParameterGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ParameterGroupName') as parameter_group_name, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'ARN') as arn + 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::MemoryDB::ParameterGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::ParameterGroup' + AND listing.region = 'us-east-1' + parameter_groups_list_only: + name: parameter_groups_list_only + id: aws.memorydb.parameter_groups_list_only + x-cfn-schema-name: ParameterGroup + x-cfn-type-name: AWS::MemoryDB::ParameterGroup + x-identifiers: + - ParameterGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ParameterGroupName') as parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ParameterGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ParameterGroupName') as parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::ParameterGroup' + AND region = 'us-east-1' + parameter_group_tags: + name: parameter_group_tags + id: aws.memorydb.parameter_group_tags + x-cfn-schema-name: ParameterGroup + x-cfn-type-name: AWS::MemoryDB::ParameterGroup + 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, '$.ParameterGroupName') as parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn + 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::MemoryDB::ParameterGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::ParameterGroup' + 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, 'ParameterGroupName') as parameter_group_name, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'ARN') as arn + 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::MemoryDB::ParameterGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::ParameterGroup' + AND listing.region = 'us-east-1' subnet_groups: name: subnet_groups id: aws.memorydb.subnet_groups @@ -1600,10 +1996,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SubnetGroupName') as subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::SubnetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SubnetGroupName') as subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn + 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::MemoryDB::SubnetGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::SubnetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1622,10 +2027,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SubnetGroupName') as subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::SubnetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SubnetGroupName') as subnet_group_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ARN') as arn + 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::MemoryDB::SubnetGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::SubnetGroup' + AND listing.region = 'us-east-1' + subnet_groups_list_only: + name: subnet_groups_list_only + id: aws.memorydb.subnet_groups_list_only + x-cfn-schema-name: SubnetGroup + x-cfn-type-name: AWS::MemoryDB::SubnetGroup + x-identifiers: + - SubnetGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SubnetGroupName') as subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::SubnetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SubnetGroupName') as subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::SubnetGroup' + AND region = 'us-east-1' + subnet_group_tags: + name: subnet_group_tags + id: aws.memorydb.subnet_group_tags + x-cfn-schema-name: SubnetGroup + x-cfn-type-name: AWS::MemoryDB::SubnetGroup + 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, '$.SubnetGroupName') as subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn + 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::MemoryDB::SubnetGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::SubnetGroup' + 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, 'SubnetGroupName') as subnet_group_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'ARN') as arn + 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::MemoryDB::SubnetGroup' + AND detail.data__TypeName = 'AWS::MemoryDB::SubnetGroup' + AND listing.region = 'us-east-1' users: name: users id: aws.memorydb.users @@ -1702,10 +2198,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserName') as user_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::User' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.AccessString') as access_string, + JSON_EXTRACT(detail.Properties, '$.AuthenticationMode') as authentication_mode, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MemoryDB::User' + AND detail.data__TypeName = 'AWS::MemoryDB::User' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1725,10 +2231,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserName') as user_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::User' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'AccessString') as access_string, + json_extract_path_text(detail.Properties, 'AuthenticationMode') as authentication_mode, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MemoryDB::User' + AND detail.data__TypeName = 'AWS::MemoryDB::User' + AND listing.region = 'us-east-1' + users_list_only: + name: users_list_only + id: aws.memorydb.users_list_only + x-cfn-schema-name: User + x-cfn-type-name: AWS::MemoryDB::User + x-identifiers: + - UserName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserName') as user_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::User' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserName') as user_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MemoryDB::User' + AND region = 'us-east-1' + user_tags: + name: user_tags + id: aws.memorydb.user_tags + x-cfn-schema-name: User + x-cfn-type-name: AWS::MemoryDB::User + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UserName') as user_name, + JSON_EXTRACT(detail.Properties, '$.AccessString') as access_string, + JSON_EXTRACT(detail.Properties, '$.AuthenticationMode') as authentication_mode, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::MemoryDB::User' + AND detail.data__TypeName = 'AWS::MemoryDB::User' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'UserName') as user_name, + json_extract_path_text(detail.Properties, 'AccessString') as access_string, + json_extract_path_text(detail.Properties, 'AuthenticationMode') as authentication_mode, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::MemoryDB::User' + AND detail.data__TypeName = 'AWS::MemoryDB::User' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/msk.yaml b/providers/src/aws/v00.00.00000/services/msk.yaml index 57031bec..7a768b1a 100644 --- a/providers/src/aws/v00.00.00000/services/msk.yaml +++ b/providers/src/aws/v00.00.00000/services/msk.yaml @@ -1862,10 +1862,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::BatchScramSecret' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.SecretArnList') as secret_arn_list + 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::MSK::BatchScramSecret' + AND detail.data__TypeName = 'AWS::MSK::BatchScramSecret' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1881,10 +1887,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::BatchScramSecret' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'SecretArnList') as secret_arn_list + 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::MSK::BatchScramSecret' + AND detail.data__TypeName = 'AWS::MSK::BatchScramSecret' + AND listing.region = 'us-east-1' + batch_scram_secrets_list_only: + name: batch_scram_secrets_list_only + id: aws.msk.batch_scram_secrets_list_only + x-cfn-schema-name: BatchScramSecret + x-cfn-type-name: AWS::MSK::BatchScramSecret + x-identifiers: + - ClusterArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::BatchScramSecret' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::BatchScramSecret' + AND region = 'us-east-1' clusters: name: clusters id: aws.msk.clusters @@ -1969,10 +2012,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Cluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BrokerNodeGroupInfo') as broker_node_group_info, + JSON_EXTRACT(detail.Properties, '$.EnhancedMonitoring') as enhanced_monitoring, + JSON_EXTRACT(detail.Properties, '$.KafkaVersion') as kafka_version, + JSON_EXTRACT(detail.Properties, '$.NumberOfBrokerNodes') as number_of_broker_nodes, + JSON_EXTRACT(detail.Properties, '$.EncryptionInfo') as encryption_info, + JSON_EXTRACT(detail.Properties, '$.OpenMonitoring') as open_monitoring, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CurrentVersion') as current_version, + JSON_EXTRACT(detail.Properties, '$.ClientAuthentication') as client_authentication, + JSON_EXTRACT(detail.Properties, '$.LoggingInfo') as logging_info, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ConfigurationInfo') as configuration_info, + JSON_EXTRACT(detail.Properties, '$.StorageMode') as storage_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::MSK::Cluster' + AND detail.data__TypeName = 'AWS::MSK::Cluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2000,10 +2061,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Cluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BrokerNodeGroupInfo') as broker_node_group_info, + json_extract_path_text(detail.Properties, 'EnhancedMonitoring') as enhanced_monitoring, + json_extract_path_text(detail.Properties, 'KafkaVersion') as kafka_version, + json_extract_path_text(detail.Properties, 'NumberOfBrokerNodes') as number_of_broker_nodes, + json_extract_path_text(detail.Properties, 'EncryptionInfo') as encryption_info, + json_extract_path_text(detail.Properties, 'OpenMonitoring') as open_monitoring, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CurrentVersion') as current_version, + json_extract_path_text(detail.Properties, 'ClientAuthentication') as client_authentication, + json_extract_path_text(detail.Properties, 'LoggingInfo') as logging_info, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ConfigurationInfo') as configuration_info, + json_extract_path_text(detail.Properties, 'StorageMode') as storage_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::MSK::Cluster' + AND detail.data__TypeName = 'AWS::MSK::Cluster' + AND listing.region = 'us-east-1' + clusters_list_only: + name: clusters_list_only + id: aws.msk.clusters_list_only + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::MSK::Cluster + 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::MSK::Cluster' + 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::MSK::Cluster' + AND region = 'us-east-1' + cluster_tags: + name: cluster_tags + id: aws.msk.cluster_tags + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::MSK::Cluster + 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, '$.BrokerNodeGroupInfo') as broker_node_group_info, + JSON_EXTRACT(detail.Properties, '$.EnhancedMonitoring') as enhanced_monitoring, + JSON_EXTRACT(detail.Properties, '$.KafkaVersion') as kafka_version, + JSON_EXTRACT(detail.Properties, '$.NumberOfBrokerNodes') as number_of_broker_nodes, + JSON_EXTRACT(detail.Properties, '$.EncryptionInfo') as encryption_info, + JSON_EXTRACT(detail.Properties, '$.OpenMonitoring') as open_monitoring, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CurrentVersion') as current_version, + JSON_EXTRACT(detail.Properties, '$.ClientAuthentication') as client_authentication, + JSON_EXTRACT(detail.Properties, '$.LoggingInfo') as logging_info, + JSON_EXTRACT(detail.Properties, '$.ConfigurationInfo') as configuration_info, + JSON_EXTRACT(detail.Properties, '$.StorageMode') as storage_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::MSK::Cluster' + AND detail.data__TypeName = 'AWS::MSK::Cluster' + 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, 'BrokerNodeGroupInfo') as broker_node_group_info, + json_extract_path_text(detail.Properties, 'EnhancedMonitoring') as enhanced_monitoring, + json_extract_path_text(detail.Properties, 'KafkaVersion') as kafka_version, + json_extract_path_text(detail.Properties, 'NumberOfBrokerNodes') as number_of_broker_nodes, + json_extract_path_text(detail.Properties, 'EncryptionInfo') as encryption_info, + json_extract_path_text(detail.Properties, 'OpenMonitoring') as open_monitoring, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CurrentVersion') as current_version, + json_extract_path_text(detail.Properties, 'ClientAuthentication') as client_authentication, + json_extract_path_text(detail.Properties, 'LoggingInfo') as logging_info, + json_extract_path_text(detail.Properties, 'ConfigurationInfo') as configuration_info, + json_extract_path_text(detail.Properties, 'StorageMode') as storage_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::MSK::Cluster' + AND detail.data__TypeName = 'AWS::MSK::Cluster' + AND listing.region = 'us-east-1' cluster_policies: name: cluster_policies id: aws.msk.cluster_policies @@ -2077,10 +2256,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::ClusterPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.CurrentVersion') as current_version + 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::MSK::ClusterPolicy' + AND detail.data__TypeName = 'AWS::MSK::ClusterPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2097,10 +2283,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::ClusterPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'CurrentVersion') as current_version + 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::MSK::ClusterPolicy' + AND detail.data__TypeName = 'AWS::MSK::ClusterPolicy' + AND listing.region = 'us-east-1' + cluster_policies_list_only: + name: cluster_policies_list_only + id: aws.msk.cluster_policies_list_only + x-cfn-schema-name: ClusterPolicy + x-cfn-type-name: AWS::MSK::ClusterPolicy + x-identifiers: + - ClusterArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::ClusterPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::ClusterPolicy' + AND region = 'us-east-1' configurations: name: configurations id: aws.msk.configurations @@ -2177,10 +2401,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Configuration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ServerProperties') as server_properties, + JSON_EXTRACT(detail.Properties, '$.KafkaVersionsList') as kafka_versions_list, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.LatestRevision') as latest_revision + 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::MSK::Configuration' + AND detail.data__TypeName = 'AWS::MSK::Configuration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2200,10 +2434,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Configuration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ServerProperties') as server_properties, + json_extract_path_text(detail.Properties, 'KafkaVersionsList') as kafka_versions_list, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'LatestRevision') as latest_revision + 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::MSK::Configuration' + AND detail.data__TypeName = 'AWS::MSK::Configuration' + AND listing.region = 'us-east-1' + configurations_list_only: + name: configurations_list_only + id: aws.msk.configurations_list_only + x-cfn-schema-name: Configuration + x-cfn-type-name: AWS::MSK::Configuration + 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::MSK::Configuration' + 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::MSK::Configuration' + AND region = 'us-east-1' replicators: name: replicators id: aws.msk.replicators @@ -2282,10 +2557,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ReplicatorArn') as replicator_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Replicator' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ReplicatorArn') as replicator_arn, + JSON_EXTRACT(detail.Properties, '$.ReplicatorName') as replicator_name, + JSON_EXTRACT(detail.Properties, '$.CurrentVersion') as current_version, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KafkaClusters') as kafka_clusters, + JSON_EXTRACT(detail.Properties, '$.ReplicationInfoList') as replication_info_list, + JSON_EXTRACT(detail.Properties, '$.ServiceExecutionRoleArn') as service_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MSK::Replicator' + AND detail.data__TypeName = 'AWS::MSK::Replicator' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2307,10 +2594,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ReplicatorArn') as replicator_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Replicator' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ReplicatorArn') as replicator_arn, + json_extract_path_text(detail.Properties, 'ReplicatorName') as replicator_name, + json_extract_path_text(detail.Properties, 'CurrentVersion') as current_version, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KafkaClusters') as kafka_clusters, + json_extract_path_text(detail.Properties, 'ReplicationInfoList') as replication_info_list, + json_extract_path_text(detail.Properties, 'ServiceExecutionRoleArn') as service_execution_role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MSK::Replicator' + AND detail.data__TypeName = 'AWS::MSK::Replicator' + AND listing.region = 'us-east-1' + replicators_list_only: + name: replicators_list_only + id: aws.msk.replicators_list_only + x-cfn-schema-name: Replicator + x-cfn-type-name: AWS::MSK::Replicator + x-identifiers: + - ReplicatorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ReplicatorArn') as replicator_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Replicator' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ReplicatorArn') as replicator_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::Replicator' + AND region = 'us-east-1' + replicator_tags: + name: replicator_tags + id: aws.msk.replicator_tags + x-cfn-schema-name: Replicator + x-cfn-type-name: AWS::MSK::Replicator + 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, '$.ReplicatorArn') as replicator_arn, + JSON_EXTRACT(detail.Properties, '$.ReplicatorName') as replicator_name, + JSON_EXTRACT(detail.Properties, '$.CurrentVersion') as current_version, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KafkaClusters') as kafka_clusters, + JSON_EXTRACT(detail.Properties, '$.ReplicationInfoList') as replication_info_list, + JSON_EXTRACT(detail.Properties, '$.ServiceExecutionRoleArn') as service_execution_role_arn + 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::MSK::Replicator' + AND detail.data__TypeName = 'AWS::MSK::Replicator' + 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, 'ReplicatorArn') as replicator_arn, + json_extract_path_text(detail.Properties, 'ReplicatorName') as replicator_name, + json_extract_path_text(detail.Properties, 'CurrentVersion') as current_version, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KafkaClusters') as kafka_clusters, + json_extract_path_text(detail.Properties, 'ReplicationInfoList') as replication_info_list, + json_extract_path_text(detail.Properties, 'ServiceExecutionRoleArn') as service_execution_role_arn + 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::MSK::Replicator' + AND detail.data__TypeName = 'AWS::MSK::Replicator' + AND listing.region = 'us-east-1' serverless_clusters: name: serverless_clusters id: aws.msk.serverless_clusters @@ -2373,10 +2760,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::ServerlessCluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.VpcConfigs') as vpc_configs, + JSON_EXTRACT(detail.Properties, '$.ClientAuthentication') as client_authentication, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::MSK::ServerlessCluster' + AND detail.data__TypeName = 'AWS::MSK::ServerlessCluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2395,10 +2791,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::ServerlessCluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'VpcConfigs') as vpc_configs, + json_extract_path_text(detail.Properties, 'ClientAuthentication') as client_authentication, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::MSK::ServerlessCluster' + AND detail.data__TypeName = 'AWS::MSK::ServerlessCluster' + AND listing.region = 'us-east-1' + serverless_clusters_list_only: + name: serverless_clusters_list_only + id: aws.msk.serverless_clusters_list_only + x-cfn-schema-name: ServerlessCluster + x-cfn-type-name: AWS::MSK::ServerlessCluster + 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::MSK::ServerlessCluster' + 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::MSK::ServerlessCluster' + AND region = 'us-east-1' + serverless_cluster_tags: + name: serverless_cluster_tags + id: aws.msk.serverless_cluster_tags + x-cfn-schema-name: ServerlessCluster + x-cfn-type-name: AWS::MSK::ServerlessCluster + 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, '$.ClusterName') as cluster_name, + JSON_EXTRACT(detail.Properties, '$.VpcConfigs') as vpc_configs, + JSON_EXTRACT(detail.Properties, '$.ClientAuthentication') as client_authentication + 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::MSK::ServerlessCluster' + AND detail.data__TypeName = 'AWS::MSK::ServerlessCluster' + 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, 'ClusterName') as cluster_name, + json_extract_path_text(detail.Properties, 'VpcConfigs') as vpc_configs, + json_extract_path_text(detail.Properties, 'ClientAuthentication') as client_authentication + 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::MSK::ServerlessCluster' + AND detail.data__TypeName = 'AWS::MSK::ServerlessCluster' + AND listing.region = 'us-east-1' vpc_connections: name: vpc_connections id: aws.msk.vpc_connections @@ -2476,10 +2963,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::VpcConnection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Authentication') as authentication, + JSON_EXTRACT(detail.Properties, '$.ClientSubnets') as client_subnets, + JSON_EXTRACT(detail.Properties, '$.TargetClusterArn') as target_cluster_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::MSK::VpcConnection' + AND detail.data__TypeName = 'AWS::MSK::VpcConnection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2500,10 +2998,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MSK::VpcConnection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Authentication') as authentication, + json_extract_path_text(detail.Properties, 'ClientSubnets') as client_subnets, + json_extract_path_text(detail.Properties, 'TargetClusterArn') as target_cluster_arn, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::MSK::VpcConnection' + AND detail.data__TypeName = 'AWS::MSK::VpcConnection' + AND listing.region = 'us-east-1' + vpc_connections_list_only: + name: vpc_connections_list_only + id: aws.msk.vpc_connections_list_only + x-cfn-schema-name: VpcConnection + x-cfn-type-name: AWS::MSK::VpcConnection + 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::MSK::VpcConnection' + 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::MSK::VpcConnection' + AND region = 'us-east-1' + vpc_connection_tags: + name: vpc_connection_tags + id: aws.msk.vpc_connection_tags + x-cfn-schema-name: VpcConnection + x-cfn-type-name: AWS::MSK::VpcConnection + 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, '$.Authentication') as authentication, + JSON_EXTRACT(detail.Properties, '$.ClientSubnets') as client_subnets, + JSON_EXTRACT(detail.Properties, '$.TargetClusterArn') as target_cluster_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroups') as security_groups, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::MSK::VpcConnection' + AND detail.data__TypeName = 'AWS::MSK::VpcConnection' + 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, 'Authentication') as authentication, + json_extract_path_text(detail.Properties, 'ClientSubnets') as client_subnets, + json_extract_path_text(detail.Properties, 'TargetClusterArn') as target_cluster_arn, + json_extract_path_text(detail.Properties, 'SecurityGroups') as security_groups, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::MSK::VpcConnection' + AND detail.data__TypeName = 'AWS::MSK::VpcConnection' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/mwaa.yaml b/providers/src/aws/v00.00.00000/services/mwaa.yaml index ef0a709f..80416a37 100644 --- a/providers/src/aws/v00.00.00000/services/mwaa.yaml +++ b/providers/src/aws/v00.00.00000/services/mwaa.yaml @@ -984,10 +984,44 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MWAA::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.WebserverUrl') as webserver_url, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.KmsKey') as kms_key, + JSON_EXTRACT(detail.Properties, '$.AirflowVersion') as airflow_version, + JSON_EXTRACT(detail.Properties, '$.SourceBucketArn') as source_bucket_arn, + JSON_EXTRACT(detail.Properties, '$.DagS3Path') as dag_s3_path, + JSON_EXTRACT(detail.Properties, '$.PluginsS3Path') as plugins_s3_path, + JSON_EXTRACT(detail.Properties, '$.PluginsS3ObjectVersion') as plugins_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.RequirementsS3Path') as requirements_s3_path, + JSON_EXTRACT(detail.Properties, '$.RequirementsS3ObjectVersion') as requirements_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.StartupScriptS3Path') as startup_script_s3_path, + JSON_EXTRACT(detail.Properties, '$.StartupScriptS3ObjectVersion') as startup_script_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.AirflowConfigurationOptions') as airflow_configuration_options, + JSON_EXTRACT(detail.Properties, '$.EnvironmentClass') as environment_class, + JSON_EXTRACT(detail.Properties, '$.MaxWorkers') as max_workers, + JSON_EXTRACT(detail.Properties, '$.MinWorkers') as min_workers, + JSON_EXTRACT(detail.Properties, '$.MaxWebservers') as max_webservers, + JSON_EXTRACT(detail.Properties, '$.MinWebservers') as min_webservers, + JSON_EXTRACT(detail.Properties, '$.Schedulers') as schedulers, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_configuration, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.WeeklyMaintenanceWindowStart') as weekly_maintenance_window_start, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.WebserverAccessMode') as webserver_access_mode, + JSON_EXTRACT(detail.Properties, '$.EndpointManagement') as endpoint_management, + JSON_EXTRACT(detail.Properties, '$.CeleryExecutorQueue') as celery_executor_queue, + JSON_EXTRACT(detail.Properties, '$.DatabaseVpcEndpointService') as database_vpc_endpoint_service, + JSON_EXTRACT(detail.Properties, '$.WebserverVpcEndpointService') as webserver_vpc_endpoint_service + 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::MWAA::Environment' + AND detail.data__TypeName = 'AWS::MWAA::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1031,10 +1065,176 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MWAA::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'WebserverUrl') as webserver_url, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'KmsKey') as kms_key, + json_extract_path_text(detail.Properties, 'AirflowVersion') as airflow_version, + json_extract_path_text(detail.Properties, 'SourceBucketArn') as source_bucket_arn, + json_extract_path_text(detail.Properties, 'DagS3Path') as dag_s3_path, + json_extract_path_text(detail.Properties, 'PluginsS3Path') as plugins_s3_path, + json_extract_path_text(detail.Properties, 'PluginsS3ObjectVersion') as plugins_s3_object_version, + json_extract_path_text(detail.Properties, 'RequirementsS3Path') as requirements_s3_path, + json_extract_path_text(detail.Properties, 'RequirementsS3ObjectVersion') as requirements_s3_object_version, + json_extract_path_text(detail.Properties, 'StartupScriptS3Path') as startup_script_s3_path, + json_extract_path_text(detail.Properties, 'StartupScriptS3ObjectVersion') as startup_script_s3_object_version, + json_extract_path_text(detail.Properties, 'AirflowConfigurationOptions') as airflow_configuration_options, + json_extract_path_text(detail.Properties, 'EnvironmentClass') as environment_class, + json_extract_path_text(detail.Properties, 'MaxWorkers') as max_workers, + json_extract_path_text(detail.Properties, 'MinWorkers') as min_workers, + json_extract_path_text(detail.Properties, 'MaxWebservers') as max_webservers, + json_extract_path_text(detail.Properties, 'MinWebservers') as min_webservers, + json_extract_path_text(detail.Properties, 'Schedulers') as schedulers, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_configuration, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'WeeklyMaintenanceWindowStart') as weekly_maintenance_window_start, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'WebserverAccessMode') as webserver_access_mode, + json_extract_path_text(detail.Properties, 'EndpointManagement') as endpoint_management, + json_extract_path_text(detail.Properties, 'CeleryExecutorQueue') as celery_executor_queue, + json_extract_path_text(detail.Properties, 'DatabaseVpcEndpointService') as database_vpc_endpoint_service, + json_extract_path_text(detail.Properties, 'WebserverVpcEndpointService') as webserver_vpc_endpoint_service + 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::MWAA::Environment' + AND detail.data__TypeName = 'AWS::MWAA::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.mwaa.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::MWAA::Environment + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MWAA::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::MWAA::Environment' + AND region = 'us-east-1' + environment_tags: + name: environment_tags + id: aws.mwaa.environment_tags + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::MWAA::Environment + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.WebserverUrl') as webserver_url, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.KmsKey') as kms_key, + JSON_EXTRACT(detail.Properties, '$.AirflowVersion') as airflow_version, + JSON_EXTRACT(detail.Properties, '$.SourceBucketArn') as source_bucket_arn, + JSON_EXTRACT(detail.Properties, '$.DagS3Path') as dag_s3_path, + JSON_EXTRACT(detail.Properties, '$.PluginsS3Path') as plugins_s3_path, + JSON_EXTRACT(detail.Properties, '$.PluginsS3ObjectVersion') as plugins_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.RequirementsS3Path') as requirements_s3_path, + JSON_EXTRACT(detail.Properties, '$.RequirementsS3ObjectVersion') as requirements_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.StartupScriptS3Path') as startup_script_s3_path, + JSON_EXTRACT(detail.Properties, '$.StartupScriptS3ObjectVersion') as startup_script_s3_object_version, + JSON_EXTRACT(detail.Properties, '$.AirflowConfigurationOptions') as airflow_configuration_options, + JSON_EXTRACT(detail.Properties, '$.EnvironmentClass') as environment_class, + JSON_EXTRACT(detail.Properties, '$.MaxWorkers') as max_workers, + JSON_EXTRACT(detail.Properties, '$.MinWorkers') as min_workers, + JSON_EXTRACT(detail.Properties, '$.MaxWebservers') as max_webservers, + JSON_EXTRACT(detail.Properties, '$.MinWebservers') as min_webservers, + JSON_EXTRACT(detail.Properties, '$.Schedulers') as schedulers, + JSON_EXTRACT(detail.Properties, '$.NetworkConfiguration') as network_configuration, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.WeeklyMaintenanceWindowStart') as weekly_maintenance_window_start, + JSON_EXTRACT(detail.Properties, '$.WebserverAccessMode') as webserver_access_mode, + JSON_EXTRACT(detail.Properties, '$.EndpointManagement') as endpoint_management, + JSON_EXTRACT(detail.Properties, '$.CeleryExecutorQueue') as celery_executor_queue, + JSON_EXTRACT(detail.Properties, '$.DatabaseVpcEndpointService') as database_vpc_endpoint_service, + JSON_EXTRACT(detail.Properties, '$.WebserverVpcEndpointService') as webserver_vpc_endpoint_service + 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::MWAA::Environment' + AND detail.data__TypeName = 'AWS::MWAA::Environment' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'WebserverUrl') as webserver_url, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'KmsKey') as kms_key, + json_extract_path_text(detail.Properties, 'AirflowVersion') as airflow_version, + json_extract_path_text(detail.Properties, 'SourceBucketArn') as source_bucket_arn, + json_extract_path_text(detail.Properties, 'DagS3Path') as dag_s3_path, + json_extract_path_text(detail.Properties, 'PluginsS3Path') as plugins_s3_path, + json_extract_path_text(detail.Properties, 'PluginsS3ObjectVersion') as plugins_s3_object_version, + json_extract_path_text(detail.Properties, 'RequirementsS3Path') as requirements_s3_path, + json_extract_path_text(detail.Properties, 'RequirementsS3ObjectVersion') as requirements_s3_object_version, + json_extract_path_text(detail.Properties, 'StartupScriptS3Path') as startup_script_s3_path, + json_extract_path_text(detail.Properties, 'StartupScriptS3ObjectVersion') as startup_script_s3_object_version, + json_extract_path_text(detail.Properties, 'AirflowConfigurationOptions') as airflow_configuration_options, + json_extract_path_text(detail.Properties, 'EnvironmentClass') as environment_class, + json_extract_path_text(detail.Properties, 'MaxWorkers') as max_workers, + json_extract_path_text(detail.Properties, 'MinWorkers') as min_workers, + json_extract_path_text(detail.Properties, 'MaxWebservers') as max_webservers, + json_extract_path_text(detail.Properties, 'MinWebservers') as min_webservers, + json_extract_path_text(detail.Properties, 'Schedulers') as schedulers, + json_extract_path_text(detail.Properties, 'NetworkConfiguration') as network_configuration, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'WeeklyMaintenanceWindowStart') as weekly_maintenance_window_start, + json_extract_path_text(detail.Properties, 'WebserverAccessMode') as webserver_access_mode, + json_extract_path_text(detail.Properties, 'EndpointManagement') as endpoint_management, + json_extract_path_text(detail.Properties, 'CeleryExecutorQueue') as celery_executor_queue, + json_extract_path_text(detail.Properties, 'DatabaseVpcEndpointService') as database_vpc_endpoint_service, + json_extract_path_text(detail.Properties, 'WebserverVpcEndpointService') as webserver_vpc_endpoint_service + 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::MWAA::Environment' + AND detail.data__TypeName = 'AWS::MWAA::Environment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/neptune.yaml b/providers/src/aws/v00.00.00000/services/neptune.yaml index f2145ea5..85ef322d 100644 --- a/providers/src/aws/v00.00.00000/services/neptune.yaml +++ b/providers/src/aws/v00.00.00000/services/neptune.yaml @@ -938,10 +938,43 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as db_cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Neptune::DBCluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.ReadEndpoint') as read_endpoint, + JSON_EXTRACT(detail.Properties, '$.ClusterResourceId') as cluster_resource_id, + JSON_EXTRACT(detail.Properties, '$.AssociatedRoles') as associated_roles, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.CopyTagsToSnapshot') as copy_tags_to_snapshot, + JSON_EXTRACT(detail.Properties, '$.DBClusterIdentifier') as db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DBInstanceParameterGroupName') as db_instance_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DBPort') as db_port, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.IamAuthEnabled') as iam_auth_enabled, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.RestoreToTime') as restore_to_time, + JSON_EXTRACT(detail.Properties, '$.RestoreType') as restore_type, + JSON_EXTRACT(detail.Properties, '$.ServerlessScalingConfiguration') as serverless_scaling_configuration, + JSON_EXTRACT(detail.Properties, '$.SnapshotIdentifier') as snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.SourceDBClusterIdentifier') as source_db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.StorageEncrypted') as storage_encrypted, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UseLatestRestorableTime') as use_latest_restorable_time, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids + 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::Neptune::DBCluster' + AND detail.data__TypeName = 'AWS::Neptune::DBCluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -984,10 +1017,173 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBClusterIdentifier') as db_cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Neptune::DBCluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'ReadEndpoint') as read_endpoint, + json_extract_path_text(detail.Properties, 'ClusterResourceId') as cluster_resource_id, + json_extract_path_text(detail.Properties, 'AssociatedRoles') as associated_roles, + json_extract_path_text(detail.Properties, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'CopyTagsToSnapshot') as copy_tags_to_snapshot, + json_extract_path_text(detail.Properties, 'DBClusterIdentifier') as db_cluster_identifier, + json_extract_path_text(detail.Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name, + json_extract_path_text(detail.Properties, 'DBInstanceParameterGroupName') as db_instance_parameter_group_name, + json_extract_path_text(detail.Properties, 'DBPort') as db_port, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'IamAuthEnabled') as iam_auth_enabled, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'RestoreToTime') as restore_to_time, + json_extract_path_text(detail.Properties, 'RestoreType') as restore_type, + json_extract_path_text(detail.Properties, 'ServerlessScalingConfiguration') as serverless_scaling_configuration, + json_extract_path_text(detail.Properties, 'SnapshotIdentifier') as snapshot_identifier, + json_extract_path_text(detail.Properties, 'SourceDBClusterIdentifier') as source_db_cluster_identifier, + json_extract_path_text(detail.Properties, 'StorageEncrypted') as storage_encrypted, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UseLatestRestorableTime') as use_latest_restorable_time, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids + 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::Neptune::DBCluster' + AND detail.data__TypeName = 'AWS::Neptune::DBCluster' + AND listing.region = 'us-east-1' + db_clusters_list_only: + name: db_clusters_list_only + id: aws.neptune.db_clusters_list_only + x-cfn-schema-name: DBCluster + x-cfn-type-name: AWS::Neptune::DBCluster + x-identifiers: + - DBClusterIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as db_cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Neptune::DBCluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBClusterIdentifier') as db_cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Neptune::DBCluster' + AND region = 'us-east-1' + db_cluster_tags: + name: db_cluster_tags + id: aws.neptune.db_cluster_tags + x-cfn-schema-name: DBCluster + x-cfn-type-name: AWS::Neptune::DBCluster + 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, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.ReadEndpoint') as read_endpoint, + JSON_EXTRACT(detail.Properties, '$.ClusterResourceId') as cluster_resource_id, + JSON_EXTRACT(detail.Properties, '$.AssociatedRoles') as associated_roles, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.CopyTagsToSnapshot') as copy_tags_to_snapshot, + JSON_EXTRACT(detail.Properties, '$.DBClusterIdentifier') as db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DBInstanceParameterGroupName') as db_instance_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DBPort') as db_port, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.IamAuthEnabled') as iam_auth_enabled, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.RestoreToTime') as restore_to_time, + JSON_EXTRACT(detail.Properties, '$.RestoreType') as restore_type, + JSON_EXTRACT(detail.Properties, '$.ServerlessScalingConfiguration') as serverless_scaling_configuration, + JSON_EXTRACT(detail.Properties, '$.SnapshotIdentifier') as snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.SourceDBClusterIdentifier') as source_db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.StorageEncrypted') as storage_encrypted, + JSON_EXTRACT(detail.Properties, '$.UseLatestRestorableTime') as use_latest_restorable_time, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids + 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::Neptune::DBCluster' + AND detail.data__TypeName = 'AWS::Neptune::DBCluster' + 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, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'ReadEndpoint') as read_endpoint, + json_extract_path_text(detail.Properties, 'ClusterResourceId') as cluster_resource_id, + json_extract_path_text(detail.Properties, 'AssociatedRoles') as associated_roles, + json_extract_path_text(detail.Properties, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'CopyTagsToSnapshot') as copy_tags_to_snapshot, + json_extract_path_text(detail.Properties, 'DBClusterIdentifier') as db_cluster_identifier, + json_extract_path_text(detail.Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name, + json_extract_path_text(detail.Properties, 'DBInstanceParameterGroupName') as db_instance_parameter_group_name, + json_extract_path_text(detail.Properties, 'DBPort') as db_port, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'IamAuthEnabled') as iam_auth_enabled, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'RestoreToTime') as restore_to_time, + json_extract_path_text(detail.Properties, 'RestoreType') as restore_type, + json_extract_path_text(detail.Properties, 'ServerlessScalingConfiguration') as serverless_scaling_configuration, + json_extract_path_text(detail.Properties, 'SnapshotIdentifier') as snapshot_identifier, + json_extract_path_text(detail.Properties, 'SourceDBClusterIdentifier') as source_db_cluster_identifier, + json_extract_path_text(detail.Properties, 'StorageEncrypted') as storage_encrypted, + json_extract_path_text(detail.Properties, 'UseLatestRestorableTime') as use_latest_restorable_time, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids + 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::Neptune::DBCluster' + AND detail.data__TypeName = 'AWS::Neptune::DBCluster' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/neptunegraph.yaml b/providers/src/aws/v00.00.00000/services/neptunegraph.yaml index a807141a..8953abdb 100644 --- a/providers/src/aws/v00.00.00000/services/neptunegraph.yaml +++ b/providers/src/aws/v00.00.00000/services/neptunegraph.yaml @@ -841,10 +841,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GraphId') as graph_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::Graph' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.GraphName') as graph_name, + JSON_EXTRACT(detail.Properties, '$.ProvisionedMemory') as provisioned_memory, + JSON_EXTRACT(detail.Properties, '$.PublicConnectivity') as public_connectivity, + JSON_EXTRACT(detail.Properties, '$.ReplicaCount') as replica_count, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VectorSearchConfiguration') as vector_search_configuration, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.GraphArn') as graph_arn, + JSON_EXTRACT(detail.Properties, '$.GraphId') as graph_id + 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::NeptuneGraph::Graph' + AND detail.data__TypeName = 'AWS::NeptuneGraph::Graph' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -868,10 +882,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GraphId') as graph_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::Graph' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'GraphName') as graph_name, + json_extract_path_text(detail.Properties, 'ProvisionedMemory') as provisioned_memory, + json_extract_path_text(detail.Properties, 'PublicConnectivity') as public_connectivity, + json_extract_path_text(detail.Properties, 'ReplicaCount') as replica_count, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VectorSearchConfiguration') as vector_search_configuration, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'GraphArn') as graph_arn, + json_extract_path_text(detail.Properties, 'GraphId') as graph_id + 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::NeptuneGraph::Graph' + AND detail.data__TypeName = 'AWS::NeptuneGraph::Graph' + AND listing.region = 'us-east-1' + graphs_list_only: + name: graphs_list_only + id: aws.neptunegraph.graphs_list_only + x-cfn-schema-name: Graph + x-cfn-type-name: AWS::NeptuneGraph::Graph + x-identifiers: + - GraphId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GraphId') as graph_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::Graph' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GraphId') as graph_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::Graph' + AND region = 'us-east-1' + graph_tags: + name: graph_tags + id: aws.neptunegraph.graph_tags + x-cfn-schema-name: Graph + x-cfn-type-name: AWS::NeptuneGraph::Graph + 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, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.GraphName') as graph_name, + JSON_EXTRACT(detail.Properties, '$.ProvisionedMemory') as provisioned_memory, + JSON_EXTRACT(detail.Properties, '$.PublicConnectivity') as public_connectivity, + JSON_EXTRACT(detail.Properties, '$.ReplicaCount') as replica_count, + JSON_EXTRACT(detail.Properties, '$.VectorSearchConfiguration') as vector_search_configuration, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.GraphArn') as graph_arn, + JSON_EXTRACT(detail.Properties, '$.GraphId') as graph_id + 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::NeptuneGraph::Graph' + AND detail.data__TypeName = 'AWS::NeptuneGraph::Graph' + 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, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'GraphName') as graph_name, + json_extract_path_text(detail.Properties, 'ProvisionedMemory') as provisioned_memory, + json_extract_path_text(detail.Properties, 'PublicConnectivity') as public_connectivity, + json_extract_path_text(detail.Properties, 'ReplicaCount') as replica_count, + json_extract_path_text(detail.Properties, 'VectorSearchConfiguration') as vector_search_configuration, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'GraphArn') as graph_arn, + json_extract_path_text(detail.Properties, 'GraphId') as graph_id + 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::NeptuneGraph::Graph' + AND detail.data__TypeName = 'AWS::NeptuneGraph::Graph' + AND listing.region = 'us-east-1' private_graph_endpoints: name: private_graph_endpoints id: aws.neptunegraph.private_graph_endpoints @@ -948,10 +1068,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PrivateGraphEndpointIdentifier') as private_graph_endpoint_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::PrivateGraphEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GraphIdentifier') as graph_identifier, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.PrivateGraphEndpointIdentifier') as private_graph_endpoint_identifier, + JSON_EXTRACT(detail.Properties, '$.VpcEndpointId') as vpc_endpoint_id + 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::NeptuneGraph::PrivateGraphEndpoint' + AND detail.data__TypeName = 'AWS::NeptuneGraph::PrivateGraphEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -971,10 +1101,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PrivateGraphEndpointIdentifier') as private_graph_endpoint_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::PrivateGraphEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GraphIdentifier') as graph_identifier, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'PrivateGraphEndpointIdentifier') as private_graph_endpoint_identifier, + json_extract_path_text(detail.Properties, 'VpcEndpointId') as vpc_endpoint_id + 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::NeptuneGraph::PrivateGraphEndpoint' + AND detail.data__TypeName = 'AWS::NeptuneGraph::PrivateGraphEndpoint' + AND listing.region = 'us-east-1' + private_graph_endpoints_list_only: + name: private_graph_endpoints_list_only + id: aws.neptunegraph.private_graph_endpoints_list_only + x-cfn-schema-name: PrivateGraphEndpoint + x-cfn-type-name: AWS::NeptuneGraph::PrivateGraphEndpoint + x-identifiers: + - PrivateGraphEndpointIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PrivateGraphEndpointIdentifier') as private_graph_endpoint_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::PrivateGraphEndpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PrivateGraphEndpointIdentifier') as private_graph_endpoint_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NeptuneGraph::PrivateGraphEndpoint' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/networkfirewall.yaml b/providers/src/aws/v00.00.00000/services/networkfirewall.yaml index 49e44f22..15ed5ad7 100644 --- a/providers/src/aws/v00.00.00000/services/networkfirewall.yaml +++ b/providers/src/aws/v00.00.00000/services/networkfirewall.yaml @@ -1704,10 +1704,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FirewallArn') as firewall_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::Firewall' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FirewallName') as firewall_name, + JSON_EXTRACT(detail.Properties, '$.FirewallArn') as firewall_arn, + JSON_EXTRACT(detail.Properties, '$.FirewallId') as firewall_id, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyArn') as firewall_policy_arn, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.SubnetMappings') as subnet_mappings, + JSON_EXTRACT(detail.Properties, '$.DeleteProtection') as delete_protection, + JSON_EXTRACT(detail.Properties, '$.SubnetChangeProtection') as subnet_change_protection, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyChangeProtection') as firewall_policy_change_protection, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EndpointIds') as endpoint_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkFirewall::Firewall' + AND detail.data__TypeName = 'AWS::NetworkFirewall::Firewall' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1733,10 +1749,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FirewallArn') as firewall_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::Firewall' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FirewallName') as firewall_name, + json_extract_path_text(detail.Properties, 'FirewallArn') as firewall_arn, + json_extract_path_text(detail.Properties, 'FirewallId') as firewall_id, + json_extract_path_text(detail.Properties, 'FirewallPolicyArn') as firewall_policy_arn, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'SubnetMappings') as subnet_mappings, + json_extract_path_text(detail.Properties, 'DeleteProtection') as delete_protection, + json_extract_path_text(detail.Properties, 'SubnetChangeProtection') as subnet_change_protection, + json_extract_path_text(detail.Properties, 'FirewallPolicyChangeProtection') as firewall_policy_change_protection, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EndpointIds') as endpoint_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkFirewall::Firewall' + AND detail.data__TypeName = 'AWS::NetworkFirewall::Firewall' + AND listing.region = 'us-east-1' + firewalls_list_only: + name: firewalls_list_only + id: aws.networkfirewall.firewalls_list_only + x-cfn-schema-name: Firewall + x-cfn-type-name: AWS::NetworkFirewall::Firewall + x-identifiers: + - FirewallArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FirewallArn') as firewall_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::Firewall' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FirewallArn') as firewall_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::Firewall' + AND region = 'us-east-1' + firewall_tags: + name: firewall_tags + id: aws.networkfirewall.firewall_tags + x-cfn-schema-name: Firewall + x-cfn-type-name: AWS::NetworkFirewall::Firewall + 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, '$.FirewallName') as firewall_name, + JSON_EXTRACT(detail.Properties, '$.FirewallArn') as firewall_arn, + JSON_EXTRACT(detail.Properties, '$.FirewallId') as firewall_id, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyArn') as firewall_policy_arn, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.SubnetMappings') as subnet_mappings, + JSON_EXTRACT(detail.Properties, '$.DeleteProtection') as delete_protection, + JSON_EXTRACT(detail.Properties, '$.SubnetChangeProtection') as subnet_change_protection, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyChangeProtection') as firewall_policy_change_protection, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EndpointIds') as endpoint_ids + 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::NetworkFirewall::Firewall' + AND detail.data__TypeName = 'AWS::NetworkFirewall::Firewall' + 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, 'FirewallName') as firewall_name, + json_extract_path_text(detail.Properties, 'FirewallArn') as firewall_arn, + json_extract_path_text(detail.Properties, 'FirewallId') as firewall_id, + json_extract_path_text(detail.Properties, 'FirewallPolicyArn') as firewall_policy_arn, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'SubnetMappings') as subnet_mappings, + json_extract_path_text(detail.Properties, 'DeleteProtection') as delete_protection, + json_extract_path_text(detail.Properties, 'SubnetChangeProtection') as subnet_change_protection, + json_extract_path_text(detail.Properties, 'FirewallPolicyChangeProtection') as firewall_policy_change_protection, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EndpointIds') as endpoint_ids + 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::NetworkFirewall::Firewall' + AND detail.data__TypeName = 'AWS::NetworkFirewall::Firewall' + AND listing.region = 'us-east-1' firewall_policies: name: firewall_policies id: aws.networkfirewall.firewall_policies @@ -1813,10 +1941,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FirewallPolicyArn') as firewall_policy_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyName') as firewall_policy_name, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyArn') as firewall_policy_arn, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicy') as firewall_policy, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyId') as firewall_policy_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkFirewall::FirewallPolicy' + AND detail.data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1836,10 +1974,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FirewallPolicyArn') as firewall_policy_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FirewallPolicyName') as firewall_policy_name, + json_extract_path_text(detail.Properties, 'FirewallPolicyArn') as firewall_policy_arn, + json_extract_path_text(detail.Properties, 'FirewallPolicy') as firewall_policy, + json_extract_path_text(detail.Properties, 'FirewallPolicyId') as firewall_policy_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkFirewall::FirewallPolicy' + AND detail.data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' + AND listing.region = 'us-east-1' + firewall_policies_list_only: + name: firewall_policies_list_only + id: aws.networkfirewall.firewall_policies_list_only + x-cfn-schema-name: FirewallPolicy + x-cfn-type-name: AWS::NetworkFirewall::FirewallPolicy + x-identifiers: + - FirewallPolicyArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FirewallPolicyArn') as firewall_policy_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FirewallPolicyArn') as firewall_policy_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' + AND region = 'us-east-1' + firewall_policy_tags: + name: firewall_policy_tags + id: aws.networkfirewall.firewall_policy_tags + x-cfn-schema-name: FirewallPolicy + x-cfn-type-name: AWS::NetworkFirewall::FirewallPolicy + 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, '$.FirewallPolicyName') as firewall_policy_name, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyArn') as firewall_policy_arn, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicy') as firewall_policy, + JSON_EXTRACT(detail.Properties, '$.FirewallPolicyId') as firewall_policy_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::NetworkFirewall::FirewallPolicy' + AND detail.data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' + 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, 'FirewallPolicyName') as firewall_policy_name, + json_extract_path_text(detail.Properties, 'FirewallPolicyArn') as firewall_policy_arn, + json_extract_path_text(detail.Properties, 'FirewallPolicy') as firewall_policy, + json_extract_path_text(detail.Properties, 'FirewallPolicyId') as firewall_policy_id, + json_extract_path_text(detail.Properties, 'Description') as description + 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::NetworkFirewall::FirewallPolicy' + AND detail.data__TypeName = 'AWS::NetworkFirewall::FirewallPolicy' + AND listing.region = 'us-east-1' logging_configurations: name: logging_configurations id: aws.networkfirewall.logging_configurations @@ -1913,10 +2145,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FirewallArn') as firewall_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::LoggingConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FirewallName') as firewall_name, + JSON_EXTRACT(detail.Properties, '$.FirewallArn') as firewall_arn, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_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::NetworkFirewall::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::NetworkFirewall::LoggingConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1933,10 +2172,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FirewallArn') as firewall_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::LoggingConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FirewallName') as firewall_name, + json_extract_path_text(detail.Properties, 'FirewallArn') as firewall_arn, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_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::NetworkFirewall::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::NetworkFirewall::LoggingConfiguration' + AND listing.region = 'us-east-1' + logging_configurations_list_only: + name: logging_configurations_list_only + id: aws.networkfirewall.logging_configurations_list_only + x-cfn-schema-name: LoggingConfiguration + x-cfn-type-name: AWS::NetworkFirewall::LoggingConfiguration + x-identifiers: + - FirewallArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FirewallArn') as firewall_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::LoggingConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FirewallArn') as firewall_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::LoggingConfiguration' + AND region = 'us-east-1' rule_groups: name: rule_groups id: aws.networkfirewall.rule_groups @@ -2015,10 +2292,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RuleGroupArn') as rule_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::RuleGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RuleGroupName') as rule_group_name, + JSON_EXTRACT(detail.Properties, '$.RuleGroupArn') as rule_group_arn, + JSON_EXTRACT(detail.Properties, '$.RuleGroupId') as rule_group_id, + JSON_EXTRACT(detail.Properties, '$.RuleGroup') as rule_group, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkFirewall::RuleGroup' + AND detail.data__TypeName = 'AWS::NetworkFirewall::RuleGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2040,10 +2329,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RuleGroupArn') as rule_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::RuleGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RuleGroupName') as rule_group_name, + json_extract_path_text(detail.Properties, 'RuleGroupArn') as rule_group_arn, + json_extract_path_text(detail.Properties, 'RuleGroupId') as rule_group_id, + json_extract_path_text(detail.Properties, 'RuleGroup') as rule_group, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkFirewall::RuleGroup' + AND detail.data__TypeName = 'AWS::NetworkFirewall::RuleGroup' + AND listing.region = 'us-east-1' + rule_groups_list_only: + name: rule_groups_list_only + id: aws.networkfirewall.rule_groups_list_only + x-cfn-schema-name: RuleGroup + x-cfn-type-name: AWS::NetworkFirewall::RuleGroup + x-identifiers: + - RuleGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RuleGroupArn') as rule_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::RuleGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RuleGroupArn') as rule_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::RuleGroup' + AND region = 'us-east-1' + rule_group_tags: + name: rule_group_tags + id: aws.networkfirewall.rule_group_tags + x-cfn-schema-name: RuleGroup + x-cfn-type-name: AWS::NetworkFirewall::RuleGroup + 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, '$.RuleGroupName') as rule_group_name, + JSON_EXTRACT(detail.Properties, '$.RuleGroupArn') as rule_group_arn, + JSON_EXTRACT(detail.Properties, '$.RuleGroupId') as rule_group_id, + JSON_EXTRACT(detail.Properties, '$.RuleGroup') as rule_group, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::NetworkFirewall::RuleGroup' + AND detail.data__TypeName = 'AWS::NetworkFirewall::RuleGroup' + 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, 'RuleGroupName') as rule_group_name, + json_extract_path_text(detail.Properties, 'RuleGroupArn') as rule_group_arn, + json_extract_path_text(detail.Properties, 'RuleGroupId') as rule_group_id, + json_extract_path_text(detail.Properties, 'RuleGroup') as rule_group, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'Description') as description + 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::NetworkFirewall::RuleGroup' + AND detail.data__TypeName = 'AWS::NetworkFirewall::RuleGroup' + AND listing.region = 'us-east-1' tls_inspection_configurations: name: tls_inspection_configurations id: aws.networkfirewall.tls_inspection_configurations @@ -2120,10 +2509,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TLSInspectionConfigurationArn') as tls_inspection_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TLSInspectionConfigurationName') as tls_inspection_configuration_name, + JSON_EXTRACT(detail.Properties, '$.TLSInspectionConfigurationArn') as tls_inspection_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.TLSInspectionConfiguration') as tls_inspection_configuration, + JSON_EXTRACT(detail.Properties, '$.TLSInspectionConfigurationId') as tls_inspection_configuration_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkFirewall::TLSInspectionConfiguration' + AND detail.data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2143,10 +2542,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TLSInspectionConfigurationArn') as tls_inspection_configuration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TLSInspectionConfigurationName') as tls_inspection_configuration_name, + json_extract_path_text(detail.Properties, 'TLSInspectionConfigurationArn') as tls_inspection_configuration_arn, + json_extract_path_text(detail.Properties, 'TLSInspectionConfiguration') as tls_inspection_configuration, + json_extract_path_text(detail.Properties, 'TLSInspectionConfigurationId') as tls_inspection_configuration_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkFirewall::TLSInspectionConfiguration' + AND detail.data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' + AND listing.region = 'us-east-1' + tls_inspection_configurations_list_only: + name: tls_inspection_configurations_list_only + id: aws.networkfirewall.tls_inspection_configurations_list_only + x-cfn-schema-name: TLSInspectionConfiguration + x-cfn-type-name: AWS::NetworkFirewall::TLSInspectionConfiguration + x-identifiers: + - TLSInspectionConfigurationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TLSInspectionConfigurationArn') as tls_inspection_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TLSInspectionConfigurationArn') as tls_inspection_configuration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' + AND region = 'us-east-1' + tls_inspection_configuration_tags: + name: tls_inspection_configuration_tags + id: aws.networkfirewall.tls_inspection_configuration_tags + x-cfn-schema-name: TLSInspectionConfiguration + x-cfn-type-name: AWS::NetworkFirewall::TLSInspectionConfiguration + 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, '$.TLSInspectionConfigurationName') as tls_inspection_configuration_name, + JSON_EXTRACT(detail.Properties, '$.TLSInspectionConfigurationArn') as tls_inspection_configuration_arn, + JSON_EXTRACT(detail.Properties, '$.TLSInspectionConfiguration') as tls_inspection_configuration, + JSON_EXTRACT(detail.Properties, '$.TLSInspectionConfigurationId') as tls_inspection_configuration_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::NetworkFirewall::TLSInspectionConfiguration' + AND detail.data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' + 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, 'TLSInspectionConfigurationName') as tls_inspection_configuration_name, + json_extract_path_text(detail.Properties, 'TLSInspectionConfigurationArn') as tls_inspection_configuration_arn, + json_extract_path_text(detail.Properties, 'TLSInspectionConfiguration') as tls_inspection_configuration, + json_extract_path_text(detail.Properties, 'TLSInspectionConfigurationId') as tls_inspection_configuration_id, + json_extract_path_text(detail.Properties, 'Description') as description + 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::NetworkFirewall::TLSInspectionConfiguration' + AND detail.data__TypeName = 'AWS::NetworkFirewall::TLSInspectionConfiguration' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/networkmanager.yaml b/providers/src/aws/v00.00.00000/services/networkmanager.yaml index 773716d4..1b963bff 100644 --- a/providers/src/aws/v00.00.00000/services/networkmanager.yaml +++ b/providers/src/aws/v00.00.00000/services/networkmanager.yaml @@ -2596,10 +2596,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.TransportAttachmentId') as transport_attachment_id, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::NetworkManager::ConnectAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2629,10 +2649,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'TransportAttachmentId') as transport_attachment_id, + json_extract_path_text(detail.Properties, 'Options') as options + 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::NetworkManager::ConnectAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectAttachment' + AND listing.region = 'us-east-1' + connect_attachments_list_only: + name: connect_attachments_list_only + id: aws.networkmanager.connect_attachments_list_only + x-cfn-schema-name: ConnectAttachment + x-cfn-type-name: AWS::NetworkManager::ConnectAttachment + x-identifiers: + - AttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectAttachment' + AND region = 'us-east-1' + connect_attachment_tags: + name: connect_attachment_tags + id: aws.networkmanager.connect_attachment_tags + x-cfn-schema-name: ConnectAttachment + x-cfn-type-name: AWS::NetworkManager::ConnectAttachment + 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, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.TransportAttachmentId') as transport_attachment_id, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::NetworkManager::ConnectAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectAttachment' + 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, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'TransportAttachmentId') as transport_attachment_id, + json_extract_path_text(detail.Properties, 'Options') as options + 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::NetworkManager::ConnectAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectAttachment' + AND listing.region = 'us-east-1' connect_peers: name: connect_peers id: aws.networkmanager.connect_peers @@ -2716,10 +2860,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectPeerId') as connect_peer_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectPeer' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PeerAddress') as peer_address, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkAddress') as core_network_address, + JSON_EXTRACT(detail.Properties, '$.BgpOptions') as bgp_options, + JSON_EXTRACT(detail.Properties, '$.InsideCidrBlocks') as inside_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.ConnectAttachmentId') as connect_attachment_id, + JSON_EXTRACT(detail.Properties, '$.ConnectPeerId') as connect_peer_id, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.SubnetArn') as subnet_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkManager::ConnectPeer' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectPeer' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2746,10 +2907,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectPeerId') as connect_peer_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectPeer' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PeerAddress') as peer_address, + json_extract_path_text(detail.Properties, 'CoreNetworkAddress') as core_network_address, + json_extract_path_text(detail.Properties, 'BgpOptions') as bgp_options, + json_extract_path_text(detail.Properties, 'InsideCidrBlocks') as inside_cidr_blocks, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'ConnectAttachmentId') as connect_attachment_id, + json_extract_path_text(detail.Properties, 'ConnectPeerId') as connect_peer_id, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'SubnetArn') as subnet_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkManager::ConnectPeer' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectPeer' + AND listing.region = 'us-east-1' + connect_peers_list_only: + name: connect_peers_list_only + id: aws.networkmanager.connect_peers_list_only + x-cfn-schema-name: ConnectPeer + x-cfn-type-name: AWS::NetworkManager::ConnectPeer + x-identifiers: + - ConnectPeerId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectPeerId') as connect_peer_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectPeer' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectPeerId') as connect_peer_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::ConnectPeer' + AND region = 'us-east-1' + connect_peer_tags: + name: connect_peer_tags + id: aws.networkmanager.connect_peer_tags + x-cfn-schema-name: ConnectPeer + x-cfn-type-name: AWS::NetworkManager::ConnectPeer + 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, '$.PeerAddress') as peer_address, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkAddress') as core_network_address, + JSON_EXTRACT(detail.Properties, '$.BgpOptions') as bgp_options, + JSON_EXTRACT(detail.Properties, '$.InsideCidrBlocks') as inside_cidr_blocks, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.ConnectAttachmentId') as connect_attachment_id, + JSON_EXTRACT(detail.Properties, '$.ConnectPeerId') as connect_peer_id, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.SubnetArn') as subnet_arn + 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::NetworkManager::ConnectPeer' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectPeer' + 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, 'PeerAddress') as peer_address, + json_extract_path_text(detail.Properties, 'CoreNetworkAddress') as core_network_address, + json_extract_path_text(detail.Properties, 'BgpOptions') as bgp_options, + json_extract_path_text(detail.Properties, 'InsideCidrBlocks') as inside_cidr_blocks, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'ConnectAttachmentId') as connect_attachment_id, + json_extract_path_text(detail.Properties, 'ConnectPeerId') as connect_peer_id, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'SubnetArn') as subnet_arn + 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::NetworkManager::ConnectPeer' + AND detail.data__TypeName = 'AWS::NetworkManager::ConnectPeer' + AND listing.region = 'us-east-1' core_networks: name: core_networks id: aws.networkmanager.core_networks @@ -2831,10 +3107,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CoreNetworkId') as core_network_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CoreNetwork' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Segments') as segments, + JSON_EXTRACT(detail.Properties, '$.Edges') as edges, + JSON_EXTRACT(detail.Properties, '$.OwnerAccount') as owner_account, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkManager::CoreNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::CoreNetwork' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2859,10 +3150,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CoreNetworkId') as core_network_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CoreNetwork' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Segments') as segments, + json_extract_path_text(detail.Properties, 'Edges') as edges, + json_extract_path_text(detail.Properties, 'OwnerAccount') as owner_account, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkManager::CoreNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::CoreNetwork' + AND listing.region = 'us-east-1' + core_networks_list_only: + name: core_networks_list_only + id: aws.networkmanager.core_networks_list_only + x-cfn-schema-name: CoreNetwork + x-cfn-type-name: AWS::NetworkManager::CoreNetwork + x-identifiers: + - CoreNetworkId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CoreNetworkId') as core_network_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CoreNetwork' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CoreNetworkId') as core_network_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CoreNetwork' + AND region = 'us-east-1' + core_network_tags: + name: core_network_tags + id: aws.networkmanager.core_network_tags + x-cfn-schema-name: CoreNetwork + x-cfn-type-name: AWS::NetworkManager::CoreNetwork + 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, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Segments') as segments, + JSON_EXTRACT(detail.Properties, '$.Edges') as edges, + JSON_EXTRACT(detail.Properties, '$.OwnerAccount') as owner_account + 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::NetworkManager::CoreNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::CoreNetwork' + 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, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Segments') as segments, + json_extract_path_text(detail.Properties, 'Edges') as edges, + json_extract_path_text(detail.Properties, 'OwnerAccount') as owner_account + 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::NetworkManager::CoreNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::CoreNetwork' + AND listing.region = 'us-east-1' customer_gateway_associations: name: customer_gateway_associations id: aws.networkmanager.customer_gateway_associations @@ -2925,11 +3325,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, - JSON_EXTRACT(Properties, '$.CustomerGatewayArn') as customer_gateway_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CustomerGatewayAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.CustomerGatewayArn') as customer_gateway_arn, + JSON_EXTRACT(detail.Properties, '$.DeviceId') as device_id, + JSON_EXTRACT(detail.Properties, '$.LinkId') as link_id + 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::NetworkManager::CustomerGatewayAssociation' + AND detail.data__TypeName = 'AWS::NetworkManager::CustomerGatewayAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2947,11 +3354,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, - json_extract_path_text(Properties, 'CustomerGatewayArn') as customer_gateway_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CustomerGatewayAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'CustomerGatewayArn') as customer_gateway_arn, + json_extract_path_text(detail.Properties, 'DeviceId') as device_id, + json_extract_path_text(detail.Properties, 'LinkId') as link_id + 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::NetworkManager::CustomerGatewayAssociation' + AND detail.data__TypeName = 'AWS::NetworkManager::CustomerGatewayAssociation' + AND listing.region = 'us-east-1' + customer_gateway_associations_list_only: + name: customer_gateway_associations_list_only + id: aws.networkmanager.customer_gateway_associations_list_only + x-cfn-schema-name: CustomerGatewayAssociation + x-cfn-type-name: AWS::NetworkManager::CustomerGatewayAssociation + x-identifiers: + - GlobalNetworkId + - CustomerGatewayArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(Properties, '$.CustomerGatewayArn') as customer_gateway_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CustomerGatewayAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(Properties, 'CustomerGatewayArn') as customer_gateway_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::CustomerGatewayAssociation' + AND region = 'us-east-1' devices: name: devices id: aws.networkmanager.devices @@ -3037,11 +3485,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, - JSON_EXTRACT(Properties, '$.DeviceId') as device_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Device' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DeviceArn') as device_arn, + JSON_EXTRACT(detail.Properties, '$.DeviceId') as device_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.AWSLocation') as aws_location, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Model') as model, + JSON_EXTRACT(detail.Properties, '$.SerialNumber') as serial_number, + JSON_EXTRACT(detail.Properties, '$.SiteId') as site_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Vendor') as vendor, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::Device' + AND detail.data__TypeName = 'AWS::NetworkManager::Device' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3069,11 +3534,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, - json_extract_path_text(Properties, 'DeviceId') as device_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Device' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DeviceArn') as device_arn, + json_extract_path_text(detail.Properties, 'DeviceId') as device_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'AWSLocation') as aws_location, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Model') as model, + json_extract_path_text(detail.Properties, 'SerialNumber') as serial_number, + json_extract_path_text(detail.Properties, 'SiteId') as site_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Vendor') as vendor, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::Device' + AND detail.data__TypeName = 'AWS::NetworkManager::Device' + AND listing.region = 'us-east-1' + devices_list_only: + name: devices_list_only + id: aws.networkmanager.devices_list_only + x-cfn-schema-name: Device + x-cfn-type-name: AWS::NetworkManager::Device + x-identifiers: + - GlobalNetworkId + - DeviceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(Properties, '$.DeviceId') as device_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Device' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(Properties, 'DeviceId') as device_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Device' + AND region = 'us-east-1' + device_tags: + name: device_tags + id: aws.networkmanager.device_tags + x-cfn-schema-name: Device + x-cfn-type-name: AWS::NetworkManager::Device + 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, '$.DeviceArn') as device_arn, + JSON_EXTRACT(detail.Properties, '$.DeviceId') as device_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.AWSLocation') as aws_location, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.Model') as model, + JSON_EXTRACT(detail.Properties, '$.SerialNumber') as serial_number, + JSON_EXTRACT(detail.Properties, '$.SiteId') as site_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Vendor') as vendor, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::Device' + AND detail.data__TypeName = 'AWS::NetworkManager::Device' + 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, 'DeviceArn') as device_arn, + json_extract_path_text(detail.Properties, 'DeviceId') as device_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'AWSLocation') as aws_location, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'Model') as model, + json_extract_path_text(detail.Properties, 'SerialNumber') as serial_number, + json_extract_path_text(detail.Properties, 'SiteId') as site_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Vendor') as vendor, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::Device' + AND detail.data__TypeName = 'AWS::NetworkManager::Device' + AND listing.region = 'us-east-1' global_networks: name: global_networks id: aws.networkmanager.global_networks @@ -3150,10 +3735,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::GlobalNetwork' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::GlobalNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::GlobalNetwork' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3173,10 +3768,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::GlobalNetwork' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::GlobalNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::GlobalNetwork' + AND listing.region = 'us-east-1' + global_networks_list_only: + name: global_networks_list_only + id: aws.networkmanager.global_networks_list_only + x-cfn-schema-name: GlobalNetwork + x-cfn-type-name: AWS::NetworkManager::GlobalNetwork + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::GlobalNetwork' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::GlobalNetwork' + AND region = 'us-east-1' + global_network_tags: + name: global_network_tags + id: aws.networkmanager.global_network_tags + x-cfn-schema-name: GlobalNetwork + x-cfn-type-name: AWS::NetworkManager::GlobalNetwork + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::GlobalNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::GlobalNetwork' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::GlobalNetwork' + AND detail.data__TypeName = 'AWS::NetworkManager::GlobalNetwork' + AND listing.region = 'us-east-1' links: name: links id: aws.networkmanager.links @@ -3259,11 +3948,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, - JSON_EXTRACT(Properties, '$.LinkId') as link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Link' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LinkArn') as link_arn, + JSON_EXTRACT(detail.Properties, '$.LinkId') as link_id, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.SiteId') as site_id, + JSON_EXTRACT(detail.Properties, '$.Bandwidth') as bandwidth, + JSON_EXTRACT(detail.Properties, '$.Provider') as provider, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::Link' + AND detail.data__TypeName = 'AWS::NetworkManager::Link' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3288,11 +3991,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, - json_extract_path_text(Properties, 'LinkId') as link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Link' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LinkArn') as link_arn, + json_extract_path_text(detail.Properties, 'LinkId') as link_id, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'SiteId') as site_id, + json_extract_path_text(detail.Properties, 'Bandwidth') as bandwidth, + json_extract_path_text(detail.Properties, 'Provider') as provider, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::Link' + AND detail.data__TypeName = 'AWS::NetworkManager::Link' + AND listing.region = 'us-east-1' + links_list_only: + name: links_list_only + id: aws.networkmanager.links_list_only + x-cfn-schema-name: Link + x-cfn-type-name: AWS::NetworkManager::Link + x-identifiers: + - GlobalNetworkId + - LinkId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(Properties, '$.LinkId') as link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Link' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(Properties, 'LinkId') as link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Link' + AND region = 'us-east-1' + link_tags: + name: link_tags + id: aws.networkmanager.link_tags + x-cfn-schema-name: Link + x-cfn-type-name: AWS::NetworkManager::Link + 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, '$.LinkArn') as link_arn, + JSON_EXTRACT(detail.Properties, '$.LinkId') as link_id, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.SiteId') as site_id, + JSON_EXTRACT(detail.Properties, '$.Bandwidth') as bandwidth, + JSON_EXTRACT(detail.Properties, '$.Provider') as provider, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::Link' + AND detail.data__TypeName = 'AWS::NetworkManager::Link' + 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, 'LinkArn') as link_arn, + json_extract_path_text(detail.Properties, 'LinkId') as link_id, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'SiteId') as site_id, + json_extract_path_text(detail.Properties, 'Bandwidth') as bandwidth, + json_extract_path_text(detail.Properties, 'Provider') as provider, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::Link' + AND detail.data__TypeName = 'AWS::NetworkManager::Link' + AND listing.region = 'us-east-1' link_associations: name: link_associations id: aws.networkmanager.link_associations @@ -3355,12 +4169,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, - JSON_EXTRACT(Properties, '$.DeviceId') as device_id, - JSON_EXTRACT(Properties, '$.LinkId') as link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::LinkAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.DeviceId') as device_id, + JSON_EXTRACT(detail.Properties, '$.LinkId') as link_id + 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::NetworkManager::LinkAssociation' + AND detail.data__TypeName = 'AWS::NetworkManager::LinkAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3377,12 +4196,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, - json_extract_path_text(Properties, 'DeviceId') as device_id, - json_extract_path_text(Properties, 'LinkId') as link_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::LinkAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'DeviceId') as device_id, + json_extract_path_text(detail.Properties, 'LinkId') as link_id + 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::NetworkManager::LinkAssociation' + AND detail.data__TypeName = 'AWS::NetworkManager::LinkAssociation' + AND listing.region = 'us-east-1' + link_associations_list_only: + name: link_associations_list_only + id: aws.networkmanager.link_associations_list_only + x-cfn-schema-name: LinkAssociation + x-cfn-type-name: AWS::NetworkManager::LinkAssociation + x-identifiers: + - GlobalNetworkId + - DeviceId + - LinkId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(Properties, '$.DeviceId') as device_id, + JSON_EXTRACT(Properties, '$.LinkId') as link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::LinkAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(Properties, 'DeviceId') as device_id, + json_extract_path_text(Properties, 'LinkId') as link_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::LinkAssociation' + AND region = 'us-east-1' sites: name: sites id: aws.networkmanager.sites @@ -3462,11 +4323,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, - JSON_EXTRACT(Properties, '$.SiteId') as site_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Site' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SiteArn') as site_arn, + JSON_EXTRACT(detail.Properties, '$.SiteId') as site_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::Site' + AND detail.data__TypeName = 'AWS::NetworkManager::Site' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3488,11 +4360,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, - json_extract_path_text(Properties, 'SiteId') as site_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Site' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SiteArn') as site_arn, + json_extract_path_text(detail.Properties, 'SiteId') as site_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::Site' + AND detail.data__TypeName = 'AWS::NetworkManager::Site' + AND listing.region = 'us-east-1' + sites_list_only: + name: sites_list_only + id: aws.networkmanager.sites_list_only + x-cfn-schema-name: Site + x-cfn-type-name: AWS::NetworkManager::Site + x-identifiers: + - GlobalNetworkId + - SiteId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(Properties, '$.SiteId') as site_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Site' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(Properties, 'SiteId') as site_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::Site' + AND region = 'us-east-1' + site_tags: + name: site_tags + id: aws.networkmanager.site_tags + x-cfn-schema-name: Site + x-cfn-type-name: AWS::NetworkManager::Site + 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, '$.SiteArn') as site_arn, + JSON_EXTRACT(detail.Properties, '$.SiteId') as site_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.Location') as location, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::NetworkManager::Site' + AND detail.data__TypeName = 'AWS::NetworkManager::Site' + 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, 'SiteArn') as site_arn, + json_extract_path_text(detail.Properties, 'SiteId') as site_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'Location') as location, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'State') as state + 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::NetworkManager::Site' + AND detail.data__TypeName = 'AWS::NetworkManager::Site' + AND listing.region = 'us-east-1' site_to_site_vpn_attachments: name: site_to_site_vpn_attachments id: aws.networkmanager.site_to_site_vpn_attachments @@ -3578,10 +4552,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.VpnConnectionArn') as vpn_connection_arn + 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::NetworkManager::SiteToSiteVpnAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3610,10 +4603,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'VpnConnectionArn') as vpn_connection_arn + 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::NetworkManager::SiteToSiteVpnAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' + AND listing.region = 'us-east-1' + site_to_site_vpn_attachments_list_only: + name: site_to_site_vpn_attachments_list_only + id: aws.networkmanager.site_to_site_vpn_attachments_list_only + x-cfn-schema-name: SiteToSiteVpnAttachment + x-cfn-type-name: AWS::NetworkManager::SiteToSiteVpnAttachment + x-identifiers: + - AttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' + AND region = 'us-east-1' + site_to_site_vpn_attachment_tags: + name: site_to_site_vpn_attachment_tags + id: aws.networkmanager.site_to_site_vpn_attachment_tags + x-cfn-schema-name: SiteToSiteVpnAttachment + x-cfn-type-name: AWS::NetworkManager::SiteToSiteVpnAttachment + 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, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.VpnConnectionArn') as vpn_connection_arn + 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::NetworkManager::SiteToSiteVpnAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' + 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, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'VpnConnectionArn') as vpn_connection_arn + 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::NetworkManager::SiteToSiteVpnAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::SiteToSiteVpnAttachment' + AND listing.region = 'us-east-1' transit_gateway_peerings: name: transit_gateway_peerings id: aws.networkmanager.transit_gateway_peerings @@ -3696,10 +4810,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PeeringId') as peering_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayArn') as transit_gateway_arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayPeeringAttachmentId') as transit_gateway_peering_attachment_id, + JSON_EXTRACT(detail.Properties, '$.PeeringId') as peering_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.PeeringType') as peering_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkManager::TransitGatewayPeering' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3725,10 +4855,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PeeringId') as peering_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'TransitGatewayArn') as transit_gateway_arn, + json_extract_path_text(detail.Properties, 'TransitGatewayPeeringAttachmentId') as transit_gateway_peering_attachment_id, + json_extract_path_text(detail.Properties, 'PeeringId') as peering_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'PeeringType') as peering_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkManager::TransitGatewayPeering' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' + AND listing.region = 'us-east-1' + transit_gateway_peerings_list_only: + name: transit_gateway_peerings_list_only + id: aws.networkmanager.transit_gateway_peerings_list_only + x-cfn-schema-name: TransitGatewayPeering + x-cfn-type-name: AWS::NetworkManager::TransitGatewayPeering + x-identifiers: + - PeeringId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PeeringId') as peering_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PeeringId') as peering_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' + AND region = 'us-east-1' + transit_gateway_peering_tags: + name: transit_gateway_peering_tags + id: aws.networkmanager.transit_gateway_peering_tags + x-cfn-schema-name: TransitGatewayPeering + x-cfn-type-name: AWS::NetworkManager::TransitGatewayPeering + 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, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayArn') as transit_gateway_arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayPeeringAttachmentId') as transit_gateway_peering_attachment_id, + JSON_EXTRACT(detail.Properties, '$.PeeringId') as peering_id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.PeeringType') as peering_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at + 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::NetworkManager::TransitGatewayPeering' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' + 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, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'TransitGatewayArn') as transit_gateway_arn, + json_extract_path_text(detail.Properties, 'TransitGatewayPeeringAttachmentId') as transit_gateway_peering_attachment_id, + json_extract_path_text(detail.Properties, 'PeeringId') as peering_id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'PeeringType') as peering_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at + 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::NetworkManager::TransitGatewayPeering' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayPeering' + AND listing.region = 'us-east-1' transit_gateway_registrations: name: transit_gateway_registrations id: aws.networkmanager.transit_gateway_registrations @@ -3789,11 +5031,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, - JSON_EXTRACT(Properties, '$.TransitGatewayArn') as transit_gateway_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRegistration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayArn') as transit_gateway_arn + 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::NetworkManager::TransitGatewayRegistration' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayRegistration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3809,11 +5056,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, - json_extract_path_text(Properties, 'TransitGatewayArn') as transit_gateway_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRegistration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(detail.Properties, 'TransitGatewayArn') as transit_gateway_arn + 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::NetworkManager::TransitGatewayRegistration' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayRegistration' + AND listing.region = 'us-east-1' + transit_gateway_registrations_list_only: + name: transit_gateway_registrations_list_only + id: aws.networkmanager.transit_gateway_registrations_list_only + x-cfn-schema-name: TransitGatewayRegistration + x-cfn-type-name: AWS::NetworkManager::TransitGatewayRegistration + x-identifiers: + - GlobalNetworkId + - TransitGatewayArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalNetworkId') as global_network_id, + JSON_EXTRACT(Properties, '$.TransitGatewayArn') as transit_gateway_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRegistration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalNetworkId') as global_network_id, + json_extract_path_text(Properties, 'TransitGatewayArn') as transit_gateway_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRegistration' + AND region = 'us-east-1' transit_gateway_route_table_attachments: name: transit_gateway_route_table_attachments id: aws.networkmanager.transit_gateway_route_table_attachments @@ -3900,10 +5186,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PeeringId') as peering_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayRouteTableArn') as transit_gateway_route_table_arn, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NetworkManager::TransitGatewayRouteTableAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3933,10 +5239,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PeeringId') as peering_id, + json_extract_path_text(detail.Properties, 'TransitGatewayRouteTableArn') as transit_gateway_route_table_arn, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NetworkManager::TransitGatewayRouteTableAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' + AND listing.region = 'us-east-1' + transit_gateway_route_table_attachments_list_only: + name: transit_gateway_route_table_attachments_list_only + id: aws.networkmanager.transit_gateway_route_table_attachments_list_only + x-cfn-schema-name: TransitGatewayRouteTableAttachment + x-cfn-type-name: AWS::NetworkManager::TransitGatewayRouteTableAttachment + x-identifiers: + - AttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' + AND region = 'us-east-1' + transit_gateway_route_table_attachment_tags: + name: transit_gateway_route_table_attachment_tags + id: aws.networkmanager.transit_gateway_route_table_attachment_tags + x-cfn-schema-name: TransitGatewayRouteTableAttachment + x-cfn-type-name: AWS::NetworkManager::TransitGatewayRouteTableAttachment + 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, '$.PeeringId') as peering_id, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayRouteTableArn') as transit_gateway_route_table_arn, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::NetworkManager::TransitGatewayRouteTableAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' + 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, 'PeeringId') as peering_id, + json_extract_path_text(detail.Properties, 'TransitGatewayRouteTableArn') as transit_gateway_route_table_arn, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::NetworkManager::TransitGatewayRouteTableAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::TransitGatewayRouteTableAttachment' + AND listing.region = 'us-east-1' vpc_attachments: name: vpc_attachments id: aws.networkmanager.vpc_attachments @@ -4024,10 +5454,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::VpcAttachment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.VpcArn') as vpc_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.SubnetArns') as subnet_arns, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::NetworkManager::VpcAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::VpcAttachment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4058,10 +5509,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AttachmentId') as attachment_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::VpcAttachment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'VpcArn') as vpc_arn, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'SubnetArns') as subnet_arns, + json_extract_path_text(detail.Properties, 'Options') as options + 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::NetworkManager::VpcAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::VpcAttachment' + AND listing.region = 'us-east-1' + vpc_attachments_list_only: + name: vpc_attachments_list_only + id: aws.networkmanager.vpc_attachments_list_only + x-cfn-schema-name: VpcAttachment + x-cfn-type-name: AWS::NetworkManager::VpcAttachment + x-identifiers: + - AttachmentId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::VpcAttachment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AttachmentId') as attachment_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NetworkManager::VpcAttachment' + AND region = 'us-east-1' + vpc_attachment_tags: + name: vpc_attachment_tags + id: aws.networkmanager.vpc_attachment_tags + x-cfn-schema-name: VpcAttachment + x-cfn-type-name: AWS::NetworkManager::VpcAttachment + 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, '$.CoreNetworkId') as core_network_id, + JSON_EXTRACT(detail.Properties, '$.CoreNetworkArn') as core_network_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentId') as attachment_id, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentType') as attachment_type, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.EdgeLocation') as edge_location, + JSON_EXTRACT(detail.Properties, '$.VpcArn') as vpc_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + JSON_EXTRACT(detail.Properties, '$.SegmentName') as segment_name, + JSON_EXTRACT(detail.Properties, '$.ProposedSegmentChange') as proposed_segment_change, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.SubnetArns') as subnet_arns, + JSON_EXTRACT(detail.Properties, '$.Options') as options + 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::NetworkManager::VpcAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::VpcAttachment' + 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, 'CoreNetworkId') as core_network_id, + json_extract_path_text(detail.Properties, 'CoreNetworkArn') as core_network_arn, + json_extract_path_text(detail.Properties, 'AttachmentId') as attachment_id, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'AttachmentType') as attachment_type, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'EdgeLocation') as edge_location, + json_extract_path_text(detail.Properties, 'VpcArn') as vpc_arn, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'AttachmentPolicyRuleNumber') as attachment_policy_rule_number, + json_extract_path_text(detail.Properties, 'SegmentName') as segment_name, + json_extract_path_text(detail.Properties, 'ProposedSegmentChange') as proposed_segment_change, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'SubnetArns') as subnet_arns, + json_extract_path_text(detail.Properties, 'Options') as options + 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::NetworkManager::VpcAttachment' + AND detail.data__TypeName = 'AWS::NetworkManager::VpcAttachment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/nimblestudio.yaml b/providers/src/aws/v00.00.00000/services/nimblestudio.yaml index 9ef3e33d..bd0e3a81 100644 --- a/providers/src/aws/v00.00.00000/services/nimblestudio.yaml +++ b/providers/src/aws/v00.00.00000/services/nimblestudio.yaml @@ -1556,11 +1556,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LaunchProfileId') as launch_profile_id, - JSON_EXTRACT(Properties, '$.StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::LaunchProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Ec2SubnetIds') as ec2_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.LaunchProfileId') as launch_profile_id, + JSON_EXTRACT(detail.Properties, '$.LaunchProfileProtocolVersions') as launch_profile_protocol_versions, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StreamConfiguration') as stream_configuration, + JSON_EXTRACT(detail.Properties, '$.StudioComponentIds') as studio_component_ids, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NimbleStudio::LaunchProfile' + AND detail.data__TypeName = 'AWS::NimbleStudio::LaunchProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1583,11 +1595,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LaunchProfileId') as launch_profile_id, - json_extract_path_text(Properties, 'StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::LaunchProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Ec2SubnetIds') as ec2_subnet_ids, + json_extract_path_text(detail.Properties, 'LaunchProfileId') as launch_profile_id, + json_extract_path_text(detail.Properties, 'LaunchProfileProtocolVersions') as launch_profile_protocol_versions, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StreamConfiguration') as stream_configuration, + json_extract_path_text(detail.Properties, 'StudioComponentIds') as studio_component_ids, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NimbleStudio::LaunchProfile' + AND detail.data__TypeName = 'AWS::NimbleStudio::LaunchProfile' + AND listing.region = 'us-east-1' + launch_profiles_list_only: + name: launch_profiles_list_only + id: aws.nimblestudio.launch_profiles_list_only + x-cfn-schema-name: LaunchProfile + x-cfn-type-name: AWS::NimbleStudio::LaunchProfile + x-identifiers: + - LaunchProfileId + - StudioId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LaunchProfileId') as launch_profile_id, + JSON_EXTRACT(Properties, '$.StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::LaunchProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LaunchProfileId') as launch_profile_id, + json_extract_path_text(Properties, 'StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::LaunchProfile' + AND region = 'us-east-1' + launch_profile_tags: + name: launch_profile_tags + id: aws.nimblestudio.launch_profile_tags + x-cfn-schema-name: LaunchProfile + x-cfn-type-name: AWS::NimbleStudio::LaunchProfile + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Ec2SubnetIds') as ec2_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.LaunchProfileId') as launch_profile_id, + JSON_EXTRACT(detail.Properties, '$.LaunchProfileProtocolVersions') as launch_profile_protocol_versions, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StreamConfiguration') as stream_configuration, + JSON_EXTRACT(detail.Properties, '$.StudioComponentIds') as studio_component_ids, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id + 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::NimbleStudio::LaunchProfile' + AND detail.data__TypeName = 'AWS::NimbleStudio::LaunchProfile' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Ec2SubnetIds') as ec2_subnet_ids, + json_extract_path_text(detail.Properties, 'LaunchProfileId') as launch_profile_id, + json_extract_path_text(detail.Properties, 'LaunchProfileProtocolVersions') as launch_profile_protocol_versions, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StreamConfiguration') as stream_configuration, + json_extract_path_text(detail.Properties, 'StudioComponentIds') as studio_component_ids, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id + 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::NimbleStudio::LaunchProfile' + AND detail.data__TypeName = 'AWS::NimbleStudio::LaunchProfile' + AND listing.region = 'us-east-1' streaming_images: name: streaming_images id: aws.nimblestudio.streaming_images @@ -1669,11 +1786,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StudioId') as studio_id, - JSON_EXTRACT(Properties, '$.StreamingImageId') as streaming_image_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StreamingImage' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Ec2ImageId') as ec2_image_id, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.EulaIds') as eula_ids, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.StreamingImageId') as streaming_image_id, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::NimbleStudio::StreamingImage' + AND detail.data__TypeName = 'AWS::NimbleStudio::StreamingImage' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1697,11 +1827,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StudioId') as studio_id, - json_extract_path_text(Properties, 'StreamingImageId') as streaming_image_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StreamingImage' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Ec2ImageId') as ec2_image_id, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'EulaIds') as eula_ids, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'StreamingImageId') as streaming_image_id, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::NimbleStudio::StreamingImage' + AND detail.data__TypeName = 'AWS::NimbleStudio::StreamingImage' + AND listing.region = 'us-east-1' + streaming_images_list_only: + name: streaming_images_list_only + id: aws.nimblestudio.streaming_images_list_only + x-cfn-schema-name: StreamingImage + x-cfn-type-name: AWS::NimbleStudio::StreamingImage + x-identifiers: + - StudioId + - StreamingImageId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(Properties, '$.StreamingImageId') as streaming_image_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StreamingImage' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StudioId') as studio_id, + json_extract_path_text(Properties, 'StreamingImageId') as streaming_image_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StreamingImage' + AND region = 'us-east-1' + streaming_image_tags: + name: streaming_image_tags + id: aws.nimblestudio.streaming_image_tags + x-cfn-schema-name: StreamingImage + x-cfn-type-name: AWS::NimbleStudio::StreamingImage + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Ec2ImageId') as ec2_image_id, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.EulaIds') as eula_ids, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Owner') as owner, + JSON_EXTRACT(detail.Properties, '$.Platform') as platform, + JSON_EXTRACT(detail.Properties, '$.StreamingImageId') as streaming_image_id, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id + 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::NimbleStudio::StreamingImage' + AND detail.data__TypeName = 'AWS::NimbleStudio::StreamingImage' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Ec2ImageId') as ec2_image_id, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'EulaIds') as eula_ids, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Owner') as owner, + json_extract_path_text(detail.Properties, 'Platform') as platform, + json_extract_path_text(detail.Properties, 'StreamingImageId') as streaming_image_id, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id + 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::NimbleStudio::StreamingImage' + AND detail.data__TypeName = 'AWS::NimbleStudio::StreamingImage' + AND listing.region = 'us-east-1' studios: name: studios id: aws.nimblestudio.studios @@ -1782,10 +2020,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::Studio' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdminRoleArn') as admin_role_arn, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.HomeRegion') as home_region, + JSON_EXTRACT(detail.Properties, '$.SsoClientId') as sso_client_id, + JSON_EXTRACT(detail.Properties, '$.StudioEncryptionConfiguration') as studio_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.StudioName') as studio_name, + JSON_EXTRACT(detail.Properties, '$.StudioUrl') as studio_url, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UserRoleArn') as user_role_arn + 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::NimbleStudio::Studio' + AND detail.data__TypeName = 'AWS::NimbleStudio::Studio' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1809,10 +2061,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::Studio' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdminRoleArn') as admin_role_arn, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'HomeRegion') as home_region, + json_extract_path_text(detail.Properties, 'SsoClientId') as sso_client_id, + json_extract_path_text(detail.Properties, 'StudioEncryptionConfiguration') as studio_encryption_configuration, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'StudioName') as studio_name, + json_extract_path_text(detail.Properties, 'StudioUrl') as studio_url, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UserRoleArn') as user_role_arn + 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::NimbleStudio::Studio' + AND detail.data__TypeName = 'AWS::NimbleStudio::Studio' + AND listing.region = 'us-east-1' + studios_list_only: + name: studios_list_only + id: aws.nimblestudio.studios_list_only + x-cfn-schema-name: Studio + x-cfn-type-name: AWS::NimbleStudio::Studio + x-identifiers: + - StudioId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::Studio' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::Studio' + AND region = 'us-east-1' + studio_tags: + name: studio_tags + id: aws.nimblestudio.studio_tags + x-cfn-schema-name: Studio + x-cfn-type-name: AWS::NimbleStudio::Studio + 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, '$.AdminRoleArn') as admin_role_arn, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.HomeRegion') as home_region, + JSON_EXTRACT(detail.Properties, '$.SsoClientId') as sso_client_id, + JSON_EXTRACT(detail.Properties, '$.StudioEncryptionConfiguration') as studio_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.StudioName') as studio_name, + JSON_EXTRACT(detail.Properties, '$.StudioUrl') as studio_url, + JSON_EXTRACT(detail.Properties, '$.UserRoleArn') as user_role_arn + 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::NimbleStudio::Studio' + AND detail.data__TypeName = 'AWS::NimbleStudio::Studio' + 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, 'AdminRoleArn') as admin_role_arn, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'HomeRegion') as home_region, + json_extract_path_text(detail.Properties, 'SsoClientId') as sso_client_id, + json_extract_path_text(detail.Properties, 'StudioEncryptionConfiguration') as studio_encryption_configuration, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'StudioName') as studio_name, + json_extract_path_text(detail.Properties, 'StudioUrl') as studio_url, + json_extract_path_text(detail.Properties, 'UserRoleArn') as user_role_arn + 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::NimbleStudio::Studio' + AND detail.data__TypeName = 'AWS::NimbleStudio::Studio' + AND listing.region = 'us-east-1' studio_components: name: studio_components id: aws.nimblestudio.studio_components @@ -1897,11 +2255,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StudioComponentId') as studio_component_id, - JSON_EXTRACT(Properties, '$.StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StudioComponent' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Ec2SecurityGroupIds') as ec2_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.InitializationScripts') as initialization_scripts, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuntimeRoleArn') as runtime_role_arn, + JSON_EXTRACT(detail.Properties, '$.ScriptParameters') as script_parameters, + JSON_EXTRACT(detail.Properties, '$.SecureInitializationRoleArn') as secure_initialization_role_arn, + JSON_EXTRACT(detail.Properties, '$.StudioComponentId') as studio_component_id, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.Subtype') as subtype, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::NimbleStudio::StudioComponent' + AND detail.data__TypeName = 'AWS::NimbleStudio::StudioComponent' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1928,11 +2302,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StudioComponentId') as studio_component_id, - json_extract_path_text(Properties, 'StudioId') as studio_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StudioComponent' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Ec2SecurityGroupIds') as ec2_security_group_ids, + json_extract_path_text(detail.Properties, 'InitializationScripts') as initialization_scripts, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuntimeRoleArn') as runtime_role_arn, + json_extract_path_text(detail.Properties, 'ScriptParameters') as script_parameters, + json_extract_path_text(detail.Properties, 'SecureInitializationRoleArn') as secure_initialization_role_arn, + json_extract_path_text(detail.Properties, 'StudioComponentId') as studio_component_id, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'Subtype') as subtype, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type + 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::NimbleStudio::StudioComponent' + AND detail.data__TypeName = 'AWS::NimbleStudio::StudioComponent' + AND listing.region = 'us-east-1' + studio_components_list_only: + name: studio_components_list_only + id: aws.nimblestudio.studio_components_list_only + x-cfn-schema-name: StudioComponent + x-cfn-type-name: AWS::NimbleStudio::StudioComponent + x-identifiers: + - StudioComponentId + - StudioId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StudioComponentId') as studio_component_id, + JSON_EXTRACT(Properties, '$.StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StudioComponent' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StudioComponentId') as studio_component_id, + json_extract_path_text(Properties, 'StudioId') as studio_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::NimbleStudio::StudioComponent' + AND region = 'us-east-1' + studio_component_tags: + name: studio_component_tags + id: aws.nimblestudio.studio_component_tags + x-cfn-schema-name: StudioComponent + x-cfn-type-name: AWS::NimbleStudio::StudioComponent + 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, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Ec2SecurityGroupIds') as ec2_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.InitializationScripts') as initialization_scripts, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuntimeRoleArn') as runtime_role_arn, + JSON_EXTRACT(detail.Properties, '$.ScriptParameters') as script_parameters, + JSON_EXTRACT(detail.Properties, '$.SecureInitializationRoleArn') as secure_initialization_role_arn, + JSON_EXTRACT(detail.Properties, '$.StudioComponentId') as studio_component_id, + JSON_EXTRACT(detail.Properties, '$.StudioId') as studio_id, + JSON_EXTRACT(detail.Properties, '$.Subtype') as subtype, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::NimbleStudio::StudioComponent' + AND detail.data__TypeName = 'AWS::NimbleStudio::StudioComponent' + 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, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Ec2SecurityGroupIds') as ec2_security_group_ids, + json_extract_path_text(detail.Properties, 'InitializationScripts') as initialization_scripts, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuntimeRoleArn') as runtime_role_arn, + json_extract_path_text(detail.Properties, 'ScriptParameters') as script_parameters, + json_extract_path_text(detail.Properties, 'SecureInitializationRoleArn') as secure_initialization_role_arn, + json_extract_path_text(detail.Properties, 'StudioComponentId') as studio_component_id, + json_extract_path_text(detail.Properties, 'StudioId') as studio_id, + json_extract_path_text(detail.Properties, 'Subtype') as subtype, + json_extract_path_text(detail.Properties, 'Type') as type + 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::NimbleStudio::StudioComponent' + AND detail.data__TypeName = 'AWS::NimbleStudio::StudioComponent' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/oam.yaml b/providers/src/aws/v00.00.00000/services/oam.yaml index 63a76781..0e235bbf 100644 --- a/providers/src/aws/v00.00.00000/services/oam.yaml +++ b/providers/src/aws/v00.00.00000/services/oam.yaml @@ -742,10 +742,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Oam::Link' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Label') as label, + JSON_EXTRACT(detail.Properties, '$.LabelTemplate') as label_template, + JSON_EXTRACT(detail.Properties, '$.ResourceTypes') as resource_types, + JSON_EXTRACT(detail.Properties, '$.SinkIdentifier') as sink_identifier, + JSON_EXTRACT(detail.Properties, '$.LinkConfiguration') as link_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Oam::Link' + AND detail.data__TypeName = 'AWS::Oam::Link' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -766,10 +777,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Oam::Link' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Label') as label, + json_extract_path_text(detail.Properties, 'LabelTemplate') as label_template, + json_extract_path_text(detail.Properties, 'ResourceTypes') as resource_types, + json_extract_path_text(detail.Properties, 'SinkIdentifier') as sink_identifier, + json_extract_path_text(detail.Properties, 'LinkConfiguration') as link_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Oam::Link' + AND detail.data__TypeName = 'AWS::Oam::Link' + AND listing.region = 'us-east-1' + links_list_only: + name: links_list_only + id: aws.oam.links_list_only + x-cfn-schema-name: Link + x-cfn-type-name: AWS::Oam::Link + 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::Oam::Link' + 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::Oam::Link' + AND region = 'us-east-1' + link_tags: + name: link_tags + id: aws.oam.link_tags + x-cfn-schema-name: Link + x-cfn-type-name: AWS::Oam::Link + 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, '$.Label') as label, + JSON_EXTRACT(detail.Properties, '$.LabelTemplate') as label_template, + JSON_EXTRACT(detail.Properties, '$.ResourceTypes') as resource_types, + JSON_EXTRACT(detail.Properties, '$.SinkIdentifier') as sink_identifier, + JSON_EXTRACT(detail.Properties, '$.LinkConfiguration') as link_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::Oam::Link' + AND detail.data__TypeName = 'AWS::Oam::Link' + 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, 'Label') as label, + json_extract_path_text(detail.Properties, 'LabelTemplate') as label_template, + json_extract_path_text(detail.Properties, 'ResourceTypes') as resource_types, + json_extract_path_text(detail.Properties, 'SinkIdentifier') as sink_identifier, + json_extract_path_text(detail.Properties, 'LinkConfiguration') as link_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::Oam::Link' + AND detail.data__TypeName = 'AWS::Oam::Link' + AND listing.region = 'us-east-1' sinks: name: sinks id: aws.oam.sinks @@ -844,10 +952,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Oam::Sink' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Oam::Sink' + AND detail.data__TypeName = 'AWS::Oam::Sink' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -865,10 +981,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Oam::Sink' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Oam::Sink' + AND detail.data__TypeName = 'AWS::Oam::Sink' + AND listing.region = 'us-east-1' + sinks_list_only: + name: sinks_list_only + id: aws.oam.sinks_list_only + x-cfn-schema-name: Sink + x-cfn-type-name: AWS::Oam::Sink + 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::Oam::Sink' + 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::Oam::Sink' + AND region = 'us-east-1' + sink_tags: + name: sink_tags + id: aws.oam.sink_tags + x-cfn-schema-name: Sink + x-cfn-type-name: AWS::Oam::Sink + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy + 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::Oam::Sink' + AND detail.data__TypeName = 'AWS::Oam::Sink' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Policy') as policy + 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::Oam::Sink' + AND detail.data__TypeName = 'AWS::Oam::Sink' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/omics.yaml b/providers/src/aws/v00.00.00000/services/omics.yaml index 709e2c38..8bb554bc 100644 --- a/providers/src/aws/v00.00.00000/services/omics.yaml +++ b/providers/src/aws/v00.00.00000/services/omics.yaml @@ -1507,10 +1507,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::AnnotationStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Reference') as reference, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StoreArn') as store_arn, + JSON_EXTRACT(detail.Properties, '$.StoreFormat') as store_format, + JSON_EXTRACT(detail.Properties, '$.StoreOptions') as store_options, + JSON_EXTRACT(detail.Properties, '$.StoreSizeBytes') as store_size_bytes, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time + 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::Omics::AnnotationStore' + AND detail.data__TypeName = 'AWS::Omics::AnnotationStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1538,10 +1556,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::AnnotationStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Reference') as reference, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StoreArn') as store_arn, + json_extract_path_text(detail.Properties, 'StoreFormat') as store_format, + json_extract_path_text(detail.Properties, 'StoreOptions') as store_options, + json_extract_path_text(detail.Properties, 'StoreSizeBytes') as store_size_bytes, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time + 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::Omics::AnnotationStore' + AND detail.data__TypeName = 'AWS::Omics::AnnotationStore' + AND listing.region = 'us-east-1' + annotation_stores_list_only: + name: annotation_stores_list_only + id: aws.omics.annotation_stores_list_only + x-cfn-schema-name: AnnotationStore + x-cfn-type-name: AWS::Omics::AnnotationStore + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::AnnotationStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::AnnotationStore' + AND region = 'us-east-1' + annotation_store_tags: + name: annotation_store_tags + id: aws.omics.annotation_store_tags + x-cfn-schema-name: AnnotationStore + x-cfn-type-name: AWS::Omics::AnnotationStore + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Reference') as reference, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StoreArn') as store_arn, + JSON_EXTRACT(detail.Properties, '$.StoreFormat') as store_format, + JSON_EXTRACT(detail.Properties, '$.StoreOptions') as store_options, + JSON_EXTRACT(detail.Properties, '$.StoreSizeBytes') as store_size_bytes, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time + 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::Omics::AnnotationStore' + AND detail.data__TypeName = 'AWS::Omics::AnnotationStore' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Reference') as reference, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StoreArn') as store_arn, + json_extract_path_text(detail.Properties, 'StoreFormat') as store_format, + json_extract_path_text(detail.Properties, 'StoreOptions') as store_options, + json_extract_path_text(detail.Properties, 'StoreSizeBytes') as store_size_bytes, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time + 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::Omics::AnnotationStore' + AND detail.data__TypeName = 'AWS::Omics::AnnotationStore' + AND listing.region = 'us-east-1' reference_stores: name: reference_stores id: aws.omics.reference_stores @@ -1606,10 +1742,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ReferenceStoreId') as reference_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::ReferenceStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ReferenceStoreId') as reference_store_id, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Omics::ReferenceStore' + AND detail.data__TypeName = 'AWS::Omics::ReferenceStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1630,10 +1777,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ReferenceStoreId') as reference_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::ReferenceStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ReferenceStoreId') as reference_store_id, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Omics::ReferenceStore' + AND detail.data__TypeName = 'AWS::Omics::ReferenceStore' + AND listing.region = 'us-east-1' + reference_stores_list_only: + name: reference_stores_list_only + id: aws.omics.reference_stores_list_only + x-cfn-schema-name: ReferenceStore + x-cfn-type-name: AWS::Omics::ReferenceStore + x-identifiers: + - ReferenceStoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ReferenceStoreId') as reference_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::ReferenceStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ReferenceStoreId') as reference_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::ReferenceStore' + AND region = 'us-east-1' + reference_store_tags: + name: reference_store_tags + id: aws.omics.reference_store_tags + x-cfn-schema-name: ReferenceStore + x-cfn-type-name: AWS::Omics::ReferenceStore + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ReferenceStoreId') as reference_store_id, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config + 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::Omics::ReferenceStore' + AND detail.data__TypeName = 'AWS::Omics::ReferenceStore' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ReferenceStoreId') as reference_store_id, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config + 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::Omics::ReferenceStore' + AND detail.data__TypeName = 'AWS::Omics::ReferenceStore' + AND listing.region = 'us-east-1' run_groups: name: run_groups id: aws.omics.run_groups @@ -1713,10 +1957,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::RunGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.MaxCpus') as max_cpus, + JSON_EXTRACT(detail.Properties, '$.MaxGpus') as max_gpus, + JSON_EXTRACT(detail.Properties, '$.MaxDuration') as max_duration, + JSON_EXTRACT(detail.Properties, '$.MaxRuns') as max_runs, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Omics::RunGroup' + AND detail.data__TypeName = 'AWS::Omics::RunGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1739,10 +1996,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::RunGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'MaxCpus') as max_cpus, + json_extract_path_text(detail.Properties, 'MaxGpus') as max_gpus, + json_extract_path_text(detail.Properties, 'MaxDuration') as max_duration, + json_extract_path_text(detail.Properties, 'MaxRuns') as max_runs, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Omics::RunGroup' + AND detail.data__TypeName = 'AWS::Omics::RunGroup' + AND listing.region = 'us-east-1' + run_groups_list_only: + name: run_groups_list_only + id: aws.omics.run_groups_list_only + x-cfn-schema-name: RunGroup + x-cfn-type-name: AWS::Omics::RunGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::RunGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::RunGroup' + AND region = 'us-east-1' + run_group_tags: + name: run_group_tags + id: aws.omics.run_group_tags + x-cfn-schema-name: RunGroup + x-cfn-type-name: AWS::Omics::RunGroup + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.MaxCpus') as max_cpus, + JSON_EXTRACT(detail.Properties, '$.MaxGpus') as max_gpus, + JSON_EXTRACT(detail.Properties, '$.MaxDuration') as max_duration, + JSON_EXTRACT(detail.Properties, '$.MaxRuns') as max_runs, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::Omics::RunGroup' + AND detail.data__TypeName = 'AWS::Omics::RunGroup' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'MaxCpus') as max_cpus, + json_extract_path_text(detail.Properties, 'MaxGpus') as max_gpus, + json_extract_path_text(detail.Properties, 'MaxDuration') as max_duration, + json_extract_path_text(detail.Properties, 'MaxRuns') as max_runs, + json_extract_path_text(detail.Properties, 'Name') as name + 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::Omics::RunGroup' + AND detail.data__TypeName = 'AWS::Omics::RunGroup' + AND listing.region = 'us-east-1' sequence_stores: name: sequence_stores id: aws.omics.sequence_stores @@ -1808,10 +2168,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SequenceStoreId') as sequence_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::SequenceStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.FallbackLocation') as fallback_location, + JSON_EXTRACT(detail.Properties, '$.SequenceStoreId') as sequence_store_id, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Omics::SequenceStore' + AND detail.data__TypeName = 'AWS::Omics::SequenceStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1833,10 +2205,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SequenceStoreId') as sequence_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::SequenceStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'FallbackLocation') as fallback_location, + json_extract_path_text(detail.Properties, 'SequenceStoreId') as sequence_store_id, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Omics::SequenceStore' + AND detail.data__TypeName = 'AWS::Omics::SequenceStore' + AND listing.region = 'us-east-1' + sequence_stores_list_only: + name: sequence_stores_list_only + id: aws.omics.sequence_stores_list_only + x-cfn-schema-name: SequenceStore + x-cfn-type-name: AWS::Omics::SequenceStore + x-identifiers: + - SequenceStoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SequenceStoreId') as sequence_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::SequenceStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SequenceStoreId') as sequence_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::SequenceStore' + AND region = 'us-east-1' + sequence_store_tags: + name: sequence_store_tags + id: aws.omics.sequence_store_tags + x-cfn-schema-name: SequenceStore + x-cfn-type-name: AWS::Omics::SequenceStore + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.FallbackLocation') as fallback_location, + JSON_EXTRACT(detail.Properties, '$.SequenceStoreId') as sequence_store_id, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config + 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::Omics::SequenceStore' + AND detail.data__TypeName = 'AWS::Omics::SequenceStore' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'FallbackLocation') as fallback_location, + json_extract_path_text(detail.Properties, 'SequenceStoreId') as sequence_store_id, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config + 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::Omics::SequenceStore' + AND detail.data__TypeName = 'AWS::Omics::SequenceStore' + AND listing.region = 'us-east-1' variant_stores: name: variant_stores id: aws.omics.variant_stores @@ -1919,10 +2391,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::VariantStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Reference') as reference, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StoreArn') as store_arn, + JSON_EXTRACT(detail.Properties, '$.StoreSizeBytes') as store_size_bytes, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time + 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::Omics::VariantStore' + AND detail.data__TypeName = 'AWS::Omics::VariantStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1948,10 +2436,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::VariantStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Reference') as reference, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StoreArn') as store_arn, + json_extract_path_text(detail.Properties, 'StoreSizeBytes') as store_size_bytes, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time + 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::Omics::VariantStore' + AND detail.data__TypeName = 'AWS::Omics::VariantStore' + AND listing.region = 'us-east-1' + variant_stores_list_only: + name: variant_stores_list_only + id: aws.omics.variant_stores_list_only + x-cfn-schema-name: VariantStore + x-cfn-type-name: AWS::Omics::VariantStore + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::VariantStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::VariantStore' + AND region = 'us-east-1' + variant_store_tags: + name: variant_store_tags + id: aws.omics.variant_store_tags + x-cfn-schema-name: VariantStore + x-cfn-type-name: AWS::Omics::VariantStore + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Reference') as reference, + JSON_EXTRACT(detail.Properties, '$.SseConfig') as sse_config, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.StoreArn') as store_arn, + JSON_EXTRACT(detail.Properties, '$.StoreSizeBytes') as store_size_bytes, + JSON_EXTRACT(detail.Properties, '$.UpdateTime') as update_time + 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::Omics::VariantStore' + AND detail.data__TypeName = 'AWS::Omics::VariantStore' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Reference') as reference, + json_extract_path_text(detail.Properties, 'SseConfig') as sse_config, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'StoreArn') as store_arn, + json_extract_path_text(detail.Properties, 'StoreSizeBytes') as store_size_bytes, + json_extract_path_text(detail.Properties, 'UpdateTime') as update_time + 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::Omics::VariantStore' + AND detail.data__TypeName = 'AWS::Omics::VariantStore' + AND listing.region = 'us-east-1' workflows: name: workflows id: aws.omics.workflows @@ -2036,10 +2636,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::Workflow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.DefinitionUri') as definition_uri, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Main') as main, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ParameterTemplate') as parameter_template, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Accelerators') as accelerators, + JSON_EXTRACT(detail.Properties, '$.StorageCapacity') as storage_capacity, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::Omics::Workflow' + AND detail.data__TypeName = 'AWS::Omics::Workflow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2067,10 +2685,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::Workflow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'DefinitionUri') as definition_uri, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Main') as main, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ParameterTemplate') as parameter_template, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Accelerators') as accelerators, + json_extract_path_text(detail.Properties, 'StorageCapacity') as storage_capacity, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type + 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::Omics::Workflow' + AND detail.data__TypeName = 'AWS::Omics::Workflow' + AND listing.region = 'us-east-1' + workflows_list_only: + name: workflows_list_only + id: aws.omics.workflows_list_only + x-cfn-schema-name: Workflow + x-cfn-type-name: AWS::Omics::Workflow + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::Workflow' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Omics::Workflow' + AND region = 'us-east-1' + workflow_tags: + name: workflow_tags + id: aws.omics.workflow_tags + x-cfn-schema-name: Workflow + x-cfn-type-name: AWS::Omics::Workflow + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.DefinitionUri') as definition_uri, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Main') as main, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ParameterTemplate') as parameter_template, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Accelerators') as accelerators, + JSON_EXTRACT(detail.Properties, '$.StorageCapacity') as storage_capacity, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::Omics::Workflow' + AND detail.data__TypeName = 'AWS::Omics::Workflow' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'DefinitionUri') as definition_uri, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Main') as main, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ParameterTemplate') as parameter_template, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Accelerators') as accelerators, + json_extract_path_text(detail.Properties, 'StorageCapacity') as storage_capacity, + json_extract_path_text(detail.Properties, 'Type') as type + 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::Omics::Workflow' + AND detail.data__TypeName = 'AWS::Omics::Workflow' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/opensearchserverless.yaml b/providers/src/aws/v00.00.00000/services/opensearchserverless.yaml index 584b1100..19d8ea58 100644 --- a/providers/src/aws/v00.00.00000/services/opensearchserverless.yaml +++ b/providers/src/aws/v00.00.00000/services/opensearchserverless.yaml @@ -1262,11 +1262,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Type') as type, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::AccessPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy + 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::OpenSearchServerless::AccessPolicy' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::AccessPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1284,11 +1291,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Type') as type, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::AccessPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Policy') as policy + 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::OpenSearchServerless::AccessPolicy' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::AccessPolicy' + AND listing.region = 'us-east-1' + access_policies_list_only: + name: access_policies_list_only + id: aws.opensearchserverless.access_policies_list_only + x-cfn-schema-name: AccessPolicy + x-cfn-type-name: AWS::OpenSearchServerless::AccessPolicy + x-identifiers: + - Type + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Type') as type, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::AccessPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Type') as type, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::AccessPolicy' + AND region = 'us-east-1' collections: name: collections id: aws.opensearchserverless.collections @@ -1368,10 +1416,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::Collection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CollectionEndpoint') as collection_endpoint, + JSON_EXTRACT(detail.Properties, '$.DashboardEndpoint') as dashboard_endpoint, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.StandbyReplicas') as standby_replicas + 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::OpenSearchServerless::Collection' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::Collection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1394,10 +1455,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::Collection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CollectionEndpoint') as collection_endpoint, + json_extract_path_text(detail.Properties, 'DashboardEndpoint') as dashboard_endpoint, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'StandbyReplicas') as standby_replicas + 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::OpenSearchServerless::Collection' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::Collection' + AND listing.region = 'us-east-1' + collections_list_only: + name: collections_list_only + id: aws.opensearchserverless.collections_list_only + x-cfn-schema-name: Collection + x-cfn-type-name: AWS::OpenSearchServerless::Collection + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::Collection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::Collection' + AND region = 'us-east-1' + collection_tags: + name: collection_tags + id: aws.opensearchserverless.collection_tags + x-cfn-schema-name: Collection + x-cfn-type-name: AWS::OpenSearchServerless::Collection + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CollectionEndpoint') as collection_endpoint, + JSON_EXTRACT(detail.Properties, '$.DashboardEndpoint') as dashboard_endpoint, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.StandbyReplicas') as standby_replicas + 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::OpenSearchServerless::Collection' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::Collection' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CollectionEndpoint') as collection_endpoint, + json_extract_path_text(detail.Properties, 'DashboardEndpoint') as dashboard_endpoint, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'StandbyReplicas') as standby_replicas + 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::OpenSearchServerless::Collection' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::Collection' + AND listing.region = 'us-east-1' lifecycle_policies: name: lifecycle_policies id: aws.opensearchserverless.lifecycle_policies @@ -1473,11 +1637,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Type') as type, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::LifecyclePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy + 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::OpenSearchServerless::LifecyclePolicy' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::LifecyclePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1495,11 +1666,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Type') as type, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::LifecyclePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Policy') as policy + 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::OpenSearchServerless::LifecyclePolicy' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::LifecyclePolicy' + AND listing.region = 'us-east-1' + lifecycle_policies_list_only: + name: lifecycle_policies_list_only + id: aws.opensearchserverless.lifecycle_policies_list_only + x-cfn-schema-name: LifecyclePolicy + x-cfn-type-name: AWS::OpenSearchServerless::LifecyclePolicy + x-identifiers: + - Type + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Type') as type, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::LifecyclePolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Type') as type, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::LifecyclePolicy' + AND region = 'us-east-1' security_configs: name: security_configs id: aws.opensearchserverless.security_configs @@ -1575,10 +1787,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SamlOptions') as saml_options, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::OpenSearchServerless::SecurityConfig' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::SecurityConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1597,10 +1818,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SamlOptions') as saml_options, + json_extract_path_text(detail.Properties, 'Type') as type + 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::OpenSearchServerless::SecurityConfig' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::SecurityConfig' + AND listing.region = 'us-east-1' + security_configs_list_only: + name: security_configs_list_only + id: aws.opensearchserverless.security_configs_list_only + x-cfn-schema-name: SecurityConfig + x-cfn-type-name: AWS::OpenSearchServerless::SecurityConfig + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityConfig' + AND region = 'us-east-1' security_policies: name: security_policies id: aws.opensearchserverless.security_policies @@ -1676,11 +1937,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Type') as type, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type + 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::OpenSearchServerless::SecurityPolicy' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::SecurityPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1698,11 +1966,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Type') as type, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type + 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::OpenSearchServerless::SecurityPolicy' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::SecurityPolicy' + AND listing.region = 'us-east-1' + security_policies_list_only: + name: security_policies_list_only + id: aws.opensearchserverless.security_policies_list_only + x-cfn-schema-name: SecurityPolicy + x-cfn-type-name: AWS::OpenSearchServerless::SecurityPolicy + x-identifiers: + - Type + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Type') as type, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Type') as type, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::SecurityPolicy' + AND region = 'us-east-1' vpc_endpoints: name: vpc_endpoints id: aws.opensearchserverless.vpc_endpoints @@ -1778,10 +2087,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::VpcEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::OpenSearchServerless::VpcEndpoint' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::VpcEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1800,10 +2118,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::VpcEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::OpenSearchServerless::VpcEndpoint' + AND detail.data__TypeName = 'AWS::OpenSearchServerless::VpcEndpoint' + AND listing.region = 'us-east-1' + vpc_endpoints_list_only: + name: vpc_endpoints_list_only + id: aws.opensearchserverless.vpc_endpoints_list_only + x-cfn-schema-name: VpcEndpoint + x-cfn-type-name: AWS::OpenSearchServerless::VpcEndpoint + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::VpcEndpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpenSearchServerless::VpcEndpoint' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/opsworkscm.yaml b/providers/src/aws/v00.00.00000/services/opsworkscm.yaml index a8cdce6c..d292de13 100644 --- a/providers/src/aws/v00.00.00000/services/opsworkscm.yaml +++ b/providers/src/aws/v00.00.00000/services/opsworkscm.yaml @@ -771,10 +771,37 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ServerName') as server_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpsWorksCM::Server' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.KeyPair') as key_pair, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.ServiceRoleArn') as service_role_arn, + JSON_EXTRACT(detail.Properties, '$.DisableAutomatedBackup') as disable_automated_backup, + JSON_EXTRACT(detail.Properties, '$.BackupId') as backup_id, + JSON_EXTRACT(detail.Properties, '$.EngineModel') as engine_model, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.AssociatePublicIpAddress') as associate_public_ip_address, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileArn') as instance_profile_arn, + JSON_EXTRACT(detail.Properties, '$.CustomCertificate') as custom_certificate, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.CustomDomain') as custom_domain, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.CustomPrivateKey') as custom_private_key, + JSON_EXTRACT(detail.Properties, '$.ServerName') as server_name, + JSON_EXTRACT(detail.Properties, '$.EngineAttributes') as engine_attributes, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionCount') as backup_retention_count, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine + 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::OpsWorksCM::Server' + AND detail.data__TypeName = 'AWS::OpsWorksCM::Server' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -811,10 +838,155 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ServerName') as server_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpsWorksCM::Server' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'KeyPair') as key_pair, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'ServiceRoleArn') as service_role_arn, + json_extract_path_text(detail.Properties, 'DisableAutomatedBackup') as disable_automated_backup, + json_extract_path_text(detail.Properties, 'BackupId') as backup_id, + json_extract_path_text(detail.Properties, 'EngineModel') as engine_model, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'AssociatePublicIpAddress') as associate_public_ip_address, + json_extract_path_text(detail.Properties, 'InstanceProfileArn') as instance_profile_arn, + json_extract_path_text(detail.Properties, 'CustomCertificate') as custom_certificate, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'CustomDomain') as custom_domain, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'CustomPrivateKey') as custom_private_key, + json_extract_path_text(detail.Properties, 'ServerName') as server_name, + json_extract_path_text(detail.Properties, 'EngineAttributes') as engine_attributes, + json_extract_path_text(detail.Properties, 'BackupRetentionCount') as backup_retention_count, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Engine') as engine + 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::OpsWorksCM::Server' + AND detail.data__TypeName = 'AWS::OpsWorksCM::Server' + AND listing.region = 'us-east-1' + servers_list_only: + name: servers_list_only + id: aws.opsworkscm.servers_list_only + x-cfn-schema-name: Server + x-cfn-type-name: AWS::OpsWorksCM::Server + x-identifiers: + - ServerName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ServerName') as server_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpsWorksCM::Server' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ServerName') as server_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OpsWorksCM::Server' + AND region = 'us-east-1' + server_tags: + name: server_tags + id: aws.opsworkscm.server_tags + x-cfn-schema-name: Server + x-cfn-type-name: AWS::OpsWorksCM::Server + 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, '$.KeyPair') as key_pair, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.ServiceRoleArn') as service_role_arn, + JSON_EXTRACT(detail.Properties, '$.DisableAutomatedBackup') as disable_automated_backup, + JSON_EXTRACT(detail.Properties, '$.BackupId') as backup_id, + JSON_EXTRACT(detail.Properties, '$.EngineModel') as engine_model, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.AssociatePublicIpAddress') as associate_public_ip_address, + JSON_EXTRACT(detail.Properties, '$.InstanceProfileArn') as instance_profile_arn, + JSON_EXTRACT(detail.Properties, '$.CustomCertificate') as custom_certificate, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.CustomDomain') as custom_domain, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.CustomPrivateKey') as custom_private_key, + JSON_EXTRACT(detail.Properties, '$.ServerName') as server_name, + JSON_EXTRACT(detail.Properties, '$.EngineAttributes') as engine_attributes, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionCount') as backup_retention_count, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine + 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::OpsWorksCM::Server' + AND detail.data__TypeName = 'AWS::OpsWorksCM::Server' + 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, 'KeyPair') as key_pair, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'ServiceRoleArn') as service_role_arn, + json_extract_path_text(detail.Properties, 'DisableAutomatedBackup') as disable_automated_backup, + json_extract_path_text(detail.Properties, 'BackupId') as backup_id, + json_extract_path_text(detail.Properties, 'EngineModel') as engine_model, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'AssociatePublicIpAddress') as associate_public_ip_address, + json_extract_path_text(detail.Properties, 'InstanceProfileArn') as instance_profile_arn, + json_extract_path_text(detail.Properties, 'CustomCertificate') as custom_certificate, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'CustomDomain') as custom_domain, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'CustomPrivateKey') as custom_private_key, + json_extract_path_text(detail.Properties, 'ServerName') as server_name, + json_extract_path_text(detail.Properties, 'EngineAttributes') as engine_attributes, + json_extract_path_text(detail.Properties, 'BackupRetentionCount') as backup_retention_count, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'Engine') as engine + 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::OpsWorksCM::Server' + AND detail.data__TypeName = 'AWS::OpsWorksCM::Server' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/organizations.yaml b/providers/src/aws/v00.00.00000/services/organizations.yaml index 68512df7..42efc1ac 100644 --- a/providers/src/aws/v00.00.00000/services/organizations.yaml +++ b/providers/src/aws/v00.00.00000/services/organizations.yaml @@ -1192,10 +1192,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Account' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountName') as account_name, + JSON_EXTRACT(detail.Properties, '$.Email') as email, + JSON_EXTRACT(detail.Properties, '$.RoleName') as role_name, + JSON_EXTRACT(detail.Properties, '$.ParentIds') as parent_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.JoinedMethod') as joined_method, + JSON_EXTRACT(detail.Properties, '$.JoinedTimestamp') as joined_timestamp, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Organizations::Account' + AND detail.data__TypeName = 'AWS::Organizations::Account' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1219,10 +1233,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Account' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountName') as account_name, + json_extract_path_text(detail.Properties, 'Email') as email, + json_extract_path_text(detail.Properties, 'RoleName') as role_name, + json_extract_path_text(detail.Properties, 'ParentIds') as parent_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'JoinedMethod') as joined_method, + json_extract_path_text(detail.Properties, 'JoinedTimestamp') as joined_timestamp, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Organizations::Account' + AND detail.data__TypeName = 'AWS::Organizations::Account' + AND listing.region = 'us-east-1' + accounts_list_only: + name: accounts_list_only + id: aws.organizations.accounts_list_only + x-cfn-schema-name: Account + x-cfn-type-name: AWS::Organizations::Account + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Account' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Account' + AND region = 'us-east-1' + account_tags: + name: account_tags + id: aws.organizations.account_tags + x-cfn-schema-name: Account + x-cfn-type-name: AWS::Organizations::Account + 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, '$.AccountName') as account_name, + JSON_EXTRACT(detail.Properties, '$.Email') as email, + JSON_EXTRACT(detail.Properties, '$.RoleName') as role_name, + JSON_EXTRACT(detail.Properties, '$.ParentIds') as parent_ids, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.JoinedMethod') as joined_method, + JSON_EXTRACT(detail.Properties, '$.JoinedTimestamp') as joined_timestamp, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Organizations::Account' + AND detail.data__TypeName = 'AWS::Organizations::Account' + 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, 'AccountName') as account_name, + json_extract_path_text(detail.Properties, 'Email') as email, + json_extract_path_text(detail.Properties, 'RoleName') as role_name, + json_extract_path_text(detail.Properties, 'ParentIds') as parent_ids, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'JoinedMethod') as joined_method, + json_extract_path_text(detail.Properties, 'JoinedTimestamp') as joined_timestamp, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Organizations::Account' + AND detail.data__TypeName = 'AWS::Organizations::Account' + AND listing.region = 'us-east-1' organizations: name: organizations id: aws.organizations.organizations @@ -1287,10 +1407,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Organization' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.FeatureSet') as feature_set, + JSON_EXTRACT(detail.Properties, '$.ManagementAccountArn') as management_account_arn, + JSON_EXTRACT(detail.Properties, '$.ManagementAccountId') as management_account_id, + JSON_EXTRACT(detail.Properties, '$.ManagementAccountEmail') as management_account_email, + JSON_EXTRACT(detail.Properties, '$.RootId') as root_id + 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::Organizations::Organization' + AND detail.data__TypeName = 'AWS::Organizations::Organization' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1311,10 +1442,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Organization' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'FeatureSet') as feature_set, + json_extract_path_text(detail.Properties, 'ManagementAccountArn') as management_account_arn, + json_extract_path_text(detail.Properties, 'ManagementAccountId') as management_account_id, + json_extract_path_text(detail.Properties, 'ManagementAccountEmail') as management_account_email, + json_extract_path_text(detail.Properties, 'RootId') as root_id + 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::Organizations::Organization' + AND detail.data__TypeName = 'AWS::Organizations::Organization' + AND listing.region = 'us-east-1' + organizations_list_only: + name: organizations_list_only + id: aws.organizations.organizations_list_only + x-cfn-schema-name: Organization + x-cfn-type-name: AWS::Organizations::Organization + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Organization' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Organization' + AND region = 'us-east-1' organizational_units: name: organizational_units id: aws.organizations.organizational_units @@ -1390,10 +1563,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::OrganizationalUnit' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ParentId') as parent_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Organizations::OrganizationalUnit' + AND detail.data__TypeName = 'AWS::Organizations::OrganizationalUnit' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1412,10 +1594,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::OrganizationalUnit' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ParentId') as parent_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Organizations::OrganizationalUnit' + AND detail.data__TypeName = 'AWS::Organizations::OrganizationalUnit' + AND listing.region = 'us-east-1' + organizational_units_list_only: + name: organizational_units_list_only + id: aws.organizations.organizational_units_list_only + x-cfn-schema-name: OrganizationalUnit + x-cfn-type-name: AWS::Organizations::OrganizationalUnit + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::OrganizationalUnit' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::OrganizationalUnit' + AND region = 'us-east-1' + organizational_unit_tags: + name: organizational_unit_tags + id: aws.organizations.organizational_unit_tags + x-cfn-schema-name: OrganizationalUnit + x-cfn-type-name: AWS::Organizations::OrganizationalUnit + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ParentId') as parent_id + 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::Organizations::OrganizationalUnit' + AND detail.data__TypeName = 'AWS::Organizations::OrganizationalUnit' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ParentId') as parent_id + 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::Organizations::OrganizationalUnit' + AND detail.data__TypeName = 'AWS::Organizations::OrganizationalUnit' + AND listing.region = 'us-east-1' policies: name: policies id: aws.organizations.policies @@ -1495,10 +1768,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Policy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TargetIds') as target_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsManaged') as aws_managed + 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::Organizations::Policy' + AND detail.data__TypeName = 'AWS::Organizations::Policy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1521,10 +1807,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Policy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TargetIds') as target_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsManaged') as aws_managed + 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::Organizations::Policy' + AND detail.data__TypeName = 'AWS::Organizations::Policy' + AND listing.region = 'us-east-1' + policies_list_only: + name: policies_list_only + id: aws.organizations.policies_list_only + x-cfn-schema-name: Policy + x-cfn-type-name: AWS::Organizations::Policy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Policy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::Policy' + AND region = 'us-east-1' + policy_tags: + name: policy_tags + id: aws.organizations.policy_tags + x-cfn-schema-name: Policy + x-cfn-type-name: AWS::Organizations::Policy + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.TargetIds') as target_ids, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsManaged') as aws_managed + 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::Organizations::Policy' + AND detail.data__TypeName = 'AWS::Organizations::Policy' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'TargetIds') as target_ids, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsManaged') as aws_managed + 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::Organizations::Policy' + AND detail.data__TypeName = 'AWS::Organizations::Policy' + AND listing.region = 'us-east-1' resource_policies: name: resource_policies id: aws.organizations.resource_policies @@ -1599,10 +1988,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Organizations::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Organizations::ResourcePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1620,10 +2017,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Organizations::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Organizations::ResourcePolicy' + AND listing.region = 'us-east-1' + resource_policies_list_only: + name: resource_policies_list_only + id: aws.organizations.resource_policies_list_only + x-cfn-schema-name: ResourcePolicy + x-cfn-type-name: AWS::Organizations::ResourcePolicy + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::ResourcePolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Organizations::ResourcePolicy' + AND region = 'us-east-1' + resource_policy_tags: + name: resource_policy_tags + id: aws.organizations.resource_policy_tags + x-cfn-schema-name: ResourcePolicy + x-cfn-type-name: AWS::Organizations::ResourcePolicy + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Content') as content + 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::Organizations::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Organizations::ResourcePolicy' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Content') as content + 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::Organizations::ResourcePolicy' + AND detail.data__TypeName = 'AWS::Organizations::ResourcePolicy' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/osis.yaml b/providers/src/aws/v00.00.00000/services/osis.yaml index 0f7f9138..2aee7907 100644 --- a/providers/src/aws/v00.00.00000/services/osis.yaml +++ b/providers/src/aws/v00.00.00000/services/osis.yaml @@ -760,10 +760,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PipelineArn') as pipeline_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OSIS::Pipeline' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BufferOptions') as buffer_options, + JSON_EXTRACT(detail.Properties, '$.EncryptionAtRestOptions') as encryption_at_rest_options, + JSON_EXTRACT(detail.Properties, '$.LogPublishingOptions') as log_publishing_options, + JSON_EXTRACT(detail.Properties, '$.MaxUnits') as max_units, + JSON_EXTRACT(detail.Properties, '$.MinUnits') as min_units, + JSON_EXTRACT(detail.Properties, '$.PipelineConfigurationBody') as pipeline_configuration_body, + JSON_EXTRACT(detail.Properties, '$.PipelineName') as pipeline_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcOptions') as vpc_options, + JSON_EXTRACT(detail.Properties, '$.VpcEndpoints') as vpc_endpoints, + JSON_EXTRACT(detail.Properties, '$.PipelineArn') as pipeline_arn, + JSON_EXTRACT(detail.Properties, '$.IngestEndpointUrls') as ingest_endpoint_urls + 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::OSIS::Pipeline' + AND detail.data__TypeName = 'AWS::OSIS::Pipeline' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -789,10 +805,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PipelineArn') as pipeline_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OSIS::Pipeline' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BufferOptions') as buffer_options, + json_extract_path_text(detail.Properties, 'EncryptionAtRestOptions') as encryption_at_rest_options, + json_extract_path_text(detail.Properties, 'LogPublishingOptions') as log_publishing_options, + json_extract_path_text(detail.Properties, 'MaxUnits') as max_units, + json_extract_path_text(detail.Properties, 'MinUnits') as min_units, + json_extract_path_text(detail.Properties, 'PipelineConfigurationBody') as pipeline_configuration_body, + json_extract_path_text(detail.Properties, 'PipelineName') as pipeline_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcOptions') as vpc_options, + json_extract_path_text(detail.Properties, 'VpcEndpoints') as vpc_endpoints, + json_extract_path_text(detail.Properties, 'PipelineArn') as pipeline_arn, + json_extract_path_text(detail.Properties, 'IngestEndpointUrls') as ingest_endpoint_urls + 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::OSIS::Pipeline' + AND detail.data__TypeName = 'AWS::OSIS::Pipeline' + AND listing.region = 'us-east-1' + pipelines_list_only: + name: pipelines_list_only + id: aws.osis.pipelines_list_only + x-cfn-schema-name: Pipeline + x-cfn-type-name: AWS::OSIS::Pipeline + x-identifiers: + - PipelineArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PipelineArn') as pipeline_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OSIS::Pipeline' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PipelineArn') as pipeline_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::OSIS::Pipeline' + AND region = 'us-east-1' + pipeline_tags: + name: pipeline_tags + id: aws.osis.pipeline_tags + x-cfn-schema-name: Pipeline + x-cfn-type-name: AWS::OSIS::Pipeline + 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, '$.BufferOptions') as buffer_options, + JSON_EXTRACT(detail.Properties, '$.EncryptionAtRestOptions') as encryption_at_rest_options, + JSON_EXTRACT(detail.Properties, '$.LogPublishingOptions') as log_publishing_options, + JSON_EXTRACT(detail.Properties, '$.MaxUnits') as max_units, + JSON_EXTRACT(detail.Properties, '$.MinUnits') as min_units, + JSON_EXTRACT(detail.Properties, '$.PipelineConfigurationBody') as pipeline_configuration_body, + JSON_EXTRACT(detail.Properties, '$.PipelineName') as pipeline_name, + JSON_EXTRACT(detail.Properties, '$.VpcOptions') as vpc_options, + JSON_EXTRACT(detail.Properties, '$.VpcEndpoints') as vpc_endpoints, + JSON_EXTRACT(detail.Properties, '$.PipelineArn') as pipeline_arn, + JSON_EXTRACT(detail.Properties, '$.IngestEndpointUrls') as ingest_endpoint_urls + 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::OSIS::Pipeline' + AND detail.data__TypeName = 'AWS::OSIS::Pipeline' + 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, 'BufferOptions') as buffer_options, + json_extract_path_text(detail.Properties, 'EncryptionAtRestOptions') as encryption_at_rest_options, + json_extract_path_text(detail.Properties, 'LogPublishingOptions') as log_publishing_options, + json_extract_path_text(detail.Properties, 'MaxUnits') as max_units, + json_extract_path_text(detail.Properties, 'MinUnits') as min_units, + json_extract_path_text(detail.Properties, 'PipelineConfigurationBody') as pipeline_configuration_body, + json_extract_path_text(detail.Properties, 'PipelineName') as pipeline_name, + json_extract_path_text(detail.Properties, 'VpcOptions') as vpc_options, + json_extract_path_text(detail.Properties, 'VpcEndpoints') as vpc_endpoints, + json_extract_path_text(detail.Properties, 'PipelineArn') as pipeline_arn, + json_extract_path_text(detail.Properties, 'IngestEndpointUrls') as ingest_endpoint_urls + 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::OSIS::Pipeline' + AND detail.data__TypeName = 'AWS::OSIS::Pipeline' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/panorama.yaml b/providers/src/aws/v00.00.00000/services/panorama.yaml index ce612f07..5f9eafda 100644 --- a/providers/src/aws/v00.00.00000/services/panorama.yaml +++ b/providers/src/aws/v00.00.00000/services/panorama.yaml @@ -1043,10 +1043,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationInstanceId') as application_instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::ApplicationInstance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DefaultRuntimeContextDeviceName') as default_runtime_context_device_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DefaultRuntimeContextDevice') as default_runtime_context_device, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApplicationInstanceIdToReplace') as application_instance_id_to_replace, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.HealthStatus') as health_status, + JSON_EXTRACT(detail.Properties, '$.ManifestOverridesPayload') as manifest_overrides_payload, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.RuntimeRoleArn') as runtime_role_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ApplicationInstanceId') as application_instance_id, + JSON_EXTRACT(detail.Properties, '$.StatusDescription') as status_description, + JSON_EXTRACT(detail.Properties, '$.ManifestPayload') as manifest_payload, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Panorama::ApplicationInstance' + AND detail.data__TypeName = 'AWS::Panorama::ApplicationInstance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1076,10 +1096,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationInstanceId') as application_instance_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::ApplicationInstance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DefaultRuntimeContextDeviceName') as default_runtime_context_device_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DefaultRuntimeContextDevice') as default_runtime_context_device, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApplicationInstanceIdToReplace') as application_instance_id_to_replace, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'HealthStatus') as health_status, + json_extract_path_text(detail.Properties, 'ManifestOverridesPayload') as manifest_overrides_payload, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'RuntimeRoleArn') as runtime_role_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ApplicationInstanceId') as application_instance_id, + json_extract_path_text(detail.Properties, 'StatusDescription') as status_description, + json_extract_path_text(detail.Properties, 'ManifestPayload') as manifest_payload, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Panorama::ApplicationInstance' + AND detail.data__TypeName = 'AWS::Panorama::ApplicationInstance' + AND listing.region = 'us-east-1' + application_instances_list_only: + name: application_instances_list_only + id: aws.panorama.application_instances_list_only + x-cfn-schema-name: ApplicationInstance + x-cfn-type-name: AWS::Panorama::ApplicationInstance + x-identifiers: + - ApplicationInstanceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationInstanceId') as application_instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::ApplicationInstance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationInstanceId') as application_instance_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::ApplicationInstance' + AND region = 'us-east-1' + application_instance_tags: + name: application_instance_tags + id: aws.panorama.application_instance_tags + x-cfn-schema-name: ApplicationInstance + x-cfn-type-name: AWS::Panorama::ApplicationInstance + 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, '$.DefaultRuntimeContextDeviceName') as default_runtime_context_device_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DefaultRuntimeContextDevice') as default_runtime_context_device, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApplicationInstanceIdToReplace') as application_instance_id_to_replace, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.HealthStatus') as health_status, + JSON_EXTRACT(detail.Properties, '$.ManifestOverridesPayload') as manifest_overrides_payload, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.RuntimeRoleArn') as runtime_role_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ApplicationInstanceId') as application_instance_id, + JSON_EXTRACT(detail.Properties, '$.StatusDescription') as status_description, + JSON_EXTRACT(detail.Properties, '$.ManifestPayload') as manifest_payload, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Panorama::ApplicationInstance' + AND detail.data__TypeName = 'AWS::Panorama::ApplicationInstance' + 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, 'DefaultRuntimeContextDeviceName') as default_runtime_context_device_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DefaultRuntimeContextDevice') as default_runtime_context_device, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApplicationInstanceIdToReplace') as application_instance_id_to_replace, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'HealthStatus') as health_status, + json_extract_path_text(detail.Properties, 'ManifestOverridesPayload') as manifest_overrides_payload, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'RuntimeRoleArn') as runtime_role_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ApplicationInstanceId') as application_instance_id, + json_extract_path_text(detail.Properties, 'StatusDescription') as status_description, + json_extract_path_text(detail.Properties, 'ManifestPayload') as manifest_payload, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Panorama::ApplicationInstance' + AND detail.data__TypeName = 'AWS::Panorama::ApplicationInstance' + AND listing.region = 'us-east-1' packages: name: packages id: aws.panorama.packages @@ -1156,10 +1300,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PackageId') as package_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::Package' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PackageName') as package_name, + JSON_EXTRACT(detail.Properties, '$.PackageId') as package_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StorageLocation') as storage_location, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Panorama::Package' + AND detail.data__TypeName = 'AWS::Panorama::Package' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1179,10 +1333,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PackageId') as package_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::Package' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PackageName') as package_name, + json_extract_path_text(detail.Properties, 'PackageId') as package_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StorageLocation') as storage_location, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Panorama::Package' + AND detail.data__TypeName = 'AWS::Panorama::Package' + AND listing.region = 'us-east-1' + packages_list_only: + name: packages_list_only + id: aws.panorama.packages_list_only + x-cfn-schema-name: Package + x-cfn-type-name: AWS::Panorama::Package + x-identifiers: + - PackageId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PackageId') as package_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::Package' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PackageId') as package_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Panorama::Package' + AND region = 'us-east-1' + package_tags: + name: package_tags + id: aws.panorama.package_tags + x-cfn-schema-name: Package + x-cfn-type-name: AWS::Panorama::Package + 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, '$.PackageName') as package_name, + JSON_EXTRACT(detail.Properties, '$.PackageId') as package_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StorageLocation') as storage_location, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time + 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::Panorama::Package' + AND detail.data__TypeName = 'AWS::Panorama::Package' + 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, 'PackageName') as package_name, + json_extract_path_text(detail.Properties, 'PackageId') as package_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StorageLocation') as storage_location, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time + 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::Panorama::Package' + AND detail.data__TypeName = 'AWS::Panorama::Package' + AND listing.region = 'us-east-1' package_versions: name: package_versions id: aws.panorama.package_versions diff --git a/providers/src/aws/v00.00.00000/services/paymentcryptography.yaml b/providers/src/aws/v00.00.00000/services/paymentcryptography.yaml index 669bc0f2..ca2ba8cd 100644 --- a/providers/src/aws/v00.00.00000/services/paymentcryptography.yaml +++ b/providers/src/aws/v00.00.00000/services/paymentcryptography.yaml @@ -763,10 +763,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AliasName') as alias_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Alias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AliasName') as alias_name, + JSON_EXTRACT(detail.Properties, '$.KeyArn') as key_arn + 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::PaymentCryptography::Alias' + AND detail.data__TypeName = 'AWS::PaymentCryptography::Alias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -782,10 +788,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AliasName') as alias_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Alias' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AliasName') as alias_name, + json_extract_path_text(detail.Properties, 'KeyArn') as key_arn + 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::PaymentCryptography::Alias' + AND detail.data__TypeName = 'AWS::PaymentCryptography::Alias' + AND listing.region = 'us-east-1' + aliases_list_only: + name: aliases_list_only + id: aws.paymentcryptography.aliases_list_only + x-cfn-schema-name: Alias + x-cfn-type-name: AWS::PaymentCryptography::Alias + x-identifiers: + - AliasName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AliasName') as alias_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Alias' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AliasName') as alias_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Alias' + AND region = 'us-east-1' keys: name: keys id: aws.paymentcryptography.keys @@ -864,10 +907,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KeyIdentifier') as key_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Key' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Exportable') as exportable, + JSON_EXTRACT(detail.Properties, '$.KeyAttributes') as key_attributes, + JSON_EXTRACT(detail.Properties, '$.KeyCheckValueAlgorithm') as key_check_value_algorithm, + JSON_EXTRACT(detail.Properties, '$.KeyIdentifier') as key_identifier, + JSON_EXTRACT(detail.Properties, '$.KeyOrigin') as key_origin, + JSON_EXTRACT(detail.Properties, '$.KeyState') as key_state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::PaymentCryptography::Key' + AND detail.data__TypeName = 'AWS::PaymentCryptography::Key' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -889,10 +944,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KeyIdentifier') as key_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Key' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Exportable') as exportable, + json_extract_path_text(detail.Properties, 'KeyAttributes') as key_attributes, + json_extract_path_text(detail.Properties, 'KeyCheckValueAlgorithm') as key_check_value_algorithm, + json_extract_path_text(detail.Properties, 'KeyIdentifier') as key_identifier, + json_extract_path_text(detail.Properties, 'KeyOrigin') as key_origin, + json_extract_path_text(detail.Properties, 'KeyState') as key_state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::PaymentCryptography::Key' + AND detail.data__TypeName = 'AWS::PaymentCryptography::Key' + AND listing.region = 'us-east-1' + keys_list_only: + name: keys_list_only + id: aws.paymentcryptography.keys_list_only + x-cfn-schema-name: Key + x-cfn-type-name: AWS::PaymentCryptography::Key + x-identifiers: + - KeyIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KeyIdentifier') as key_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Key' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KeyIdentifier') as key_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PaymentCryptography::Key' + AND region = 'us-east-1' + key_tags: + name: key_tags + id: aws.paymentcryptography.key_tags + x-cfn-schema-name: Key + x-cfn-type-name: AWS::PaymentCryptography::Key + 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, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Exportable') as exportable, + JSON_EXTRACT(detail.Properties, '$.KeyAttributes') as key_attributes, + JSON_EXTRACT(detail.Properties, '$.KeyCheckValueAlgorithm') as key_check_value_algorithm, + JSON_EXTRACT(detail.Properties, '$.KeyIdentifier') as key_identifier, + JSON_EXTRACT(detail.Properties, '$.KeyOrigin') as key_origin, + JSON_EXTRACT(detail.Properties, '$.KeyState') as key_state + 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::PaymentCryptography::Key' + AND detail.data__TypeName = 'AWS::PaymentCryptography::Key' + 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, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Exportable') as exportable, + json_extract_path_text(detail.Properties, 'KeyAttributes') as key_attributes, + json_extract_path_text(detail.Properties, 'KeyCheckValueAlgorithm') as key_check_value_algorithm, + json_extract_path_text(detail.Properties, 'KeyIdentifier') as key_identifier, + json_extract_path_text(detail.Properties, 'KeyOrigin') as key_origin, + json_extract_path_text(detail.Properties, 'KeyState') as key_state + 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::PaymentCryptography::Key' + AND detail.data__TypeName = 'AWS::PaymentCryptography::Key' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/pcaconnectorad.yaml b/providers/src/aws/v00.00.00000/services/pcaconnectorad.yaml index 71f66385..a9ac5615 100644 --- a/providers/src/aws/v00.00.00000/services/pcaconnectorad.yaml +++ b/providers/src/aws/v00.00.00000/services/pcaconnectorad.yaml @@ -1619,10 +1619,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectorArn') as connector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Connector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CertificateAuthorityArn') as certificate_authority_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.DirectoryId') as directory_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcInformation') as vpc_information + 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::PCAConnectorAD::Connector' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Connector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1641,10 +1650,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectorArn') as connector_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Connector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CertificateAuthorityArn') as certificate_authority_arn, + json_extract_path_text(detail.Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'DirectoryId') as directory_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcInformation') as vpc_information + 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::PCAConnectorAD::Connector' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Connector' + AND listing.region = 'us-east-1' + connectors_list_only: + name: connectors_list_only + id: aws.pcaconnectorad.connectors_list_only + x-cfn-schema-name: Connector + x-cfn-type-name: AWS::PCAConnectorAD::Connector + x-identifiers: + - ConnectorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectorArn') as connector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Connector' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectorArn') as connector_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Connector' + AND region = 'us-east-1' + connector_tags: + name: connector_tags + id: aws.pcaconnectorad.connector_tags + x-cfn-schema-name: Connector + x-cfn-type-name: AWS::PCAConnectorAD::Connector + 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, '$.CertificateAuthorityArn') as certificate_authority_arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.DirectoryId') as directory_id, + JSON_EXTRACT(detail.Properties, '$.VpcInformation') as vpc_information + 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::PCAConnectorAD::Connector' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Connector' + 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, 'CertificateAuthorityArn') as certificate_authority_arn, + json_extract_path_text(detail.Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'DirectoryId') as directory_id, + json_extract_path_text(detail.Properties, 'VpcInformation') as vpc_information + 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::PCAConnectorAD::Connector' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Connector' + AND listing.region = 'us-east-1' directory_registrations: name: directory_registrations id: aws.pcaconnectorad.directory_registrations @@ -1718,10 +1818,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DirectoryRegistrationArn') as directory_registration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DirectoryId') as directory_id, + JSON_EXTRACT(detail.Properties, '$.DirectoryRegistrationArn') as directory_registration_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::PCAConnectorAD::DirectoryRegistration' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1738,10 +1845,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DirectoryRegistrationArn') as directory_registration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DirectoryId') as directory_id, + json_extract_path_text(detail.Properties, 'DirectoryRegistrationArn') as directory_registration_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::PCAConnectorAD::DirectoryRegistration' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' + AND listing.region = 'us-east-1' + directory_registrations_list_only: + name: directory_registrations_list_only + id: aws.pcaconnectorad.directory_registrations_list_only + x-cfn-schema-name: DirectoryRegistration + x-cfn-type-name: AWS::PCAConnectorAD::DirectoryRegistration + x-identifiers: + - DirectoryRegistrationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DirectoryRegistrationArn') as directory_registration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DirectoryRegistrationArn') as directory_registration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' + AND region = 'us-east-1' + directory_registration_tags: + name: directory_registration_tags + id: aws.pcaconnectorad.directory_registration_tags + x-cfn-schema-name: DirectoryRegistration + x-cfn-type-name: AWS::PCAConnectorAD::DirectoryRegistration + 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, '$.DirectoryId') as directory_id, + JSON_EXTRACT(detail.Properties, '$.DirectoryRegistrationArn') as directory_registration_arn + 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::PCAConnectorAD::DirectoryRegistration' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' + 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, 'DirectoryId') as directory_id, + json_extract_path_text(detail.Properties, 'DirectoryRegistrationArn') as directory_registration_arn + 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::PCAConnectorAD::DirectoryRegistration' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::DirectoryRegistration' + AND listing.region = 'us-east-1' service_principal_names: name: service_principal_names id: aws.pcaconnectorad.service_principal_names @@ -1802,11 +1994,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectorArn') as connector_arn, - JSON_EXTRACT(Properties, '$.DirectoryRegistrationArn') as directory_registration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::ServicePrincipalName' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.DirectoryRegistrationArn') as directory_registration_arn + 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::PCAConnectorAD::ServicePrincipalName' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::ServicePrincipalName' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1822,11 +2019,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectorArn') as connector_arn, - json_extract_path_text(Properties, 'DirectoryRegistrationArn') as directory_registration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::ServicePrincipalName' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'DirectoryRegistrationArn') as directory_registration_arn + 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::PCAConnectorAD::ServicePrincipalName' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::ServicePrincipalName' + AND listing.region = 'us-east-1' + service_principal_names_list_only: + name: service_principal_names_list_only + id: aws.pcaconnectorad.service_principal_names_list_only + x-cfn-schema-name: ServicePrincipalName + x-cfn-type-name: AWS::PCAConnectorAD::ServicePrincipalName + x-identifiers: + - ConnectorArn + - DirectoryRegistrationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(Properties, '$.DirectoryRegistrationArn') as directory_registration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::ServicePrincipalName' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(Properties, 'DirectoryRegistrationArn') as directory_registration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::ServicePrincipalName' + AND region = 'us-east-1' templates: name: templates id: aws.pcaconnectorad.templates @@ -1903,10 +2139,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TemplateArn') as template_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Template' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ReenrollAllCertificateHolders') as reenroll_all_certificate_holders, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TemplateArn') as template_arn + 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::PCAConnectorAD::Template' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Template' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1926,10 +2172,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TemplateArn') as template_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Template' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ReenrollAllCertificateHolders') as reenroll_all_certificate_holders, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TemplateArn') as template_arn + 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::PCAConnectorAD::Template' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Template' + AND listing.region = 'us-east-1' + templates_list_only: + name: templates_list_only + id: aws.pcaconnectorad.templates_list_only + x-cfn-schema-name: Template + x-cfn-type-name: AWS::PCAConnectorAD::Template + x-identifiers: + - TemplateArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TemplateArn') as template_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Template' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TemplateArn') as template_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::Template' + AND region = 'us-east-1' + template_tags: + name: template_tags + id: aws.pcaconnectorad.template_tags + x-cfn-schema-name: Template + x-cfn-type-name: AWS::PCAConnectorAD::Template + 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, '$.ConnectorArn') as connector_arn, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ReenrollAllCertificateHolders') as reenroll_all_certificate_holders, + JSON_EXTRACT(detail.Properties, '$.TemplateArn') as template_arn + 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::PCAConnectorAD::Template' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Template' + 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, 'ConnectorArn') as connector_arn, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ReenrollAllCertificateHolders') as reenroll_all_certificate_holders, + json_extract_path_text(detail.Properties, 'TemplateArn') as template_arn + 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::PCAConnectorAD::Template' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::Template' + AND listing.region = 'us-east-1' template_group_access_control_entries: name: template_group_access_control_entries id: aws.pcaconnectorad.template_group_access_control_entries @@ -2005,11 +2345,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GroupSecurityIdentifier') as group_security_identifier, - JSON_EXTRACT(Properties, '$.TemplateArn') as template_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::TemplateGroupAccessControlEntry' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessRights') as access_rights, + JSON_EXTRACT(detail.Properties, '$.GroupDisplayName') as group_display_name, + JSON_EXTRACT(detail.Properties, '$.GroupSecurityIdentifier') as group_security_identifier, + JSON_EXTRACT(detail.Properties, '$.TemplateArn') as template_arn + 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::PCAConnectorAD::TemplateGroupAccessControlEntry' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::TemplateGroupAccessControlEntry' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2027,11 +2374,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GroupSecurityIdentifier') as group_security_identifier, - json_extract_path_text(Properties, 'TemplateArn') as template_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::TemplateGroupAccessControlEntry' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessRights') as access_rights, + json_extract_path_text(detail.Properties, 'GroupDisplayName') as group_display_name, + json_extract_path_text(detail.Properties, 'GroupSecurityIdentifier') as group_security_identifier, + json_extract_path_text(detail.Properties, 'TemplateArn') as template_arn + 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::PCAConnectorAD::TemplateGroupAccessControlEntry' + AND detail.data__TypeName = 'AWS::PCAConnectorAD::TemplateGroupAccessControlEntry' + AND listing.region = 'us-east-1' + template_group_access_control_entries_list_only: + name: template_group_access_control_entries_list_only + id: aws.pcaconnectorad.template_group_access_control_entries_list_only + x-cfn-schema-name: TemplateGroupAccessControlEntry + x-cfn-type-name: AWS::PCAConnectorAD::TemplateGroupAccessControlEntry + x-identifiers: + - GroupSecurityIdentifier + - TemplateArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GroupSecurityIdentifier') as group_security_identifier, + JSON_EXTRACT(Properties, '$.TemplateArn') as template_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::TemplateGroupAccessControlEntry' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GroupSecurityIdentifier') as group_security_identifier, + json_extract_path_text(Properties, 'TemplateArn') as template_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::PCAConnectorAD::TemplateGroupAccessControlEntry' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/personalize.yaml b/providers/src/aws/v00.00.00000/services/personalize.yaml index 3a494ffa..c8655cfe 100644 --- a/providers/src/aws/v00.00.00000/services/personalize.yaml +++ b/providers/src/aws/v00.00.00000/services/personalize.yaml @@ -1097,10 +1097,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatasetArn') as dataset_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Dataset' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DatasetArn') as dataset_arn, + JSON_EXTRACT(detail.Properties, '$.DatasetType') as dataset_type, + JSON_EXTRACT(detail.Properties, '$.DatasetGroupArn') as dataset_group_arn, + JSON_EXTRACT(detail.Properties, '$.SchemaArn') as schema_arn, + JSON_EXTRACT(detail.Properties, '$.DatasetImportJob') as dataset_import_job + 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::Personalize::Dataset' + AND detail.data__TypeName = 'AWS::Personalize::Dataset' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1120,10 +1130,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatasetArn') as dataset_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Dataset' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DatasetArn') as dataset_arn, + json_extract_path_text(detail.Properties, 'DatasetType') as dataset_type, + json_extract_path_text(detail.Properties, 'DatasetGroupArn') as dataset_group_arn, + json_extract_path_text(detail.Properties, 'SchemaArn') as schema_arn, + json_extract_path_text(detail.Properties, 'DatasetImportJob') as dataset_import_job + 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::Personalize::Dataset' + AND detail.data__TypeName = 'AWS::Personalize::Dataset' + AND listing.region = 'us-east-1' + datasets_list_only: + name: datasets_list_only + id: aws.personalize.datasets_list_only + x-cfn-schema-name: Dataset + x-cfn-type-name: AWS::Personalize::Dataset + x-identifiers: + - DatasetArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatasetArn') as dataset_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Dataset' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatasetArn') as dataset_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Dataset' + AND region = 'us-east-1' dataset_groups: name: dataset_groups id: aws.personalize.dataset_groups @@ -1186,10 +1237,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatasetGroupArn') as dataset_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::DatasetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DatasetGroupArn') as dataset_group_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain + 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::Personalize::DatasetGroup' + AND detail.data__TypeName = 'AWS::Personalize::DatasetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1208,10 +1268,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatasetGroupArn') as dataset_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::DatasetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DatasetGroupArn') as dataset_group_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Domain') as domain + 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::Personalize::DatasetGroup' + AND detail.data__TypeName = 'AWS::Personalize::DatasetGroup' + AND listing.region = 'us-east-1' + dataset_groups_list_only: + name: dataset_groups_list_only + id: aws.personalize.dataset_groups_list_only + x-cfn-schema-name: DatasetGroup + x-cfn-type-name: AWS::Personalize::DatasetGroup + x-identifiers: + - DatasetGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatasetGroupArn') as dataset_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::DatasetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatasetGroupArn') as dataset_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::DatasetGroup' + AND region = 'us-east-1' schemata: name: schemata id: aws.personalize.schemata @@ -1273,10 +1373,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SchemaArn') as schema_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Schema' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SchemaArn') as schema_arn, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain + 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::Personalize::Schema' + AND detail.data__TypeName = 'AWS::Personalize::Schema' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1294,10 +1402,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SchemaArn') as schema_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Schema' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SchemaArn') as schema_arn, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'Domain') as domain + 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::Personalize::Schema' + AND detail.data__TypeName = 'AWS::Personalize::Schema' + AND listing.region = 'us-east-1' + schemata_list_only: + name: schemata_list_only + id: aws.personalize.schemata_list_only + x-cfn-schema-name: Schema + x-cfn-type-name: AWS::Personalize::Schema + x-identifiers: + - SchemaArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SchemaArn') as schema_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Schema' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SchemaArn') as schema_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Schema' + AND region = 'us-east-1' solutions: name: solutions id: aws.personalize.solutions @@ -1363,10 +1510,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SolutionArn') as solution_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Solution' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SolutionArn') as solution_arn, + JSON_EXTRACT(detail.Properties, '$.EventType') as event_type, + JSON_EXTRACT(detail.Properties, '$.DatasetGroupArn') as dataset_group_arn, + JSON_EXTRACT(detail.Properties, '$.PerformAutoML') as perform_auto_ml, + JSON_EXTRACT(detail.Properties, '$.PerformHPO') as perform_hpo, + JSON_EXTRACT(detail.Properties, '$.RecipeArn') as recipe_arn, + JSON_EXTRACT(detail.Properties, '$.SolutionConfig') as solution_config + 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::Personalize::Solution' + AND detail.data__TypeName = 'AWS::Personalize::Solution' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1388,10 +1547,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SolutionArn') as solution_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Solution' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SolutionArn') as solution_arn, + json_extract_path_text(detail.Properties, 'EventType') as event_type, + json_extract_path_text(detail.Properties, 'DatasetGroupArn') as dataset_group_arn, + json_extract_path_text(detail.Properties, 'PerformAutoML') as perform_auto_ml, + json_extract_path_text(detail.Properties, 'PerformHPO') as perform_hpo, + json_extract_path_text(detail.Properties, 'RecipeArn') as recipe_arn, + json_extract_path_text(detail.Properties, 'SolutionConfig') as solution_config + 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::Personalize::Solution' + AND detail.data__TypeName = 'AWS::Personalize::Solution' + AND listing.region = 'us-east-1' + solutions_list_only: + name: solutions_list_only + id: aws.personalize.solutions_list_only + x-cfn-schema-name: Solution + x-cfn-type-name: AWS::Personalize::Solution + x-identifiers: + - SolutionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SolutionArn') as solution_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Solution' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SolutionArn') as solution_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Personalize::Solution' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/pinpoint.yaml b/providers/src/aws/v00.00.00000/services/pinpoint.yaml index 1f3894ac..4df210c7 100644 --- a/providers/src/aws/v00.00.00000/services/pinpoint.yaml +++ b/providers/src/aws/v00.00.00000/services/pinpoint.yaml @@ -653,10 +653,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TemplateName') as template_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pinpoint::InAppTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.CustomConfig') as custom_config, + JSON_EXTRACT(detail.Properties, '$.Layout') as layout, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TemplateDescription') as template_description, + JSON_EXTRACT(detail.Properties, '$.TemplateName') as template_name + 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::Pinpoint::InAppTemplate' + AND detail.data__TypeName = 'AWS::Pinpoint::InAppTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -677,10 +688,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TemplateName') as template_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pinpoint::InAppTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'CustomConfig') as custom_config, + json_extract_path_text(detail.Properties, 'Layout') as layout, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TemplateDescription') as template_description, + json_extract_path_text(detail.Properties, 'TemplateName') as template_name + 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::Pinpoint::InAppTemplate' + AND detail.data__TypeName = 'AWS::Pinpoint::InAppTemplate' + AND listing.region = 'us-east-1' + in_app_templates_list_only: + name: in_app_templates_list_only + id: aws.pinpoint.in_app_templates_list_only + x-cfn-schema-name: InAppTemplate + x-cfn-type-name: AWS::Pinpoint::InAppTemplate + x-identifiers: + - TemplateName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TemplateName') as template_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pinpoint::InAppTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TemplateName') as template_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pinpoint::InAppTemplate' + AND region = 'us-east-1' + in_app_template_tags: + name: in_app_template_tags + id: aws.pinpoint.in_app_template_tags + x-cfn-schema-name: InAppTemplate + x-cfn-type-name: AWS::Pinpoint::InAppTemplate + 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, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.CustomConfig') as custom_config, + JSON_EXTRACT(detail.Properties, '$.Layout') as layout, + JSON_EXTRACT(detail.Properties, '$.TemplateDescription') as template_description, + JSON_EXTRACT(detail.Properties, '$.TemplateName') as template_name + 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::Pinpoint::InAppTemplate' + AND detail.data__TypeName = 'AWS::Pinpoint::InAppTemplate' + 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, 'Content') as content, + json_extract_path_text(detail.Properties, 'CustomConfig') as custom_config, + json_extract_path_text(detail.Properties, 'Layout') as layout, + json_extract_path_text(detail.Properties, 'TemplateDescription') as template_description, + json_extract_path_text(detail.Properties, 'TemplateName') as template_name + 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::Pinpoint::InAppTemplate' + AND detail.data__TypeName = 'AWS::Pinpoint::InAppTemplate' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/pipes.yaml b/providers/src/aws/v00.00.00000/services/pipes.yaml index 0900be83..55a32b6f 100644 --- a/providers/src/aws/v00.00.00000/services/pipes.yaml +++ b/providers/src/aws/v00.00.00000/services/pipes.yaml @@ -1960,10 +1960,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pipes::Pipe' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.CurrentState') as current_state, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DesiredState') as desired_state, + JSON_EXTRACT(detail.Properties, '$.Enrichment') as enrichment, + JSON_EXTRACT(detail.Properties, '$.EnrichmentParameters') as enrichment_parameters, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.LogConfiguration') as log_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.SourceParameters') as source_parameters, + JSON_EXTRACT(detail.Properties, '$.StateReason') as state_reason, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Target') as target, + JSON_EXTRACT(detail.Properties, '$.TargetParameters') as target_parameters + 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::Pipes::Pipe' + AND detail.data__TypeName = 'AWS::Pipes::Pipe' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1994,10 +2015,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pipes::Pipe' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'CurrentState') as current_state, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DesiredState') as desired_state, + json_extract_path_text(detail.Properties, 'Enrichment') as enrichment, + json_extract_path_text(detail.Properties, 'EnrichmentParameters') as enrichment_parameters, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'LogConfiguration') as log_configuration, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'SourceParameters') as source_parameters, + json_extract_path_text(detail.Properties, 'StateReason') as state_reason, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Target') as target, + json_extract_path_text(detail.Properties, 'TargetParameters') as target_parameters + 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::Pipes::Pipe' + AND detail.data__TypeName = 'AWS::Pipes::Pipe' + AND listing.region = 'us-east-1' + pipes_list_only: + name: pipes_list_only + id: aws.pipes.pipes_list_only + x-cfn-schema-name: Pipe + x-cfn-type-name: AWS::Pipes::Pipe + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pipes::Pipe' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Pipes::Pipe' + AND region = 'us-east-1' + pipe_tags: + name: pipe_tags + id: aws.pipes.pipe_tags + x-cfn-schema-name: Pipe + x-cfn-type-name: AWS::Pipes::Pipe + 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, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.CurrentState') as current_state, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DesiredState') as desired_state, + JSON_EXTRACT(detail.Properties, '$.Enrichment') as enrichment, + JSON_EXTRACT(detail.Properties, '$.EnrichmentParameters') as enrichment_parameters, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.LogConfiguration') as log_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.SourceParameters') as source_parameters, + JSON_EXTRACT(detail.Properties, '$.StateReason') as state_reason, + JSON_EXTRACT(detail.Properties, '$.Target') as target, + JSON_EXTRACT(detail.Properties, '$.TargetParameters') as target_parameters + 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::Pipes::Pipe' + AND detail.data__TypeName = 'AWS::Pipes::Pipe' + 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, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'CurrentState') as current_state, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DesiredState') as desired_state, + json_extract_path_text(detail.Properties, 'Enrichment') as enrichment, + json_extract_path_text(detail.Properties, 'EnrichmentParameters') as enrichment_parameters, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'LogConfiguration') as log_configuration, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'SourceParameters') as source_parameters, + json_extract_path_text(detail.Properties, 'StateReason') as state_reason, + json_extract_path_text(detail.Properties, 'Target') as target, + json_extract_path_text(detail.Properties, 'TargetParameters') as target_parameters + 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::Pipes::Pipe' + AND detail.data__TypeName = 'AWS::Pipes::Pipe' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/proton.yaml b/providers/src/aws/v00.00.00000/services/proton.yaml index bc346c06..e643742d 100644 --- a/providers/src/aws/v00.00.00000/services/proton.yaml +++ b/providers/src/aws/v00.00.00000/services/proton.yaml @@ -951,10 +951,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Proton::EnvironmentAccountConnection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CodebuildRoleArn') as codebuild_role_arn, + JSON_EXTRACT(detail.Properties, '$.ComponentRoleArn') as component_role_arn, + JSON_EXTRACT(detail.Properties, '$.EnvironmentAccountId') as environment_account_id, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ManagementAccountId') as management_account_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Proton::EnvironmentAccountConnection' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentAccountConnection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -978,10 +992,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Proton::EnvironmentAccountConnection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CodebuildRoleArn') as codebuild_role_arn, + json_extract_path_text(detail.Properties, 'ComponentRoleArn') as component_role_arn, + json_extract_path_text(detail.Properties, 'EnvironmentAccountId') as environment_account_id, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ManagementAccountId') as management_account_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Proton::EnvironmentAccountConnection' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentAccountConnection' + AND listing.region = 'us-east-1' + environment_account_connections_list_only: + name: environment_account_connections_list_only + id: aws.proton.environment_account_connections_list_only + x-cfn-schema-name: EnvironmentAccountConnection + x-cfn-type-name: AWS::Proton::EnvironmentAccountConnection + 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::Proton::EnvironmentAccountConnection' + 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::Proton::EnvironmentAccountConnection' + AND region = 'us-east-1' + environment_account_connection_tags: + name: environment_account_connection_tags + id: aws.proton.environment_account_connection_tags + x-cfn-schema-name: EnvironmentAccountConnection + x-cfn-type-name: AWS::Proton::EnvironmentAccountConnection + 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, '$.CodebuildRoleArn') as codebuild_role_arn, + JSON_EXTRACT(detail.Properties, '$.ComponentRoleArn') as component_role_arn, + JSON_EXTRACT(detail.Properties, '$.EnvironmentAccountId') as environment_account_id, + JSON_EXTRACT(detail.Properties, '$.EnvironmentName') as environment_name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ManagementAccountId') as management_account_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::Proton::EnvironmentAccountConnection' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentAccountConnection' + 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, 'CodebuildRoleArn') as codebuild_role_arn, + json_extract_path_text(detail.Properties, 'ComponentRoleArn') as component_role_arn, + json_extract_path_text(detail.Properties, 'EnvironmentAccountId') as environment_account_id, + json_extract_path_text(detail.Properties, 'EnvironmentName') as environment_name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ManagementAccountId') as management_account_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status + 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::Proton::EnvironmentAccountConnection' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentAccountConnection' + AND listing.region = 'us-east-1' environment_templates: name: environment_templates id: aws.proton.environment_templates @@ -1059,10 +1179,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Proton::EnvironmentTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Provisioning') as provisioning, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Proton::EnvironmentTemplate' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1083,10 +1214,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Proton::EnvironmentTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Provisioning') as provisioning, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Proton::EnvironmentTemplate' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentTemplate' + AND listing.region = 'us-east-1' + environment_templates_list_only: + name: environment_templates_list_only + id: aws.proton.environment_templates_list_only + x-cfn-schema-name: EnvironmentTemplate + x-cfn-type-name: AWS::Proton::EnvironmentTemplate + 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::Proton::EnvironmentTemplate' + 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::Proton::EnvironmentTemplate' + AND region = 'us-east-1' + environment_template_tags: + name: environment_template_tags + id: aws.proton.environment_template_tags + x-cfn-schema-name: EnvironmentTemplate + x-cfn-type-name: AWS::Proton::EnvironmentTemplate + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Provisioning') as provisioning + 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::Proton::EnvironmentTemplate' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentTemplate' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Provisioning') as provisioning + 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::Proton::EnvironmentTemplate' + AND detail.data__TypeName = 'AWS::Proton::EnvironmentTemplate' + AND listing.region = 'us-east-1' service_templates: name: service_templates id: aws.proton.service_templates @@ -1164,10 +1392,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Proton::ServiceTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PipelineProvisioning') as pipeline_provisioning, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Proton::ServiceTemplate' + AND detail.data__TypeName = 'AWS::Proton::ServiceTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1188,10 +1427,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Proton::ServiceTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PipelineProvisioning') as pipeline_provisioning, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Proton::ServiceTemplate' + AND detail.data__TypeName = 'AWS::Proton::ServiceTemplate' + AND listing.region = 'us-east-1' + service_templates_list_only: + name: service_templates_list_only + id: aws.proton.service_templates_list_only + x-cfn-schema-name: ServiceTemplate + x-cfn-type-name: AWS::Proton::ServiceTemplate + 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::Proton::ServiceTemplate' + 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::Proton::ServiceTemplate' + AND region = 'us-east-1' + service_template_tags: + name: service_template_tags + id: aws.proton.service_template_tags + x-cfn-schema-name: ServiceTemplate + x-cfn-type-name: AWS::Proton::ServiceTemplate + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionKey') as encryption_key, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PipelineProvisioning') as pipeline_provisioning + 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::Proton::ServiceTemplate' + AND detail.data__TypeName = 'AWS::Proton::ServiceTemplate' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'EncryptionKey') as encryption_key, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PipelineProvisioning') as pipeline_provisioning + 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::Proton::ServiceTemplate' + AND detail.data__TypeName = 'AWS::Proton::ServiceTemplate' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/qbusiness.yaml b/providers/src/aws/v00.00.00000/services/qbusiness.yaml index cc67d421..9fba9c6e 100644 --- a/providers/src/aws/v00.00.00000/services/qbusiness.yaml +++ b/providers/src/aws/v00.00.00000/services/qbusiness.yaml @@ -2015,10 +2015,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentsConfiguration') as attachments_configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.IdentityCenterApplicationArn') as identity_center_application_arn, + JSON_EXTRACT(detail.Properties, '$.IdentityCenterInstanceArn') as identity_center_instance_arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Application' + AND detail.data__TypeName = 'AWS::QBusiness::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2045,10 +2062,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'AttachmentsConfiguration') as attachments_configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'IdentityCenterApplicationArn') as identity_center_application_arn, + json_extract_path_text(detail.Properties, 'IdentityCenterInstanceArn') as identity_center_instance_arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Application' + AND detail.data__TypeName = 'AWS::QBusiness::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.qbusiness.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::QBusiness::Application + x-identifiers: + - ApplicationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.qbusiness.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::QBusiness::Application + 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, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.AttachmentsConfiguration') as attachments_configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.IdentityCenterApplicationArn') as identity_center_application_arn, + JSON_EXTRACT(detail.Properties, '$.IdentityCenterInstanceArn') as identity_center_instance_arn, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Application' + AND detail.data__TypeName = 'AWS::QBusiness::Application' + 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, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'AttachmentsConfiguration') as attachments_configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'IdentityCenterApplicationArn') as identity_center_application_arn, + json_extract_path_text(detail.Properties, 'IdentityCenterInstanceArn') as identity_center_instance_arn, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Application' + AND detail.data__TypeName = 'AWS::QBusiness::Application' + AND listing.region = 'us-east-1' data_sources: name: data_sources id: aws.qbusiness.data_sources @@ -2137,12 +2269,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.DataSourceId') as data_source_id, - JSON_EXTRACT(Properties, '$.IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::DataSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DataSourceArn') as data_source_arn, + JSON_EXTRACT(detail.Properties, '$.DataSourceId') as data_source_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.DocumentEnrichmentConfiguration') as document_enrichment_configuration, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SyncSchedule') as sync_schedule, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.VpcConfiguration') as vpc_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::QBusiness::DataSource' + AND detail.data__TypeName = 'AWS::QBusiness::DataSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2172,12 +2322,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'DataSourceId') as data_source_id, - json_extract_path_text(Properties, 'IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::DataSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DataSourceArn') as data_source_arn, + json_extract_path_text(detail.Properties, 'DataSourceId') as data_source_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'DocumentEnrichmentConfiguration') as document_enrichment_configuration, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SyncSchedule') as sync_schedule, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'VpcConfiguration') as vpc_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::QBusiness::DataSource' + AND detail.data__TypeName = 'AWS::QBusiness::DataSource' + AND listing.region = 'us-east-1' + data_sources_list_only: + name: data_sources_list_only + id: aws.qbusiness.data_sources_list_only + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::QBusiness::DataSource + x-identifiers: + - ApplicationId + - DataSourceId + - IndexId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.DataSourceId') as data_source_id, + JSON_EXTRACT(Properties, '$.IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::DataSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'DataSourceId') as data_source_id, + json_extract_path_text(Properties, 'IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::DataSource' + AND region = 'us-east-1' + data_source_tags: + name: data_source_tags + id: aws.qbusiness.data_source_tags + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::QBusiness::DataSource + 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, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DataSourceArn') as data_source_arn, + JSON_EXTRACT(detail.Properties, '$.DataSourceId') as data_source_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.DocumentEnrichmentConfiguration') as document_enrichment_configuration, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SyncSchedule') as sync_schedule, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.VpcConfiguration') as vpc_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::QBusiness::DataSource' + AND detail.data__TypeName = 'AWS::QBusiness::DataSource' + 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, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DataSourceArn') as data_source_arn, + json_extract_path_text(detail.Properties, 'DataSourceId') as data_source_id, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'DocumentEnrichmentConfiguration') as document_enrichment_configuration, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SyncSchedule') as sync_schedule, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'VpcConfiguration') as vpc_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::QBusiness::DataSource' + AND detail.data__TypeName = 'AWS::QBusiness::DataSource' + AND listing.region = 'us-east-1' indices: name: indices id: aws.qbusiness.indices @@ -2262,11 +2540,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Index' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.CapacityConfiguration') as capacity_configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.DocumentAttributeConfigurations') as document_attribute_configurations, + JSON_EXTRACT(detail.Properties, '$.IndexArn') as index_arn, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.IndexStatistics') as index_statistics, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Index' + AND detail.data__TypeName = 'AWS::QBusiness::Index' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2293,11 +2587,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'IndexId') as index_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Index' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'CapacityConfiguration') as capacity_configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'DocumentAttributeConfigurations') as document_attribute_configurations, + json_extract_path_text(detail.Properties, 'IndexArn') as index_arn, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'IndexStatistics') as index_statistics, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Index' + AND detail.data__TypeName = 'AWS::QBusiness::Index' + AND listing.region = 'us-east-1' + indices_list_only: + name: indices_list_only + id: aws.qbusiness.indices_list_only + x-cfn-schema-name: Index + x-cfn-type-name: AWS::QBusiness::Index + x-identifiers: + - ApplicationId + - IndexId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Index' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'IndexId') as index_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Index' + AND region = 'us-east-1' + index_tags: + name: index_tags + id: aws.qbusiness.index_tags + x-cfn-schema-name: Index + x-cfn-type-name: AWS::QBusiness::Index + 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, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.CapacityConfiguration') as capacity_configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.DocumentAttributeConfigurations') as document_attribute_configurations, + JSON_EXTRACT(detail.Properties, '$.IndexArn') as index_arn, + JSON_EXTRACT(detail.Properties, '$.IndexId') as index_id, + JSON_EXTRACT(detail.Properties, '$.IndexStatistics') as index_statistics, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Index' + AND detail.data__TypeName = 'AWS::QBusiness::Index' + 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, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'CapacityConfiguration') as capacity_configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'DocumentAttributeConfigurations') as document_attribute_configurations, + json_extract_path_text(detail.Properties, 'IndexArn') as index_arn, + json_extract_path_text(detail.Properties, 'IndexId') as index_id, + json_extract_path_text(detail.Properties, 'IndexStatistics') as index_statistics, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Index' + AND detail.data__TypeName = 'AWS::QBusiness::Index' + AND listing.region = 'us-east-1' plugins: name: plugins id: aws.qbusiness.plugins @@ -2382,11 +2793,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.PluginId') as plugin_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Plugin' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.AuthConfiguration') as auth_configuration, + JSON_EXTRACT(detail.Properties, '$.BuildStatus') as build_status, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CustomPluginConfiguration') as custom_plugin_configuration, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.PluginArn') as plugin_arn, + JSON_EXTRACT(detail.Properties, '$.PluginId') as plugin_id, + JSON_EXTRACT(detail.Properties, '$.ServerUrl') as server_url, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Plugin' + AND detail.data__TypeName = 'AWS::QBusiness::Plugin' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2413,11 +2840,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'PluginId') as plugin_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Plugin' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'AuthConfiguration') as auth_configuration, + json_extract_path_text(detail.Properties, 'BuildStatus') as build_status, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CustomPluginConfiguration') as custom_plugin_configuration, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'PluginArn') as plugin_arn, + json_extract_path_text(detail.Properties, 'PluginId') as plugin_id, + json_extract_path_text(detail.Properties, 'ServerUrl') as server_url, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Plugin' + AND detail.data__TypeName = 'AWS::QBusiness::Plugin' + AND listing.region = 'us-east-1' + plugins_list_only: + name: plugins_list_only + id: aws.qbusiness.plugins_list_only + x-cfn-schema-name: Plugin + x-cfn-type-name: AWS::QBusiness::Plugin + x-identifiers: + - ApplicationId + - PluginId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.PluginId') as plugin_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Plugin' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'PluginId') as plugin_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Plugin' + AND region = 'us-east-1' + plugin_tags: + name: plugin_tags + id: aws.qbusiness.plugin_tags + x-cfn-schema-name: Plugin + x-cfn-type-name: AWS::QBusiness::Plugin + 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, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.AuthConfiguration') as auth_configuration, + JSON_EXTRACT(detail.Properties, '$.BuildStatus') as build_status, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.CustomPluginConfiguration') as custom_plugin_configuration, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.PluginArn') as plugin_arn, + JSON_EXTRACT(detail.Properties, '$.PluginId') as plugin_id, + JSON_EXTRACT(detail.Properties, '$.ServerUrl') as server_url, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Plugin' + AND detail.data__TypeName = 'AWS::QBusiness::Plugin' + 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, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'AuthConfiguration') as auth_configuration, + json_extract_path_text(detail.Properties, 'BuildStatus') as build_status, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'CustomPluginConfiguration') as custom_plugin_configuration, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'PluginArn') as plugin_arn, + json_extract_path_text(detail.Properties, 'PluginId') as plugin_id, + json_extract_path_text(detail.Properties, 'ServerUrl') as server_url, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Plugin' + AND detail.data__TypeName = 'AWS::QBusiness::Plugin' + AND listing.region = 'us-east-1' retrievers: name: retrievers id: aws.qbusiness.retrievers @@ -2500,11 +3044,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.RetrieverId') as retriever_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Retriever' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.RetrieverArn') as retriever_arn, + JSON_EXTRACT(detail.Properties, '$.RetrieverId') as retriever_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Retriever' + AND detail.data__TypeName = 'AWS::QBusiness::Retriever' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2529,11 +3087,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'RetrieverId') as retriever_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Retriever' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'RetrieverArn') as retriever_arn, + json_extract_path_text(detail.Properties, 'RetrieverId') as retriever_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Retriever' + AND detail.data__TypeName = 'AWS::QBusiness::Retriever' + AND listing.region = 'us-east-1' + retrievers_list_only: + name: retrievers_list_only + id: aws.qbusiness.retrievers_list_only + x-cfn-schema-name: Retriever + x-cfn-type-name: AWS::QBusiness::Retriever + x-identifiers: + - ApplicationId + - RetrieverId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.RetrieverId') as retriever_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Retriever' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'RetrieverId') as retriever_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::Retriever' + AND region = 'us-east-1' + retriever_tags: + name: retriever_tags + id: aws.qbusiness.retriever_tags + x-cfn-schema-name: Retriever + x-cfn-type-name: AWS::QBusiness::Retriever + 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, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.RetrieverArn') as retriever_arn, + JSON_EXTRACT(detail.Properties, '$.RetrieverId') as retriever_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at + 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::QBusiness::Retriever' + AND detail.data__TypeName = 'AWS::QBusiness::Retriever' + 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, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'RetrieverArn') as retriever_arn, + json_extract_path_text(detail.Properties, 'RetrieverId') as retriever_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at + 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::QBusiness::Retriever' + AND detail.data__TypeName = 'AWS::QBusiness::Retriever' + AND listing.region = 'us-east-1' web_experiences: name: web_experiences id: aws.qbusiness.web_experiences @@ -2618,11 +3287,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, - JSON_EXTRACT(Properties, '$.WebExperienceId') as web_experience_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::WebExperience' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DefaultEndpoint') as default_endpoint, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SamplePromptsControlMode') as sample_prompts_control_mode, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Subtitle') as subtitle, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Title') as title, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.WebExperienceArn') as web_experience_arn, + JSON_EXTRACT(detail.Properties, '$.WebExperienceId') as web_experience_id, + JSON_EXTRACT(detail.Properties, '$.WelcomeMessage') as welcome_message + 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::QBusiness::WebExperience' + AND detail.data__TypeName = 'AWS::QBusiness::WebExperience' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2649,11 +3334,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationId') as application_id, - json_extract_path_text(Properties, 'WebExperienceId') as web_experience_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::WebExperience' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DefaultEndpoint') as default_endpoint, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SamplePromptsControlMode') as sample_prompts_control_mode, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Subtitle') as subtitle, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Title') as title, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'WebExperienceArn') as web_experience_arn, + json_extract_path_text(detail.Properties, 'WebExperienceId') as web_experience_id, + json_extract_path_text(detail.Properties, 'WelcomeMessage') as welcome_message + 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::QBusiness::WebExperience' + AND detail.data__TypeName = 'AWS::QBusiness::WebExperience' + AND listing.region = 'us-east-1' + web_experiences_list_only: + name: web_experiences_list_only + id: aws.qbusiness.web_experiences_list_only + x-cfn-schema-name: WebExperience + x-cfn-type-name: AWS::QBusiness::WebExperience + x-identifiers: + - ApplicationId + - WebExperienceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(Properties, '$.WebExperienceId') as web_experience_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::WebExperience' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationId') as application_id, + json_extract_path_text(Properties, 'WebExperienceId') as web_experience_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QBusiness::WebExperience' + AND region = 'us-east-1' + web_experience_tags: + name: web_experience_tags + id: aws.qbusiness.web_experience_tags + x-cfn-schema-name: WebExperience + x-cfn-type-name: AWS::QBusiness::WebExperience + 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, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DefaultEndpoint') as default_endpoint, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SamplePromptsControlMode') as sample_prompts_control_mode, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Subtitle') as subtitle, + JSON_EXTRACT(detail.Properties, '$.Title') as title, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.WebExperienceArn') as web_experience_arn, + JSON_EXTRACT(detail.Properties, '$.WebExperienceId') as web_experience_id, + JSON_EXTRACT(detail.Properties, '$.WelcomeMessage') as welcome_message + 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::QBusiness::WebExperience' + AND detail.data__TypeName = 'AWS::QBusiness::WebExperience' + 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, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DefaultEndpoint') as default_endpoint, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SamplePromptsControlMode') as sample_prompts_control_mode, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Subtitle') as subtitle, + json_extract_path_text(detail.Properties, 'Title') as title, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'WebExperienceArn') as web_experience_arn, + json_extract_path_text(detail.Properties, 'WebExperienceId') as web_experience_id, + json_extract_path_text(detail.Properties, 'WelcomeMessage') as welcome_message + 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::QBusiness::WebExperience' + AND detail.data__TypeName = 'AWS::QBusiness::WebExperience' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/qldb.yaml b/providers/src/aws/v00.00.00000/services/qldb.yaml index b13a3d6f..ae945f4d 100644 --- a/providers/src/aws/v00.00.00000/services/qldb.yaml +++ b/providers/src/aws/v00.00.00000/services/qldb.yaml @@ -626,11 +626,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.LedgerName') as ledger_name, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QLDB::Stream' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.LedgerName') as ledger_name, + JSON_EXTRACT(detail.Properties, '$.StreamName') as stream_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.InclusiveStartTime') as inclusive_start_time, + JSON_EXTRACT(detail.Properties, '$.ExclusiveEndTime') as exclusive_end_time, + JSON_EXTRACT(detail.Properties, '$.KinesisConfiguration') as kinesis_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::QLDB::Stream' + AND detail.data__TypeName = 'AWS::QLDB::Stream' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -653,11 +665,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'LedgerName') as ledger_name, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QLDB::Stream' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'LedgerName') as ledger_name, + json_extract_path_text(detail.Properties, 'StreamName') as stream_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'InclusiveStartTime') as inclusive_start_time, + json_extract_path_text(detail.Properties, 'ExclusiveEndTime') as exclusive_end_time, + json_extract_path_text(detail.Properties, 'KinesisConfiguration') as kinesis_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::QLDB::Stream' + AND detail.data__TypeName = 'AWS::QLDB::Stream' + AND listing.region = 'us-east-1' + streams_list_only: + name: streams_list_only + id: aws.qldb.streams_list_only + x-cfn-schema-name: Stream + x-cfn-type-name: AWS::QLDB::Stream + x-identifiers: + - LedgerName + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.LedgerName') as ledger_name, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QLDB::Stream' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'LedgerName') as ledger_name, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QLDB::Stream' + AND region = 'us-east-1' + stream_tags: + name: stream_tags + id: aws.qldb.stream_tags + x-cfn-schema-name: Stream + x-cfn-type-name: AWS::QLDB::Stream + 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, '$.LedgerName') as ledger_name, + JSON_EXTRACT(detail.Properties, '$.StreamName') as stream_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.InclusiveStartTime') as inclusive_start_time, + JSON_EXTRACT(detail.Properties, '$.ExclusiveEndTime') as exclusive_end_time, + JSON_EXTRACT(detail.Properties, '$.KinesisConfiguration') as kinesis_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::QLDB::Stream' + AND detail.data__TypeName = 'AWS::QLDB::Stream' + 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, 'LedgerName') as ledger_name, + json_extract_path_text(detail.Properties, 'StreamName') as stream_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'InclusiveStartTime') as inclusive_start_time, + json_extract_path_text(detail.Properties, 'ExclusiveEndTime') as exclusive_end_time, + json_extract_path_text(detail.Properties, 'KinesisConfiguration') as kinesis_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::QLDB::Stream' + AND detail.data__TypeName = 'AWS::QLDB::Stream' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/quicksight.yaml b/providers/src/aws/v00.00.00000/services/quicksight.yaml index f761daf3..da50225e 100644 --- a/providers/src/aws/v00.00.00000/services/quicksight.yaml +++ b/providers/src/aws/v00.00.00000/services/quicksight.yaml @@ -13449,11 +13449,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AnalysisId') as analysis_id, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Analysis' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.DataSetArns') as data_set_arns, + JSON_EXTRACT(detail.Properties, '$.SourceEntity') as source_entity, + JSON_EXTRACT(detail.Properties, '$.ThemeArn') as theme_arn, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.ValidationStrategy') as validation_strategy, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Errors') as errors, + JSON_EXTRACT(detail.Properties, '$.AnalysisId') as analysis_id, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Sheets') as sheets + 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::QuickSight::Analysis' + AND detail.data__TypeName = 'AWS::QuickSight::Analysis' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -13484,11 +13504,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AnalysisId') as analysis_id, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Analysis' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'DataSetArns') as data_set_arns, + json_extract_path_text(detail.Properties, 'SourceEntity') as source_entity, + json_extract_path_text(detail.Properties, 'ThemeArn') as theme_arn, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'ValidationStrategy') as validation_strategy, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Errors') as errors, + json_extract_path_text(detail.Properties, 'AnalysisId') as analysis_id, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Sheets') as sheets + 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::QuickSight::Analysis' + AND detail.data__TypeName = 'AWS::QuickSight::Analysis' + AND listing.region = 'us-east-1' + analyses_list_only: + name: analyses_list_only + id: aws.quicksight.analyses_list_only + x-cfn-schema-name: Analysis + x-cfn-type-name: AWS::QuickSight::Analysis + x-identifiers: + - AnalysisId + - AwsAccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AnalysisId') as analysis_id, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Analysis' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AnalysisId') as analysis_id, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Analysis' + AND region = 'us-east-1' + analysis_tags: + name: analysis_tags + id: aws.quicksight.analysis_tags + x-cfn-schema-name: Analysis + x-cfn-type-name: AWS::QuickSight::Analysis + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.DataSetArns') as data_set_arns, + JSON_EXTRACT(detail.Properties, '$.SourceEntity') as source_entity, + JSON_EXTRACT(detail.Properties, '$.ThemeArn') as theme_arn, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.ValidationStrategy') as validation_strategy, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Errors') as errors, + JSON_EXTRACT(detail.Properties, '$.AnalysisId') as analysis_id, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Sheets') as sheets + 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::QuickSight::Analysis' + AND detail.data__TypeName = 'AWS::QuickSight::Analysis' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'DataSetArns') as data_set_arns, + json_extract_path_text(detail.Properties, 'SourceEntity') as source_entity, + json_extract_path_text(detail.Properties, 'ThemeArn') as theme_arn, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'ValidationStrategy') as validation_strategy, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Errors') as errors, + json_extract_path_text(detail.Properties, 'AnalysisId') as analysis_id, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Sheets') as sheets + 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::QuickSight::Analysis' + AND detail.data__TypeName = 'AWS::QuickSight::Analysis' + AND listing.region = 'us-east-1' dashboards: name: dashboards id: aws.quicksight.dashboards @@ -13579,11 +13728,33 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, - JSON_EXTRACT(Properties, '$.DashboardId') as dashboard_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Dashboard' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description, + JSON_EXTRACT(detail.Properties, '$.SourceEntity') as source_entity, + JSON_EXTRACT(detail.Properties, '$.ThemeArn') as theme_arn, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.ValidationStrategy') as validation_strategy, + JSON_EXTRACT(detail.Properties, '$.DashboardId') as dashboard_id, + JSON_EXTRACT(detail.Properties, '$.LinkSharingConfiguration') as link_sharing_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DashboardPublishOptions') as dashboard_publish_options, + JSON_EXTRACT(detail.Properties, '$.LastPublishedTime') as last_published_time, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.LinkEntities') as link_entities, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::QuickSight::Dashboard' + AND detail.data__TypeName = 'AWS::QuickSight::Dashboard' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -13616,11 +13787,146 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, - json_extract_path_text(Properties, 'DashboardId') as dashboard_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Dashboard' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description, + json_extract_path_text(detail.Properties, 'SourceEntity') as source_entity, + json_extract_path_text(detail.Properties, 'ThemeArn') as theme_arn, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'ValidationStrategy') as validation_strategy, + json_extract_path_text(detail.Properties, 'DashboardId') as dashboard_id, + json_extract_path_text(detail.Properties, 'LinkSharingConfiguration') as link_sharing_configuration, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DashboardPublishOptions') as dashboard_publish_options, + json_extract_path_text(detail.Properties, 'LastPublishedTime') as last_published_time, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'LinkEntities') as link_entities, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::QuickSight::Dashboard' + AND detail.data__TypeName = 'AWS::QuickSight::Dashboard' + AND listing.region = 'us-east-1' + dashboards_list_only: + name: dashboards_list_only + id: aws.quicksight.dashboards_list_only + x-cfn-schema-name: Dashboard + x-cfn-type-name: AWS::QuickSight::Dashboard + x-identifiers: + - AwsAccountId + - DashboardId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(Properties, '$.DashboardId') as dashboard_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Dashboard' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(Properties, 'DashboardId') as dashboard_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Dashboard' + AND region = 'us-east-1' + dashboard_tags: + name: dashboard_tags + id: aws.quicksight.dashboard_tags + x-cfn-schema-name: Dashboard + x-cfn-type-name: AWS::QuickSight::Dashboard + 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, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description, + JSON_EXTRACT(detail.Properties, '$.SourceEntity') as source_entity, + JSON_EXTRACT(detail.Properties, '$.ThemeArn') as theme_arn, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.ValidationStrategy') as validation_strategy, + JSON_EXTRACT(detail.Properties, '$.DashboardId') as dashboard_id, + JSON_EXTRACT(detail.Properties, '$.LinkSharingConfiguration') as link_sharing_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DashboardPublishOptions') as dashboard_publish_options, + JSON_EXTRACT(detail.Properties, '$.LastPublishedTime') as last_published_time, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.LinkEntities') as link_entities, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::QuickSight::Dashboard' + AND detail.data__TypeName = 'AWS::QuickSight::Dashboard' + 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, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description, + json_extract_path_text(detail.Properties, 'SourceEntity') as source_entity, + json_extract_path_text(detail.Properties, 'ThemeArn') as theme_arn, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'ValidationStrategy') as validation_strategy, + json_extract_path_text(detail.Properties, 'DashboardId') as dashboard_id, + json_extract_path_text(detail.Properties, 'LinkSharingConfiguration') as link_sharing_configuration, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DashboardPublishOptions') as dashboard_publish_options, + json_extract_path_text(detail.Properties, 'LastPublishedTime') as last_published_time, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'LinkEntities') as link_entities, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::QuickSight::Dashboard' + AND detail.data__TypeName = 'AWS::QuickSight::Dashboard' + AND listing.region = 'us-east-1' data_sets: name: data_sets id: aws.quicksight.data_sets @@ -13714,11 +14020,36 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, - JSON_EXTRACT(Properties, '$.DataSetId') as data_set_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.ColumnGroups') as column_groups, + JSON_EXTRACT(detail.Properties, '$.ColumnLevelPermissionRules') as column_level_permission_rules, + JSON_EXTRACT(detail.Properties, '$.ConsumedSpiceCapacityInBytes') as consumed_spice_capacity_in_bytes, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.DataSetId') as data_set_id, + JSON_EXTRACT(detail.Properties, '$.DataSetRefreshProperties') as data_set_refresh_properties, + JSON_EXTRACT(detail.Properties, '$.DataSetUsageConfiguration') as data_set_usage_configuration, + JSON_EXTRACT(detail.Properties, '$.DatasetParameters') as dataset_parameters, + JSON_EXTRACT(detail.Properties, '$.FieldFolders') as field_folders, + JSON_EXTRACT(detail.Properties, '$.ImportMode') as import_mode, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.LogicalTableMap') as logical_table_map, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OutputColumns') as output_columns, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.PhysicalTableMap') as physical_table_map, + JSON_EXTRACT(detail.Properties, '$.RowLevelPermissionDataSet') as row_level_permission_data_set, + JSON_EXTRACT(detail.Properties, '$.RowLevelPermissionTagConfiguration') as row_level_permission_tag_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.IngestionWaitPolicy') as ingestion_wait_policy + 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::QuickSight::DataSet' + AND detail.data__TypeName = 'AWS::QuickSight::DataSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -13754,11 +14085,155 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, - json_extract_path_text(Properties, 'DataSetId') as data_set_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'ColumnGroups') as column_groups, + json_extract_path_text(detail.Properties, 'ColumnLevelPermissionRules') as column_level_permission_rules, + json_extract_path_text(detail.Properties, 'ConsumedSpiceCapacityInBytes') as consumed_spice_capacity_in_bytes, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'DataSetId') as data_set_id, + json_extract_path_text(detail.Properties, 'DataSetRefreshProperties') as data_set_refresh_properties, + json_extract_path_text(detail.Properties, 'DataSetUsageConfiguration') as data_set_usage_configuration, + json_extract_path_text(detail.Properties, 'DatasetParameters') as dataset_parameters, + json_extract_path_text(detail.Properties, 'FieldFolders') as field_folders, + json_extract_path_text(detail.Properties, 'ImportMode') as import_mode, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'LogicalTableMap') as logical_table_map, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OutputColumns') as output_columns, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'PhysicalTableMap') as physical_table_map, + json_extract_path_text(detail.Properties, 'RowLevelPermissionDataSet') as row_level_permission_data_set, + json_extract_path_text(detail.Properties, 'RowLevelPermissionTagConfiguration') as row_level_permission_tag_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'IngestionWaitPolicy') as ingestion_wait_policy + 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::QuickSight::DataSet' + AND detail.data__TypeName = 'AWS::QuickSight::DataSet' + AND listing.region = 'us-east-1' + data_sets_list_only: + name: data_sets_list_only + id: aws.quicksight.data_sets_list_only + x-cfn-schema-name: DataSet + x-cfn-type-name: AWS::QuickSight::DataSet + x-identifiers: + - AwsAccountId + - DataSetId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(Properties, '$.DataSetId') as data_set_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(Properties, 'DataSetId') as data_set_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSet' + AND region = 'us-east-1' + data_set_tags: + name: data_set_tags + id: aws.quicksight.data_set_tags + x-cfn-schema-name: DataSet + x-cfn-type-name: AWS::QuickSight::DataSet + 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, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.ColumnGroups') as column_groups, + JSON_EXTRACT(detail.Properties, '$.ColumnLevelPermissionRules') as column_level_permission_rules, + JSON_EXTRACT(detail.Properties, '$.ConsumedSpiceCapacityInBytes') as consumed_spice_capacity_in_bytes, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.DataSetId') as data_set_id, + JSON_EXTRACT(detail.Properties, '$.DataSetRefreshProperties') as data_set_refresh_properties, + JSON_EXTRACT(detail.Properties, '$.DataSetUsageConfiguration') as data_set_usage_configuration, + JSON_EXTRACT(detail.Properties, '$.DatasetParameters') as dataset_parameters, + JSON_EXTRACT(detail.Properties, '$.FieldFolders') as field_folders, + JSON_EXTRACT(detail.Properties, '$.ImportMode') as import_mode, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.LogicalTableMap') as logical_table_map, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.OutputColumns') as output_columns, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.PhysicalTableMap') as physical_table_map, + JSON_EXTRACT(detail.Properties, '$.RowLevelPermissionDataSet') as row_level_permission_data_set, + JSON_EXTRACT(detail.Properties, '$.RowLevelPermissionTagConfiguration') as row_level_permission_tag_configuration, + JSON_EXTRACT(detail.Properties, '$.IngestionWaitPolicy') as ingestion_wait_policy + 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::QuickSight::DataSet' + AND detail.data__TypeName = 'AWS::QuickSight::DataSet' + 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, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'ColumnGroups') as column_groups, + json_extract_path_text(detail.Properties, 'ColumnLevelPermissionRules') as column_level_permission_rules, + json_extract_path_text(detail.Properties, 'ConsumedSpiceCapacityInBytes') as consumed_spice_capacity_in_bytes, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'DataSetId') as data_set_id, + json_extract_path_text(detail.Properties, 'DataSetRefreshProperties') as data_set_refresh_properties, + json_extract_path_text(detail.Properties, 'DataSetUsageConfiguration') as data_set_usage_configuration, + json_extract_path_text(detail.Properties, 'DatasetParameters') as dataset_parameters, + json_extract_path_text(detail.Properties, 'FieldFolders') as field_folders, + json_extract_path_text(detail.Properties, 'ImportMode') as import_mode, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'LogicalTableMap') as logical_table_map, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'OutputColumns') as output_columns, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'PhysicalTableMap') as physical_table_map, + json_extract_path_text(detail.Properties, 'RowLevelPermissionDataSet') as row_level_permission_data_set, + json_extract_path_text(detail.Properties, 'RowLevelPermissionTagConfiguration') as row_level_permission_tag_configuration, + json_extract_path_text(detail.Properties, 'IngestionWaitPolicy') as ingestion_wait_policy + 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::QuickSight::DataSet' + AND detail.data__TypeName = 'AWS::QuickSight::DataSet' + AND listing.region = 'us-east-1' data_sources: name: data_sources id: aws.quicksight.data_sources @@ -13846,11 +14321,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, - JSON_EXTRACT(Properties, '$.DataSourceId') as data_source_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AlternateDataSourceParameters') as alternate_data_source_parameters, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Credentials') as credentials, + JSON_EXTRACT(detail.Properties, '$.DataSourceId') as data_source_id, + JSON_EXTRACT(detail.Properties, '$.DataSourceParameters') as data_source_parameters, + JSON_EXTRACT(detail.Properties, '$.ErrorInfo') as error_info, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.SslProperties') as ssl_properties, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.VpcConnectionProperties') as vpc_connection_properties + 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::QuickSight::DataSource' + AND detail.data__TypeName = 'AWS::QuickSight::DataSource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -13880,11 +14374,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, - json_extract_path_text(Properties, 'DataSourceId') as data_source_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AlternateDataSourceParameters') as alternate_data_source_parameters, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Credentials') as credentials, + json_extract_path_text(detail.Properties, 'DataSourceId') as data_source_id, + json_extract_path_text(detail.Properties, 'DataSourceParameters') as data_source_parameters, + json_extract_path_text(detail.Properties, 'ErrorInfo') as error_info, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'SslProperties') as ssl_properties, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'VpcConnectionProperties') as vpc_connection_properties + 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::QuickSight::DataSource' + AND detail.data__TypeName = 'AWS::QuickSight::DataSource' + AND listing.region = 'us-east-1' + data_sources_list_only: + name: data_sources_list_only + id: aws.quicksight.data_sources_list_only + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::QuickSight::DataSource + x-identifiers: + - AwsAccountId + - DataSourceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(Properties, '$.DataSourceId') as data_source_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(Properties, 'DataSourceId') as data_source_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::DataSource' + AND region = 'us-east-1' + data_source_tags: + name: data_source_tags + id: aws.quicksight.data_source_tags + x-cfn-schema-name: DataSource + x-cfn-type-name: AWS::QuickSight::DataSource + 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, '$.AlternateDataSourceParameters') as alternate_data_source_parameters, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.Credentials') as credentials, + JSON_EXTRACT(detail.Properties, '$.DataSourceId') as data_source_id, + JSON_EXTRACT(detail.Properties, '$.DataSourceParameters') as data_source_parameters, + JSON_EXTRACT(detail.Properties, '$.ErrorInfo') as error_info, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.SslProperties') as ssl_properties, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.VpcConnectionProperties') as vpc_connection_properties + 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::QuickSight::DataSource' + AND detail.data__TypeName = 'AWS::QuickSight::DataSource' + 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, 'AlternateDataSourceParameters') as alternate_data_source_parameters, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'Credentials') as credentials, + json_extract_path_text(detail.Properties, 'DataSourceId') as data_source_id, + json_extract_path_text(detail.Properties, 'DataSourceParameters') as data_source_parameters, + json_extract_path_text(detail.Properties, 'ErrorInfo') as error_info, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'SslProperties') as ssl_properties, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'VpcConnectionProperties') as vpc_connection_properties + 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::QuickSight::DataSource' + AND detail.data__TypeName = 'AWS::QuickSight::DataSource' + AND listing.region = 'us-east-1' refresh_schedules: name: refresh_schedules id: aws.quicksight.refresh_schedules @@ -13961,12 +14581,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, - JSON_EXTRACT(Properties, '$.DataSetId') as data_set_id, - JSON_EXTRACT(Properties, '$.Schedule.ScheduleId') as schedule__schedule_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::RefreshSchedule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.DataSetId') as data_set_id, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule + 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::QuickSight::RefreshSchedule' + AND detail.data__TypeName = 'AWS::QuickSight::RefreshSchedule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -13984,12 +14610,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, - json_extract_path_text(Properties, 'DataSetId') as data_set_id, - json_extract_path_text(Properties, 'Schedule', 'ScheduleId') as schedule__schedule_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::RefreshSchedule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'DataSetId') as data_set_id, + json_extract_path_text(detail.Properties, 'Schedule') as schedule + 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::QuickSight::RefreshSchedule' + AND detail.data__TypeName = 'AWS::QuickSight::RefreshSchedule' + AND listing.region = 'us-east-1' + refresh_schedules_list_only: + name: refresh_schedules_list_only + id: aws.quicksight.refresh_schedules_list_only + x-cfn-schema-name: RefreshSchedule + x-cfn-type-name: AWS::QuickSight::RefreshSchedule + x-identifiers: + - AwsAccountId + - DataSetId + - Schedule/ScheduleId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(Properties, '$.DataSetId') as data_set_id, + JSON_EXTRACT(Properties, '$.Schedule.ScheduleId') as schedule__schedule_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::RefreshSchedule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(Properties, 'DataSetId') as data_set_id, + json_extract_path_text(Properties, 'Schedule', 'ScheduleId') as schedule__schedule_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::RefreshSchedule' + AND region = 'us-east-1' templates: name: templates id: aws.quicksight.templates @@ -14074,11 +14743,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, - JSON_EXTRACT(Properties, '$.TemplateId') as template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Template' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description, + JSON_EXTRACT(detail.Properties, '$.SourceEntity') as source_entity, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.ValidationStrategy') as validation_strategy, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TemplateId') as template_id + 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::QuickSight::Template' + AND detail.data__TypeName = 'AWS::QuickSight::Template' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14105,11 +14790,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, - json_extract_path_text(Properties, 'TemplateId') as template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Template' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description, + json_extract_path_text(detail.Properties, 'SourceEntity') as source_entity, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'ValidationStrategy') as validation_strategy, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TemplateId') as template_id + 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::QuickSight::Template' + AND detail.data__TypeName = 'AWS::QuickSight::Template' + AND listing.region = 'us-east-1' + templates_list_only: + name: templates_list_only + id: aws.quicksight.templates_list_only + x-cfn-schema-name: Template + x-cfn-type-name: AWS::QuickSight::Template + x-identifiers: + - AwsAccountId + - TemplateId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(Properties, '$.TemplateId') as template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Template' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(Properties, 'TemplateId') as template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Template' + AND region = 'us-east-1' + template_tags: + name: template_tags + id: aws.quicksight.template_tags + x-cfn-schema-name: Template + x-cfn-type-name: AWS::QuickSight::Template + 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, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description, + JSON_EXTRACT(detail.Properties, '$.SourceEntity') as source_entity, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.ValidationStrategy') as validation_strategy, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.TemplateId') as template_id + 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::QuickSight::Template' + AND detail.data__TypeName = 'AWS::QuickSight::Template' + 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, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description, + json_extract_path_text(detail.Properties, 'SourceEntity') as source_entity, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'ValidationStrategy') as validation_strategy, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'TemplateId') as template_id + 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::QuickSight::Template' + AND detail.data__TypeName = 'AWS::QuickSight::Template' + AND listing.region = 'us-east-1' themes: name: themes id: aws.quicksight.themes @@ -14194,11 +14996,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ThemeId') as theme_id, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Theme' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.BaseThemeId') as base_theme_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ThemeId') as theme_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description + 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::QuickSight::Theme' + AND detail.data__TypeName = 'AWS::QuickSight::Theme' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14225,11 +15043,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ThemeId') as theme_id, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Theme' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'BaseThemeId') as base_theme_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ThemeId') as theme_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description + 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::QuickSight::Theme' + AND detail.data__TypeName = 'AWS::QuickSight::Theme' + AND listing.region = 'us-east-1' + themes_list_only: + name: themes_list_only + id: aws.quicksight.themes_list_only + x-cfn-schema-name: Theme + x-cfn-type-name: AWS::QuickSight::Theme + x-identifiers: + - ThemeId + - AwsAccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ThemeId') as theme_id, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Theme' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ThemeId') as theme_id, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Theme' + AND region = 'us-east-1' + theme_tags: + name: theme_tags + id: aws.quicksight.theme_tags + x-cfn-schema-name: Theme + x-cfn-type-name: AWS::QuickSight::Theme + 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, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.BaseThemeId') as base_theme_id, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Permissions') as permissions, + JSON_EXTRACT(detail.Properties, '$.ThemeId') as theme_id, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.VersionDescription') as version_description + 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::QuickSight::Theme' + AND detail.data__TypeName = 'AWS::QuickSight::Theme' + 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, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'BaseThemeId') as base_theme_id, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Permissions') as permissions, + json_extract_path_text(detail.Properties, 'ThemeId') as theme_id, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'VersionDescription') as version_description + 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::QuickSight::Theme' + AND detail.data__TypeName = 'AWS::QuickSight::Theme' + AND listing.region = 'us-east-1' topics: name: topics id: aws.quicksight.topics @@ -14308,11 +15243,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, - JSON_EXTRACT(Properties, '$.TopicId') as topic_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Topic' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.DataSets') as data_sets, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.TopicId') as topic_id, + JSON_EXTRACT(detail.Properties, '$.UserExperienceVersion') as user_experience_version + 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::QuickSight::Topic' + AND detail.data__TypeName = 'AWS::QuickSight::Topic' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14333,11 +15278,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, - json_extract_path_text(Properties, 'TopicId') as topic_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Topic' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'DataSets') as data_sets, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'TopicId') as topic_id, + json_extract_path_text(detail.Properties, 'UserExperienceVersion') as user_experience_version + 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::QuickSight::Topic' + AND detail.data__TypeName = 'AWS::QuickSight::Topic' + AND listing.region = 'us-east-1' + topics_list_only: + name: topics_list_only + id: aws.quicksight.topics_list_only + x-cfn-schema-name: Topic + x-cfn-type-name: AWS::QuickSight::Topic + x-identifiers: + - AwsAccountId + - TopicId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(Properties, '$.TopicId') as topic_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Topic' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(Properties, 'TopicId') as topic_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::Topic' + AND region = 'us-east-1' vpc_connections: name: vpc_connections id: aws.quicksight.vpc_connections @@ -14424,11 +15413,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, - JSON_EXTRACT(Properties, '$.VPCConnectionId') as vpc_connection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::VPCConnection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AvailabilityStatus') as availability_status, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.DnsResolvers') as dns_resolvers, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaces') as network_interfaces, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VPCConnectionId') as vpc_connection_id, + JSON_EXTRACT(detail.Properties, '$.VPCId') as vpc_id + 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::QuickSight::VPCConnection' + AND detail.data__TypeName = 'AWS::QuickSight::VPCConnection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -14457,11 +15464,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, - json_extract_path_text(Properties, 'VPCConnectionId') as vpc_connection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::VPCConnection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AvailabilityStatus') as availability_status, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'DnsResolvers') as dns_resolvers, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkInterfaces') as network_interfaces, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VPCConnectionId') as vpc_connection_id, + json_extract_path_text(detail.Properties, 'VPCId') as vpc_id + 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::QuickSight::VPCConnection' + AND detail.data__TypeName = 'AWS::QuickSight::VPCConnection' + AND listing.region = 'us-east-1' + vpc_connections_list_only: + name: vpc_connections_list_only + id: aws.quicksight.vpc_connections_list_only + x-cfn-schema-name: VPCConnection + x-cfn-type-name: AWS::QuickSight::VPCConnection + x-identifiers: + - AwsAccountId + - VPCConnectionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(Properties, '$.VPCConnectionId') as vpc_connection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::VPCConnection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(Properties, 'VPCConnectionId') as vpc_connection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::QuickSight::VPCConnection' + AND region = 'us-east-1' + vpc_connection_tags: + name: vpc_connection_tags + id: aws.quicksight.vpc_connection_tags + x-cfn-schema-name: VPCConnection + x-cfn-type-name: AWS::QuickSight::VPCConnection + 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, '$.AvailabilityStatus') as availability_status, + JSON_EXTRACT(detail.Properties, '$.AwsAccountId') as aws_account_id, + JSON_EXTRACT(detail.Properties, '$.CreatedTime') as created_time, + JSON_EXTRACT(detail.Properties, '$.DnsResolvers') as dns_resolvers, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedTime') as last_updated_time, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaces') as network_interfaces, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VPCConnectionId') as vpc_connection_id, + JSON_EXTRACT(detail.Properties, '$.VPCId') as vpc_id + 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::QuickSight::VPCConnection' + AND detail.data__TypeName = 'AWS::QuickSight::VPCConnection' + 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, 'AvailabilityStatus') as availability_status, + json_extract_path_text(detail.Properties, 'AwsAccountId') as aws_account_id, + json_extract_path_text(detail.Properties, 'CreatedTime') as created_time, + json_extract_path_text(detail.Properties, 'DnsResolvers') as dns_resolvers, + json_extract_path_text(detail.Properties, 'LastUpdatedTime') as last_updated_time, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkInterfaces') as network_interfaces, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'VPCConnectionId') as vpc_connection_id, + json_extract_path_text(detail.Properties, 'VPCId') as vpc_id + 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::QuickSight::VPCConnection' + AND detail.data__TypeName = 'AWS::QuickSight::VPCConnection' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ram.yaml b/providers/src/aws/v00.00.00000/services/ram.yaml index fd32824c..85dd5002 100644 --- a/providers/src/aws/v00.00.00000/services/ram.yaml +++ b/providers/src/aws/v00.00.00000/services/ram.yaml @@ -607,10 +607,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RAM::Permission' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.IsResourceTypeDefault') as is_resource_type_default, + JSON_EXTRACT(detail.Properties, '$.PermissionType') as permission_type, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.PolicyTemplate') as policy_template, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RAM::Permission' + AND detail.data__TypeName = 'AWS::RAM::Permission' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -632,10 +644,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RAM::Permission' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'IsResourceTypeDefault') as is_resource_type_default, + json_extract_path_text(detail.Properties, 'PermissionType') as permission_type, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'PolicyTemplate') as policy_template, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RAM::Permission' + AND detail.data__TypeName = 'AWS::RAM::Permission' + AND listing.region = 'us-east-1' + permissions_list_only: + name: permissions_list_only + id: aws.ram.permissions_list_only + x-cfn-schema-name: Permission + x-cfn-type-name: AWS::RAM::Permission + 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::RAM::Permission' + 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::RAM::Permission' + AND region = 'us-east-1' + permission_tags: + name: permission_tags + id: aws.ram.permission_tags + x-cfn-schema-name: Permission + x-cfn-type-name: AWS::RAM::Permission + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.IsResourceTypeDefault') as is_resource_type_default, + JSON_EXTRACT(detail.Properties, '$.PermissionType') as permission_type, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.PolicyTemplate') as policy_template + 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::RAM::Permission' + AND detail.data__TypeName = 'AWS::RAM::Permission' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'IsResourceTypeDefault') as is_resource_type_default, + json_extract_path_text(detail.Properties, 'PermissionType') as permission_type, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'PolicyTemplate') as policy_template + 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::RAM::Permission' + AND detail.data__TypeName = 'AWS::RAM::Permission' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/rds.yaml b/providers/src/aws/v00.00.00000/services/rds.yaml index ced735a6..9f63ac59 100644 --- a/providers/src/aws/v00.00.00000/services/rds.yaml +++ b/providers/src/aws/v00.00.00000/services/rds.yaml @@ -4653,11 +4653,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Engine') as engine, - JSON_EXTRACT(Properties, '$.EngineVersion') as engine_version - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::CustomDBEngineVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DatabaseInstallationFilesS3BucketName') as database_installation_files_s3_bucket_name, + JSON_EXTRACT(detail.Properties, '$.DatabaseInstallationFilesS3Prefix') as database_installation_files_s3_prefix, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.KMSKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Manifest') as manifest, + JSON_EXTRACT(detail.Properties, '$.DBEngineVersionArn') as db_engine_version_arn, + JSON_EXTRACT(detail.Properties, '$.SourceCustomDbEngineVersionIdentifier') as source_custom_db_engine_version_identifier, + JSON_EXTRACT(detail.Properties, '$.UseAwsProvidedLatestImage') as use_aws_provided_latest_image, + JSON_EXTRACT(detail.Properties, '$.ImageId') as image_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RDS::CustomDBEngineVersion' + AND detail.data__TypeName = 'AWS::RDS::CustomDBEngineVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4684,11 +4700,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Engine') as engine, - json_extract_path_text(Properties, 'EngineVersion') as engine_version - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::CustomDBEngineVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DatabaseInstallationFilesS3BucketName') as database_installation_files_s3_bucket_name, + json_extract_path_text(detail.Properties, 'DatabaseInstallationFilesS3Prefix') as database_installation_files_s3_prefix, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'KMSKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Manifest') as manifest, + json_extract_path_text(detail.Properties, 'DBEngineVersionArn') as db_engine_version_arn, + json_extract_path_text(detail.Properties, 'SourceCustomDbEngineVersionIdentifier') as source_custom_db_engine_version_identifier, + json_extract_path_text(detail.Properties, 'UseAwsProvidedLatestImage') as use_aws_provided_latest_image, + json_extract_path_text(detail.Properties, 'ImageId') as image_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RDS::CustomDBEngineVersion' + AND detail.data__TypeName = 'AWS::RDS::CustomDBEngineVersion' + AND listing.region = 'us-east-1' + customdb_engine_versions_list_only: + name: customdb_engine_versions_list_only + id: aws.rds.customdb_engine_versions_list_only + x-cfn-schema-name: CustomDBEngineVersion + x-cfn-type-name: AWS::RDS::CustomDBEngineVersion + x-identifiers: + - Engine + - EngineVersion + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Engine') as engine, + JSON_EXTRACT(Properties, '$.EngineVersion') as engine_version + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::CustomDBEngineVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Engine') as engine, + json_extract_path_text(Properties, 'EngineVersion') as engine_version + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::CustomDBEngineVersion' + AND region = 'us-east-1' + customdb_engine_version_tags: + name: customdb_engine_version_tags + id: aws.rds.customdb_engine_version_tags + x-cfn-schema-name: CustomDBEngineVersion + x-cfn-type-name: AWS::RDS::CustomDBEngineVersion + 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, '$.DatabaseInstallationFilesS3BucketName') as database_installation_files_s3_bucket_name, + JSON_EXTRACT(detail.Properties, '$.DatabaseInstallationFilesS3Prefix') as database_installation_files_s3_prefix, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.KMSKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Manifest') as manifest, + JSON_EXTRACT(detail.Properties, '$.DBEngineVersionArn') as db_engine_version_arn, + JSON_EXTRACT(detail.Properties, '$.SourceCustomDbEngineVersionIdentifier') as source_custom_db_engine_version_identifier, + JSON_EXTRACT(detail.Properties, '$.UseAwsProvidedLatestImage') as use_aws_provided_latest_image, + JSON_EXTRACT(detail.Properties, '$.ImageId') as image_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::RDS::CustomDBEngineVersion' + AND detail.data__TypeName = 'AWS::RDS::CustomDBEngineVersion' + 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, 'DatabaseInstallationFilesS3BucketName') as database_installation_files_s3_bucket_name, + json_extract_path_text(detail.Properties, 'DatabaseInstallationFilesS3Prefix') as database_installation_files_s3_prefix, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'KMSKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Manifest') as manifest, + json_extract_path_text(detail.Properties, 'DBEngineVersionArn') as db_engine_version_arn, + json_extract_path_text(detail.Properties, 'SourceCustomDbEngineVersionIdentifier') as source_custom_db_engine_version_identifier, + json_extract_path_text(detail.Properties, 'UseAwsProvidedLatestImage') as use_aws_provided_latest_image, + json_extract_path_text(detail.Properties, 'ImageId') as image_id, + json_extract_path_text(detail.Properties, 'Status') as status + 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::RDS::CustomDBEngineVersion' + AND detail.data__TypeName = 'AWS::RDS::CustomDBEngineVersion' + AND listing.region = 'us-east-1' db_clusters: name: db_clusters id: aws.rds.db_clusters @@ -4818,10 +4951,73 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as db_cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBCluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StorageEncrypted') as storage_encrypted, + JSON_EXTRACT(detail.Properties, '$.DBSystemId') as db_system_id, + JSON_EXTRACT(detail.Properties, '$.RestoreToTime') as restore_to_time, + JSON_EXTRACT(detail.Properties, '$.EngineMode') as engine_mode, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.DBClusterIdentifier') as db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.StorageThroughput') as storage_throughput, + JSON_EXTRACT(detail.Properties, '$.MonitoringInterval') as monitoring_interval, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.ReplicationSourceIdentifier') as replication_source_identifier, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.StorageType') as storage_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.ServerlessV2ScalingConfiguration') as serverless_v2_scaling_configuration, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + JSON_EXTRACT(detail.Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(detail.Properties, '$.DBClusterResourceId') as db_cluster_resource_id, + JSON_EXTRACT(detail.Properties, '$.AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.AllocatedStorage') as allocated_storage, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.MasterUserSecret') as master_user_secret, + JSON_EXTRACT(detail.Properties, '$.SourceDBClusterIdentifier') as source_db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.ScalingConfiguration') as scaling_configuration, + JSON_EXTRACT(detail.Properties, '$.ReadEndpoint') as read_endpoint, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsKmsKeyId') as performance_insights_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.BacktrackWindow') as backtrack_window, + JSON_EXTRACT(detail.Properties, '$.DBInstanceParameterGroupName') as db_instance_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.EnableGlobalWriteForwarding') as enable_global_write_forwarding, + JSON_EXTRACT(detail.Properties, '$.MonitoringRoleArn') as monitoring_role_arn, + JSON_EXTRACT(detail.Properties, '$.AssociatedRoles') as associated_roles, + JSON_EXTRACT(detail.Properties, '$.EnableHttpEndpoint') as enable_http_endpoint, + JSON_EXTRACT(detail.Properties, '$.SnapshotIdentifier') as snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.CopyTagsToSnapshot') as copy_tags_to_snapshot, + JSON_EXTRACT(detail.Properties, '$.GlobalClusterIdentifier') as global_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.RestoreType') as restore_type, + JSON_EXTRACT(detail.Properties, '$.DomainIAMRoleName') as domain_iam_role_name, + JSON_EXTRACT(detail.Properties, '$.DBClusterInstanceClass') as db_cluster_instance_class, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.DBClusterArn') as db_cluster_arn, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.Iops') as iops, + JSON_EXTRACT(detail.Properties, '$.SourceRegion') as source_region, + JSON_EXTRACT(detail.Properties, '$.UseLatestRestorableTime') as use_latest_restorable_time, + JSON_EXTRACT(detail.Properties, '$.ManageMasterUserPassword') as manage_master_user_password, + JSON_EXTRACT(detail.Properties, '$.EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + JSON_EXTRACT(detail.Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsEnabled') as performance_insights_enabled, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports + 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::RDS::DBCluster' + AND detail.data__TypeName = 'AWS::RDS::DBCluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4894,10 +5090,263 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBClusterIdentifier') as db_cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBCluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StorageEncrypted') as storage_encrypted, + json_extract_path_text(detail.Properties, 'DBSystemId') as db_system_id, + json_extract_path_text(detail.Properties, 'RestoreToTime') as restore_to_time, + json_extract_path_text(detail.Properties, 'EngineMode') as engine_mode, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'DBClusterIdentifier') as db_cluster_identifier, + json_extract_path_text(detail.Properties, 'StorageThroughput') as storage_throughput, + json_extract_path_text(detail.Properties, 'MonitoringInterval') as monitoring_interval, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'ReplicationSourceIdentifier') as replication_source_identifier, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'StorageType') as storage_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'ServerlessV2ScalingConfiguration') as serverless_v2_scaling_configuration, + json_extract_path_text(detail.Properties, 'PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + json_extract_path_text(detail.Properties, 'DatabaseName') as database_name, + json_extract_path_text(detail.Properties, 'DBClusterResourceId') as db_cluster_resource_id, + json_extract_path_text(detail.Properties, 'AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'AllocatedStorage') as allocated_storage, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'MasterUserSecret') as master_user_secret, + json_extract_path_text(detail.Properties, 'SourceDBClusterIdentifier') as source_db_cluster_identifier, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'ScalingConfiguration') as scaling_configuration, + json_extract_path_text(detail.Properties, 'ReadEndpoint') as read_endpoint, + json_extract_path_text(detail.Properties, 'PerformanceInsightsKmsKeyId') as performance_insights_kms_key_id, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'BacktrackWindow') as backtrack_window, + json_extract_path_text(detail.Properties, 'DBInstanceParameterGroupName') as db_instance_parameter_group_name, + json_extract_path_text(detail.Properties, 'EnableGlobalWriteForwarding') as enable_global_write_forwarding, + json_extract_path_text(detail.Properties, 'MonitoringRoleArn') as monitoring_role_arn, + json_extract_path_text(detail.Properties, 'AssociatedRoles') as associated_roles, + json_extract_path_text(detail.Properties, 'EnableHttpEndpoint') as enable_http_endpoint, + json_extract_path_text(detail.Properties, 'SnapshotIdentifier') as snapshot_identifier, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'CopyTagsToSnapshot') as copy_tags_to_snapshot, + json_extract_path_text(detail.Properties, 'GlobalClusterIdentifier') as global_cluster_identifier, + json_extract_path_text(detail.Properties, 'RestoreType') as restore_type, + json_extract_path_text(detail.Properties, 'DomainIAMRoleName') as domain_iam_role_name, + json_extract_path_text(detail.Properties, 'DBClusterInstanceClass') as db_cluster_instance_class, + json_extract_path_text(detail.Properties, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'DBClusterArn') as db_cluster_arn, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'Iops') as iops, + json_extract_path_text(detail.Properties, 'SourceRegion') as source_region, + json_extract_path_text(detail.Properties, 'UseLatestRestorableTime') as use_latest_restorable_time, + json_extract_path_text(detail.Properties, 'ManageMasterUserPassword') as manage_master_user_password, + json_extract_path_text(detail.Properties, 'EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + json_extract_path_text(detail.Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name, + json_extract_path_text(detail.Properties, 'PerformanceInsightsEnabled') as performance_insights_enabled, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports + 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::RDS::DBCluster' + AND detail.data__TypeName = 'AWS::RDS::DBCluster' + AND listing.region = 'us-east-1' + db_clusters_list_only: + name: db_clusters_list_only + id: aws.rds.db_clusters_list_only + x-cfn-schema-name: DBCluster + x-cfn-type-name: AWS::RDS::DBCluster + x-identifiers: + - DBClusterIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as db_cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBCluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBClusterIdentifier') as db_cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBCluster' + AND region = 'us-east-1' + db_cluster_tags: + name: db_cluster_tags + id: aws.rds.db_cluster_tags + x-cfn-schema-name: DBCluster + x-cfn-type-name: AWS::RDS::DBCluster + 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, '$.StorageEncrypted') as storage_encrypted, + JSON_EXTRACT(detail.Properties, '$.DBSystemId') as db_system_id, + JSON_EXTRACT(detail.Properties, '$.RestoreToTime') as restore_to_time, + JSON_EXTRACT(detail.Properties, '$.EngineMode') as engine_mode, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.DBClusterIdentifier') as db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.StorageThroughput') as storage_throughput, + JSON_EXTRACT(detail.Properties, '$.MonitoringInterval') as monitoring_interval, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.ReplicationSourceIdentifier') as replication_source_identifier, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.StorageType') as storage_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.ServerlessV2ScalingConfiguration') as serverless_v2_scaling_configuration, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + JSON_EXTRACT(detail.Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(detail.Properties, '$.DBClusterResourceId') as db_cluster_resource_id, + JSON_EXTRACT(detail.Properties, '$.AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.AllocatedStorage') as allocated_storage, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.MasterUserSecret') as master_user_secret, + JSON_EXTRACT(detail.Properties, '$.SourceDBClusterIdentifier') as source_db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.ScalingConfiguration') as scaling_configuration, + JSON_EXTRACT(detail.Properties, '$.ReadEndpoint') as read_endpoint, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsKmsKeyId') as performance_insights_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.BacktrackWindow') as backtrack_window, + JSON_EXTRACT(detail.Properties, '$.DBInstanceParameterGroupName') as db_instance_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.EnableGlobalWriteForwarding') as enable_global_write_forwarding, + JSON_EXTRACT(detail.Properties, '$.MonitoringRoleArn') as monitoring_role_arn, + JSON_EXTRACT(detail.Properties, '$.AssociatedRoles') as associated_roles, + JSON_EXTRACT(detail.Properties, '$.EnableHttpEndpoint') as enable_http_endpoint, + JSON_EXTRACT(detail.Properties, '$.SnapshotIdentifier') as snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.CopyTagsToSnapshot') as copy_tags_to_snapshot, + JSON_EXTRACT(detail.Properties, '$.GlobalClusterIdentifier') as global_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.RestoreType') as restore_type, + JSON_EXTRACT(detail.Properties, '$.DomainIAMRoleName') as domain_iam_role_name, + JSON_EXTRACT(detail.Properties, '$.DBClusterInstanceClass') as db_cluster_instance_class, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZones') as availability_zones, + JSON_EXTRACT(detail.Properties, '$.DBClusterArn') as db_cluster_arn, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.Iops') as iops, + JSON_EXTRACT(detail.Properties, '$.SourceRegion') as source_region, + JSON_EXTRACT(detail.Properties, '$.UseLatestRestorableTime') as use_latest_restorable_time, + JSON_EXTRACT(detail.Properties, '$.ManageMasterUserPassword') as manage_master_user_password, + JSON_EXTRACT(detail.Properties, '$.EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + JSON_EXTRACT(detail.Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsEnabled') as performance_insights_enabled, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports + 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::RDS::DBCluster' + AND detail.data__TypeName = 'AWS::RDS::DBCluster' + 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, 'StorageEncrypted') as storage_encrypted, + json_extract_path_text(detail.Properties, 'DBSystemId') as db_system_id, + json_extract_path_text(detail.Properties, 'RestoreToTime') as restore_to_time, + json_extract_path_text(detail.Properties, 'EngineMode') as engine_mode, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'DBClusterIdentifier') as db_cluster_identifier, + json_extract_path_text(detail.Properties, 'StorageThroughput') as storage_throughput, + json_extract_path_text(detail.Properties, 'MonitoringInterval') as monitoring_interval, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'ReplicationSourceIdentifier') as replication_source_identifier, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'StorageType') as storage_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'ServerlessV2ScalingConfiguration') as serverless_v2_scaling_configuration, + json_extract_path_text(detail.Properties, 'PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + json_extract_path_text(detail.Properties, 'DatabaseName') as database_name, + json_extract_path_text(detail.Properties, 'DBClusterResourceId') as db_cluster_resource_id, + json_extract_path_text(detail.Properties, 'AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'AllocatedStorage') as allocated_storage, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'MasterUserSecret') as master_user_secret, + json_extract_path_text(detail.Properties, 'SourceDBClusterIdentifier') as source_db_cluster_identifier, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'ScalingConfiguration') as scaling_configuration, + json_extract_path_text(detail.Properties, 'ReadEndpoint') as read_endpoint, + json_extract_path_text(detail.Properties, 'PerformanceInsightsKmsKeyId') as performance_insights_kms_key_id, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'BacktrackWindow') as backtrack_window, + json_extract_path_text(detail.Properties, 'DBInstanceParameterGroupName') as db_instance_parameter_group_name, + json_extract_path_text(detail.Properties, 'EnableGlobalWriteForwarding') as enable_global_write_forwarding, + json_extract_path_text(detail.Properties, 'MonitoringRoleArn') as monitoring_role_arn, + json_extract_path_text(detail.Properties, 'AssociatedRoles') as associated_roles, + json_extract_path_text(detail.Properties, 'EnableHttpEndpoint') as enable_http_endpoint, + json_extract_path_text(detail.Properties, 'SnapshotIdentifier') as snapshot_identifier, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'CopyTagsToSnapshot') as copy_tags_to_snapshot, + json_extract_path_text(detail.Properties, 'GlobalClusterIdentifier') as global_cluster_identifier, + json_extract_path_text(detail.Properties, 'RestoreType') as restore_type, + json_extract_path_text(detail.Properties, 'DomainIAMRoleName') as domain_iam_role_name, + json_extract_path_text(detail.Properties, 'DBClusterInstanceClass') as db_cluster_instance_class, + json_extract_path_text(detail.Properties, 'AvailabilityZones') as availability_zones, + json_extract_path_text(detail.Properties, 'DBClusterArn') as db_cluster_arn, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'Iops') as iops, + json_extract_path_text(detail.Properties, 'SourceRegion') as source_region, + json_extract_path_text(detail.Properties, 'UseLatestRestorableTime') as use_latest_restorable_time, + json_extract_path_text(detail.Properties, 'ManageMasterUserPassword') as manage_master_user_password, + json_extract_path_text(detail.Properties, 'EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + json_extract_path_text(detail.Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name, + json_extract_path_text(detail.Properties, 'PerformanceInsightsEnabled') as performance_insights_enabled, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports + 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::RDS::DBCluster' + AND detail.data__TypeName = 'AWS::RDS::DBCluster' + AND listing.region = 'us-east-1' db_cluster_parameter_groups: name: db_cluster_parameter_groups id: aws.rds.db_cluster_parameter_groups @@ -4973,10 +5422,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBClusterParameterGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RDS::DBClusterParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBClusterParameterGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4995,10 +5453,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBClusterParameterGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RDS::DBClusterParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBClusterParameterGroup' + AND listing.region = 'us-east-1' + db_cluster_parameter_groups_list_only: + name: db_cluster_parameter_groups_list_only + id: aws.rds.db_cluster_parameter_groups_list_only + x-cfn-schema-name: DBClusterParameterGroup + x-cfn-type-name: AWS::RDS::DBClusterParameterGroup + x-identifiers: + - DBClusterParameterGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBClusterParameterGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBClusterParameterGroup' + AND region = 'us-east-1' + db_cluster_parameter_group_tags: + name: db_cluster_parameter_group_tags + id: aws.rds.db_cluster_parameter_group_tags + x-cfn-schema-name: DBClusterParameterGroup + x-cfn-type-name: AWS::RDS::DBClusterParameterGroup + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.DBClusterParameterGroupName') as db_cluster_parameter_group_name + 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::RDS::DBClusterParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBClusterParameterGroup' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'DBClusterParameterGroupName') as db_cluster_parameter_group_name + 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::RDS::DBClusterParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBClusterParameterGroup' + AND listing.region = 'us-east-1' db_instances: name: db_instances id: aws.rds.db_instances @@ -5149,10 +5698,94 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBInstanceIdentifier') as db_instance_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBInstance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StorageEncrypted') as storage_encrypted, + JSON_EXTRACT(detail.Properties, '$.Timezone') as timezone, + JSON_EXTRACT(detail.Properties, '$.DBSystemId') as db_system_id, + JSON_EXTRACT(detail.Properties, '$.CertificateDetails') as certificate_details, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.DBClusterIdentifier') as db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.StorageThroughput') as storage_throughput, + JSON_EXTRACT(detail.Properties, '$.DbiResourceId') as dbi_resource_id, + JSON_EXTRACT(detail.Properties, '$.MonitoringInterval') as monitoring_interval, + JSON_EXTRACT(detail.Properties, '$.DBParameterGroupName') as db_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DBInstanceArn') as db_instance_arn, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.TdeCredentialArn') as tde_credential_arn, + JSON_EXTRACT(detail.Properties, '$.AutomaticBackupReplicationKmsKeyId') as automatic_backup_replication_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.MultiAZ') as multi_az, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsKMSKeyId') as performance_insights_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.TdeCredentialPassword') as tde_credential_password, + JSON_EXTRACT(detail.Properties, '$.SourceDBInstanceIdentifier') as source_db_instance_identifier, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.StorageType') as storage_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.DBInstanceClass') as db_instance_class, + JSON_EXTRACT(detail.Properties, '$.DeleteAutomatedBackups') as delete_automated_backups, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.OptionGroupName') as option_group_name, + JSON_EXTRACT(detail.Properties, '$.EnablePerformanceInsights') as enable_performance_insights, + JSON_EXTRACT(detail.Properties, '$.AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.DBInstanceIdentifier') as db_instance_identifier, + JSON_EXTRACT(detail.Properties, '$.AllocatedStorage') as allocated_storage, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.MasterUserSecret') as master_user_secret, + JSON_EXTRACT(detail.Properties, '$.NcharCharacterSetName') as nchar_character_set_name, + JSON_EXTRACT(detail.Properties, '$.SourceDBClusterIdentifier') as source_db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.DBSecurityGroups') as db_security_groups, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.MaxAllocatedStorage') as max_allocated_storage, + JSON_EXTRACT(detail.Properties, '$.PromotionTier') as promotion_tier, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.DomainFqdn') as domain_fqdn, + JSON_EXTRACT(detail.Properties, '$.CharacterSetName') as character_set_name, + JSON_EXTRACT(detail.Properties, '$.MonitoringRoleArn') as monitoring_role_arn, + JSON_EXTRACT(detail.Properties, '$.AssociatedRoles') as associated_roles, + JSON_EXTRACT(detail.Properties, '$.DomainOu') as domain_ou, + JSON_EXTRACT(detail.Properties, '$.DBClusterSnapshotIdentifier') as db_cluster_snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.SourceDBInstanceAutomatedBackupsArn') as source_db_instance_automated_backups_arn, + JSON_EXTRACT(detail.Properties, '$.ProcessorFeatures') as processor_features, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.RestoreTime') as restore_time, + JSON_EXTRACT(detail.Properties, '$.CertificateRotationRestart') as certificate_rotation_restart, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type, + JSON_EXTRACT(detail.Properties, '$.DedicatedLogVolume') as dedicated_log_volume, + JSON_EXTRACT(detail.Properties, '$.CopyTagsToSnapshot') as copy_tags_to_snapshot, + JSON_EXTRACT(detail.Properties, '$.DomainIAMRoleName') as domain_iam_role_name, + JSON_EXTRACT(detail.Properties, '$.ReplicaMode') as replica_mode, + JSON_EXTRACT(detail.Properties, '$.LicenseModel') as license_model, + JSON_EXTRACT(detail.Properties, '$.DomainDnsIps') as domain_dns_ips, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.Iops') as iops, + JSON_EXTRACT(detail.Properties, '$.SourceRegion') as source_region, + JSON_EXTRACT(detail.Properties, '$.UseLatestRestorableTime') as use_latest_restorable_time, + JSON_EXTRACT(detail.Properties, '$.CACertificateIdentifier') as ca_certificate_identifier, + JSON_EXTRACT(detail.Properties, '$.ManageMasterUserPassword') as manage_master_user_password, + JSON_EXTRACT(detail.Properties, '$.SourceDbiResourceId') as source_dbi_resource_id, + JSON_EXTRACT(detail.Properties, '$.DomainAuthSecretArn') as domain_auth_secret_arn, + JSON_EXTRACT(detail.Properties, '$.AutomaticBackupReplicationRegion') as automatic_backup_replication_region, + JSON_EXTRACT(detail.Properties, '$.VPCSecurityGroups') as vpc_security_groups, + JSON_EXTRACT(detail.Properties, '$.AllowMajorVersionUpgrade') as allow_major_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.DBName') as db_name, + JSON_EXTRACT(detail.Properties, '$.EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.CustomIAMInstanceProfile') as custom_iam_instance_profile, + JSON_EXTRACT(detail.Properties, '$.DBSnapshotIdentifier') as db_snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + JSON_EXTRACT(detail.Properties, '$.UseDefaultProcessorFeatures') as use_default_processor_features + 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::RDS::DBInstance' + AND detail.data__TypeName = 'AWS::RDS::DBInstance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5246,10 +5879,326 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBInstanceIdentifier') as db_instance_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBInstance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StorageEncrypted') as storage_encrypted, + json_extract_path_text(detail.Properties, 'Timezone') as timezone, + json_extract_path_text(detail.Properties, 'DBSystemId') as db_system_id, + json_extract_path_text(detail.Properties, 'CertificateDetails') as certificate_details, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'DBClusterIdentifier') as db_cluster_identifier, + json_extract_path_text(detail.Properties, 'StorageThroughput') as storage_throughput, + json_extract_path_text(detail.Properties, 'DbiResourceId') as dbi_resource_id, + json_extract_path_text(detail.Properties, 'MonitoringInterval') as monitoring_interval, + json_extract_path_text(detail.Properties, 'DBParameterGroupName') as db_parameter_group_name, + json_extract_path_text(detail.Properties, 'DBInstanceArn') as db_instance_arn, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'TdeCredentialArn') as tde_credential_arn, + json_extract_path_text(detail.Properties, 'AutomaticBackupReplicationKmsKeyId') as automatic_backup_replication_kms_key_id, + json_extract_path_text(detail.Properties, 'MultiAZ') as multi_az, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'PerformanceInsightsKMSKeyId') as performance_insights_kms_key_id, + json_extract_path_text(detail.Properties, 'TdeCredentialPassword') as tde_credential_password, + json_extract_path_text(detail.Properties, 'SourceDBInstanceIdentifier') as source_db_instance_identifier, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'StorageType') as storage_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'DBInstanceClass') as db_instance_class, + json_extract_path_text(detail.Properties, 'DeleteAutomatedBackups') as delete_automated_backups, + json_extract_path_text(detail.Properties, 'PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'OptionGroupName') as option_group_name, + json_extract_path_text(detail.Properties, 'EnablePerformanceInsights') as enable_performance_insights, + json_extract_path_text(detail.Properties, 'AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'DBInstanceIdentifier') as db_instance_identifier, + json_extract_path_text(detail.Properties, 'AllocatedStorage') as allocated_storage, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'MasterUserSecret') as master_user_secret, + json_extract_path_text(detail.Properties, 'NcharCharacterSetName') as nchar_character_set_name, + json_extract_path_text(detail.Properties, 'SourceDBClusterIdentifier') as source_db_cluster_identifier, + json_extract_path_text(detail.Properties, 'DBSecurityGroups') as db_security_groups, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'MaxAllocatedStorage') as max_allocated_storage, + json_extract_path_text(detail.Properties, 'PromotionTier') as promotion_tier, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'DomainFqdn') as domain_fqdn, + json_extract_path_text(detail.Properties, 'CharacterSetName') as character_set_name, + json_extract_path_text(detail.Properties, 'MonitoringRoleArn') as monitoring_role_arn, + json_extract_path_text(detail.Properties, 'AssociatedRoles') as associated_roles, + json_extract_path_text(detail.Properties, 'DomainOu') as domain_ou, + json_extract_path_text(detail.Properties, 'DBClusterSnapshotIdentifier') as db_cluster_snapshot_identifier, + json_extract_path_text(detail.Properties, 'SourceDBInstanceAutomatedBackupsArn') as source_db_instance_automated_backups_arn, + json_extract_path_text(detail.Properties, 'ProcessorFeatures') as processor_features, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'RestoreTime') as restore_time, + json_extract_path_text(detail.Properties, 'CertificateRotationRestart') as certificate_rotation_restart, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type, + json_extract_path_text(detail.Properties, 'DedicatedLogVolume') as dedicated_log_volume, + json_extract_path_text(detail.Properties, 'CopyTagsToSnapshot') as copy_tags_to_snapshot, + json_extract_path_text(detail.Properties, 'DomainIAMRoleName') as domain_iam_role_name, + json_extract_path_text(detail.Properties, 'ReplicaMode') as replica_mode, + json_extract_path_text(detail.Properties, 'LicenseModel') as license_model, + json_extract_path_text(detail.Properties, 'DomainDnsIps') as domain_dns_ips, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'Iops') as iops, + json_extract_path_text(detail.Properties, 'SourceRegion') as source_region, + json_extract_path_text(detail.Properties, 'UseLatestRestorableTime') as use_latest_restorable_time, + json_extract_path_text(detail.Properties, 'CACertificateIdentifier') as ca_certificate_identifier, + json_extract_path_text(detail.Properties, 'ManageMasterUserPassword') as manage_master_user_password, + json_extract_path_text(detail.Properties, 'SourceDbiResourceId') as source_dbi_resource_id, + json_extract_path_text(detail.Properties, 'DomainAuthSecretArn') as domain_auth_secret_arn, + json_extract_path_text(detail.Properties, 'AutomaticBackupReplicationRegion') as automatic_backup_replication_region, + json_extract_path_text(detail.Properties, 'VPCSecurityGroups') as vpc_security_groups, + json_extract_path_text(detail.Properties, 'AllowMajorVersionUpgrade') as allow_major_version_upgrade, + json_extract_path_text(detail.Properties, 'DBName') as db_name, + json_extract_path_text(detail.Properties, 'EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'CustomIAMInstanceProfile') as custom_iam_instance_profile, + json_extract_path_text(detail.Properties, 'DBSnapshotIdentifier') as db_snapshot_identifier, + json_extract_path_text(detail.Properties, 'EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + json_extract_path_text(detail.Properties, 'UseDefaultProcessorFeatures') as use_default_processor_features + 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::RDS::DBInstance' + AND detail.data__TypeName = 'AWS::RDS::DBInstance' + AND listing.region = 'us-east-1' + db_instances_list_only: + name: db_instances_list_only + id: aws.rds.db_instances_list_only + x-cfn-schema-name: DBInstance + x-cfn-type-name: AWS::RDS::DBInstance + x-identifiers: + - DBInstanceIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBInstanceIdentifier') as db_instance_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBInstance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBInstanceIdentifier') as db_instance_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBInstance' + AND region = 'us-east-1' + db_instance_tags: + name: db_instance_tags + id: aws.rds.db_instance_tags + x-cfn-schema-name: DBInstance + x-cfn-type-name: AWS::RDS::DBInstance + 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, '$.StorageEncrypted') as storage_encrypted, + JSON_EXTRACT(detail.Properties, '$.Timezone') as timezone, + JSON_EXTRACT(detail.Properties, '$.DBSystemId') as db_system_id, + JSON_EXTRACT(detail.Properties, '$.CertificateDetails') as certificate_details, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.DBClusterIdentifier') as db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.StorageThroughput') as storage_throughput, + JSON_EXTRACT(detail.Properties, '$.DbiResourceId') as dbi_resource_id, + JSON_EXTRACT(detail.Properties, '$.MonitoringInterval') as monitoring_interval, + JSON_EXTRACT(detail.Properties, '$.DBParameterGroupName') as db_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DBInstanceArn') as db_instance_arn, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.TdeCredentialArn') as tde_credential_arn, + JSON_EXTRACT(detail.Properties, '$.AutomaticBackupReplicationKmsKeyId') as automatic_backup_replication_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.MultiAZ') as multi_az, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsKMSKeyId') as performance_insights_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.TdeCredentialPassword') as tde_credential_password, + JSON_EXTRACT(detail.Properties, '$.SourceDBInstanceIdentifier') as source_db_instance_identifier, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.StorageType') as storage_type, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.DBInstanceClass') as db_instance_class, + JSON_EXTRACT(detail.Properties, '$.DeleteAutomatedBackups') as delete_automated_backups, + JSON_EXTRACT(detail.Properties, '$.PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.OptionGroupName') as option_group_name, + JSON_EXTRACT(detail.Properties, '$.EnablePerformanceInsights') as enable_performance_insights, + JSON_EXTRACT(detail.Properties, '$.AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.DBInstanceIdentifier') as db_instance_identifier, + JSON_EXTRACT(detail.Properties, '$.AllocatedStorage') as allocated_storage, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.MasterUserSecret') as master_user_secret, + JSON_EXTRACT(detail.Properties, '$.NcharCharacterSetName') as nchar_character_set_name, + JSON_EXTRACT(detail.Properties, '$.SourceDBClusterIdentifier') as source_db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.DBSecurityGroups') as db_security_groups, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.MaxAllocatedStorage') as max_allocated_storage, + JSON_EXTRACT(detail.Properties, '$.PromotionTier') as promotion_tier, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.DomainFqdn') as domain_fqdn, + JSON_EXTRACT(detail.Properties, '$.CharacterSetName') as character_set_name, + JSON_EXTRACT(detail.Properties, '$.MonitoringRoleArn') as monitoring_role_arn, + JSON_EXTRACT(detail.Properties, '$.AssociatedRoles') as associated_roles, + JSON_EXTRACT(detail.Properties, '$.DomainOu') as domain_ou, + JSON_EXTRACT(detail.Properties, '$.DBClusterSnapshotIdentifier') as db_cluster_snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.SourceDBInstanceAutomatedBackupsArn') as source_db_instance_automated_backups_arn, + JSON_EXTRACT(detail.Properties, '$.ProcessorFeatures') as processor_features, + JSON_EXTRACT(detail.Properties, '$.PreferredBackupWindow') as preferred_backup_window, + JSON_EXTRACT(detail.Properties, '$.RestoreTime') as restore_time, + JSON_EXTRACT(detail.Properties, '$.CertificateRotationRestart') as certificate_rotation_restart, + JSON_EXTRACT(detail.Properties, '$.NetworkType') as network_type, + JSON_EXTRACT(detail.Properties, '$.DedicatedLogVolume') as dedicated_log_volume, + JSON_EXTRACT(detail.Properties, '$.CopyTagsToSnapshot') as copy_tags_to_snapshot, + JSON_EXTRACT(detail.Properties, '$.DomainIAMRoleName') as domain_iam_role_name, + JSON_EXTRACT(detail.Properties, '$.ReplicaMode') as replica_mode, + JSON_EXTRACT(detail.Properties, '$.LicenseModel') as license_model, + JSON_EXTRACT(detail.Properties, '$.DomainDnsIps') as domain_dns_ips, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.Iops') as iops, + JSON_EXTRACT(detail.Properties, '$.SourceRegion') as source_region, + JSON_EXTRACT(detail.Properties, '$.UseLatestRestorableTime') as use_latest_restorable_time, + JSON_EXTRACT(detail.Properties, '$.CACertificateIdentifier') as ca_certificate_identifier, + JSON_EXTRACT(detail.Properties, '$.ManageMasterUserPassword') as manage_master_user_password, + JSON_EXTRACT(detail.Properties, '$.SourceDbiResourceId') as source_dbi_resource_id, + JSON_EXTRACT(detail.Properties, '$.DomainAuthSecretArn') as domain_auth_secret_arn, + JSON_EXTRACT(detail.Properties, '$.AutomaticBackupReplicationRegion') as automatic_backup_replication_region, + JSON_EXTRACT(detail.Properties, '$.VPCSecurityGroups') as vpc_security_groups, + JSON_EXTRACT(detail.Properties, '$.AllowMajorVersionUpgrade') as allow_major_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.DBName') as db_name, + JSON_EXTRACT(detail.Properties, '$.EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + JSON_EXTRACT(detail.Properties, '$.BackupRetentionPeriod') as backup_retention_period, + JSON_EXTRACT(detail.Properties, '$.CustomIAMInstanceProfile') as custom_iam_instance_profile, + JSON_EXTRACT(detail.Properties, '$.DBSnapshotIdentifier') as db_snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + JSON_EXTRACT(detail.Properties, '$.UseDefaultProcessorFeatures') as use_default_processor_features + 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::RDS::DBInstance' + AND detail.data__TypeName = 'AWS::RDS::DBInstance' + 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, 'StorageEncrypted') as storage_encrypted, + json_extract_path_text(detail.Properties, 'Timezone') as timezone, + json_extract_path_text(detail.Properties, 'DBSystemId') as db_system_id, + json_extract_path_text(detail.Properties, 'CertificateDetails') as certificate_details, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'DBClusterIdentifier') as db_cluster_identifier, + json_extract_path_text(detail.Properties, 'StorageThroughput') as storage_throughput, + json_extract_path_text(detail.Properties, 'DbiResourceId') as dbi_resource_id, + json_extract_path_text(detail.Properties, 'MonitoringInterval') as monitoring_interval, + json_extract_path_text(detail.Properties, 'DBParameterGroupName') as db_parameter_group_name, + json_extract_path_text(detail.Properties, 'DBInstanceArn') as db_instance_arn, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'TdeCredentialArn') as tde_credential_arn, + json_extract_path_text(detail.Properties, 'AutomaticBackupReplicationKmsKeyId') as automatic_backup_replication_kms_key_id, + json_extract_path_text(detail.Properties, 'MultiAZ') as multi_az, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'PerformanceInsightsKMSKeyId') as performance_insights_kms_key_id, + json_extract_path_text(detail.Properties, 'TdeCredentialPassword') as tde_credential_password, + json_extract_path_text(detail.Properties, 'SourceDBInstanceIdentifier') as source_db_instance_identifier, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'StorageType') as storage_type, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'DBInstanceClass') as db_instance_class, + json_extract_path_text(detail.Properties, 'DeleteAutomatedBackups') as delete_automated_backups, + json_extract_path_text(detail.Properties, 'PerformanceInsightsRetentionPeriod') as performance_insights_retention_period, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'OptionGroupName') as option_group_name, + json_extract_path_text(detail.Properties, 'EnablePerformanceInsights') as enable_performance_insights, + json_extract_path_text(detail.Properties, 'AutoMinorVersionUpgrade') as auto_minor_version_upgrade, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'DBInstanceIdentifier') as db_instance_identifier, + json_extract_path_text(detail.Properties, 'AllocatedStorage') as allocated_storage, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'MasterUserSecret') as master_user_secret, + json_extract_path_text(detail.Properties, 'NcharCharacterSetName') as nchar_character_set_name, + json_extract_path_text(detail.Properties, 'SourceDBClusterIdentifier') as source_db_cluster_identifier, + json_extract_path_text(detail.Properties, 'DBSecurityGroups') as db_security_groups, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'MaxAllocatedStorage') as max_allocated_storage, + json_extract_path_text(detail.Properties, 'PromotionTier') as promotion_tier, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'DomainFqdn') as domain_fqdn, + json_extract_path_text(detail.Properties, 'CharacterSetName') as character_set_name, + json_extract_path_text(detail.Properties, 'MonitoringRoleArn') as monitoring_role_arn, + json_extract_path_text(detail.Properties, 'AssociatedRoles') as associated_roles, + json_extract_path_text(detail.Properties, 'DomainOu') as domain_ou, + json_extract_path_text(detail.Properties, 'DBClusterSnapshotIdentifier') as db_cluster_snapshot_identifier, + json_extract_path_text(detail.Properties, 'SourceDBInstanceAutomatedBackupsArn') as source_db_instance_automated_backups_arn, + json_extract_path_text(detail.Properties, 'ProcessorFeatures') as processor_features, + json_extract_path_text(detail.Properties, 'PreferredBackupWindow') as preferred_backup_window, + json_extract_path_text(detail.Properties, 'RestoreTime') as restore_time, + json_extract_path_text(detail.Properties, 'CertificateRotationRestart') as certificate_rotation_restart, + json_extract_path_text(detail.Properties, 'NetworkType') as network_type, + json_extract_path_text(detail.Properties, 'DedicatedLogVolume') as dedicated_log_volume, + json_extract_path_text(detail.Properties, 'CopyTagsToSnapshot') as copy_tags_to_snapshot, + json_extract_path_text(detail.Properties, 'DomainIAMRoleName') as domain_iam_role_name, + json_extract_path_text(detail.Properties, 'ReplicaMode') as replica_mode, + json_extract_path_text(detail.Properties, 'LicenseModel') as license_model, + json_extract_path_text(detail.Properties, 'DomainDnsIps') as domain_dns_ips, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'Iops') as iops, + json_extract_path_text(detail.Properties, 'SourceRegion') as source_region, + json_extract_path_text(detail.Properties, 'UseLatestRestorableTime') as use_latest_restorable_time, + json_extract_path_text(detail.Properties, 'CACertificateIdentifier') as ca_certificate_identifier, + json_extract_path_text(detail.Properties, 'ManageMasterUserPassword') as manage_master_user_password, + json_extract_path_text(detail.Properties, 'SourceDbiResourceId') as source_dbi_resource_id, + json_extract_path_text(detail.Properties, 'DomainAuthSecretArn') as domain_auth_secret_arn, + json_extract_path_text(detail.Properties, 'AutomaticBackupReplicationRegion') as automatic_backup_replication_region, + json_extract_path_text(detail.Properties, 'VPCSecurityGroups') as vpc_security_groups, + json_extract_path_text(detail.Properties, 'AllowMajorVersionUpgrade') as allow_major_version_upgrade, + json_extract_path_text(detail.Properties, 'DBName') as db_name, + json_extract_path_text(detail.Properties, 'EnableIAMDatabaseAuthentication') as enable_iam_database_authentication, + json_extract_path_text(detail.Properties, 'BackupRetentionPeriod') as backup_retention_period, + json_extract_path_text(detail.Properties, 'CustomIAMInstanceProfile') as custom_iam_instance_profile, + json_extract_path_text(detail.Properties, 'DBSnapshotIdentifier') as db_snapshot_identifier, + json_extract_path_text(detail.Properties, 'EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports, + json_extract_path_text(detail.Properties, 'UseDefaultProcessorFeatures') as use_default_processor_features + 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::RDS::DBInstance' + AND detail.data__TypeName = 'AWS::RDS::DBInstance' + AND listing.region = 'us-east-1' db_parameter_groups: name: db_parameter_groups id: aws.rds.db_parameter_groups @@ -5325,10 +6274,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBParameterGroupName') as db_parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBParameterGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DBParameterGroupName') as db_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RDS::DBParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBParameterGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5347,10 +6305,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBParameterGroupName') as db_parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBParameterGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DBParameterGroupName') as db_parameter_group_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RDS::DBParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBParameterGroup' + AND listing.region = 'us-east-1' + db_parameter_groups_list_only: + name: db_parameter_groups_list_only + id: aws.rds.db_parameter_groups_list_only + x-cfn-schema-name: DBParameterGroup + x-cfn-type-name: AWS::RDS::DBParameterGroup + x-identifiers: + - DBParameterGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBParameterGroupName') as db_parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBParameterGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBParameterGroupName') as db_parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBParameterGroup' + AND region = 'us-east-1' + db_parameter_group_tags: + name: db_parameter_group_tags + id: aws.rds.db_parameter_group_tags + x-cfn-schema-name: DBParameterGroup + x-cfn-type-name: AWS::RDS::DBParameterGroup + 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, '$.DBParameterGroupName') as db_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Family') as family, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters + 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::RDS::DBParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBParameterGroup' + 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, 'DBParameterGroupName') as db_parameter_group_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Family') as family, + json_extract_path_text(detail.Properties, 'Parameters') as parameters + 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::RDS::DBParameterGroup' + AND detail.data__TypeName = 'AWS::RDS::DBParameterGroup' + AND listing.region = 'us-east-1' db_proxies: name: db_proxies id: aws.rds.db_proxies @@ -5434,10 +6483,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBProxyName') as db_proxy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Auth') as auth, + JSON_EXTRACT(detail.Properties, '$.DBProxyArn') as db_proxy_arn, + JSON_EXTRACT(detail.Properties, '$.DBProxyName') as db_proxy_name, + JSON_EXTRACT(detail.Properties, '$.DebugLogging') as debug_logging, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.EngineFamily') as engine_family, + JSON_EXTRACT(detail.Properties, '$.IdleClientTimeout') as idle_client_timeout, + JSON_EXTRACT(detail.Properties, '$.RequireTLS') as require_tls, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.VpcSubnetIds') as vpc_subnet_ids + 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::RDS::DBProxy' + AND detail.data__TypeName = 'AWS::RDS::DBProxy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5464,10 +6530,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBProxyName') as db_proxy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Auth') as auth, + json_extract_path_text(detail.Properties, 'DBProxyArn') as db_proxy_arn, + json_extract_path_text(detail.Properties, 'DBProxyName') as db_proxy_name, + json_extract_path_text(detail.Properties, 'DebugLogging') as debug_logging, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'EngineFamily') as engine_family, + json_extract_path_text(detail.Properties, 'IdleClientTimeout') as idle_client_timeout, + json_extract_path_text(detail.Properties, 'RequireTLS') as require_tls, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'VpcSubnetIds') as vpc_subnet_ids + 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::RDS::DBProxy' + AND detail.data__TypeName = 'AWS::RDS::DBProxy' + AND listing.region = 'us-east-1' + db_proxies_list_only: + name: db_proxies_list_only + id: aws.rds.db_proxies_list_only + x-cfn-schema-name: DBProxy + x-cfn-type-name: AWS::RDS::DBProxy + x-identifiers: + - DBProxyName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBProxyName') as db_proxy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBProxyName') as db_proxy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxy' + AND region = 'us-east-1' + db_proxy_tags: + name: db_proxy_tags + id: aws.rds.db_proxy_tags + x-cfn-schema-name: DBProxy + x-cfn-type-name: AWS::RDS::DBProxy + 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, '$.Auth') as auth, + JSON_EXTRACT(detail.Properties, '$.DBProxyArn') as db_proxy_arn, + JSON_EXTRACT(detail.Properties, '$.DBProxyName') as db_proxy_name, + JSON_EXTRACT(detail.Properties, '$.DebugLogging') as debug_logging, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.EngineFamily') as engine_family, + JSON_EXTRACT(detail.Properties, '$.IdleClientTimeout') as idle_client_timeout, + JSON_EXTRACT(detail.Properties, '$.RequireTLS') as require_tls, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.VpcSubnetIds') as vpc_subnet_ids + 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::RDS::DBProxy' + AND detail.data__TypeName = 'AWS::RDS::DBProxy' + 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, 'Auth') as auth, + json_extract_path_text(detail.Properties, 'DBProxyArn') as db_proxy_arn, + json_extract_path_text(detail.Properties, 'DBProxyName') as db_proxy_name, + json_extract_path_text(detail.Properties, 'DebugLogging') as debug_logging, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'EngineFamily') as engine_family, + json_extract_path_text(detail.Properties, 'IdleClientTimeout') as idle_client_timeout, + json_extract_path_text(detail.Properties, 'RequireTLS') as require_tls, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'VpcSubnetIds') as vpc_subnet_ids + 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::RDS::DBProxy' + AND detail.data__TypeName = 'AWS::RDS::DBProxy' + AND listing.region = 'us-east-1' db_proxy_endpoints: name: db_proxy_endpoints id: aws.rds.db_proxy_endpoints @@ -5548,10 +6729,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBProxyEndpointName') as db_proxy_endpoint_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyEndpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DBProxyEndpointName') as db_proxy_endpoint_name, + JSON_EXTRACT(detail.Properties, '$.DBProxyEndpointArn') as db_proxy_endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.DBProxyName') as db_proxy_name, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.VpcSubnetIds') as vpc_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.TargetRole') as target_role, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RDS::DBProxyEndpoint' + AND detail.data__TypeName = 'AWS::RDS::DBProxyEndpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5575,10 +6770,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBProxyEndpointName') as db_proxy_endpoint_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyEndpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DBProxyEndpointName') as db_proxy_endpoint_name, + json_extract_path_text(detail.Properties, 'DBProxyEndpointArn') as db_proxy_endpoint_arn, + json_extract_path_text(detail.Properties, 'DBProxyName') as db_proxy_name, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'VpcSubnetIds') as vpc_subnet_ids, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'TargetRole') as target_role, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RDS::DBProxyEndpoint' + AND detail.data__TypeName = 'AWS::RDS::DBProxyEndpoint' + AND listing.region = 'us-east-1' + db_proxy_endpoints_list_only: + name: db_proxy_endpoints_list_only + id: aws.rds.db_proxy_endpoints_list_only + x-cfn-schema-name: DBProxyEndpoint + x-cfn-type-name: AWS::RDS::DBProxyEndpoint + x-identifiers: + - DBProxyEndpointName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBProxyEndpointName') as db_proxy_endpoint_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyEndpoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBProxyEndpointName') as db_proxy_endpoint_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyEndpoint' + AND region = 'us-east-1' + db_proxy_endpoint_tags: + name: db_proxy_endpoint_tags + id: aws.rds.db_proxy_endpoint_tags + x-cfn-schema-name: DBProxyEndpoint + x-cfn-type-name: AWS::RDS::DBProxyEndpoint + 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, '$.DBProxyEndpointName') as db_proxy_endpoint_name, + JSON_EXTRACT(detail.Properties, '$.DBProxyEndpointArn') as db_proxy_endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.DBProxyName') as db_proxy_name, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.VpcSubnetIds') as vpc_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.TargetRole') as target_role, + JSON_EXTRACT(detail.Properties, '$.IsDefault') as is_default + 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::RDS::DBProxyEndpoint' + AND detail.data__TypeName = 'AWS::RDS::DBProxyEndpoint' + 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, 'DBProxyEndpointName') as db_proxy_endpoint_name, + json_extract_path_text(detail.Properties, 'DBProxyEndpointArn') as db_proxy_endpoint_arn, + json_extract_path_text(detail.Properties, 'DBProxyName') as db_proxy_name, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'VpcSubnetIds') as vpc_subnet_ids, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'TargetRole') as target_role, + json_extract_path_text(detail.Properties, 'IsDefault') as is_default + 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::RDS::DBProxyEndpoint' + AND detail.data__TypeName = 'AWS::RDS::DBProxyEndpoint' + AND listing.region = 'us-east-1' db_proxy_target_groups: name: db_proxy_target_groups id: aws.rds.db_proxy_target_groups @@ -5655,10 +6956,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TargetGroupArn') as target_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyTargetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DBProxyName') as db_proxy_name, + JSON_EXTRACT(detail.Properties, '$.TargetGroupArn') as target_group_arn, + JSON_EXTRACT(detail.Properties, '$.TargetGroupName') as target_group_name, + JSON_EXTRACT(detail.Properties, '$.ConnectionPoolConfigurationInfo') as connection_pool_configuration_info, + JSON_EXTRACT(detail.Properties, '$.DBInstanceIdentifiers') as db_instance_identifiers, + JSON_EXTRACT(detail.Properties, '$.DBClusterIdentifiers') as db_cluster_identifiers + 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::RDS::DBProxyTargetGroup' + AND detail.data__TypeName = 'AWS::RDS::DBProxyTargetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5678,10 +6989,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TargetGroupArn') as target_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyTargetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DBProxyName') as db_proxy_name, + json_extract_path_text(detail.Properties, 'TargetGroupArn') as target_group_arn, + json_extract_path_text(detail.Properties, 'TargetGroupName') as target_group_name, + json_extract_path_text(detail.Properties, 'ConnectionPoolConfigurationInfo') as connection_pool_configuration_info, + json_extract_path_text(detail.Properties, 'DBInstanceIdentifiers') as db_instance_identifiers, + json_extract_path_text(detail.Properties, 'DBClusterIdentifiers') as db_cluster_identifiers + 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::RDS::DBProxyTargetGroup' + AND detail.data__TypeName = 'AWS::RDS::DBProxyTargetGroup' + AND listing.region = 'us-east-1' + db_proxy_target_groups_list_only: + name: db_proxy_target_groups_list_only + id: aws.rds.db_proxy_target_groups_list_only + x-cfn-schema-name: DBProxyTargetGroup + x-cfn-type-name: AWS::RDS::DBProxyTargetGroup + x-identifiers: + - TargetGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TargetGroupArn') as target_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyTargetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TargetGroupArn') as target_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBProxyTargetGroup' + AND region = 'us-east-1' db_subnet_groups: name: db_subnet_groups id: aws.rds.db_subnet_groups @@ -5756,10 +7108,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DBSubnetGroupName') as db_subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBSubnetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupDescription') as db_subnet_group_description, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RDS::DBSubnetGroup' + AND detail.data__TypeName = 'AWS::RDS::DBSubnetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5777,10 +7137,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DBSubnetGroupName') as db_subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBSubnetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DBSubnetGroupDescription') as db_subnet_group_description, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RDS::DBSubnetGroup' + AND detail.data__TypeName = 'AWS::RDS::DBSubnetGroup' + AND listing.region = 'us-east-1' + db_subnet_groups_list_only: + name: db_subnet_groups_list_only + id: aws.rds.db_subnet_groups_list_only + x-cfn-schema-name: DBSubnetGroup + x-cfn-type-name: AWS::RDS::DBSubnetGroup + x-identifiers: + - DBSubnetGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DBSubnetGroupName') as db_subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBSubnetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DBSubnetGroupName') as db_subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::DBSubnetGroup' + AND region = 'us-east-1' + db_subnet_group_tags: + name: db_subnet_group_tags + id: aws.rds.db_subnet_group_tags + x-cfn-schema-name: DBSubnetGroup + x-cfn-type-name: AWS::RDS::DBSubnetGroup + 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, '$.DBSubnetGroupDescription') as db_subnet_group_description, + JSON_EXTRACT(detail.Properties, '$.DBSubnetGroupName') as db_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids + 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::RDS::DBSubnetGroup' + AND detail.data__TypeName = 'AWS::RDS::DBSubnetGroup' + 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, 'DBSubnetGroupDescription') as db_subnet_group_description, + json_extract_path_text(detail.Properties, 'DBSubnetGroupName') as db_subnet_group_name, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids + 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::RDS::DBSubnetGroup' + AND detail.data__TypeName = 'AWS::RDS::DBSubnetGroup' + AND listing.region = 'us-east-1' event_subscriptions: name: event_subscriptions id: aws.rds.event_subscriptions @@ -5858,10 +7306,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SubscriptionName') as subscription_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::EventSubscription' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SubscriptionName') as subscription_name, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.EventCategories') as event_categories, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.SourceIds') as source_ids, + JSON_EXTRACT(detail.Properties, '$.SourceType') as source_type + 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::RDS::EventSubscription' + AND detail.data__TypeName = 'AWS::RDS::EventSubscription' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5882,10 +7341,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SubscriptionName') as subscription_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::EventSubscription' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SubscriptionName') as subscription_name, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'EventCategories') as event_categories, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'SourceIds') as source_ids, + json_extract_path_text(detail.Properties, 'SourceType') as source_type + 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::RDS::EventSubscription' + AND detail.data__TypeName = 'AWS::RDS::EventSubscription' + AND listing.region = 'us-east-1' + event_subscriptions_list_only: + name: event_subscriptions_list_only + id: aws.rds.event_subscriptions_list_only + x-cfn-schema-name: EventSubscription + x-cfn-type-name: AWS::RDS::EventSubscription + x-identifiers: + - SubscriptionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SubscriptionName') as subscription_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::EventSubscription' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SubscriptionName') as subscription_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::EventSubscription' + AND region = 'us-east-1' + event_subscription_tags: + name: event_subscription_tags + id: aws.rds.event_subscription_tags + x-cfn-schema-name: EventSubscription + x-cfn-type-name: AWS::RDS::EventSubscription + 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, '$.SubscriptionName') as subscription_name, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.EventCategories') as event_categories, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.SourceIds') as source_ids, + JSON_EXTRACT(detail.Properties, '$.SourceType') as source_type + 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::RDS::EventSubscription' + AND detail.data__TypeName = 'AWS::RDS::EventSubscription' + 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, 'SubscriptionName') as subscription_name, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'EventCategories') as event_categories, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'SourceIds') as source_ids, + json_extract_path_text(detail.Properties, 'SourceType') as source_type + 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::RDS::EventSubscription' + AND detail.data__TypeName = 'AWS::RDS::EventSubscription' + AND listing.region = 'us-east-1' global_clusters: name: global_clusters id: aws.rds.global_clusters @@ -5962,10 +7518,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GlobalClusterIdentifier') as global_cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::GlobalCluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Engine') as engine, + JSON_EXTRACT(detail.Properties, '$.EngineVersion') as engine_version, + JSON_EXTRACT(detail.Properties, '$.DeletionProtection') as deletion_protection, + JSON_EXTRACT(detail.Properties, '$.GlobalClusterIdentifier') as global_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.SourceDBClusterIdentifier') as source_db_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.StorageEncrypted') as storage_encrypted + 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::RDS::GlobalCluster' + AND detail.data__TypeName = 'AWS::RDS::GlobalCluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -5985,10 +7551,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GlobalClusterIdentifier') as global_cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::GlobalCluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Engine') as engine, + json_extract_path_text(detail.Properties, 'EngineVersion') as engine_version, + json_extract_path_text(detail.Properties, 'DeletionProtection') as deletion_protection, + json_extract_path_text(detail.Properties, 'GlobalClusterIdentifier') as global_cluster_identifier, + json_extract_path_text(detail.Properties, 'SourceDBClusterIdentifier') as source_db_cluster_identifier, + json_extract_path_text(detail.Properties, 'StorageEncrypted') as storage_encrypted + 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::RDS::GlobalCluster' + AND detail.data__TypeName = 'AWS::RDS::GlobalCluster' + AND listing.region = 'us-east-1' + global_clusters_list_only: + name: global_clusters_list_only + id: aws.rds.global_clusters_list_only + x-cfn-schema-name: GlobalCluster + x-cfn-type-name: AWS::RDS::GlobalCluster + x-identifiers: + - GlobalClusterIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GlobalClusterIdentifier') as global_cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::GlobalCluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GlobalClusterIdentifier') as global_cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::GlobalCluster' + AND region = 'us-east-1' integrations: name: integrations id: aws.rds.integrations @@ -6069,10 +7676,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IntegrationArn') as integration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::Integration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IntegrationName') as integration_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.DataFilter') as data_filter, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.IntegrationArn') as integration_arn, + JSON_EXTRACT(detail.Properties, '$.KMSKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time + 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::RDS::Integration' + AND detail.data__TypeName = 'AWS::RDS::Integration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6096,10 +7717,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IntegrationArn') as integration_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::Integration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IntegrationName') as integration_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'DataFilter') as data_filter, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'IntegrationArn') as integration_arn, + json_extract_path_text(detail.Properties, 'KMSKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time + 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::RDS::Integration' + AND detail.data__TypeName = 'AWS::RDS::Integration' + AND listing.region = 'us-east-1' + integrations_list_only: + name: integrations_list_only + id: aws.rds.integrations_list_only + x-cfn-schema-name: Integration + x-cfn-type-name: AWS::RDS::Integration + x-identifiers: + - IntegrationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IntegrationArn') as integration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::Integration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IntegrationArn') as integration_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::Integration' + AND region = 'us-east-1' + integration_tags: + name: integration_tags + id: aws.rds.integration_tags + x-cfn-schema-name: Integration + x-cfn-type-name: AWS::RDS::Integration + 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, '$.IntegrationName') as integration_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DataFilter') as data_filter, + JSON_EXTRACT(detail.Properties, '$.SourceArn') as source_arn, + JSON_EXTRACT(detail.Properties, '$.TargetArn') as target_arn, + JSON_EXTRACT(detail.Properties, '$.IntegrationArn') as integration_arn, + JSON_EXTRACT(detail.Properties, '$.KMSKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.CreateTime') as create_time + 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::RDS::Integration' + AND detail.data__TypeName = 'AWS::RDS::Integration' + 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, 'IntegrationName') as integration_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DataFilter') as data_filter, + json_extract_path_text(detail.Properties, 'SourceArn') as source_arn, + json_extract_path_text(detail.Properties, 'TargetArn') as target_arn, + json_extract_path_text(detail.Properties, 'IntegrationArn') as integration_arn, + json_extract_path_text(detail.Properties, 'KMSKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'CreateTime') as create_time + 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::RDS::Integration' + AND detail.data__TypeName = 'AWS::RDS::Integration' + AND listing.region = 'us-east-1' option_groups: name: option_groups id: aws.rds.option_groups @@ -6176,10 +7903,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.OptionGroupName') as option_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::OptionGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.OptionGroupName') as option_group_name, + JSON_EXTRACT(detail.Properties, '$.OptionGroupDescription') as option_group_description, + JSON_EXTRACT(detail.Properties, '$.EngineName') as engine_name, + JSON_EXTRACT(detail.Properties, '$.MajorEngineVersion') as major_engine_version, + JSON_EXTRACT(detail.Properties, '$.OptionConfigurations') as option_configurations, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RDS::OptionGroup' + AND detail.data__TypeName = 'AWS::RDS::OptionGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -6199,10 +7936,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'OptionGroupName') as option_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::OptionGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'OptionGroupName') as option_group_name, + json_extract_path_text(detail.Properties, 'OptionGroupDescription') as option_group_description, + json_extract_path_text(detail.Properties, 'EngineName') as engine_name, + json_extract_path_text(detail.Properties, 'MajorEngineVersion') as major_engine_version, + json_extract_path_text(detail.Properties, 'OptionConfigurations') as option_configurations, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RDS::OptionGroup' + AND detail.data__TypeName = 'AWS::RDS::OptionGroup' + AND listing.region = 'us-east-1' + option_groups_list_only: + name: option_groups_list_only + id: aws.rds.option_groups_list_only + x-cfn-schema-name: OptionGroup + x-cfn-type-name: AWS::RDS::OptionGroup + x-identifiers: + - OptionGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.OptionGroupName') as option_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::OptionGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'OptionGroupName') as option_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RDS::OptionGroup' + AND region = 'us-east-1' + option_group_tags: + name: option_group_tags + id: aws.rds.option_group_tags + x-cfn-schema-name: OptionGroup + x-cfn-type-name: AWS::RDS::OptionGroup + 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, '$.OptionGroupName') as option_group_name, + JSON_EXTRACT(detail.Properties, '$.OptionGroupDescription') as option_group_description, + JSON_EXTRACT(detail.Properties, '$.EngineName') as engine_name, + JSON_EXTRACT(detail.Properties, '$.MajorEngineVersion') as major_engine_version, + JSON_EXTRACT(detail.Properties, '$.OptionConfigurations') as option_configurations + 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::RDS::OptionGroup' + AND detail.data__TypeName = 'AWS::RDS::OptionGroup' + 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, 'OptionGroupName') as option_group_name, + json_extract_path_text(detail.Properties, 'OptionGroupDescription') as option_group_description, + json_extract_path_text(detail.Properties, 'EngineName') as engine_name, + json_extract_path_text(detail.Properties, 'MajorEngineVersion') as major_engine_version, + json_extract_path_text(detail.Properties, 'OptionConfigurations') as option_configurations + 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::RDS::OptionGroup' + AND detail.data__TypeName = 'AWS::RDS::OptionGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/redshift.yaml b/providers/src/aws/v00.00.00000/services/redshift.yaml index a3600218..54026c3b 100644 --- a/providers/src/aws/v00.00.00000/services/redshift.yaml +++ b/providers/src/aws/v00.00.00000/services/redshift.yaml @@ -2311,10 +2311,69 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterIdentifier') as cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::Cluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RevisionTarget') as revision_target, + JSON_EXTRACT(detail.Properties, '$.AutomatedSnapshotRetentionPeriod') as automated_snapshot_retention_period, + JSON_EXTRACT(detail.Properties, '$.Encrypted') as encrypted, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.NumberOfNodes') as number_of_nodes, + JSON_EXTRACT(detail.Properties, '$.DestinationRegion') as destination_region, + JSON_EXTRACT(detail.Properties, '$.AllowVersionUpgrade') as allow_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.NamespaceResourcePolicy') as namespace_resource_policy, + JSON_EXTRACT(detail.Properties, '$.MaintenanceTrackName') as maintenance_track_name, + JSON_EXTRACT(detail.Properties, '$.OwnerAccount') as owner_account, + JSON_EXTRACT(detail.Properties, '$.MultiAZ') as multi_az, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SnapshotClusterIdentifier') as snapshot_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.IamRoles') as iam_roles, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyManual') as snapshot_copy_manual, + JSON_EXTRACT(detail.Properties, '$.ManageMasterPassword') as manage_master_password, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.ClusterSecurityGroups') as cluster_security_groups, + JSON_EXTRACT(detail.Properties, '$.ClusterIdentifier') as cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.ClusterSubnetGroupName') as cluster_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.LoggingProperties') as logging_properties, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenance') as defer_maintenance, + JSON_EXTRACT(detail.Properties, '$.NodeType') as node_type, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceIdentifier') as defer_maintenance_identifier, + JSON_EXTRACT(detail.Properties, '$.ManualSnapshotRetentionPeriod') as manual_snapshot_retention_period, + JSON_EXTRACT(detail.Properties, '$.ResourceAction') as resource_action, + JSON_EXTRACT(detail.Properties, '$.HsmClientCertificateIdentifier') as hsm_client_certificate_identifier, + JSON_EXTRACT(detail.Properties, '$.ElasticIp') as elastic_ip, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZoneRelocationStatus') as availability_zone_relocation_status, + JSON_EXTRACT(detail.Properties, '$.AquaConfigurationStatus') as aqua_configuration_status, + JSON_EXTRACT(detail.Properties, '$.SnapshotIdentifier') as snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZoneRelocation') as availability_zone_relocation, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyGrantName') as snapshot_copy_grant_name, + JSON_EXTRACT(detail.Properties, '$.EnhancedVpcRouting') as enhanced_vpc_routing, + JSON_EXTRACT(detail.Properties, '$.ClusterParameterGroupName') as cluster_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceEndTime') as defer_maintenance_end_time, + JSON_EXTRACT(detail.Properties, '$.RotateEncryptionKey') as rotate_encryption_key, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.ClusterNamespaceArn') as cluster_namespace_arn, + JSON_EXTRACT(detail.Properties, '$.MasterPasswordSecretArn') as master_password_secret_arn, + JSON_EXTRACT(detail.Properties, '$.ClusterVersion') as cluster_version, + JSON_EXTRACT(detail.Properties, '$.HsmConfigurationIdentifier') as hsm_configuration_identifier, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceStartTime') as defer_maintenance_start_time, + JSON_EXTRACT(detail.Properties, '$.ClusterType') as cluster_type, + JSON_EXTRACT(detail.Properties, '$.Classic') as classic, + JSON_EXTRACT(detail.Properties, '$.MasterPasswordSecretKmsKeyId') as master_password_secret_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceDuration') as defer_maintenance_duration, + JSON_EXTRACT(detail.Properties, '$.DBName') as db_name, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyRetentionPeriod') as snapshot_copy_retention_period + 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::Redshift::Cluster' + AND detail.data__TypeName = 'AWS::Redshift::Cluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2383,10 +2442,251 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterIdentifier') as cluster_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::Cluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RevisionTarget') as revision_target, + json_extract_path_text(detail.Properties, 'AutomatedSnapshotRetentionPeriod') as automated_snapshot_retention_period, + json_extract_path_text(detail.Properties, 'Encrypted') as encrypted, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'NumberOfNodes') as number_of_nodes, + json_extract_path_text(detail.Properties, 'DestinationRegion') as destination_region, + json_extract_path_text(detail.Properties, 'AllowVersionUpgrade') as allow_version_upgrade, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'NamespaceResourcePolicy') as namespace_resource_policy, + json_extract_path_text(detail.Properties, 'MaintenanceTrackName') as maintenance_track_name, + json_extract_path_text(detail.Properties, 'OwnerAccount') as owner_account, + json_extract_path_text(detail.Properties, 'MultiAZ') as multi_az, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SnapshotClusterIdentifier') as snapshot_cluster_identifier, + json_extract_path_text(detail.Properties, 'IamRoles') as iam_roles, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SnapshotCopyManual') as snapshot_copy_manual, + json_extract_path_text(detail.Properties, 'ManageMasterPassword') as manage_master_password, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'ClusterSecurityGroups') as cluster_security_groups, + json_extract_path_text(detail.Properties, 'ClusterIdentifier') as cluster_identifier, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'ClusterSubnetGroupName') as cluster_subnet_group_name, + json_extract_path_text(detail.Properties, 'LoggingProperties') as logging_properties, + json_extract_path_text(detail.Properties, 'DeferMaintenance') as defer_maintenance, + json_extract_path_text(detail.Properties, 'NodeType') as node_type, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'DeferMaintenanceIdentifier') as defer_maintenance_identifier, + json_extract_path_text(detail.Properties, 'ManualSnapshotRetentionPeriod') as manual_snapshot_retention_period, + json_extract_path_text(detail.Properties, 'ResourceAction') as resource_action, + json_extract_path_text(detail.Properties, 'HsmClientCertificateIdentifier') as hsm_client_certificate_identifier, + json_extract_path_text(detail.Properties, 'ElasticIp') as elastic_ip, + json_extract_path_text(detail.Properties, 'AvailabilityZoneRelocationStatus') as availability_zone_relocation_status, + json_extract_path_text(detail.Properties, 'AquaConfigurationStatus') as aqua_configuration_status, + json_extract_path_text(detail.Properties, 'SnapshotIdentifier') as snapshot_identifier, + json_extract_path_text(detail.Properties, 'AvailabilityZoneRelocation') as availability_zone_relocation, + json_extract_path_text(detail.Properties, 'SnapshotCopyGrantName') as snapshot_copy_grant_name, + json_extract_path_text(detail.Properties, 'EnhancedVpcRouting') as enhanced_vpc_routing, + json_extract_path_text(detail.Properties, 'ClusterParameterGroupName') as cluster_parameter_group_name, + json_extract_path_text(detail.Properties, 'DeferMaintenanceEndTime') as defer_maintenance_end_time, + json_extract_path_text(detail.Properties, 'RotateEncryptionKey') as rotate_encryption_key, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'ClusterNamespaceArn') as cluster_namespace_arn, + json_extract_path_text(detail.Properties, 'MasterPasswordSecretArn') as master_password_secret_arn, + json_extract_path_text(detail.Properties, 'ClusterVersion') as cluster_version, + json_extract_path_text(detail.Properties, 'HsmConfigurationIdentifier') as hsm_configuration_identifier, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'DeferMaintenanceStartTime') as defer_maintenance_start_time, + json_extract_path_text(detail.Properties, 'ClusterType') as cluster_type, + json_extract_path_text(detail.Properties, 'Classic') as classic, + json_extract_path_text(detail.Properties, 'MasterPasswordSecretKmsKeyId') as master_password_secret_kms_key_id, + json_extract_path_text(detail.Properties, 'DeferMaintenanceDuration') as defer_maintenance_duration, + json_extract_path_text(detail.Properties, 'DBName') as db_name, + json_extract_path_text(detail.Properties, 'SnapshotCopyRetentionPeriod') as snapshot_copy_retention_period + 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::Redshift::Cluster' + AND detail.data__TypeName = 'AWS::Redshift::Cluster' + AND listing.region = 'us-east-1' + clusters_list_only: + name: clusters_list_only + id: aws.redshift.clusters_list_only + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::Redshift::Cluster + x-identifiers: + - ClusterIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterIdentifier') as cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::Cluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterIdentifier') as cluster_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::Cluster' + AND region = 'us-east-1' + cluster_tags: + name: cluster_tags + id: aws.redshift.cluster_tags + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::Redshift::Cluster + 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, '$.RevisionTarget') as revision_target, + JSON_EXTRACT(detail.Properties, '$.AutomatedSnapshotRetentionPeriod') as automated_snapshot_retention_period, + JSON_EXTRACT(detail.Properties, '$.Encrypted') as encrypted, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.NumberOfNodes') as number_of_nodes, + JSON_EXTRACT(detail.Properties, '$.DestinationRegion') as destination_region, + JSON_EXTRACT(detail.Properties, '$.AllowVersionUpgrade') as allow_version_upgrade, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.NamespaceResourcePolicy') as namespace_resource_policy, + JSON_EXTRACT(detail.Properties, '$.MaintenanceTrackName') as maintenance_track_name, + JSON_EXTRACT(detail.Properties, '$.OwnerAccount') as owner_account, + JSON_EXTRACT(detail.Properties, '$.MultiAZ') as multi_az, + JSON_EXTRACT(detail.Properties, '$.SnapshotClusterIdentifier') as snapshot_cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.IamRoles') as iam_roles, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyManual') as snapshot_copy_manual, + JSON_EXTRACT(detail.Properties, '$.ManageMasterPassword') as manage_master_password, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.ClusterSecurityGroups') as cluster_security_groups, + JSON_EXTRACT(detail.Properties, '$.ClusterIdentifier') as cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.MasterUserPassword') as master_user_password, + JSON_EXTRACT(detail.Properties, '$.ClusterSubnetGroupName') as cluster_subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.LoggingProperties') as logging_properties, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenance') as defer_maintenance, + JSON_EXTRACT(detail.Properties, '$.NodeType') as node_type, + JSON_EXTRACT(detail.Properties, '$.MasterUsername') as master_username, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceIdentifier') as defer_maintenance_identifier, + JSON_EXTRACT(detail.Properties, '$.ManualSnapshotRetentionPeriod') as manual_snapshot_retention_period, + JSON_EXTRACT(detail.Properties, '$.ResourceAction') as resource_action, + JSON_EXTRACT(detail.Properties, '$.HsmClientCertificateIdentifier') as hsm_client_certificate_identifier, + JSON_EXTRACT(detail.Properties, '$.ElasticIp') as elastic_ip, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZoneRelocationStatus') as availability_zone_relocation_status, + JSON_EXTRACT(detail.Properties, '$.AquaConfigurationStatus') as aqua_configuration_status, + JSON_EXTRACT(detail.Properties, '$.SnapshotIdentifier') as snapshot_identifier, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZoneRelocation') as availability_zone_relocation, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyGrantName') as snapshot_copy_grant_name, + JSON_EXTRACT(detail.Properties, '$.EnhancedVpcRouting') as enhanced_vpc_routing, + JSON_EXTRACT(detail.Properties, '$.ClusterParameterGroupName') as cluster_parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceEndTime') as defer_maintenance_end_time, + JSON_EXTRACT(detail.Properties, '$.RotateEncryptionKey') as rotate_encryption_key, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.ClusterNamespaceArn') as cluster_namespace_arn, + JSON_EXTRACT(detail.Properties, '$.MasterPasswordSecretArn') as master_password_secret_arn, + JSON_EXTRACT(detail.Properties, '$.ClusterVersion') as cluster_version, + JSON_EXTRACT(detail.Properties, '$.HsmConfigurationIdentifier') as hsm_configuration_identifier, + JSON_EXTRACT(detail.Properties, '$.PreferredMaintenanceWindow') as preferred_maintenance_window, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceStartTime') as defer_maintenance_start_time, + JSON_EXTRACT(detail.Properties, '$.ClusterType') as cluster_type, + JSON_EXTRACT(detail.Properties, '$.Classic') as classic, + JSON_EXTRACT(detail.Properties, '$.MasterPasswordSecretKmsKeyId') as master_password_secret_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.DeferMaintenanceDuration') as defer_maintenance_duration, + JSON_EXTRACT(detail.Properties, '$.DBName') as db_name, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyRetentionPeriod') as snapshot_copy_retention_period + 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::Redshift::Cluster' + AND detail.data__TypeName = 'AWS::Redshift::Cluster' + 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, 'RevisionTarget') as revision_target, + json_extract_path_text(detail.Properties, 'AutomatedSnapshotRetentionPeriod') as automated_snapshot_retention_period, + json_extract_path_text(detail.Properties, 'Encrypted') as encrypted, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'NumberOfNodes') as number_of_nodes, + json_extract_path_text(detail.Properties, 'DestinationRegion') as destination_region, + json_extract_path_text(detail.Properties, 'AllowVersionUpgrade') as allow_version_upgrade, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'NamespaceResourcePolicy') as namespace_resource_policy, + json_extract_path_text(detail.Properties, 'MaintenanceTrackName') as maintenance_track_name, + json_extract_path_text(detail.Properties, 'OwnerAccount') as owner_account, + json_extract_path_text(detail.Properties, 'MultiAZ') as multi_az, + json_extract_path_text(detail.Properties, 'SnapshotClusterIdentifier') as snapshot_cluster_identifier, + json_extract_path_text(detail.Properties, 'IamRoles') as iam_roles, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SnapshotCopyManual') as snapshot_copy_manual, + json_extract_path_text(detail.Properties, 'ManageMasterPassword') as manage_master_password, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'ClusterSecurityGroups') as cluster_security_groups, + json_extract_path_text(detail.Properties, 'ClusterIdentifier') as cluster_identifier, + json_extract_path_text(detail.Properties, 'MasterUserPassword') as master_user_password, + json_extract_path_text(detail.Properties, 'ClusterSubnetGroupName') as cluster_subnet_group_name, + json_extract_path_text(detail.Properties, 'LoggingProperties') as logging_properties, + json_extract_path_text(detail.Properties, 'DeferMaintenance') as defer_maintenance, + json_extract_path_text(detail.Properties, 'NodeType') as node_type, + json_extract_path_text(detail.Properties, 'MasterUsername') as master_username, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'DeferMaintenanceIdentifier') as defer_maintenance_identifier, + json_extract_path_text(detail.Properties, 'ManualSnapshotRetentionPeriod') as manual_snapshot_retention_period, + json_extract_path_text(detail.Properties, 'ResourceAction') as resource_action, + json_extract_path_text(detail.Properties, 'HsmClientCertificateIdentifier') as hsm_client_certificate_identifier, + json_extract_path_text(detail.Properties, 'ElasticIp') as elastic_ip, + json_extract_path_text(detail.Properties, 'AvailabilityZoneRelocationStatus') as availability_zone_relocation_status, + json_extract_path_text(detail.Properties, 'AquaConfigurationStatus') as aqua_configuration_status, + json_extract_path_text(detail.Properties, 'SnapshotIdentifier') as snapshot_identifier, + json_extract_path_text(detail.Properties, 'AvailabilityZoneRelocation') as availability_zone_relocation, + json_extract_path_text(detail.Properties, 'SnapshotCopyGrantName') as snapshot_copy_grant_name, + json_extract_path_text(detail.Properties, 'EnhancedVpcRouting') as enhanced_vpc_routing, + json_extract_path_text(detail.Properties, 'ClusterParameterGroupName') as cluster_parameter_group_name, + json_extract_path_text(detail.Properties, 'DeferMaintenanceEndTime') as defer_maintenance_end_time, + json_extract_path_text(detail.Properties, 'RotateEncryptionKey') as rotate_encryption_key, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'ClusterNamespaceArn') as cluster_namespace_arn, + json_extract_path_text(detail.Properties, 'MasterPasswordSecretArn') as master_password_secret_arn, + json_extract_path_text(detail.Properties, 'ClusterVersion') as cluster_version, + json_extract_path_text(detail.Properties, 'HsmConfigurationIdentifier') as hsm_configuration_identifier, + json_extract_path_text(detail.Properties, 'PreferredMaintenanceWindow') as preferred_maintenance_window, + json_extract_path_text(detail.Properties, 'DeferMaintenanceStartTime') as defer_maintenance_start_time, + json_extract_path_text(detail.Properties, 'ClusterType') as cluster_type, + json_extract_path_text(detail.Properties, 'Classic') as classic, + json_extract_path_text(detail.Properties, 'MasterPasswordSecretKmsKeyId') as master_password_secret_kms_key_id, + json_extract_path_text(detail.Properties, 'DeferMaintenanceDuration') as defer_maintenance_duration, + json_extract_path_text(detail.Properties, 'DBName') as db_name, + json_extract_path_text(detail.Properties, 'SnapshotCopyRetentionPeriod') as snapshot_copy_retention_period + 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::Redshift::Cluster' + AND detail.data__TypeName = 'AWS::Redshift::Cluster' + AND listing.region = 'us-east-1' cluster_parameter_groups: name: cluster_parameter_groups id: aws.redshift.cluster_parameter_groups @@ -2462,10 +2762,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ParameterGroupName') as parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterParameterGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupName') as parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupFamily') as parameter_group_family, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Redshift::ClusterParameterGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterParameterGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2484,10 +2793,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ParameterGroupName') as parameter_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterParameterGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ParameterGroupName') as parameter_group_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ParameterGroupFamily') as parameter_group_family, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Redshift::ClusterParameterGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterParameterGroup' + AND listing.region = 'us-east-1' + cluster_parameter_groups_list_only: + name: cluster_parameter_groups_list_only + id: aws.redshift.cluster_parameter_groups_list_only + x-cfn-schema-name: ClusterParameterGroup + x-cfn-type-name: AWS::Redshift::ClusterParameterGroup + x-identifiers: + - ParameterGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ParameterGroupName') as parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterParameterGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ParameterGroupName') as parameter_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterParameterGroup' + AND region = 'us-east-1' + cluster_parameter_group_tags: + name: cluster_parameter_group_tags + id: aws.redshift.cluster_parameter_group_tags + x-cfn-schema-name: ClusterParameterGroup + x-cfn-type-name: AWS::Redshift::ClusterParameterGroup + 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, '$.ParameterGroupName') as parameter_group_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ParameterGroupFamily') as parameter_group_family, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters + 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::Redshift::ClusterParameterGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterParameterGroup' + 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, 'ParameterGroupName') as parameter_group_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ParameterGroupFamily') as parameter_group_family, + json_extract_path_text(detail.Properties, 'Parameters') as parameters + 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::Redshift::ClusterParameterGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterParameterGroup' + AND listing.region = 'us-east-1' cluster_subnet_groups: name: cluster_subnet_groups id: aws.redshift.cluster_subnet_groups @@ -2562,10 +2962,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterSubnetGroupName') as cluster_subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ClusterSubnetGroupName') as cluster_subnet_group_name + 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::Redshift::ClusterSubnetGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2583,10 +2991,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterSubnetGroupName') as cluster_subnet_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ClusterSubnetGroupName') as cluster_subnet_group_name + 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::Redshift::ClusterSubnetGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' + AND listing.region = 'us-east-1' + cluster_subnet_groups_list_only: + name: cluster_subnet_groups_list_only + id: aws.redshift.cluster_subnet_groups_list_only + x-cfn-schema-name: ClusterSubnetGroup + x-cfn-type-name: AWS::Redshift::ClusterSubnetGroup + x-identifiers: + - ClusterSubnetGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterSubnetGroupName') as cluster_subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterSubnetGroupName') as cluster_subnet_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' + AND region = 'us-east-1' + cluster_subnet_group_tags: + name: cluster_subnet_group_tags + id: aws.redshift.cluster_subnet_group_tags + x-cfn-schema-name: ClusterSubnetGroup + x-cfn-type-name: AWS::Redshift::ClusterSubnetGroup + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.ClusterSubnetGroupName') as cluster_subnet_group_name + 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::Redshift::ClusterSubnetGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'ClusterSubnetGroupName') as cluster_subnet_group_name + 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::Redshift::ClusterSubnetGroup' + AND detail.data__TypeName = 'AWS::Redshift::ClusterSubnetGroup' + AND listing.region = 'us-east-1' endpoint_accesses: name: endpoint_accesses id: aws.redshift.endpoint_accesses @@ -2668,10 +3164,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EndpointName') as endpoint_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAccess' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EndpointStatus') as endpoint_status, + JSON_EXTRACT(detail.Properties, '$.VpcEndpoint') as vpc_endpoint, + JSON_EXTRACT(detail.Properties, '$.Address') as address, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.ResourceOwner') as resource_owner, + JSON_EXTRACT(detail.Properties, '$.SubnetGroupName') as subnet_group_name, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.EndpointCreateTime') as endpoint_create_time, + JSON_EXTRACT(detail.Properties, '$.ClusterIdentifier') as cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroups') as vpc_security_groups + 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::Redshift::EndpointAccess' + AND detail.data__TypeName = 'AWS::Redshift::EndpointAccess' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2696,10 +3207,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EndpointName') as endpoint_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAccess' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EndpointStatus') as endpoint_status, + json_extract_path_text(detail.Properties, 'VpcEndpoint') as vpc_endpoint, + json_extract_path_text(detail.Properties, 'Address') as address, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'ResourceOwner') as resource_owner, + json_extract_path_text(detail.Properties, 'SubnetGroupName') as subnet_group_name, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'EndpointCreateTime') as endpoint_create_time, + json_extract_path_text(detail.Properties, 'ClusterIdentifier') as cluster_identifier, + json_extract_path_text(detail.Properties, 'VpcSecurityGroups') as vpc_security_groups + 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::Redshift::EndpointAccess' + AND detail.data__TypeName = 'AWS::Redshift::EndpointAccess' + AND listing.region = 'us-east-1' + endpoint_accesses_list_only: + name: endpoint_accesses_list_only + id: aws.redshift.endpoint_accesses_list_only + x-cfn-schema-name: EndpointAccess + x-cfn-type-name: AWS::Redshift::EndpointAccess + x-identifiers: + - EndpointName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EndpointName') as endpoint_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAccess' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EndpointName') as endpoint_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAccess' + AND region = 'us-east-1' endpoint_authorizations: name: endpoint_authorizations id: aws.redshift.endpoint_authorizations @@ -2783,11 +3340,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterIdentifier') as cluster_identifier, - JSON_EXTRACT(Properties, '$.Account') as account - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAuthorization' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Grantee') as grantee, + JSON_EXTRACT(detail.Properties, '$.Account') as account, + JSON_EXTRACT(detail.Properties, '$.Grantor') as grantor, + JSON_EXTRACT(detail.Properties, '$.EndpointCount') as endpoint_count, + JSON_EXTRACT(detail.Properties, '$.AuthorizeTime') as authorize_time, + JSON_EXTRACT(detail.Properties, '$.AllowedVPCs') as allowed_vpcs, + JSON_EXTRACT(detail.Properties, '$.Force') as _force, + JSON_EXTRACT(detail.Properties, '$.AllowedAllVPCs') as allowed_all_vpcs, + JSON_EXTRACT(detail.Properties, '$.VpcIds') as vpc_ids, + JSON_EXTRACT(detail.Properties, '$.ClusterIdentifier') as cluster_identifier, + JSON_EXTRACT(detail.Properties, '$.ClusterStatus') as cluster_status + 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::Redshift::EndpointAuthorization' + AND detail.data__TypeName = 'AWS::Redshift::EndpointAuthorization' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2813,11 +3385,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterIdentifier') as cluster_identifier, - json_extract_path_text(Properties, 'Account') as account - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAuthorization' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Grantee') as grantee, + json_extract_path_text(detail.Properties, 'Account') as account, + json_extract_path_text(detail.Properties, 'Grantor') as grantor, + json_extract_path_text(detail.Properties, 'EndpointCount') as endpoint_count, + json_extract_path_text(detail.Properties, 'AuthorizeTime') as authorize_time, + json_extract_path_text(detail.Properties, 'AllowedVPCs') as allowed_vpcs, + json_extract_path_text(detail.Properties, 'Force') as _force, + json_extract_path_text(detail.Properties, 'AllowedAllVPCs') as allowed_all_vpcs, + json_extract_path_text(detail.Properties, 'VpcIds') as vpc_ids, + json_extract_path_text(detail.Properties, 'ClusterIdentifier') as cluster_identifier, + json_extract_path_text(detail.Properties, 'ClusterStatus') as cluster_status + 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::Redshift::EndpointAuthorization' + AND detail.data__TypeName = 'AWS::Redshift::EndpointAuthorization' + AND listing.region = 'us-east-1' + endpoint_authorizations_list_only: + name: endpoint_authorizations_list_only + id: aws.redshift.endpoint_authorizations_list_only + x-cfn-schema-name: EndpointAuthorization + x-cfn-type-name: AWS::Redshift::EndpointAuthorization + x-identifiers: + - ClusterIdentifier + - Account + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterIdentifier') as cluster_identifier, + JSON_EXTRACT(Properties, '$.Account') as account + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAuthorization' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterIdentifier') as cluster_identifier, + json_extract_path_text(Properties, 'Account') as account + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EndpointAuthorization' + AND region = 'us-east-1' event_subscriptions: name: event_subscriptions id: aws.redshift.event_subscriptions @@ -2902,10 +3523,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SubscriptionName') as subscription_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EventSubscription' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CustSubscriptionId') as cust_subscription_id, + JSON_EXTRACT(detail.Properties, '$.EventCategoriesList') as event_categories_list, + JSON_EXTRACT(detail.Properties, '$.SourceType') as source_type, + JSON_EXTRACT(detail.Properties, '$.EventCategories') as event_categories, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Severity') as severity, + JSON_EXTRACT(detail.Properties, '$.SubscriptionName') as subscription_name, + JSON_EXTRACT(detail.Properties, '$.SourceIds') as source_ids, + JSON_EXTRACT(detail.Properties, '$.CustomerAwsId') as customer_aws_id, + JSON_EXTRACT(detail.Properties, '$.SourceIdsList') as source_ids_list, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriptionCreationTime') as subscription_creation_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Redshift::EventSubscription' + AND detail.data__TypeName = 'AWS::Redshift::EventSubscription' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2933,10 +3572,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SubscriptionName') as subscription_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EventSubscription' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CustSubscriptionId') as cust_subscription_id, + json_extract_path_text(detail.Properties, 'EventCategoriesList') as event_categories_list, + json_extract_path_text(detail.Properties, 'SourceType') as source_type, + json_extract_path_text(detail.Properties, 'EventCategories') as event_categories, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Severity') as severity, + json_extract_path_text(detail.Properties, 'SubscriptionName') as subscription_name, + json_extract_path_text(detail.Properties, 'SourceIds') as source_ids, + json_extract_path_text(detail.Properties, 'CustomerAwsId') as customer_aws_id, + json_extract_path_text(detail.Properties, 'SourceIdsList') as source_ids_list, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'SubscriptionCreationTime') as subscription_creation_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Redshift::EventSubscription' + AND detail.data__TypeName = 'AWS::Redshift::EventSubscription' + AND listing.region = 'us-east-1' + event_subscriptions_list_only: + name: event_subscriptions_list_only + id: aws.redshift.event_subscriptions_list_only + x-cfn-schema-name: EventSubscription + x-cfn-type-name: AWS::Redshift::EventSubscription + x-identifiers: + - SubscriptionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SubscriptionName') as subscription_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EventSubscription' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SubscriptionName') as subscription_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::EventSubscription' + AND region = 'us-east-1' + event_subscription_tags: + name: event_subscription_tags + id: aws.redshift.event_subscription_tags + x-cfn-schema-name: EventSubscription + x-cfn-type-name: AWS::Redshift::EventSubscription + 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, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CustSubscriptionId') as cust_subscription_id, + JSON_EXTRACT(detail.Properties, '$.EventCategoriesList') as event_categories_list, + JSON_EXTRACT(detail.Properties, '$.SourceType') as source_type, + JSON_EXTRACT(detail.Properties, '$.EventCategories') as event_categories, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Severity') as severity, + JSON_EXTRACT(detail.Properties, '$.SubscriptionName') as subscription_name, + JSON_EXTRACT(detail.Properties, '$.SourceIds') as source_ids, + JSON_EXTRACT(detail.Properties, '$.CustomerAwsId') as customer_aws_id, + JSON_EXTRACT(detail.Properties, '$.SourceIdsList') as source_ids_list, + JSON_EXTRACT(detail.Properties, '$.SnsTopicArn') as sns_topic_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriptionCreationTime') as subscription_creation_time + 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::Redshift::EventSubscription' + AND detail.data__TypeName = 'AWS::Redshift::EventSubscription' + 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, 'Status') as status, + json_extract_path_text(detail.Properties, 'CustSubscriptionId') as cust_subscription_id, + json_extract_path_text(detail.Properties, 'EventCategoriesList') as event_categories_list, + json_extract_path_text(detail.Properties, 'SourceType') as source_type, + json_extract_path_text(detail.Properties, 'EventCategories') as event_categories, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Severity') as severity, + json_extract_path_text(detail.Properties, 'SubscriptionName') as subscription_name, + json_extract_path_text(detail.Properties, 'SourceIds') as source_ids, + json_extract_path_text(detail.Properties, 'CustomerAwsId') as customer_aws_id, + json_extract_path_text(detail.Properties, 'SourceIdsList') as source_ids_list, + json_extract_path_text(detail.Properties, 'SnsTopicArn') as sns_topic_arn, + json_extract_path_text(detail.Properties, 'SubscriptionCreationTime') as subscription_creation_time + 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::Redshift::EventSubscription' + AND detail.data__TypeName = 'AWS::Redshift::EventSubscription' + AND listing.region = 'us-east-1' scheduled_actions: name: scheduled_actions id: aws.redshift.scheduled_actions @@ -3017,10 +3774,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ScheduledActionName') as scheduled_action_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ScheduledAction' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ScheduledActionDescription') as scheduled_action_description, + JSON_EXTRACT(detail.Properties, '$.ScheduledActionName') as scheduled_action_name, + JSON_EXTRACT(detail.Properties, '$.EndTime') as end_time, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.IamRole') as iam_role, + JSON_EXTRACT(detail.Properties, '$.StartTime') as start_time, + JSON_EXTRACT(detail.Properties, '$.Enable') as enable, + JSON_EXTRACT(detail.Properties, '$.TargetAction') as target_action, + JSON_EXTRACT(detail.Properties, '$.NextInvocations') as next_invocations + 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::Redshift::ScheduledAction' + AND detail.data__TypeName = 'AWS::Redshift::ScheduledAction' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3044,10 +3815,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ScheduledActionName') as scheduled_action_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ScheduledAction' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ScheduledActionDescription') as scheduled_action_description, + json_extract_path_text(detail.Properties, 'ScheduledActionName') as scheduled_action_name, + json_extract_path_text(detail.Properties, 'EndTime') as end_time, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'IamRole') as iam_role, + json_extract_path_text(detail.Properties, 'StartTime') as start_time, + json_extract_path_text(detail.Properties, 'Enable') as enable, + json_extract_path_text(detail.Properties, 'TargetAction') as target_action, + json_extract_path_text(detail.Properties, 'NextInvocations') as next_invocations + 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::Redshift::ScheduledAction' + AND detail.data__TypeName = 'AWS::Redshift::ScheduledAction' + AND listing.region = 'us-east-1' + scheduled_actions_list_only: + name: scheduled_actions_list_only + id: aws.redshift.scheduled_actions_list_only + x-cfn-schema-name: ScheduledAction + x-cfn-type-name: AWS::Redshift::ScheduledAction + x-identifiers: + - ScheduledActionName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ScheduledActionName') as scheduled_action_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ScheduledAction' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ScheduledActionName') as scheduled_action_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Redshift::ScheduledAction' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/redshiftserverless.yaml b/providers/src/aws/v00.00.00000/services/redshiftserverless.yaml index 40a1ceed..9ff75fe0 100644 --- a/providers/src/aws/v00.00.00000/services/redshiftserverless.yaml +++ b/providers/src/aws/v00.00.00000/services/redshiftserverless.yaml @@ -1130,10 +1130,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NamespaceName') as namespace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Namespace' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdminPasswordSecretKmsKeyId') as admin_password_secret_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.AdminUserPassword') as admin_user_password, + JSON_EXTRACT(detail.Properties, '$.AdminUsername') as admin_username, + JSON_EXTRACT(detail.Properties, '$.DbName') as db_name, + JSON_EXTRACT(detail.Properties, '$.DefaultIamRoleArn') as default_iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.IamRoles') as iam_roles, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.LogExports') as log_exports, + JSON_EXTRACT(detail.Properties, '$.ManageAdminPassword') as manage_admin_password, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.NamespaceName') as namespace_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotName') as final_snapshot_name, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotRetentionPeriod') as final_snapshot_retention_period, + JSON_EXTRACT(detail.Properties, '$.NamespaceResourcePolicy') as namespace_resource_policy, + JSON_EXTRACT(detail.Properties, '$.RedshiftIdcApplicationArn') as redshift_idc_application_arn, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyConfigurations') as snapshot_copy_configurations + 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::RedshiftServerless::Namespace' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Namespace' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1164,10 +1185,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NamespaceName') as namespace_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Namespace' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdminPasswordSecretKmsKeyId') as admin_password_secret_kms_key_id, + json_extract_path_text(detail.Properties, 'AdminUserPassword') as admin_user_password, + json_extract_path_text(detail.Properties, 'AdminUsername') as admin_username, + json_extract_path_text(detail.Properties, 'DbName') as db_name, + json_extract_path_text(detail.Properties, 'DefaultIamRoleArn') as default_iam_role_arn, + json_extract_path_text(detail.Properties, 'IamRoles') as iam_roles, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'LogExports') as log_exports, + json_extract_path_text(detail.Properties, 'ManageAdminPassword') as manage_admin_password, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'NamespaceName') as namespace_name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'FinalSnapshotName') as final_snapshot_name, + json_extract_path_text(detail.Properties, 'FinalSnapshotRetentionPeriod') as final_snapshot_retention_period, + json_extract_path_text(detail.Properties, 'NamespaceResourcePolicy') as namespace_resource_policy, + json_extract_path_text(detail.Properties, 'RedshiftIdcApplicationArn') as redshift_idc_application_arn, + json_extract_path_text(detail.Properties, 'SnapshotCopyConfigurations') as snapshot_copy_configurations + 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::RedshiftServerless::Namespace' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Namespace' + AND listing.region = 'us-east-1' + namespaces_list_only: + name: namespaces_list_only + id: aws.redshiftserverless.namespaces_list_only + x-cfn-schema-name: Namespace + x-cfn-type-name: AWS::RedshiftServerless::Namespace + x-identifiers: + - NamespaceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NamespaceName') as namespace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Namespace' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NamespaceName') as namespace_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Namespace' + AND region = 'us-east-1' + namespace_tags: + name: namespace_tags + id: aws.redshiftserverless.namespace_tags + x-cfn-schema-name: Namespace + x-cfn-type-name: AWS::RedshiftServerless::Namespace + 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, '$.AdminPasswordSecretKmsKeyId') as admin_password_secret_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.AdminUserPassword') as admin_user_password, + JSON_EXTRACT(detail.Properties, '$.AdminUsername') as admin_username, + JSON_EXTRACT(detail.Properties, '$.DbName') as db_name, + JSON_EXTRACT(detail.Properties, '$.DefaultIamRoleArn') as default_iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.IamRoles') as iam_roles, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.LogExports') as log_exports, + JSON_EXTRACT(detail.Properties, '$.ManageAdminPassword') as manage_admin_password, + JSON_EXTRACT(detail.Properties, '$.Namespace') as namespace, + JSON_EXTRACT(detail.Properties, '$.NamespaceName') as namespace_name, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotName') as final_snapshot_name, + JSON_EXTRACT(detail.Properties, '$.FinalSnapshotRetentionPeriod') as final_snapshot_retention_period, + JSON_EXTRACT(detail.Properties, '$.NamespaceResourcePolicy') as namespace_resource_policy, + JSON_EXTRACT(detail.Properties, '$.RedshiftIdcApplicationArn') as redshift_idc_application_arn, + JSON_EXTRACT(detail.Properties, '$.SnapshotCopyConfigurations') as snapshot_copy_configurations + 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::RedshiftServerless::Namespace' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Namespace' + 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, 'AdminPasswordSecretKmsKeyId') as admin_password_secret_kms_key_id, + json_extract_path_text(detail.Properties, 'AdminUserPassword') as admin_user_password, + json_extract_path_text(detail.Properties, 'AdminUsername') as admin_username, + json_extract_path_text(detail.Properties, 'DbName') as db_name, + json_extract_path_text(detail.Properties, 'DefaultIamRoleArn') as default_iam_role_arn, + json_extract_path_text(detail.Properties, 'IamRoles') as iam_roles, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'LogExports') as log_exports, + json_extract_path_text(detail.Properties, 'ManageAdminPassword') as manage_admin_password, + json_extract_path_text(detail.Properties, 'Namespace') as namespace, + json_extract_path_text(detail.Properties, 'NamespaceName') as namespace_name, + json_extract_path_text(detail.Properties, 'FinalSnapshotName') as final_snapshot_name, + json_extract_path_text(detail.Properties, 'FinalSnapshotRetentionPeriod') as final_snapshot_retention_period, + json_extract_path_text(detail.Properties, 'NamespaceResourcePolicy') as namespace_resource_policy, + json_extract_path_text(detail.Properties, 'RedshiftIdcApplicationArn') as redshift_idc_application_arn, + json_extract_path_text(detail.Properties, 'SnapshotCopyConfigurations') as snapshot_copy_configurations + 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::RedshiftServerless::Namespace' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Namespace' + AND listing.region = 'us-east-1' workgroups: name: workgroups id: aws.redshiftserverless.workgroups @@ -1250,10 +1398,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkgroupName') as workgroup_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Workgroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.WorkgroupName') as workgroup_name, + JSON_EXTRACT(detail.Properties, '$.NamespaceName') as namespace_name, + JSON_EXTRACT(detail.Properties, '$.BaseCapacity') as base_capacity, + JSON_EXTRACT(detail.Properties, '$.MaxCapacity') as max_capacity, + JSON_EXTRACT(detail.Properties, '$.EnhancedVpcRouting') as enhanced_vpc_routing, + JSON_EXTRACT(detail.Properties, '$.ConfigParameters') as config_parameters, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Workgroup') as workgroup + 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::RedshiftServerless::Workgroup' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Workgroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1279,10 +1443,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkgroupName') as workgroup_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Workgroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'WorkgroupName') as workgroup_name, + json_extract_path_text(detail.Properties, 'NamespaceName') as namespace_name, + json_extract_path_text(detail.Properties, 'BaseCapacity') as base_capacity, + json_extract_path_text(detail.Properties, 'MaxCapacity') as max_capacity, + json_extract_path_text(detail.Properties, 'EnhancedVpcRouting') as enhanced_vpc_routing, + json_extract_path_text(detail.Properties, 'ConfigParameters') as config_parameters, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Workgroup') as workgroup + 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::RedshiftServerless::Workgroup' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Workgroup' + AND listing.region = 'us-east-1' + workgroups_list_only: + name: workgroups_list_only + id: aws.redshiftserverless.workgroups_list_only + x-cfn-schema-name: Workgroup + x-cfn-type-name: AWS::RedshiftServerless::Workgroup + x-identifiers: + - WorkgroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkgroupName') as workgroup_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Workgroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkgroupName') as workgroup_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RedshiftServerless::Workgroup' + AND region = 'us-east-1' + workgroup_tags: + name: workgroup_tags + id: aws.redshiftserverless.workgroup_tags + x-cfn-schema-name: Workgroup + x-cfn-type-name: AWS::RedshiftServerless::Workgroup + 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, '$.WorkgroupName') as workgroup_name, + JSON_EXTRACT(detail.Properties, '$.NamespaceName') as namespace_name, + JSON_EXTRACT(detail.Properties, '$.BaseCapacity') as base_capacity, + JSON_EXTRACT(detail.Properties, '$.MaxCapacity') as max_capacity, + JSON_EXTRACT(detail.Properties, '$.EnhancedVpcRouting') as enhanced_vpc_routing, + JSON_EXTRACT(detail.Properties, '$.ConfigParameters') as config_parameters, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Workgroup') as workgroup + 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::RedshiftServerless::Workgroup' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Workgroup' + 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, 'WorkgroupName') as workgroup_name, + json_extract_path_text(detail.Properties, 'NamespaceName') as namespace_name, + json_extract_path_text(detail.Properties, 'BaseCapacity') as base_capacity, + json_extract_path_text(detail.Properties, 'MaxCapacity') as max_capacity, + json_extract_path_text(detail.Properties, 'EnhancedVpcRouting') as enhanced_vpc_routing, + json_extract_path_text(detail.Properties, 'ConfigParameters') as config_parameters, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Workgroup') as workgroup + 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::RedshiftServerless::Workgroup' + AND detail.data__TypeName = 'AWS::RedshiftServerless::Workgroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/refactorspaces.yaml b/providers/src/aws/v00.00.00000/services/refactorspaces.yaml index a841c6e7..d1830895 100644 --- a/providers/src/aws/v00.00.00000/services/refactorspaces.yaml +++ b/providers/src/aws/v00.00.00000/services/refactorspaces.yaml @@ -1382,11 +1382,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier, - JSON_EXTRACT(Properties, '$.ApplicationIdentifier') as application_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApiGatewayProxy') as api_gateway_proxy, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ApiGatewayId') as api_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcLinkId') as vpc_link_id, + JSON_EXTRACT(detail.Properties, '$.NlbArn') as nlb_arn, + JSON_EXTRACT(detail.Properties, '$.NlbName') as nlb_name, + JSON_EXTRACT(detail.Properties, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProxyType') as proxy_type, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.StageName') as stage_name, + JSON_EXTRACT(detail.Properties, '$.ProxyUrl') as proxy_url, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RefactorSpaces::Application' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1414,11 +1431,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier, - json_extract_path_text(Properties, 'ApplicationIdentifier') as application_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApiGatewayProxy') as api_gateway_proxy, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ApiGatewayId') as api_gateway_id, + json_extract_path_text(detail.Properties, 'VpcLinkId') as vpc_link_id, + json_extract_path_text(detail.Properties, 'NlbArn') as nlb_arn, + json_extract_path_text(detail.Properties, 'NlbName') as nlb_name, + json_extract_path_text(detail.Properties, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProxyType') as proxy_type, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'StageName') as stage_name, + json_extract_path_text(detail.Properties, 'ProxyUrl') as proxy_url, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RefactorSpaces::Application' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.refactorspaces.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::RefactorSpaces::Application + x-identifiers: + - EnvironmentIdentifier + - ApplicationIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(Properties, '$.ApplicationIdentifier') as application_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(Properties, 'ApplicationIdentifier') as application_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.refactorspaces.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::RefactorSpaces::Application + 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, '$.ApiGatewayProxy') as api_gateway_proxy, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ApiGatewayId') as api_gateway_id, + JSON_EXTRACT(detail.Properties, '$.VpcLinkId') as vpc_link_id, + JSON_EXTRACT(detail.Properties, '$.NlbArn') as nlb_arn, + JSON_EXTRACT(detail.Properties, '$.NlbName') as nlb_name, + JSON_EXTRACT(detail.Properties, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProxyType') as proxy_type, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.StageName') as stage_name, + JSON_EXTRACT(detail.Properties, '$.ProxyUrl') as proxy_url + 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::RefactorSpaces::Application' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Application' + 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, 'ApiGatewayProxy') as api_gateway_proxy, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ApiGatewayId') as api_gateway_id, + json_extract_path_text(detail.Properties, 'VpcLinkId') as vpc_link_id, + json_extract_path_text(detail.Properties, 'NlbArn') as nlb_arn, + json_extract_path_text(detail.Properties, 'NlbName') as nlb_name, + json_extract_path_text(detail.Properties, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProxyType') as proxy_type, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'StageName') as stage_name, + json_extract_path_text(detail.Properties, 'ProxyUrl') as proxy_url + 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::RefactorSpaces::Application' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Application' + AND listing.region = 'us-east-1' environments: name: environments id: aws.refactorspaces.environments @@ -1483,10 +1620,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkFabricType') as network_fabric_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RefactorSpaces::Environment' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1507,10 +1655,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkFabricType') as network_fabric_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RefactorSpaces::Environment' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.refactorspaces.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::RefactorSpaces::Environment + x-identifiers: + - EnvironmentIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Environment' + AND region = 'us-east-1' + environment_tags: + name: environment_tags + id: aws.refactorspaces.environment_tags + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::RefactorSpaces::Environment + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NetworkFabricType') as network_fabric_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.TransitGatewayId') as transit_gateway_id + 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::RefactorSpaces::Environment' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Environment' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NetworkFabricType') as network_fabric_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'TransitGatewayId') as transit_gateway_id + 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::RefactorSpaces::Environment' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Environment' + AND listing.region = 'us-east-1' routes: name: routes id: aws.refactorspaces.routes @@ -1593,12 +1838,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier, - JSON_EXTRACT(Properties, '$.ApplicationIdentifier') as application_identifier, - JSON_EXTRACT(Properties, '$.RouteIdentifier') as route_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Route' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PathResourceToId') as path_resource_to_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.RouteIdentifier') as route_identifier, + JSON_EXTRACT(detail.Properties, '$.RouteType') as route_type, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.DefaultRoute') as default_route, + JSON_EXTRACT(detail.Properties, '$.UriPathRoute') as uri_path_route, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RefactorSpaces::Route' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Route' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1622,12 +1879,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier, - json_extract_path_text(Properties, 'ApplicationIdentifier') as application_identifier, - json_extract_path_text(Properties, 'RouteIdentifier') as route_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Route' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PathResourceToId') as path_resource_to_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'RouteIdentifier') as route_identifier, + json_extract_path_text(detail.Properties, 'RouteType') as route_type, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'DefaultRoute') as default_route, + json_extract_path_text(detail.Properties, 'UriPathRoute') as uri_path_route, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RefactorSpaces::Route' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Route' + AND listing.region = 'us-east-1' + routes_list_only: + name: routes_list_only + id: aws.refactorspaces.routes_list_only + x-cfn-schema-name: Route + x-cfn-type-name: AWS::RefactorSpaces::Route + x-identifiers: + - EnvironmentIdentifier + - ApplicationIdentifier + - RouteIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(Properties, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(Properties, '$.RouteIdentifier') as route_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Route' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(Properties, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(Properties, 'RouteIdentifier') as route_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Route' + AND region = 'us-east-1' + route_tags: + name: route_tags + id: aws.refactorspaces.route_tags + x-cfn-schema-name: Route + x-cfn-type-name: AWS::RefactorSpaces::Route + 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, '$.PathResourceToId') as path_resource_to_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.RouteIdentifier') as route_identifier, + JSON_EXTRACT(detail.Properties, '$.RouteType') as route_type, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.DefaultRoute') as default_route, + JSON_EXTRACT(detail.Properties, '$.UriPathRoute') as uri_path_route + 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::RefactorSpaces::Route' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Route' + 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, 'PathResourceToId') as path_resource_to_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'RouteIdentifier') as route_identifier, + json_extract_path_text(detail.Properties, 'RouteType') as route_type, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'DefaultRoute') as default_route, + json_extract_path_text(detail.Properties, 'UriPathRoute') as uri_path_route + 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::RefactorSpaces::Route' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Route' + AND listing.region = 'us-east-1' services: name: services id: aws.refactorspaces.services @@ -1698,12 +2065,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier, - JSON_EXTRACT(Properties, '$.ApplicationIdentifier') as application_identifier, - JSON_EXTRACT(Properties, '$.ServiceIdentifier') as service_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Service' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EndpointType') as endpoint_type, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.LambdaEndpoint') as lambda_endpoint, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.UrlEndpoint') as url_endpoint, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RefactorSpaces::Service' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Service' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1728,12 +2108,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier, - json_extract_path_text(Properties, 'ApplicationIdentifier') as application_identifier, - json_extract_path_text(Properties, 'ServiceIdentifier') as service_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Service' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EndpointType') as endpoint_type, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'LambdaEndpoint') as lambda_endpoint, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'UrlEndpoint') as url_endpoint, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RefactorSpaces::Service' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Service' + AND listing.region = 'us-east-1' + services_list_only: + name: services_list_only + id: aws.refactorspaces.services_list_only + x-cfn-schema-name: Service + x-cfn-type-name: AWS::RefactorSpaces::Service + x-identifiers: + - EnvironmentIdentifier + - ApplicationIdentifier + - ServiceIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(Properties, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(Properties, '$.ServiceIdentifier') as service_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Service' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(Properties, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(Properties, 'ServiceIdentifier') as service_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RefactorSpaces::Service' + AND region = 'us-east-1' + service_tags: + name: service_tags + id: aws.refactorspaces.service_tags + x-cfn-schema-name: Service + x-cfn-type-name: AWS::RefactorSpaces::Service + 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, '$.ApplicationIdentifier') as application_identifier, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EndpointType') as endpoint_type, + JSON_EXTRACT(detail.Properties, '$.EnvironmentIdentifier') as environment_identifier, + JSON_EXTRACT(detail.Properties, '$.LambdaEndpoint') as lambda_endpoint, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.UrlEndpoint') as url_endpoint, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::RefactorSpaces::Service' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Service' + 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, 'ApplicationIdentifier') as application_identifier, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EndpointType') as endpoint_type, + json_extract_path_text(detail.Properties, 'EnvironmentIdentifier') as environment_identifier, + json_extract_path_text(detail.Properties, 'LambdaEndpoint') as lambda_endpoint, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'UrlEndpoint') as url_endpoint, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::RefactorSpaces::Service' + AND detail.data__TypeName = 'AWS::RefactorSpaces::Service' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/rekognition.yaml b/providers/src/aws/v00.00.00000/services/rekognition.yaml index 2c73db9b..3031bf93 100644 --- a/providers/src/aws/v00.00.00000/services/rekognition.yaml +++ b/providers/src/aws/v00.00.00000/services/rekognition.yaml @@ -973,10 +973,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CollectionId') as collection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Collection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CollectionId') as collection_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Rekognition::Collection' + AND detail.data__TypeName = 'AWS::Rekognition::Collection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -993,10 +1000,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CollectionId') as collection_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Collection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CollectionId') as collection_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Rekognition::Collection' + AND detail.data__TypeName = 'AWS::Rekognition::Collection' + AND listing.region = 'us-east-1' + collections_list_only: + name: collections_list_only + id: aws.rekognition.collections_list_only + x-cfn-schema-name: Collection + x-cfn-type-name: AWS::Rekognition::Collection + x-identifiers: + - CollectionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CollectionId') as collection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Collection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CollectionId') as collection_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Collection' + AND region = 'us-east-1' + collection_tags: + name: collection_tags + id: aws.rekognition.collection_tags + x-cfn-schema-name: Collection + x-cfn-type-name: AWS::Rekognition::Collection + 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, '$.CollectionId') as collection_id + 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::Rekognition::Collection' + AND detail.data__TypeName = 'AWS::Rekognition::Collection' + 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, 'CollectionId') as collection_id + 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::Rekognition::Collection' + AND detail.data__TypeName = 'AWS::Rekognition::Collection' + AND listing.region = 'us-east-1' projects: name: projects id: aws.rekognition.projects @@ -1056,10 +1148,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProjectName') as project_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Project' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name + 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::Rekognition::Project' + AND detail.data__TypeName = 'AWS::Rekognition::Project' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1075,10 +1173,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProjectName') as project_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Project' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name + 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::Rekognition::Project' + AND detail.data__TypeName = 'AWS::Rekognition::Project' + AND listing.region = 'us-east-1' + projects_list_only: + name: projects_list_only + id: aws.rekognition.projects_list_only + x-cfn-schema-name: Project + x-cfn-type-name: AWS::Rekognition::Project + x-identifiers: + - ProjectName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProjectName') as project_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Project' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProjectName') as project_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::Project' + AND region = 'us-east-1' stream_processors: name: stream_processors id: aws.rekognition.stream_processors @@ -1165,10 +1300,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::StreamProcessor' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.KinesisVideoStream') as kinesis_video_stream, + JSON_EXTRACT(detail.Properties, '$.FaceSearchSettings') as face_search_settings, + JSON_EXTRACT(detail.Properties, '$.ConnectedHomeSettings') as connected_home_settings, + JSON_EXTRACT(detail.Properties, '$.KinesisDataStream') as kinesis_data_stream, + JSON_EXTRACT(detail.Properties, '$.S3Destination') as s3_destination, + JSON_EXTRACT(detail.Properties, '$.NotificationChannel') as notification_channel, + JSON_EXTRACT(detail.Properties, '$.DataSharingPreference') as data_sharing_preference, + JSON_EXTRACT(detail.Properties, '$.PolygonRegionsOfInterest') as polygon_regions_of_interest, + JSON_EXTRACT(detail.Properties, '$.BoundingBoxRegionsOfInterest') as bounding_box_regions_of_interest, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Rekognition::StreamProcessor' + AND detail.data__TypeName = 'AWS::Rekognition::StreamProcessor' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1198,10 +1353,134 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::StreamProcessor' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'KinesisVideoStream') as kinesis_video_stream, + json_extract_path_text(detail.Properties, 'FaceSearchSettings') as face_search_settings, + json_extract_path_text(detail.Properties, 'ConnectedHomeSettings') as connected_home_settings, + json_extract_path_text(detail.Properties, 'KinesisDataStream') as kinesis_data_stream, + json_extract_path_text(detail.Properties, 'S3Destination') as s3_destination, + json_extract_path_text(detail.Properties, 'NotificationChannel') as notification_channel, + json_extract_path_text(detail.Properties, 'DataSharingPreference') as data_sharing_preference, + json_extract_path_text(detail.Properties, 'PolygonRegionsOfInterest') as polygon_regions_of_interest, + json_extract_path_text(detail.Properties, 'BoundingBoxRegionsOfInterest') as bounding_box_regions_of_interest, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Rekognition::StreamProcessor' + AND detail.data__TypeName = 'AWS::Rekognition::StreamProcessor' + AND listing.region = 'us-east-1' + stream_processors_list_only: + name: stream_processors_list_only + id: aws.rekognition.stream_processors_list_only + x-cfn-schema-name: StreamProcessor + x-cfn-type-name: AWS::Rekognition::StreamProcessor + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::StreamProcessor' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Rekognition::StreamProcessor' + AND region = 'us-east-1' + stream_processor_tags: + name: stream_processor_tags + id: aws.rekognition.stream_processor_tags + x-cfn-schema-name: StreamProcessor + x-cfn-type-name: AWS::Rekognition::StreamProcessor + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.KinesisVideoStream') as kinesis_video_stream, + JSON_EXTRACT(detail.Properties, '$.FaceSearchSettings') as face_search_settings, + JSON_EXTRACT(detail.Properties, '$.ConnectedHomeSettings') as connected_home_settings, + JSON_EXTRACT(detail.Properties, '$.KinesisDataStream') as kinesis_data_stream, + JSON_EXTRACT(detail.Properties, '$.S3Destination') as s3_destination, + JSON_EXTRACT(detail.Properties, '$.NotificationChannel') as notification_channel, + JSON_EXTRACT(detail.Properties, '$.DataSharingPreference') as data_sharing_preference, + JSON_EXTRACT(detail.Properties, '$.PolygonRegionsOfInterest') as polygon_regions_of_interest, + JSON_EXTRACT(detail.Properties, '$.BoundingBoxRegionsOfInterest') as bounding_box_regions_of_interest, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message + 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::Rekognition::StreamProcessor' + AND detail.data__TypeName = 'AWS::Rekognition::StreamProcessor' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'KinesisVideoStream') as kinesis_video_stream, + json_extract_path_text(detail.Properties, 'FaceSearchSettings') as face_search_settings, + json_extract_path_text(detail.Properties, 'ConnectedHomeSettings') as connected_home_settings, + json_extract_path_text(detail.Properties, 'KinesisDataStream') as kinesis_data_stream, + json_extract_path_text(detail.Properties, 'S3Destination') as s3_destination, + json_extract_path_text(detail.Properties, 'NotificationChannel') as notification_channel, + json_extract_path_text(detail.Properties, 'DataSharingPreference') as data_sharing_preference, + json_extract_path_text(detail.Properties, 'PolygonRegionsOfInterest') as polygon_regions_of_interest, + json_extract_path_text(detail.Properties, 'BoundingBoxRegionsOfInterest') as bounding_box_regions_of_interest, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message + 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::Rekognition::StreamProcessor' + AND detail.data__TypeName = 'AWS::Rekognition::StreamProcessor' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/resiliencehub.yaml b/providers/src/aws/v00.00.00000/services/resiliencehub.yaml index 4b4e357d..91a1c4ac 100644 --- a/providers/src/aws/v00.00.00000/services/resiliencehub.yaml +++ b/providers/src/aws/v00.00.00000/services/resiliencehub.yaml @@ -934,10 +934,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AppArn') as app_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::App' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AppArn') as app_arn, + JSON_EXTRACT(detail.Properties, '$.ResiliencyPolicyArn') as resiliency_policy_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AppTemplateBody') as app_template_body, + JSON_EXTRACT(detail.Properties, '$.ResourceMappings') as resource_mappings, + JSON_EXTRACT(detail.Properties, '$.AppAssessmentSchedule') as app_assessment_schedule, + JSON_EXTRACT(detail.Properties, '$.PermissionModel') as permission_model, + JSON_EXTRACT(detail.Properties, '$.EventSubscriptions') as event_subscriptions, + JSON_EXTRACT(detail.Properties, '$.DriftStatus') as drift_status + 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::ResilienceHub::App' + AND detail.data__TypeName = 'AWS::ResilienceHub::App' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -962,10 +977,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AppArn') as app_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::App' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AppArn') as app_arn, + json_extract_path_text(detail.Properties, 'ResiliencyPolicyArn') as resiliency_policy_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AppTemplateBody') as app_template_body, + json_extract_path_text(detail.Properties, 'ResourceMappings') as resource_mappings, + json_extract_path_text(detail.Properties, 'AppAssessmentSchedule') as app_assessment_schedule, + json_extract_path_text(detail.Properties, 'PermissionModel') as permission_model, + json_extract_path_text(detail.Properties, 'EventSubscriptions') as event_subscriptions, + json_extract_path_text(detail.Properties, 'DriftStatus') as drift_status + 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::ResilienceHub::App' + AND detail.data__TypeName = 'AWS::ResilienceHub::App' + AND listing.region = 'us-east-1' + apps_list_only: + name: apps_list_only + id: aws.resiliencehub.apps_list_only + x-cfn-schema-name: App + x-cfn-type-name: AWS::ResilienceHub::App + x-identifiers: + - AppArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AppArn') as app_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::App' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AppArn') as app_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::App' + AND region = 'us-east-1' + app_tags: + name: app_tags + id: aws.resiliencehub.app_tags + x-cfn-schema-name: App + x-cfn-type-name: AWS::ResilienceHub::App + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AppArn') as app_arn, + JSON_EXTRACT(detail.Properties, '$.ResiliencyPolicyArn') as resiliency_policy_arn, + JSON_EXTRACT(detail.Properties, '$.AppTemplateBody') as app_template_body, + JSON_EXTRACT(detail.Properties, '$.ResourceMappings') as resource_mappings, + JSON_EXTRACT(detail.Properties, '$.AppAssessmentSchedule') as app_assessment_schedule, + JSON_EXTRACT(detail.Properties, '$.PermissionModel') as permission_model, + JSON_EXTRACT(detail.Properties, '$.EventSubscriptions') as event_subscriptions, + JSON_EXTRACT(detail.Properties, '$.DriftStatus') as drift_status + 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::ResilienceHub::App' + AND detail.data__TypeName = 'AWS::ResilienceHub::App' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AppArn') as app_arn, + json_extract_path_text(detail.Properties, 'ResiliencyPolicyArn') as resiliency_policy_arn, + json_extract_path_text(detail.Properties, 'AppTemplateBody') as app_template_body, + json_extract_path_text(detail.Properties, 'ResourceMappings') as resource_mappings, + json_extract_path_text(detail.Properties, 'AppAssessmentSchedule') as app_assessment_schedule, + json_extract_path_text(detail.Properties, 'PermissionModel') as permission_model, + json_extract_path_text(detail.Properties, 'EventSubscriptions') as event_subscriptions, + json_extract_path_text(detail.Properties, 'DriftStatus') as drift_status + 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::ResilienceHub::App' + AND detail.data__TypeName = 'AWS::ResilienceHub::App' + AND listing.region = 'us-east-1' resiliency_policies: name: resiliency_policies id: aws.resiliencehub.resiliency_policies @@ -1043,10 +1167,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyArn') as policy_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyDescription') as policy_description, + JSON_EXTRACT(detail.Properties, '$.DataLocationConstraint') as data_location_constraint, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.PolicyArn') as policy_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ResilienceHub::ResiliencyPolicy' + AND detail.data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1067,10 +1202,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyArn') as policy_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyDescription') as policy_description, + json_extract_path_text(detail.Properties, 'DataLocationConstraint') as data_location_constraint, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'PolicyArn') as policy_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ResilienceHub::ResiliencyPolicy' + AND detail.data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' + AND listing.region = 'us-east-1' + resiliency_policies_list_only: + name: resiliency_policies_list_only + id: aws.resiliencehub.resiliency_policies_list_only + x-cfn-schema-name: ResiliencyPolicy + x-cfn-type-name: AWS::ResilienceHub::ResiliencyPolicy + x-identifiers: + - PolicyArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyArn') as policy_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyArn') as policy_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' + AND region = 'us-east-1' + resiliency_policy_tags: + name: resiliency_policy_tags + id: aws.resiliencehub.resiliency_policy_tags + x-cfn-schema-name: ResiliencyPolicy + x-cfn-type-name: AWS::ResilienceHub::ResiliencyPolicy + 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, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyDescription') as policy_description, + JSON_EXTRACT(detail.Properties, '$.DataLocationConstraint') as data_location_constraint, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.PolicyArn') as policy_arn + 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::ResilienceHub::ResiliencyPolicy' + AND detail.data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' + 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, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyDescription') as policy_description, + json_extract_path_text(detail.Properties, 'DataLocationConstraint') as data_location_constraint, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'PolicyArn') as policy_arn + 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::ResilienceHub::ResiliencyPolicy' + AND detail.data__TypeName = 'AWS::ResilienceHub::ResiliencyPolicy' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/resourceexplorer2.yaml b/providers/src/aws/v00.00.00000/services/resourceexplorer2.yaml index c7c47d66..82f90e77 100644 --- a/providers/src/aws/v00.00.00000/services/resourceexplorer2.yaml +++ b/providers/src/aws/v00.00.00000/services/resourceexplorer2.yaml @@ -805,10 +805,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceExplorer2::Index' - AND region = 'us-east-1' + detail.region, + 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, '$.IndexState') as index_state + 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::ResourceExplorer2::Index' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::Index' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -826,10 +834,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceExplorer2::Index' - AND region = 'us-east-1' + detail.region, + 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, 'IndexState') as index_state + 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::ResourceExplorer2::Index' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::Index' + AND listing.region = 'us-east-1' + indices_list_only: + name: indices_list_only + id: aws.resourceexplorer2.indices_list_only + x-cfn-schema-name: Index + x-cfn-type-name: AWS::ResourceExplorer2::Index + 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::ResourceExplorer2::Index' + 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::ResourceExplorer2::Index' + AND region = 'us-east-1' + index_tags: + name: index_tags + id: aws.resourceexplorer2.index_tags + x-cfn-schema-name: Index + x-cfn-type-name: AWS::ResourceExplorer2::Index + 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, '$.IndexState') as index_state + 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::ResourceExplorer2::Index' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::Index' + 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, 'IndexState') as index_state + 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::ResourceExplorer2::Index' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::Index' + AND listing.region = 'us-east-1' views: name: views id: aws.resourceexplorer2.views @@ -906,10 +1002,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ViewArn') as view_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceExplorer2::View' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Filters') as filters, + JSON_EXTRACT(detail.Properties, '$.IncludedProperties') as included_properties, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ViewArn') as view_arn, + JSON_EXTRACT(detail.Properties, '$.ViewName') as view_name + 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::ResourceExplorer2::View' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::View' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -929,10 +1035,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ViewArn') as view_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceExplorer2::View' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Filters') as filters, + json_extract_path_text(detail.Properties, 'IncludedProperties') as included_properties, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ViewArn') as view_arn, + json_extract_path_text(detail.Properties, 'ViewName') as view_name + 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::ResourceExplorer2::View' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::View' + AND listing.region = 'us-east-1' + views_list_only: + name: views_list_only + id: aws.resourceexplorer2.views_list_only + x-cfn-schema-name: View + x-cfn-type-name: AWS::ResourceExplorer2::View + x-identifiers: + - ViewArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ViewArn') as view_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceExplorer2::View' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ViewArn') as view_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceExplorer2::View' + AND region = 'us-east-1' + view_tags: + name: view_tags + id: aws.resourceexplorer2.view_tags + x-cfn-schema-name: View + x-cfn-type-name: AWS::ResourceExplorer2::View + 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, '$.Filters') as filters, + JSON_EXTRACT(detail.Properties, '$.IncludedProperties') as included_properties, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.ViewArn') as view_arn, + JSON_EXTRACT(detail.Properties, '$.ViewName') as view_name + 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::ResourceExplorer2::View' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::View' + 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, 'Filters') as filters, + json_extract_path_text(detail.Properties, 'IncludedProperties') as included_properties, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'ViewArn') as view_arn, + json_extract_path_text(detail.Properties, 'ViewName') as view_name + 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::ResourceExplorer2::View' + AND detail.data__TypeName = 'AWS::ResourceExplorer2::View' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/resourcegroups.yaml b/providers/src/aws/v00.00.00000/services/resourcegroups.yaml index 4e82d1d1..f2dbeb72 100644 --- a/providers/src/aws/v00.00.00000/services/resourcegroups.yaml +++ b/providers/src/aws/v00.00.00000/services/resourcegroups.yaml @@ -654,10 +654,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceGroups::Group' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ResourceQuery') as resource_query, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources + 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::ResourceGroups::Group' + AND detail.data__TypeName = 'AWS::ResourceGroups::Group' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -678,10 +689,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceGroups::Group' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ResourceQuery') as resource_query, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'Resources') as resources + 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::ResourceGroups::Group' + AND detail.data__TypeName = 'AWS::ResourceGroups::Group' + AND listing.region = 'us-east-1' + groups_list_only: + name: groups_list_only + id: aws.resourcegroups.groups_list_only + x-cfn-schema-name: Group + x-cfn-type-name: AWS::ResourceGroups::Group + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceGroups::Group' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ResourceGroups::Group' + AND region = 'us-east-1' + group_tags: + name: group_tags + id: aws.resourcegroups.group_tags + x-cfn-schema-name: Group + x-cfn-type-name: AWS::ResourceGroups::Group + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ResourceQuery') as resource_query, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources + 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::ResourceGroups::Group' + AND detail.data__TypeName = 'AWS::ResourceGroups::Group' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ResourceQuery') as resource_query, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'Resources') as resources + 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::ResourceGroups::Group' + AND detail.data__TypeName = 'AWS::ResourceGroups::Group' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/robomaker.yaml b/providers/src/aws/v00.00.00000/services/robomaker.yaml index 7a54d596..20564fa3 100644 --- a/providers/src/aws/v00.00.00000/services/robomaker.yaml +++ b/providers/src/aws/v00.00.00000/services/robomaker.yaml @@ -1120,10 +1120,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RoboMaker::Fleet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::RoboMaker::Fleet' + AND detail.data__TypeName = 'AWS::RoboMaker::Fleet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1140,10 +1147,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RoboMaker::Fleet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::RoboMaker::Fleet' + AND detail.data__TypeName = 'AWS::RoboMaker::Fleet' + AND listing.region = 'us-east-1' + fleets_list_only: + name: fleets_list_only + id: aws.robomaker.fleets_list_only + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::RoboMaker::Fleet + 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::RoboMaker::Fleet' + 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::RoboMaker::Fleet' + AND region = 'us-east-1' + fleet_tags: + name: fleet_tags + id: aws.robomaker.fleet_tags + x-cfn-schema-name: Fleet + x-cfn-type-name: AWS::RoboMaker::Fleet + 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, '$.Name') as name + 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::RoboMaker::Fleet' + AND detail.data__TypeName = 'AWS::RoboMaker::Fleet' + 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, 'Name') as name + 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::RoboMaker::Fleet' + AND detail.data__TypeName = 'AWS::RoboMaker::Fleet' + AND listing.region = 'us-east-1' robots: name: robots id: aws.robomaker.robots @@ -1220,10 +1312,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RoboMaker::Robot' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Fleet') as fleet, + JSON_EXTRACT(detail.Properties, '$.Architecture') as architecture, + JSON_EXTRACT(detail.Properties, '$.GreengrassGroupId') as greengrass_group_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::RoboMaker::Robot' + AND detail.data__TypeName = 'AWS::RoboMaker::Robot' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1243,10 +1345,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::RoboMaker::Robot' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Fleet') as fleet, + json_extract_path_text(detail.Properties, 'Architecture') as architecture, + json_extract_path_text(detail.Properties, 'GreengrassGroupId') as greengrass_group_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::RoboMaker::Robot' + AND detail.data__TypeName = 'AWS::RoboMaker::Robot' + AND listing.region = 'us-east-1' + robots_list_only: + name: robots_list_only + id: aws.robomaker.robots_list_only + x-cfn-schema-name: Robot + x-cfn-type-name: AWS::RoboMaker::Robot + 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::RoboMaker::Robot' + 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::RoboMaker::Robot' + AND region = 'us-east-1' + robot_tags: + name: robot_tags + id: aws.robomaker.robot_tags + x-cfn-schema-name: Robot + x-cfn-type-name: AWS::RoboMaker::Robot + 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, '$.Fleet') as fleet, + JSON_EXTRACT(detail.Properties, '$.Architecture') as architecture, + JSON_EXTRACT(detail.Properties, '$.GreengrassGroupId') as greengrass_group_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::RoboMaker::Robot' + AND detail.data__TypeName = 'AWS::RoboMaker::Robot' + 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, 'Fleet') as fleet, + json_extract_path_text(detail.Properties, 'Architecture') as architecture, + json_extract_path_text(detail.Properties, 'GreengrassGroupId') as greengrass_group_id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::RoboMaker::Robot' + AND detail.data__TypeName = 'AWS::RoboMaker::Robot' + AND listing.region = 'us-east-1' robot_applications: name: robot_applications id: aws.robomaker.robot_applications @@ -1324,10 +1520,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RoboMaker::RobotApplication' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.Environment') as environment, + JSON_EXTRACT(detail.Properties, '$.RobotSoftwareSuite') as robot_software_suite, + JSON_EXTRACT(detail.Properties, '$.CurrentRevisionId') as current_revision_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RoboMaker::RobotApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::RobotApplication' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1348,10 +1555,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RoboMaker::RobotApplication' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'Environment') as environment, + json_extract_path_text(detail.Properties, 'RobotSoftwareSuite') as robot_software_suite, + json_extract_path_text(detail.Properties, 'CurrentRevisionId') as current_revision_id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RoboMaker::RobotApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::RobotApplication' + AND listing.region = 'us-east-1' + robot_applications_list_only: + name: robot_applications_list_only + id: aws.robomaker.robot_applications_list_only + x-cfn-schema-name: RobotApplication + x-cfn-type-name: AWS::RoboMaker::RobotApplication + 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::RoboMaker::RobotApplication' + 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::RoboMaker::RobotApplication' + AND region = 'us-east-1' + robot_application_tags: + name: robot_application_tags + id: aws.robomaker.robot_application_tags + x-cfn-schema-name: RobotApplication + x-cfn-type-name: AWS::RoboMaker::RobotApplication + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.Environment') as environment, + JSON_EXTRACT(detail.Properties, '$.RobotSoftwareSuite') as robot_software_suite, + JSON_EXTRACT(detail.Properties, '$.CurrentRevisionId') as current_revision_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::RoboMaker::RobotApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::RobotApplication' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'Environment') as environment, + json_extract_path_text(detail.Properties, 'RobotSoftwareSuite') as robot_software_suite, + json_extract_path_text(detail.Properties, 'CurrentRevisionId') as current_revision_id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::RoboMaker::RobotApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::RobotApplication' + AND listing.region = 'us-east-1' robot_application_versions: name: robot_application_versions id: aws.robomaker.robot_application_versions @@ -1501,10 +1805,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RoboMaker::SimulationApplication' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CurrentRevisionId') as current_revision_id, + JSON_EXTRACT(detail.Properties, '$.RenderingEngine') as rendering_engine, + JSON_EXTRACT(detail.Properties, '$.RobotSoftwareSuite') as robot_software_suite, + JSON_EXTRACT(detail.Properties, '$.SimulationSoftwareSuite') as simulation_software_suite, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.Environment') as environment, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RoboMaker::SimulationApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::SimulationApplication' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1527,10 +1844,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RoboMaker::SimulationApplication' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CurrentRevisionId') as current_revision_id, + json_extract_path_text(detail.Properties, 'RenderingEngine') as rendering_engine, + json_extract_path_text(detail.Properties, 'RobotSoftwareSuite') as robot_software_suite, + json_extract_path_text(detail.Properties, 'SimulationSoftwareSuite') as simulation_software_suite, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'Environment') as environment, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RoboMaker::SimulationApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::SimulationApplication' + AND listing.region = 'us-east-1' + simulation_applications_list_only: + name: simulation_applications_list_only + id: aws.robomaker.simulation_applications_list_only + x-cfn-schema-name: SimulationApplication + x-cfn-type-name: AWS::RoboMaker::SimulationApplication + 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::RoboMaker::SimulationApplication' + 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::RoboMaker::SimulationApplication' + AND region = 'us-east-1' + simulation_application_tags: + name: simulation_application_tags + id: aws.robomaker.simulation_application_tags + x-cfn-schema-name: SimulationApplication + x-cfn-type-name: AWS::RoboMaker::SimulationApplication + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CurrentRevisionId') as current_revision_id, + JSON_EXTRACT(detail.Properties, '$.RenderingEngine') as rendering_engine, + JSON_EXTRACT(detail.Properties, '$.RobotSoftwareSuite') as robot_software_suite, + JSON_EXTRACT(detail.Properties, '$.SimulationSoftwareSuite') as simulation_software_suite, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.Environment') as environment + 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::RoboMaker::SimulationApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::SimulationApplication' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'CurrentRevisionId') as current_revision_id, + json_extract_path_text(detail.Properties, 'RenderingEngine') as rendering_engine, + json_extract_path_text(detail.Properties, 'RobotSoftwareSuite') as robot_software_suite, + json_extract_path_text(detail.Properties, 'SimulationSoftwareSuite') as simulation_software_suite, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'Environment') as environment + 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::RoboMaker::SimulationApplication' + AND detail.data__TypeName = 'AWS::RoboMaker::SimulationApplication' + AND listing.region = 'us-east-1' simulation_application_versions: name: simulation_application_versions id: aws.robomaker.simulation_application_versions diff --git a/providers/src/aws/v00.00.00000/services/rolesanywhere.yaml b/providers/src/aws/v00.00.00000/services/rolesanywhere.yaml index d5505e00..2e46512d 100644 --- a/providers/src/aws/v00.00.00000/services/rolesanywhere.yaml +++ b/providers/src/aws/v00.00.00000/services/rolesanywhere.yaml @@ -916,10 +916,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CrlId') as crl_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::CRL' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CrlData') as crl_data, + JSON_EXTRACT(detail.Properties, '$.CrlId') as crl_id, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.TrustAnchorArn') as trust_anchor_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::RolesAnywhere::CRL' + AND detail.data__TypeName = 'AWS::RolesAnywhere::CRL' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -939,10 +949,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CrlId') as crl_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::CRL' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CrlData') as crl_data, + json_extract_path_text(detail.Properties, 'CrlId') as crl_id, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'TrustAnchorArn') as trust_anchor_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::RolesAnywhere::CRL' + AND detail.data__TypeName = 'AWS::RolesAnywhere::CRL' + AND listing.region = 'us-east-1' + crls_list_only: + name: crls_list_only + id: aws.rolesanywhere.crls_list_only + x-cfn-schema-name: CRL + x-cfn-type-name: AWS::RolesAnywhere::CRL + x-identifiers: + - CrlId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CrlId') as crl_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::CRL' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CrlId') as crl_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::CRL' + AND region = 'us-east-1' + crl_tags: + name: crl_tags + id: aws.rolesanywhere.crl_tags + x-cfn-schema-name: CRL + x-cfn-type-name: AWS::RolesAnywhere::CRL + 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, '$.CrlData') as crl_data, + JSON_EXTRACT(detail.Properties, '$.CrlId') as crl_id, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.TrustAnchorArn') as trust_anchor_arn + 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::RolesAnywhere::CRL' + AND detail.data__TypeName = 'AWS::RolesAnywhere::CRL' + 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, 'CrlData') as crl_data, + json_extract_path_text(detail.Properties, 'CrlId') as crl_id, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'TrustAnchorArn') as trust_anchor_arn + 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::RolesAnywhere::CRL' + AND detail.data__TypeName = 'AWS::RolesAnywhere::CRL' + AND listing.region = 'us-east-1' profiles: name: profiles id: aws.rolesanywhere.profiles @@ -1024,10 +1128,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProfileId') as profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::Profile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DurationSeconds') as duration_seconds, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyArns') as managed_policy_arns, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProfileArn') as profile_arn, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.RequireInstanceProperties') as require_instance_properties, + JSON_EXTRACT(detail.Properties, '$.RoleArns') as role_arns, + JSON_EXTRACT(detail.Properties, '$.SessionPolicy') as session_policy, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AttributeMappings') as attribute_mappings + 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::RolesAnywhere::Profile' + AND detail.data__TypeName = 'AWS::RolesAnywhere::Profile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1052,10 +1171,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProfileId') as profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::Profile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DurationSeconds') as duration_seconds, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'ManagedPolicyArns') as managed_policy_arns, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProfileArn') as profile_arn, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'RequireInstanceProperties') as require_instance_properties, + json_extract_path_text(detail.Properties, 'RoleArns') as role_arns, + json_extract_path_text(detail.Properties, 'SessionPolicy') as session_policy, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AttributeMappings') as attribute_mappings + 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::RolesAnywhere::Profile' + AND detail.data__TypeName = 'AWS::RolesAnywhere::Profile' + AND listing.region = 'us-east-1' + profiles_list_only: + name: profiles_list_only + id: aws.rolesanywhere.profiles_list_only + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::RolesAnywhere::Profile + x-identifiers: + - ProfileId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProfileId') as profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::Profile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProfileId') as profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::Profile' + AND region = 'us-east-1' + profile_tags: + name: profile_tags + id: aws.rolesanywhere.profile_tags + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::RolesAnywhere::Profile + 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, '$.DurationSeconds') as duration_seconds, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicyArns') as managed_policy_arns, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ProfileArn') as profile_arn, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.RequireInstanceProperties') as require_instance_properties, + JSON_EXTRACT(detail.Properties, '$.RoleArns') as role_arns, + JSON_EXTRACT(detail.Properties, '$.SessionPolicy') as session_policy, + JSON_EXTRACT(detail.Properties, '$.AttributeMappings') as attribute_mappings + 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::RolesAnywhere::Profile' + AND detail.data__TypeName = 'AWS::RolesAnywhere::Profile' + 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, 'DurationSeconds') as duration_seconds, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'ManagedPolicyArns') as managed_policy_arns, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ProfileArn') as profile_arn, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'RequireInstanceProperties') as require_instance_properties, + json_extract_path_text(detail.Properties, 'RoleArns') as role_arns, + json_extract_path_text(detail.Properties, 'SessionPolicy') as session_policy, + json_extract_path_text(detail.Properties, 'AttributeMappings') as attribute_mappings + 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::RolesAnywhere::Profile' + AND detail.data__TypeName = 'AWS::RolesAnywhere::Profile' + AND listing.region = 'us-east-1' trust_anchors: name: trust_anchors id: aws.rolesanywhere.trust_anchors @@ -1133,10 +1361,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrustAnchorId') as trust_anchor_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NotificationSettings') as notification_settings, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrustAnchorId') as trust_anchor_id, + JSON_EXTRACT(detail.Properties, '$.TrustAnchorArn') as trust_anchor_arn + 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::RolesAnywhere::TrustAnchor' + AND detail.data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1157,10 +1396,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrustAnchorId') as trust_anchor_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NotificationSettings') as notification_settings, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrustAnchorId') as trust_anchor_id, + json_extract_path_text(detail.Properties, 'TrustAnchorArn') as trust_anchor_arn + 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::RolesAnywhere::TrustAnchor' + AND detail.data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' + AND listing.region = 'us-east-1' + trust_anchors_list_only: + name: trust_anchors_list_only + id: aws.rolesanywhere.trust_anchors_list_only + x-cfn-schema-name: TrustAnchor + x-cfn-type-name: AWS::RolesAnywhere::TrustAnchor + x-identifiers: + - TrustAnchorId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrustAnchorId') as trust_anchor_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrustAnchorId') as trust_anchor_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' + AND region = 'us-east-1' + trust_anchor_tags: + name: trust_anchor_tags + id: aws.rolesanywhere.trust_anchor_tags + x-cfn-schema-name: TrustAnchor + x-cfn-type-name: AWS::RolesAnywhere::TrustAnchor + 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, '$.Enabled') as enabled, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.NotificationSettings') as notification_settings, + JSON_EXTRACT(detail.Properties, '$.Source') as source, + JSON_EXTRACT(detail.Properties, '$.TrustAnchorId') as trust_anchor_id, + JSON_EXTRACT(detail.Properties, '$.TrustAnchorArn') as trust_anchor_arn + 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::RolesAnywhere::TrustAnchor' + AND detail.data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' + 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, 'Enabled') as enabled, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'NotificationSettings') as notification_settings, + json_extract_path_text(detail.Properties, 'Source') as source, + json_extract_path_text(detail.Properties, 'TrustAnchorId') as trust_anchor_id, + json_extract_path_text(detail.Properties, 'TrustAnchorArn') as trust_anchor_arn + 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::RolesAnywhere::TrustAnchor' + AND detail.data__TypeName = 'AWS::RolesAnywhere::TrustAnchor' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/route53.yaml b/providers/src/aws/v00.00.00000/services/route53.yaml index f2353dc6..61732b03 100644 --- a/providers/src/aws/v00.00.00000/services/route53.yaml +++ b/providers/src/aws/v00.00.00000/services/route53.yaml @@ -1754,10 +1754,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::CidrCollection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Locations') as locations + 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::Route53::CidrCollection' + AND detail.data__TypeName = 'AWS::Route53::CidrCollection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1775,10 +1783,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::CidrCollection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Locations') as locations + 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::Route53::CidrCollection' + AND detail.data__TypeName = 'AWS::Route53::CidrCollection' + AND listing.region = 'us-east-1' + cidr_collections_list_only: + name: cidr_collections_list_only + id: aws.route53.cidr_collections_list_only + x-cfn-schema-name: CidrCollection + x-cfn-type-name: AWS::Route53::CidrCollection + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::CidrCollection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::CidrCollection' + AND region = 'us-east-1' dnssecs: name: dnssecs id: aws.route53.dnssecs @@ -1837,10 +1884,15 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.HostedZoneId') as hosted_zone_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::DNSSEC' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.HostedZoneId') as hosted_zone_id + 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::Route53::DNSSEC' + AND detail.data__TypeName = 'AWS::Route53::DNSSEC' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1855,10 +1907,46 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'HostedZoneId') as hosted_zone_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::DNSSEC' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'HostedZoneId') as hosted_zone_id + 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::Route53::DNSSEC' + AND detail.data__TypeName = 'AWS::Route53::DNSSEC' + AND listing.region = 'us-east-1' + dnssecs_list_only: + name: dnssecs_list_only + id: aws.route53.dnssecs_list_only + x-cfn-schema-name: DNSSEC + x-cfn-type-name: AWS::Route53::DNSSEC + x-identifiers: + - HostedZoneId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.HostedZoneId') as hosted_zone_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::DNSSEC' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'HostedZoneId') as hosted_zone_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::DNSSEC' + AND region = 'us-east-1' health_checks: name: health_checks id: aws.route53.health_checks @@ -1932,10 +2020,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.HealthCheckId') as health_check_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HealthCheck' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.HealthCheckId') as health_check_id, + JSON_EXTRACT(detail.Properties, '$.HealthCheckConfig') as health_check_config, + JSON_EXTRACT(detail.Properties, '$.HealthCheckTags') as health_check_tags + 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::Route53::HealthCheck' + AND detail.data__TypeName = 'AWS::Route53::HealthCheck' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1952,10 +2047,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'HealthCheckId') as health_check_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HealthCheck' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'HealthCheckId') as health_check_id, + json_extract_path_text(detail.Properties, 'HealthCheckConfig') as health_check_config, + json_extract_path_text(detail.Properties, 'HealthCheckTags') as health_check_tags + 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::Route53::HealthCheck' + AND detail.data__TypeName = 'AWS::Route53::HealthCheck' + AND listing.region = 'us-east-1' + health_checks_list_only: + name: health_checks_list_only + id: aws.route53.health_checks_list_only + x-cfn-schema-name: HealthCheck + x-cfn-type-name: AWS::Route53::HealthCheck + x-identifiers: + - HealthCheckId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.HealthCheckId') as health_check_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HealthCheck' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'HealthCheckId') as health_check_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HealthCheck' + AND region = 'us-east-1' hosted_zones: name: hosted_zones id: aws.route53.hosted_zones @@ -2033,10 +2166,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HostedZone' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.HostedZoneConfig') as hosted_zone_config, + JSON_EXTRACT(detail.Properties, '$.HostedZoneTags') as hosted_zone_tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.QueryLoggingConfig') as query_logging_config, + JSON_EXTRACT(detail.Properties, '$.VPCs') as vpcs, + JSON_EXTRACT(detail.Properties, '$.NameServers') as name_servers + 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::Route53::HostedZone' + AND detail.data__TypeName = 'AWS::Route53::HostedZone' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2057,10 +2201,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HostedZone' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'HostedZoneConfig') as hosted_zone_config, + json_extract_path_text(detail.Properties, 'HostedZoneTags') as hosted_zone_tags, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'QueryLoggingConfig') as query_logging_config, + json_extract_path_text(detail.Properties, 'VPCs') as vpcs, + json_extract_path_text(detail.Properties, 'NameServers') as name_servers + 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::Route53::HostedZone' + AND detail.data__TypeName = 'AWS::Route53::HostedZone' + AND listing.region = 'us-east-1' + hosted_zones_list_only: + name: hosted_zones_list_only + id: aws.route53.hosted_zones_list_only + x-cfn-schema-name: HostedZone + x-cfn-type-name: AWS::Route53::HostedZone + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HostedZone' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::HostedZone' + AND region = 'us-east-1' key_signing_keys: name: key_signing_keys id: aws.route53.key_signing_keys @@ -2136,11 +2322,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.HostedZoneId') as hosted_zone_id, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::KeySigningKey' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.HostedZoneId') as hosted_zone_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.KeyManagementServiceArn') as key_management_service_arn + 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::Route53::KeySigningKey' + AND detail.data__TypeName = 'AWS::Route53::KeySigningKey' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2158,11 +2351,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'HostedZoneId') as hosted_zone_id, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::KeySigningKey' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'HostedZoneId') as hosted_zone_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'KeyManagementServiceArn') as key_management_service_arn + 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::Route53::KeySigningKey' + AND detail.data__TypeName = 'AWS::Route53::KeySigningKey' + AND listing.region = 'us-east-1' + key_signing_keys_list_only: + name: key_signing_keys_list_only + id: aws.route53.key_signing_keys_list_only + x-cfn-schema-name: KeySigningKey + x-cfn-type-name: AWS::Route53::KeySigningKey + x-identifiers: + - HostedZoneId + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.HostedZoneId') as hosted_zone_id, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::KeySigningKey' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'HostedZoneId') as hosted_zone_id, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53::KeySigningKey' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/route53profiles.yaml b/providers/src/aws/v00.00.00000/services/route53profiles.yaml index fb83be7b..df98cfa4 100644 --- a/providers/src/aws/v00.00.00000/services/route53profiles.yaml +++ b/providers/src/aws/v00.00.00000/services/route53profiles.yaml @@ -813,10 +813,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::Profile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::Route53Profiles::Profile' + AND detail.data__TypeName = 'AWS::Route53Profiles::Profile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -835,10 +844,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::Profile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::Route53Profiles::Profile' + AND detail.data__TypeName = 'AWS::Route53Profiles::Profile' + AND listing.region = 'us-east-1' + profiles_list_only: + name: profiles_list_only + id: aws.route53profiles.profiles_list_only + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::Route53Profiles::Profile + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::Profile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::Profile' + AND region = 'us-east-1' + profile_tags: + name: profile_tags + id: aws.route53profiles.profile_tags + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::Route53Profiles::Profile + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::Route53Profiles::Profile' + AND detail.data__TypeName = 'AWS::Route53Profiles::Profile' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id + 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::Route53Profiles::Profile' + AND detail.data__TypeName = 'AWS::Route53Profiles::Profile' + AND listing.region = 'us-east-1' profile_associations: name: profile_associations id: aws.route53profiles.profile_associations @@ -915,10 +1015,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Route53Profiles::ProfileAssociation' + AND detail.data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -938,10 +1048,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Route53Profiles::ProfileAssociation' + AND detail.data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' + AND listing.region = 'us-east-1' + profile_associations_list_only: + name: profile_associations_list_only + id: aws.route53profiles.profile_associations_list_only + x-cfn-schema-name: ProfileAssociation + x-cfn-type-name: AWS::Route53Profiles::ProfileAssociation + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' + AND region = 'us-east-1' + profile_association_tags: + name: profile_association_tags + id: aws.route53profiles.profile_association_tags + x-cfn-schema-name: ProfileAssociation + x-cfn-type-name: AWS::Route53Profiles::ProfileAssociation + 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, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Route53Profiles::ProfileAssociation' + AND detail.data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' + 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, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Route53Profiles::ProfileAssociation' + AND detail.data__TypeName = 'AWS::Route53Profiles::ProfileAssociation' + AND listing.region = 'us-east-1' profile_resource_associations: name: profile_resource_associations id: aws.route53profiles.profile_resource_associations @@ -1018,10 +1222,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileResourceAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceProperties') as resource_properties, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type + 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::Route53Profiles::ProfileResourceAssociation' + AND detail.data__TypeName = 'AWS::Route53Profiles::ProfileResourceAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1041,10 +1255,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileResourceAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'ResourceProperties') as resource_properties, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type + 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::Route53Profiles::ProfileResourceAssociation' + AND detail.data__TypeName = 'AWS::Route53Profiles::ProfileResourceAssociation' + AND listing.region = 'us-east-1' + profile_resource_associations_list_only: + name: profile_resource_associations_list_only + id: aws.route53profiles.profile_resource_associations_list_only + x-cfn-schema-name: ProfileResourceAssociation + x-cfn-type-name: AWS::Route53Profiles::ProfileResourceAssociation + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileResourceAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Profiles::ProfileResourceAssociation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/route53recoverycontrol.yaml b/providers/src/aws/v00.00.00000/services/route53recoverycontrol.yaml index 7ff5c30e..c7ba6c9c 100644 --- a/providers/src/aws/v00.00.00000/services/route53recoverycontrol.yaml +++ b/providers/src/aws/v00.00.00000/services/route53recoverycontrol.yaml @@ -999,10 +999,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::Cluster' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ClusterEndpoints') as cluster_endpoints, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53RecoveryControl::Cluster' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::Cluster' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1021,10 +1030,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ClusterArn') as cluster_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::Cluster' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ClusterEndpoints') as cluster_endpoints, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53RecoveryControl::Cluster' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::Cluster' + AND listing.region = 'us-east-1' + clusters_list_only: + name: clusters_list_only + id: aws.route53recoverycontrol.clusters_list_only + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::Route53RecoveryControl::Cluster + x-identifiers: + - ClusterArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::Cluster' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ClusterArn') as cluster_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::Cluster' + AND region = 'us-east-1' + cluster_tags: + name: cluster_tags + id: aws.route53recoverycontrol.cluster_tags + x-cfn-schema-name: Cluster + x-cfn-type-name: AWS::Route53RecoveryControl::Cluster + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ClusterEndpoints') as cluster_endpoints + 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::Route53RecoveryControl::Cluster' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::Cluster' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ClusterEndpoints') as cluster_endpoints + 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::Route53RecoveryControl::Cluster' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::Cluster' + AND listing.region = 'us-east-1' control_panels: name: control_panels id: aws.route53recoverycontrol.control_panels @@ -1102,10 +1202,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ControlPanelArn') as control_panel_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.ControlPanelArn') as control_panel_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DefaultControlPanel') as default_control_panel, + JSON_EXTRACT(detail.Properties, '$.RoutingControlCount') as routing_control_count, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53RecoveryControl::ControlPanel' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1126,10 +1237,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ControlPanelArn') as control_panel_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'ControlPanelArn') as control_panel_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DefaultControlPanel') as default_control_panel, + json_extract_path_text(detail.Properties, 'RoutingControlCount') as routing_control_count, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53RecoveryControl::ControlPanel' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' + AND listing.region = 'us-east-1' + control_panels_list_only: + name: control_panels_list_only + id: aws.route53recoverycontrol.control_panels_list_only + x-cfn-schema-name: ControlPanel + x-cfn-type-name: AWS::Route53RecoveryControl::ControlPanel + x-identifiers: + - ControlPanelArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ControlPanelArn') as control_panel_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ControlPanelArn') as control_panel_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' + AND region = 'us-east-1' + control_panel_tags: + name: control_panel_tags + id: aws.route53recoverycontrol.control_panel_tags + x-cfn-schema-name: ControlPanel + x-cfn-type-name: AWS::Route53RecoveryControl::ControlPanel + 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, '$.ClusterArn') as cluster_arn, + JSON_EXTRACT(detail.Properties, '$.ControlPanelArn') as control_panel_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.DefaultControlPanel') as default_control_panel, + JSON_EXTRACT(detail.Properties, '$.RoutingControlCount') as routing_control_count + 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::Route53RecoveryControl::ControlPanel' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' + 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, 'ClusterArn') as cluster_arn, + json_extract_path_text(detail.Properties, 'ControlPanelArn') as control_panel_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'DefaultControlPanel') as default_control_panel, + json_extract_path_text(detail.Properties, 'RoutingControlCount') as routing_control_count + 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::Route53RecoveryControl::ControlPanel' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::ControlPanel' + AND listing.region = 'us-east-1' routing_controls: name: routing_controls id: aws.route53recoverycontrol.routing_controls @@ -1205,10 +1413,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RoutingControlArn') as routing_control_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::RoutingControl' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RoutingControlArn') as routing_control_arn, + JSON_EXTRACT(detail.Properties, '$.ControlPanelArn') as control_panel_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ClusterArn') as cluster_arn + 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::Route53RecoveryControl::RoutingControl' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::RoutingControl' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1227,10 +1444,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RoutingControlArn') as routing_control_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::RoutingControl' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RoutingControlArn') as routing_control_arn, + json_extract_path_text(detail.Properties, 'ControlPanelArn') as control_panel_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ClusterArn') as cluster_arn + 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::Route53RecoveryControl::RoutingControl' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::RoutingControl' + AND listing.region = 'us-east-1' + routing_controls_list_only: + name: routing_controls_list_only + id: aws.route53recoverycontrol.routing_controls_list_only + x-cfn-schema-name: RoutingControl + x-cfn-type-name: AWS::Route53RecoveryControl::RoutingControl + x-identifiers: + - RoutingControlArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RoutingControlArn') as routing_control_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::RoutingControl' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RoutingControlArn') as routing_control_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::RoutingControl' + AND region = 'us-east-1' safety_rules: name: safety_rules id: aws.route53recoverycontrol.safety_rules @@ -1309,10 +1566,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SafetyRuleArn') as safety_rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssertionRule') as assertion_rule, + JSON_EXTRACT(detail.Properties, '$.GatingRule') as gating_rule, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SafetyRuleArn') as safety_rule_arn, + JSON_EXTRACT(detail.Properties, '$.ControlPanelArn') as control_panel_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.RuleConfig') as rule_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53RecoveryControl::SafetyRule' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1334,10 +1603,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SafetyRuleArn') as safety_rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssertionRule') as assertion_rule, + json_extract_path_text(detail.Properties, 'GatingRule') as gating_rule, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SafetyRuleArn') as safety_rule_arn, + json_extract_path_text(detail.Properties, 'ControlPanelArn') as control_panel_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'RuleConfig') as rule_config, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53RecoveryControl::SafetyRule' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' + AND listing.region = 'us-east-1' + safety_rules_list_only: + name: safety_rules_list_only + id: aws.route53recoverycontrol.safety_rules_list_only + x-cfn-schema-name: SafetyRule + x-cfn-type-name: AWS::Route53RecoveryControl::SafetyRule + x-identifiers: + - SafetyRuleArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SafetyRuleArn') as safety_rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SafetyRuleArn') as safety_rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' + AND region = 'us-east-1' + safety_rule_tags: + name: safety_rule_tags + id: aws.route53recoverycontrol.safety_rule_tags + x-cfn-schema-name: SafetyRule + x-cfn-type-name: AWS::Route53RecoveryControl::SafetyRule + 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, '$.AssertionRule') as assertion_rule, + JSON_EXTRACT(detail.Properties, '$.GatingRule') as gating_rule, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.SafetyRuleArn') as safety_rule_arn, + JSON_EXTRACT(detail.Properties, '$.ControlPanelArn') as control_panel_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.RuleConfig') as rule_config + 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::Route53RecoveryControl::SafetyRule' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' + 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, 'AssertionRule') as assertion_rule, + json_extract_path_text(detail.Properties, 'GatingRule') as gating_rule, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'SafetyRuleArn') as safety_rule_arn, + json_extract_path_text(detail.Properties, 'ControlPanelArn') as control_panel_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'RuleConfig') as rule_config + 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::Route53RecoveryControl::SafetyRule' + AND detail.data__TypeName = 'AWS::Route53RecoveryControl::SafetyRule' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/route53recoveryreadiness.yaml b/providers/src/aws/v00.00.00000/services/route53recoveryreadiness.yaml index 624228a1..663f9a73 100644 --- a/providers/src/aws/v00.00.00000/services/route53recoveryreadiness.yaml +++ b/providers/src/aws/v00.00.00000/services/route53recoveryreadiness.yaml @@ -984,10 +984,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CellName') as cell_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.CellName') as cell_name, + JSON_EXTRACT(detail.Properties, '$.CellArn') as cell_arn, + JSON_EXTRACT(detail.Properties, '$.Cells') as cells, + JSON_EXTRACT(detail.Properties, '$.ParentReadinessScopes') as parent_readiness_scopes, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53RecoveryReadiness::Cell' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1006,10 +1015,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CellName') as cell_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'CellName') as cell_name, + json_extract_path_text(detail.Properties, 'CellArn') as cell_arn, + json_extract_path_text(detail.Properties, 'Cells') as cells, + json_extract_path_text(detail.Properties, 'ParentReadinessScopes') as parent_readiness_scopes, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53RecoveryReadiness::Cell' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' + AND listing.region = 'us-east-1' + cells_list_only: + name: cells_list_only + id: aws.route53recoveryreadiness.cells_list_only + x-cfn-schema-name: Cell + x-cfn-type-name: AWS::Route53RecoveryReadiness::Cell + x-identifiers: + - CellName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CellName') as cell_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CellName') as cell_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' + AND region = 'us-east-1' + cell_tags: + name: cell_tags + id: aws.route53recoveryreadiness.cell_tags + x-cfn-schema-name: Cell + x-cfn-type-name: AWS::Route53RecoveryReadiness::Cell + 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, '$.CellName') as cell_name, + JSON_EXTRACT(detail.Properties, '$.CellArn') as cell_arn, + JSON_EXTRACT(detail.Properties, '$.Cells') as cells, + JSON_EXTRACT(detail.Properties, '$.ParentReadinessScopes') as parent_readiness_scopes + 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::Route53RecoveryReadiness::Cell' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' + 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, 'CellName') as cell_name, + json_extract_path_text(detail.Properties, 'CellArn') as cell_arn, + json_extract_path_text(detail.Properties, 'Cells') as cells, + json_extract_path_text(detail.Properties, 'ParentReadinessScopes') as parent_readiness_scopes + 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::Route53RecoveryReadiness::Cell' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::Cell' + AND listing.region = 'us-east-1' readiness_checks: name: readiness_checks id: aws.route53recoveryreadiness.readiness_checks @@ -1084,10 +1184,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ReadinessCheckName') as readiness_check_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceSetName') as resource_set_name, + JSON_EXTRACT(detail.Properties, '$.ReadinessCheckName') as readiness_check_name, + JSON_EXTRACT(detail.Properties, '$.ReadinessCheckArn') as readiness_check_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53RecoveryReadiness::ReadinessCheck' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1105,10 +1213,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ReadinessCheckName') as readiness_check_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceSetName') as resource_set_name, + json_extract_path_text(detail.Properties, 'ReadinessCheckName') as readiness_check_name, + json_extract_path_text(detail.Properties, 'ReadinessCheckArn') as readiness_check_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53RecoveryReadiness::ReadinessCheck' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' + AND listing.region = 'us-east-1' + readiness_checks_list_only: + name: readiness_checks_list_only + id: aws.route53recoveryreadiness.readiness_checks_list_only + x-cfn-schema-name: ReadinessCheck + x-cfn-type-name: AWS::Route53RecoveryReadiness::ReadinessCheck + x-identifiers: + - ReadinessCheckName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ReadinessCheckName') as readiness_check_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ReadinessCheckName') as readiness_check_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' + AND region = 'us-east-1' + readiness_check_tags: + name: readiness_check_tags + id: aws.route53recoveryreadiness.readiness_check_tags + x-cfn-schema-name: ReadinessCheck + x-cfn-type-name: AWS::Route53RecoveryReadiness::ReadinessCheck + 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, '$.ResourceSetName') as resource_set_name, + JSON_EXTRACT(detail.Properties, '$.ReadinessCheckName') as readiness_check_name, + JSON_EXTRACT(detail.Properties, '$.ReadinessCheckArn') as readiness_check_arn + 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::Route53RecoveryReadiness::ReadinessCheck' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' + 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, 'ResourceSetName') as resource_set_name, + json_extract_path_text(detail.Properties, 'ReadinessCheckName') as readiness_check_name, + json_extract_path_text(detail.Properties, 'ReadinessCheckArn') as readiness_check_arn + 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::Route53RecoveryReadiness::ReadinessCheck' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ReadinessCheck' + AND listing.region = 'us-east-1' recovery_groups: name: recovery_groups id: aws.route53recoveryreadiness.recovery_groups @@ -1183,10 +1379,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RecoveryGroupName') as recovery_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RecoveryGroupName') as recovery_group_name, + JSON_EXTRACT(detail.Properties, '$.Cells') as cells, + JSON_EXTRACT(detail.Properties, '$.RecoveryGroupArn') as recovery_group_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53RecoveryReadiness::RecoveryGroup' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1204,10 +1408,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RecoveryGroupName') as recovery_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RecoveryGroupName') as recovery_group_name, + json_extract_path_text(detail.Properties, 'Cells') as cells, + json_extract_path_text(detail.Properties, 'RecoveryGroupArn') as recovery_group_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53RecoveryReadiness::RecoveryGroup' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' + AND listing.region = 'us-east-1' + recovery_groups_list_only: + name: recovery_groups_list_only + id: aws.route53recoveryreadiness.recovery_groups_list_only + x-cfn-schema-name: RecoveryGroup + x-cfn-type-name: AWS::Route53RecoveryReadiness::RecoveryGroup + x-identifiers: + - RecoveryGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RecoveryGroupName') as recovery_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RecoveryGroupName') as recovery_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' + AND region = 'us-east-1' + recovery_group_tags: + name: recovery_group_tags + id: aws.route53recoveryreadiness.recovery_group_tags + x-cfn-schema-name: RecoveryGroup + x-cfn-type-name: AWS::Route53RecoveryReadiness::RecoveryGroup + 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, '$.RecoveryGroupName') as recovery_group_name, + JSON_EXTRACT(detail.Properties, '$.Cells') as cells, + JSON_EXTRACT(detail.Properties, '$.RecoveryGroupArn') as recovery_group_arn + 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::Route53RecoveryReadiness::RecoveryGroup' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' + 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, 'RecoveryGroupName') as recovery_group_name, + json_extract_path_text(detail.Properties, 'Cells') as cells, + json_extract_path_text(detail.Properties, 'RecoveryGroupArn') as recovery_group_arn + 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::Route53RecoveryReadiness::RecoveryGroup' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::RecoveryGroup' + AND listing.region = 'us-east-1' resource_sets: name: resource_sets id: aws.route53recoveryreadiness.resource_sets @@ -1283,10 +1575,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResourceSetName') as resource_set_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceSetName') as resource_set_name, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources, + JSON_EXTRACT(detail.Properties, '$.ResourceSetArn') as resource_set_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceSetType') as resource_set_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53RecoveryReadiness::ResourceSet' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1305,10 +1606,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResourceSetName') as resource_set_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceSetName') as resource_set_name, + json_extract_path_text(detail.Properties, 'Resources') as resources, + json_extract_path_text(detail.Properties, 'ResourceSetArn') as resource_set_arn, + json_extract_path_text(detail.Properties, 'ResourceSetType') as resource_set_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53RecoveryReadiness::ResourceSet' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' + AND listing.region = 'us-east-1' + resource_sets_list_only: + name: resource_sets_list_only + id: aws.route53recoveryreadiness.resource_sets_list_only + x-cfn-schema-name: ResourceSet + x-cfn-type-name: AWS::Route53RecoveryReadiness::ResourceSet + x-identifiers: + - ResourceSetName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResourceSetName') as resource_set_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResourceSetName') as resource_set_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' + AND region = 'us-east-1' + resource_set_tags: + name: resource_set_tags + id: aws.route53recoveryreadiness.resource_set_tags + x-cfn-schema-name: ResourceSet + x-cfn-type-name: AWS::Route53RecoveryReadiness::ResourceSet + 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, '$.ResourceSetName') as resource_set_name, + JSON_EXTRACT(detail.Properties, '$.Resources') as resources, + JSON_EXTRACT(detail.Properties, '$.ResourceSetArn') as resource_set_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceSetType') as resource_set_type + 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::Route53RecoveryReadiness::ResourceSet' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' + 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, 'ResourceSetName') as resource_set_name, + json_extract_path_text(detail.Properties, 'Resources') as resources, + json_extract_path_text(detail.Properties, 'ResourceSetArn') as resource_set_arn, + json_extract_path_text(detail.Properties, 'ResourceSetType') as resource_set_type + 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::Route53RecoveryReadiness::ResourceSet' + AND detail.data__TypeName = 'AWS::Route53RecoveryReadiness::ResourceSet' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/route53resolver.yaml b/providers/src/aws/v00.00.00000/services/route53resolver.yaml index 149ff8fe..22d0ed86 100644 --- a/providers/src/aws/v00.00.00000/services/route53resolver.yaml +++ b/providers/src/aws/v00.00.00000/services/route53resolver.yaml @@ -2187,10 +2187,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DomainCount') as domain_count, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.ManagedOwnerName') as managed_owner_name, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time, + JSON_EXTRACT(detail.Properties, '$.Domains') as domains, + JSON_EXTRACT(detail.Properties, '$.DomainFileUrl') as domain_file_url, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53Resolver::FirewallDomainList' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2217,10 +2234,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DomainCount') as domain_count, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'ManagedOwnerName') as managed_owner_name, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time, + json_extract_path_text(detail.Properties, 'Domains') as domains, + json_extract_path_text(detail.Properties, 'DomainFileUrl') as domain_file_url, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53Resolver::FirewallDomainList' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' + AND listing.region = 'us-east-1' + firewall_domain_lists_list_only: + name: firewall_domain_lists_list_only + id: aws.route53resolver.firewall_domain_lists_list_only + x-cfn-schema-name: FirewallDomainList + x-cfn-type-name: AWS::Route53Resolver::FirewallDomainList + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' + AND region = 'us-east-1' + firewall_domain_list_tags: + name: firewall_domain_list_tags + id: aws.route53resolver.firewall_domain_list_tags + x-cfn-schema-name: FirewallDomainList + x-cfn-type-name: AWS::Route53Resolver::FirewallDomainList + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DomainCount') as domain_count, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.ManagedOwnerName') as managed_owner_name, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time, + JSON_EXTRACT(detail.Properties, '$.Domains') as domains, + JSON_EXTRACT(detail.Properties, '$.DomainFileUrl') as domain_file_url + 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::Route53Resolver::FirewallDomainList' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DomainCount') as domain_count, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'ManagedOwnerName') as managed_owner_name, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time, + json_extract_path_text(detail.Properties, 'Domains') as domains, + json_extract_path_text(detail.Properties, 'DomainFileUrl') as domain_file_url + 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::Route53Resolver::FirewallDomainList' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallDomainList' + AND listing.region = 'us-east-1' firewall_rule_groups: name: firewall_rule_groups id: aws.route53resolver.firewall_rule_groups @@ -2304,10 +2436,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuleCount') as rule_count, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.ShareStatus') as share_status, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time, + JSON_EXTRACT(detail.Properties, '$.FirewallRules') as firewall_rules, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53Resolver::FirewallRuleGroup' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2334,10 +2483,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuleCount') as rule_count, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'ShareStatus') as share_status, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time, + json_extract_path_text(detail.Properties, 'FirewallRules') as firewall_rules, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53Resolver::FirewallRuleGroup' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' + AND listing.region = 'us-east-1' + firewall_rule_groups_list_only: + name: firewall_rule_groups_list_only + id: aws.route53resolver.firewall_rule_groups_list_only + x-cfn-schema-name: FirewallRuleGroup + x-cfn-type-name: AWS::Route53Resolver::FirewallRuleGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' + AND region = 'us-east-1' + firewall_rule_group_tags: + name: firewall_rule_group_tags + id: aws.route53resolver.firewall_rule_group_tags + x-cfn-schema-name: FirewallRuleGroup + x-cfn-type-name: AWS::Route53Resolver::FirewallRuleGroup + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuleCount') as rule_count, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.ShareStatus') as share_status, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time, + JSON_EXTRACT(detail.Properties, '$.FirewallRules') as firewall_rules + 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::Route53Resolver::FirewallRuleGroup' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuleCount') as rule_count, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'ShareStatus') as share_status, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time, + json_extract_path_text(detail.Properties, 'FirewallRules') as firewall_rules + 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::Route53Resolver::FirewallRuleGroup' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroup' + AND listing.region = 'us-east-1' firewall_rule_group_associations: name: firewall_rule_group_associations id: aws.route53resolver.firewall_rule_group_associations @@ -2422,10 +2686,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.FirewallRuleGroupId') as firewall_rule_group_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.MutationProtection') as mutation_protection, + JSON_EXTRACT(detail.Properties, '$.ManagedOwnerName') as managed_owner_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53Resolver::FirewallRuleGroupAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2453,10 +2735,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'FirewallRuleGroupId') as firewall_rule_group_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'MutationProtection') as mutation_protection, + json_extract_path_text(detail.Properties, 'ManagedOwnerName') as managed_owner_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53Resolver::FirewallRuleGroupAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' + AND listing.region = 'us-east-1' + firewall_rule_group_associations_list_only: + name: firewall_rule_group_associations_list_only + id: aws.route53resolver.firewall_rule_group_associations_list_only + x-cfn-schema-name: FirewallRuleGroupAssociation + x-cfn-type-name: AWS::Route53Resolver::FirewallRuleGroupAssociation + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' + AND region = 'us-east-1' + firewall_rule_group_association_tags: + name: firewall_rule_group_association_tags + id: aws.route53resolver.firewall_rule_group_association_tags + x-cfn-schema-name: FirewallRuleGroupAssociation + x-cfn-type-name: AWS::Route53Resolver::FirewallRuleGroupAssociation + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.FirewallRuleGroupId') as firewall_rule_group_id, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.MutationProtection') as mutation_protection, + JSON_EXTRACT(detail.Properties, '$.ManagedOwnerName') as managed_owner_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time + 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::Route53Resolver::FirewallRuleGroupAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'FirewallRuleGroupId') as firewall_rule_group_id, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'MutationProtection') as mutation_protection, + json_extract_path_text(detail.Properties, 'ManagedOwnerName') as managed_owner_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time + 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::Route53Resolver::FirewallRuleGroupAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::FirewallRuleGroupAssociation' + AND listing.region = 'us-east-1' outpost_resolvers: name: outpost_resolvers id: aws.route53resolver.outpost_resolvers @@ -2539,10 +2939,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::OutpostResolver' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.PreferredInstanceType') as preferred_instance_type, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.InstanceCount') as instance_count, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Route53Resolver::OutpostResolver' + AND detail.data__TypeName = 'AWS::Route53Resolver::OutpostResolver' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2568,10 +2984,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::OutpostResolver' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'PreferredInstanceType') as preferred_instance_type, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'InstanceCount') as instance_count, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Route53Resolver::OutpostResolver' + AND detail.data__TypeName = 'AWS::Route53Resolver::OutpostResolver' + AND listing.region = 'us-east-1' + outpost_resolvers_list_only: + name: outpost_resolvers_list_only + id: aws.route53resolver.outpost_resolvers_list_only + x-cfn-schema-name: OutpostResolver + x-cfn-type-name: AWS::Route53Resolver::OutpostResolver + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::OutpostResolver' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::OutpostResolver' + AND region = 'us-east-1' + outpost_resolver_tags: + name: outpost_resolver_tags + id: aws.route53resolver.outpost_resolver_tags + x-cfn-schema-name: OutpostResolver + x-cfn-type-name: AWS::Route53Resolver::OutpostResolver + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.OutpostArn') as outpost_arn, + JSON_EXTRACT(detail.Properties, '$.PreferredInstanceType') as preferred_instance_type, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.InstanceCount') as instance_count, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModificationTime') as modification_time + 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::Route53Resolver::OutpostResolver' + AND detail.data__TypeName = 'AWS::Route53Resolver::OutpostResolver' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'OutpostArn') as outpost_arn, + json_extract_path_text(detail.Properties, 'PreferredInstanceType') as preferred_instance_type, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'InstanceCount') as instance_count, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModificationTime') as modification_time + 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::Route53Resolver::OutpostResolver' + AND detail.data__TypeName = 'AWS::Route53Resolver::OutpostResolver' + AND listing.region = 'us-east-1' resolver_configs: name: resolver_configs id: aws.route53resolver.resolver_configs @@ -2634,10 +3162,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResourceId') as resource_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.AutodefinedReverse') as autodefined_reverse, + JSON_EXTRACT(detail.Properties, '$.AutodefinedReverseFlag') as autodefined_reverse_flag + 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::Route53Resolver::ResolverConfig' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2656,10 +3193,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResourceId') as resource_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'AutodefinedReverse') as autodefined_reverse, + json_extract_path_text(detail.Properties, 'AutodefinedReverseFlag') as autodefined_reverse_flag + 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::Route53Resolver::ResolverConfig' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverConfig' + AND listing.region = 'us-east-1' + resolver_configs_list_only: + name: resolver_configs_list_only + id: aws.route53resolver.resolver_configs_list_only + x-cfn-schema-name: ResolverConfig + x-cfn-type-name: AWS::Route53Resolver::ResolverConfig + x-identifiers: + - ResourceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResourceId') as resource_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResourceId') as resource_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverConfig' + AND region = 'us-east-1' resolverdnssec_configs: name: resolverdnssec_configs id: aws.route53resolver.resolverdnssec_configs @@ -2721,10 +3298,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverDNSSECConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ValidationStatus') as validation_status + 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::Route53Resolver::ResolverDNSSECConfig' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverDNSSECConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2742,10 +3327,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverDNSSECConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ValidationStatus') as validation_status + 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::Route53Resolver::ResolverDNSSECConfig' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverDNSSECConfig' + AND listing.region = 'us-east-1' + resolverdnssec_configs_list_only: + name: resolverdnssec_configs_list_only + id: aws.route53resolver.resolverdnssec_configs_list_only + x-cfn-schema-name: ResolverDNSSECConfig + x-cfn-type-name: AWS::Route53Resolver::ResolverDNSSECConfig + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverDNSSECConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverDNSSECConfig' + AND region = 'us-east-1' resolver_query_logging_configs: name: resolver_query_logging_configs id: aws.route53resolver.resolver_query_logging_configs @@ -2813,10 +3437,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.OwnerId') as owner_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.ShareStatus') as share_status, + JSON_EXTRACT(detail.Properties, '$.AssociationCount') as association_count, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.CreatorRequestId') as creator_request_id, + JSON_EXTRACT(detail.Properties, '$.DestinationArn') as destination_arn, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::Route53Resolver::ResolverQueryLoggingConfig' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2840,10 +3478,55 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'OwnerId') as owner_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'ShareStatus') as share_status, + json_extract_path_text(detail.Properties, 'AssociationCount') as association_count, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'CreatorRequestId') as creator_request_id, + json_extract_path_text(detail.Properties, 'DestinationArn') as destination_arn, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::Route53Resolver::ResolverQueryLoggingConfig' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfig' + AND listing.region = 'us-east-1' + resolver_query_logging_configs_list_only: + name: resolver_query_logging_configs_list_only + id: aws.route53resolver.resolver_query_logging_configs_list_only + x-cfn-schema-name: ResolverQueryLoggingConfig + x-cfn-type-name: AWS::Route53Resolver::ResolverQueryLoggingConfig + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfig' + AND region = 'us-east-1' resolver_query_logging_config_associations: name: resolver_query_logging_config_associations id: aws.route53resolver.resolver_query_logging_config_associations @@ -2908,10 +3591,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ResolverQueryLogConfigId') as resolver_query_log_config_id, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Error') as error, + JSON_EXTRACT(detail.Properties, '$.ErrorMessage') as error_message, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::Route53Resolver::ResolverQueryLoggingConfigAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2932,10 +3626,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ResolverQueryLogConfigId') as resolver_query_log_config_id, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Error') as error, + json_extract_path_text(detail.Properties, 'ErrorMessage') as error_message, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::Route53Resolver::ResolverQueryLoggingConfigAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation' + AND listing.region = 'us-east-1' + resolver_query_logging_config_associations_list_only: + name: resolver_query_logging_config_associations_list_only + id: aws.route53resolver.resolver_query_logging_config_associations_list_only + x-cfn-schema-name: ResolverQueryLoggingConfigAssociation + x-cfn-type-name: AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation' + AND region = 'us-east-1' resolver_rules: name: resolver_rules id: aws.route53resolver.resolver_rules @@ -3014,10 +3750,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResolverRuleId') as resolver_rule_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResolverEndpointId') as resolver_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuleType') as rule_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TargetIps') as target_ips, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ResolverRuleId') as resolver_rule_id + 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::Route53Resolver::ResolverRule' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3039,10 +3787,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResolverRuleId') as resolver_rule_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResolverEndpointId') as resolver_endpoint_id, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuleType') as rule_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TargetIps') as target_ips, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ResolverRuleId') as resolver_rule_id + 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::Route53Resolver::ResolverRule' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverRule' + AND listing.region = 'us-east-1' + resolver_rules_list_only: + name: resolver_rules_list_only + id: aws.route53resolver.resolver_rules_list_only + x-cfn-schema-name: ResolverRule + x-cfn-type-name: AWS::Route53Resolver::ResolverRule + x-identifiers: + - ResolverRuleId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResolverRuleId') as resolver_rule_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResolverRuleId') as resolver_rule_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRule' + AND region = 'us-east-1' + resolver_rule_tags: + name: resolver_rule_tags + id: aws.route53resolver.resolver_rule_tags + x-cfn-schema-name: ResolverRule + x-cfn-type-name: AWS::Route53Resolver::ResolverRule + 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, '$.ResolverEndpointId') as resolver_endpoint_id, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RuleType') as rule_type, + JSON_EXTRACT(detail.Properties, '$.TargetIps') as target_ips, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ResolverRuleId') as resolver_rule_id + 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::Route53Resolver::ResolverRule' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverRule' + 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, 'ResolverEndpointId') as resolver_endpoint_id, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RuleType') as rule_type, + json_extract_path_text(detail.Properties, 'TargetIps') as target_ips, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ResolverRuleId') as resolver_rule_id + 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::Route53Resolver::ResolverRule' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverRule' + AND listing.region = 'us-east-1' resolver_rule_associations: name: resolver_rule_associations id: aws.route53resolver.resolver_rule_associations @@ -3104,10 +3952,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResolverRuleAssociationId') as resolver_rule_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRuleAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.VPCId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.ResolverRuleId') as resolver_rule_id, + JSON_EXTRACT(detail.Properties, '$.ResolverRuleAssociationId') as resolver_rule_association_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::Route53Resolver::ResolverRuleAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverRuleAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3125,10 +3981,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResolverRuleAssociationId') as resolver_rule_association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRuleAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'VPCId') as vpc_id, + json_extract_path_text(detail.Properties, 'ResolverRuleId') as resolver_rule_id, + json_extract_path_text(detail.Properties, 'ResolverRuleAssociationId') as resolver_rule_association_id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::Route53Resolver::ResolverRuleAssociation' + AND detail.data__TypeName = 'AWS::Route53Resolver::ResolverRuleAssociation' + AND listing.region = 'us-east-1' + resolver_rule_associations_list_only: + name: resolver_rule_associations_list_only + id: aws.route53resolver.resolver_rule_associations_list_only + x-cfn-schema-name: ResolverRuleAssociation + x-cfn-type-name: AWS::Route53Resolver::ResolverRuleAssociation + x-identifiers: + - ResolverRuleAssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResolverRuleAssociationId') as resolver_rule_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRuleAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResolverRuleAssociationId') as resolver_rule_association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Route53Resolver::ResolverRuleAssociation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/rum.yaml b/providers/src/aws/v00.00.00000/services/rum.yaml index 39d92f0b..d6a2503c 100644 --- a/providers/src/aws/v00.00.00000/services/rum.yaml +++ b/providers/src/aws/v00.00.00000/services/rum.yaml @@ -913,10 +913,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RUM::AppMonitor' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.CwLogEnabled') as cw_log_enabled, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AppMonitorConfiguration') as app_monitor_configuration, + JSON_EXTRACT(detail.Properties, '$.CustomEvents') as custom_events + 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::RUM::AppMonitor' + AND detail.data__TypeName = 'AWS::RUM::AppMonitor' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -937,10 +948,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RUM::AppMonitor' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'CwLogEnabled') as cw_log_enabled, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AppMonitorConfiguration') as app_monitor_configuration, + json_extract_path_text(detail.Properties, 'CustomEvents') as custom_events + 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::RUM::AppMonitor' + AND detail.data__TypeName = 'AWS::RUM::AppMonitor' + AND listing.region = 'us-east-1' + app_monitors_list_only: + name: app_monitors_list_only + id: aws.rum.app_monitors_list_only + x-cfn-schema-name: AppMonitor + x-cfn-type-name: AWS::RUM::AppMonitor + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RUM::AppMonitor' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::RUM::AppMonitor' + AND region = 'us-east-1' + app_monitor_tags: + name: app_monitor_tags + id: aws.rum.app_monitor_tags + x-cfn-schema-name: AppMonitor + x-cfn-type-name: AWS::RUM::AppMonitor + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.CwLogEnabled') as cw_log_enabled, + JSON_EXTRACT(detail.Properties, '$.AppMonitorConfiguration') as app_monitor_configuration, + JSON_EXTRACT(detail.Properties, '$.CustomEvents') as custom_events + 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::RUM::AppMonitor' + AND detail.data__TypeName = 'AWS::RUM::AppMonitor' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'CwLogEnabled') as cw_log_enabled, + json_extract_path_text(detail.Properties, 'AppMonitorConfiguration') as app_monitor_configuration, + json_extract_path_text(detail.Properties, 'CustomEvents') as custom_events + 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::RUM::AppMonitor' + AND detail.data__TypeName = 'AWS::RUM::AppMonitor' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/s3.yaml b/providers/src/aws/v00.00.00000/services/s3.yaml index a418a269..c220798d 100644 --- a/providers/src/aws/v00.00.00000/services/s3.yaml +++ b/providers/src/aws/v00.00.00000/services/s3.yaml @@ -3440,10 +3440,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccessGrantId') as access_grant_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrant' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessGrantId') as access_grant_id, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsLocationId') as access_grants_location_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Permission') as permission, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.S3PrefixType') as s3_prefix_type, + JSON_EXTRACT(detail.Properties, '$.GrantScope') as grant_scope, + JSON_EXTRACT(detail.Properties, '$.AccessGrantArn') as access_grant_arn, + JSON_EXTRACT(detail.Properties, '$.Grantee') as grantee, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsLocationConfiguration') as access_grants_location_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::S3::AccessGrant' + AND detail.data__TypeName = 'AWS::S3::AccessGrant' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3467,10 +3481,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccessGrantId') as access_grant_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrant' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessGrantId') as access_grant_id, + json_extract_path_text(detail.Properties, 'AccessGrantsLocationId') as access_grants_location_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Permission') as permission, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'S3PrefixType') as s3_prefix_type, + json_extract_path_text(detail.Properties, 'GrantScope') as grant_scope, + json_extract_path_text(detail.Properties, 'AccessGrantArn') as access_grant_arn, + json_extract_path_text(detail.Properties, 'Grantee') as grantee, + json_extract_path_text(detail.Properties, 'AccessGrantsLocationConfiguration') as access_grants_location_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::S3::AccessGrant' + AND detail.data__TypeName = 'AWS::S3::AccessGrant' + AND listing.region = 'us-east-1' + access_grants_list_only: + name: access_grants_list_only + id: aws.s3.access_grants_list_only + x-cfn-schema-name: AccessGrant + x-cfn-type-name: AWS::S3::AccessGrant + x-identifiers: + - AccessGrantId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccessGrantId') as access_grant_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrant' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccessGrantId') as access_grant_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrant' + AND region = 'us-east-1' + access_grant_tags: + name: access_grant_tags + id: aws.s3.access_grant_tags + x-cfn-schema-name: AccessGrant + x-cfn-type-name: AWS::S3::AccessGrant + 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, '$.AccessGrantId') as access_grant_id, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsLocationId') as access_grants_location_id, + JSON_EXTRACT(detail.Properties, '$.Permission') as permission, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.S3PrefixType') as s3_prefix_type, + JSON_EXTRACT(detail.Properties, '$.GrantScope') as grant_scope, + JSON_EXTRACT(detail.Properties, '$.AccessGrantArn') as access_grant_arn, + JSON_EXTRACT(detail.Properties, '$.Grantee') as grantee, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsLocationConfiguration') as access_grants_location_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::S3::AccessGrant' + AND detail.data__TypeName = 'AWS::S3::AccessGrant' + 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, 'AccessGrantId') as access_grant_id, + json_extract_path_text(detail.Properties, 'AccessGrantsLocationId') as access_grants_location_id, + json_extract_path_text(detail.Properties, 'Permission') as permission, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'S3PrefixType') as s3_prefix_type, + json_extract_path_text(detail.Properties, 'GrantScope') as grant_scope, + json_extract_path_text(detail.Properties, 'AccessGrantArn') as access_grant_arn, + json_extract_path_text(detail.Properties, 'Grantee') as grantee, + json_extract_path_text(detail.Properties, 'AccessGrantsLocationConfiguration') as access_grants_location_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::S3::AccessGrant' + AND detail.data__TypeName = 'AWS::S3::AccessGrant' + AND listing.region = 'us-east-1' access_grants_instances: name: access_grants_instances id: aws.s3.access_grants_instances @@ -3545,10 +3665,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccessGrantsInstanceArn') as access_grants_instance_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsInstance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsInstanceArn') as access_grants_instance_arn, + JSON_EXTRACT(detail.Properties, '$.IdentityCenterArn') as identity_center_arn, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsInstanceId') as access_grants_instance_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::S3::AccessGrantsInstance' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsInstance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3566,10 +3694,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccessGrantsInstanceArn') as access_grants_instance_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsInstance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessGrantsInstanceArn') as access_grants_instance_arn, + json_extract_path_text(detail.Properties, 'IdentityCenterArn') as identity_center_arn, + json_extract_path_text(detail.Properties, 'AccessGrantsInstanceId') as access_grants_instance_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::S3::AccessGrantsInstance' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsInstance' + AND listing.region = 'us-east-1' + access_grants_instances_list_only: + name: access_grants_instances_list_only + id: aws.s3.access_grants_instances_list_only + x-cfn-schema-name: AccessGrantsInstance + x-cfn-type-name: AWS::S3::AccessGrantsInstance + x-identifiers: + - AccessGrantsInstanceArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccessGrantsInstanceArn') as access_grants_instance_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsInstance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccessGrantsInstanceArn') as access_grants_instance_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsInstance' + AND region = 'us-east-1' + access_grants_instance_tags: + name: access_grants_instance_tags + id: aws.s3.access_grants_instance_tags + x-cfn-schema-name: AccessGrantsInstance + x-cfn-type-name: AWS::S3::AccessGrantsInstance + 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, '$.AccessGrantsInstanceArn') as access_grants_instance_arn, + JSON_EXTRACT(detail.Properties, '$.IdentityCenterArn') as identity_center_arn, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsInstanceId') as access_grants_instance_id + 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::S3::AccessGrantsInstance' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsInstance' + 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, 'AccessGrantsInstanceArn') as access_grants_instance_arn, + json_extract_path_text(detail.Properties, 'IdentityCenterArn') as identity_center_arn, + json_extract_path_text(detail.Properties, 'AccessGrantsInstanceId') as access_grants_instance_id + 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::S3::AccessGrantsInstance' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsInstance' + AND listing.region = 'us-east-1' access_grants_locations: name: access_grants_locations id: aws.s3.access_grants_locations @@ -3645,10 +3861,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccessGrantsLocationId') as access_grants_location_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsLocation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsLocationArn') as access_grants_location_arn, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsLocationId') as access_grants_location_id, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.LocationScope') as location_scope, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::S3::AccessGrantsLocation' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsLocation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3667,10 +3892,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccessGrantsLocationId') as access_grants_location_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsLocation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessGrantsLocationArn') as access_grants_location_arn, + json_extract_path_text(detail.Properties, 'AccessGrantsLocationId') as access_grants_location_id, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'LocationScope') as location_scope, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::S3::AccessGrantsLocation' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsLocation' + AND listing.region = 'us-east-1' + access_grants_locations_list_only: + name: access_grants_locations_list_only + id: aws.s3.access_grants_locations_list_only + x-cfn-schema-name: AccessGrantsLocation + x-cfn-type-name: AWS::S3::AccessGrantsLocation + x-identifiers: + - AccessGrantsLocationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccessGrantsLocationId') as access_grants_location_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsLocation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccessGrantsLocationId') as access_grants_location_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessGrantsLocation' + AND region = 'us-east-1' + access_grants_location_tags: + name: access_grants_location_tags + id: aws.s3.access_grants_location_tags + x-cfn-schema-name: AccessGrantsLocation + x-cfn-type-name: AWS::S3::AccessGrantsLocation + 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, '$.AccessGrantsLocationArn') as access_grants_location_arn, + JSON_EXTRACT(detail.Properties, '$.AccessGrantsLocationId') as access_grants_location_id, + JSON_EXTRACT(detail.Properties, '$.IamRoleArn') as iam_role_arn, + JSON_EXTRACT(detail.Properties, '$.LocationScope') as location_scope + 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::S3::AccessGrantsLocation' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsLocation' + 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, 'AccessGrantsLocationArn') as access_grants_location_arn, + json_extract_path_text(detail.Properties, 'AccessGrantsLocationId') as access_grants_location_id, + json_extract_path_text(detail.Properties, 'IamRoleArn') as iam_role_arn, + json_extract_path_text(detail.Properties, 'LocationScope') as location_scope + 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::S3::AccessGrantsLocation' + AND detail.data__TypeName = 'AWS::S3::AccessGrantsLocation' + AND listing.region = 'us-east-1' access_points: name: access_points id: aws.s3.access_points @@ -3750,10 +4066,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessPoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.Bucket') as bucket, + JSON_EXTRACT(detail.Properties, '$.BucketAccountId') as bucket_account_id, + JSON_EXTRACT(detail.Properties, '$.VpcConfiguration') as vpc_configuration, + JSON_EXTRACT(detail.Properties, '$.PublicAccessBlockConfiguration') as public_access_block_configuration, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.NetworkOrigin') as network_origin, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::S3::AccessPoint' + AND detail.data__TypeName = 'AWS::S3::AccessPoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3776,10 +4105,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessPoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'Bucket') as bucket, + json_extract_path_text(detail.Properties, 'BucketAccountId') as bucket_account_id, + json_extract_path_text(detail.Properties, 'VpcConfiguration') as vpc_configuration, + json_extract_path_text(detail.Properties, 'PublicAccessBlockConfiguration') as public_access_block_configuration, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'NetworkOrigin') as network_origin, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::S3::AccessPoint' + AND detail.data__TypeName = 'AWS::S3::AccessPoint' + AND listing.region = 'us-east-1' + access_points_list_only: + name: access_points_list_only + id: aws.s3.access_points_list_only + x-cfn-schema-name: AccessPoint + x-cfn-type-name: AWS::S3::AccessPoint + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessPoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::AccessPoint' + AND region = 'us-east-1' buckets: name: buckets id: aws.s3.buckets @@ -3875,10 +4248,39 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BucketName') as bucket_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::Bucket' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccelerateConfiguration') as accelerate_configuration, + JSON_EXTRACT(detail.Properties, '$.AccessControl') as access_control, + JSON_EXTRACT(detail.Properties, '$.AnalyticsConfigurations') as analytics_configurations, + JSON_EXTRACT(detail.Properties, '$.BucketEncryption') as bucket_encryption, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.CorsConfiguration') as cors_configuration, + JSON_EXTRACT(detail.Properties, '$.IntelligentTieringConfigurations') as intelligent_tiering_configurations, + JSON_EXTRACT(detail.Properties, '$.InventoryConfigurations') as inventory_configurations, + JSON_EXTRACT(detail.Properties, '$.LifecycleConfiguration') as lifecycle_configuration, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.MetricsConfigurations') as metrics_configurations, + JSON_EXTRACT(detail.Properties, '$.NotificationConfiguration') as notification_configuration, + JSON_EXTRACT(detail.Properties, '$.ObjectLockConfiguration') as object_lock_configuration, + JSON_EXTRACT(detail.Properties, '$.ObjectLockEnabled') as object_lock_enabled, + JSON_EXTRACT(detail.Properties, '$.OwnershipControls') as ownership_controls, + JSON_EXTRACT(detail.Properties, '$.PublicAccessBlockConfiguration') as public_access_block_configuration, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfiguration') as replication_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VersioningConfiguration') as versioning_configuration, + JSON_EXTRACT(detail.Properties, '$.WebsiteConfiguration') as website_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DualStackDomainName') as dual_stack_domain_name, + JSON_EXTRACT(detail.Properties, '$.RegionalDomainName') as regional_domain_name, + JSON_EXTRACT(detail.Properties, '$.WebsiteURL') as website_url + 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::S3::Bucket' + AND detail.data__TypeName = 'AWS::S3::Bucket' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3917,10 +4319,161 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BucketName') as bucket_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::Bucket' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccelerateConfiguration') as accelerate_configuration, + json_extract_path_text(detail.Properties, 'AccessControl') as access_control, + json_extract_path_text(detail.Properties, 'AnalyticsConfigurations') as analytics_configurations, + json_extract_path_text(detail.Properties, 'BucketEncryption') as bucket_encryption, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'CorsConfiguration') as cors_configuration, + json_extract_path_text(detail.Properties, 'IntelligentTieringConfigurations') as intelligent_tiering_configurations, + json_extract_path_text(detail.Properties, 'InventoryConfigurations') as inventory_configurations, + json_extract_path_text(detail.Properties, 'LifecycleConfiguration') as lifecycle_configuration, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'MetricsConfigurations') as metrics_configurations, + json_extract_path_text(detail.Properties, 'NotificationConfiguration') as notification_configuration, + json_extract_path_text(detail.Properties, 'ObjectLockConfiguration') as object_lock_configuration, + json_extract_path_text(detail.Properties, 'ObjectLockEnabled') as object_lock_enabled, + json_extract_path_text(detail.Properties, 'OwnershipControls') as ownership_controls, + json_extract_path_text(detail.Properties, 'PublicAccessBlockConfiguration') as public_access_block_configuration, + json_extract_path_text(detail.Properties, 'ReplicationConfiguration') as replication_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VersioningConfiguration') as versioning_configuration, + json_extract_path_text(detail.Properties, 'WebsiteConfiguration') as website_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DualStackDomainName') as dual_stack_domain_name, + json_extract_path_text(detail.Properties, 'RegionalDomainName') as regional_domain_name, + json_extract_path_text(detail.Properties, 'WebsiteURL') as website_url + 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::S3::Bucket' + AND detail.data__TypeName = 'AWS::S3::Bucket' + AND listing.region = 'us-east-1' + buckets_list_only: + name: buckets_list_only + id: aws.s3.buckets_list_only + x-cfn-schema-name: Bucket + x-cfn-type-name: AWS::S3::Bucket + x-identifiers: + - BucketName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BucketName') as bucket_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::Bucket' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BucketName') as bucket_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::Bucket' + AND region = 'us-east-1' + bucket_tags: + name: bucket_tags + id: aws.s3.bucket_tags + x-cfn-schema-name: Bucket + x-cfn-type-name: AWS::S3::Bucket + 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, '$.AccelerateConfiguration') as accelerate_configuration, + JSON_EXTRACT(detail.Properties, '$.AccessControl') as access_control, + JSON_EXTRACT(detail.Properties, '$.AnalyticsConfigurations') as analytics_configurations, + JSON_EXTRACT(detail.Properties, '$.BucketEncryption') as bucket_encryption, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.CorsConfiguration') as cors_configuration, + JSON_EXTRACT(detail.Properties, '$.IntelligentTieringConfigurations') as intelligent_tiering_configurations, + JSON_EXTRACT(detail.Properties, '$.InventoryConfigurations') as inventory_configurations, + JSON_EXTRACT(detail.Properties, '$.LifecycleConfiguration') as lifecycle_configuration, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.MetricsConfigurations') as metrics_configurations, + JSON_EXTRACT(detail.Properties, '$.NotificationConfiguration') as notification_configuration, + JSON_EXTRACT(detail.Properties, '$.ObjectLockConfiguration') as object_lock_configuration, + JSON_EXTRACT(detail.Properties, '$.ObjectLockEnabled') as object_lock_enabled, + JSON_EXTRACT(detail.Properties, '$.OwnershipControls') as ownership_controls, + JSON_EXTRACT(detail.Properties, '$.PublicAccessBlockConfiguration') as public_access_block_configuration, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfiguration') as replication_configuration, + JSON_EXTRACT(detail.Properties, '$.VersioningConfiguration') as versioning_configuration, + JSON_EXTRACT(detail.Properties, '$.WebsiteConfiguration') as website_configuration, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DomainName') as domain_name, + JSON_EXTRACT(detail.Properties, '$.DualStackDomainName') as dual_stack_domain_name, + JSON_EXTRACT(detail.Properties, '$.RegionalDomainName') as regional_domain_name, + JSON_EXTRACT(detail.Properties, '$.WebsiteURL') as website_url + 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::S3::Bucket' + AND detail.data__TypeName = 'AWS::S3::Bucket' + 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, 'AccelerateConfiguration') as accelerate_configuration, + json_extract_path_text(detail.Properties, 'AccessControl') as access_control, + json_extract_path_text(detail.Properties, 'AnalyticsConfigurations') as analytics_configurations, + json_extract_path_text(detail.Properties, 'BucketEncryption') as bucket_encryption, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'CorsConfiguration') as cors_configuration, + json_extract_path_text(detail.Properties, 'IntelligentTieringConfigurations') as intelligent_tiering_configurations, + json_extract_path_text(detail.Properties, 'InventoryConfigurations') as inventory_configurations, + json_extract_path_text(detail.Properties, 'LifecycleConfiguration') as lifecycle_configuration, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'MetricsConfigurations') as metrics_configurations, + json_extract_path_text(detail.Properties, 'NotificationConfiguration') as notification_configuration, + json_extract_path_text(detail.Properties, 'ObjectLockConfiguration') as object_lock_configuration, + json_extract_path_text(detail.Properties, 'ObjectLockEnabled') as object_lock_enabled, + json_extract_path_text(detail.Properties, 'OwnershipControls') as ownership_controls, + json_extract_path_text(detail.Properties, 'PublicAccessBlockConfiguration') as public_access_block_configuration, + json_extract_path_text(detail.Properties, 'ReplicationConfiguration') as replication_configuration, + json_extract_path_text(detail.Properties, 'VersioningConfiguration') as versioning_configuration, + json_extract_path_text(detail.Properties, 'WebsiteConfiguration') as website_configuration, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DomainName') as domain_name, + json_extract_path_text(detail.Properties, 'DualStackDomainName') as dual_stack_domain_name, + json_extract_path_text(detail.Properties, 'RegionalDomainName') as regional_domain_name, + json_extract_path_text(detail.Properties, 'WebsiteURL') as website_url + 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::S3::Bucket' + AND detail.data__TypeName = 'AWS::S3::Bucket' + AND listing.region = 'us-east-1' bucket_policies: name: bucket_policies id: aws.s3.bucket_policies @@ -3993,10 +4546,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Bucket') as bucket - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::BucketPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Bucket') as bucket, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document + 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::S3::BucketPolicy' + AND detail.data__TypeName = 'AWS::S3::BucketPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4012,10 +4571,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Bucket') as bucket - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::BucketPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Bucket') as bucket, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document + 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::S3::BucketPolicy' + AND detail.data__TypeName = 'AWS::S3::BucketPolicy' + AND listing.region = 'us-east-1' + bucket_policies_list_only: + name: bucket_policies_list_only + id: aws.s3.bucket_policies_list_only + x-cfn-schema-name: BucketPolicy + x-cfn-type-name: AWS::S3::BucketPolicy + x-identifiers: + - Bucket + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Bucket') as bucket + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::BucketPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Bucket') as bucket + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::BucketPolicy' + AND region = 'us-east-1' multi_region_access_points: name: multi_region_access_points id: aws.s3.multi_region_access_points @@ -4078,10 +4674,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::MultiRegionAccessPoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.PublicAccessBlockConfiguration') as public_access_block_configuration, + JSON_EXTRACT(detail.Properties, '$.Regions') as regions + 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::S3::MultiRegionAccessPoint' + AND detail.data__TypeName = 'AWS::S3::MultiRegionAccessPoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4100,10 +4705,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::MultiRegionAccessPoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'PublicAccessBlockConfiguration') as public_access_block_configuration, + json_extract_path_text(detail.Properties, 'Regions') as regions + 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::S3::MultiRegionAccessPoint' + AND detail.data__TypeName = 'AWS::S3::MultiRegionAccessPoint' + AND listing.region = 'us-east-1' + multi_region_access_points_list_only: + name: multi_region_access_points_list_only + id: aws.s3.multi_region_access_points_list_only + x-cfn-schema-name: MultiRegionAccessPoint + x-cfn-type-name: AWS::S3::MultiRegionAccessPoint + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::MultiRegionAccessPoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::MultiRegionAccessPoint' + AND region = 'us-east-1' multi_region_access_point_policies: name: multi_region_access_point_policies id: aws.s3.multi_region_access_point_policies @@ -4257,10 +4902,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StorageLensConfiguration.Id') as storage_lens_configuration__id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLens' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StorageLensConfiguration') as storage_lens_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::S3::StorageLens' + AND detail.data__TypeName = 'AWS::S3::StorageLens' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4276,10 +4927,92 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StorageLensConfiguration', 'Id') as storage_lens_configuration__id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLens' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StorageLensConfiguration') as storage_lens_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::S3::StorageLens' + AND detail.data__TypeName = 'AWS::S3::StorageLens' + AND listing.region = 'us-east-1' + storage_lens_list_only: + name: storage_lens_list_only + id: aws.s3.storage_lens_list_only + x-cfn-schema-name: StorageLens + x-cfn-type-name: AWS::S3::StorageLens + x-identifiers: + - StorageLensConfiguration/Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StorageLensConfiguration.Id') as storage_lens_configuration__id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLens' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StorageLensConfiguration', 'Id') as storage_lens_configuration__id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLens' + AND region = 'us-east-1' + storage_lens_tags: + name: storage_lens_tags + id: aws.s3.storage_lens_tags + x-cfn-schema-name: StorageLens + x-cfn-type-name: AWS::S3::StorageLens + 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, '$.StorageLensConfiguration') as storage_lens_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::S3::StorageLens' + AND detail.data__TypeName = 'AWS::S3::StorageLens' + 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, 'StorageLensConfiguration') as storage_lens_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::S3::StorageLens' + AND detail.data__TypeName = 'AWS::S3::StorageLens' + AND listing.region = 'us-east-1' storage_lens_groups: name: storage_lens_groups id: aws.s3.storage_lens_groups @@ -4354,10 +5087,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLensGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Filter') as filter, + JSON_EXTRACT(detail.Properties, '$.StorageLensGroupArn') as storage_lens_group_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::S3::StorageLensGroup' + AND detail.data__TypeName = 'AWS::S3::StorageLensGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4375,10 +5116,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLensGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Filter') as filter, + json_extract_path_text(detail.Properties, 'StorageLensGroupArn') as storage_lens_group_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::S3::StorageLensGroup' + AND detail.data__TypeName = 'AWS::S3::StorageLensGroup' + AND listing.region = 'us-east-1' + storage_lens_groups_list_only: + name: storage_lens_groups_list_only + id: aws.s3.storage_lens_groups_list_only + x-cfn-schema-name: StorageLensGroup + x-cfn-type-name: AWS::S3::StorageLensGroup + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLensGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3::StorageLensGroup' + AND region = 'us-east-1' + storage_lens_group_tags: + name: storage_lens_group_tags + id: aws.s3.storage_lens_group_tags + x-cfn-schema-name: StorageLensGroup + x-cfn-type-name: AWS::S3::StorageLensGroup + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Filter') as filter, + JSON_EXTRACT(detail.Properties, '$.StorageLensGroupArn') as storage_lens_group_arn + 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::S3::StorageLensGroup' + AND detail.data__TypeName = 'AWS::S3::StorageLensGroup' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Filter') as filter, + json_extract_path_text(detail.Properties, 'StorageLensGroupArn') as storage_lens_group_arn + 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::S3::StorageLensGroup' + AND detail.data__TypeName = 'AWS::S3::StorageLensGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/s3express.yaml b/providers/src/aws/v00.00.00000/services/s3express.yaml index 3e300ac1..0c533659 100644 --- a/providers/src/aws/v00.00.00000/services/s3express.yaml +++ b/providers/src/aws/v00.00.00000/services/s3express.yaml @@ -622,10 +622,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Bucket') as bucket - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::BucketPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Bucket') as bucket, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document + 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::S3Express::BucketPolicy' + AND detail.data__TypeName = 'AWS::S3Express::BucketPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -641,10 +647,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Bucket') as bucket - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::BucketPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Bucket') as bucket, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document + 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::S3Express::BucketPolicy' + AND detail.data__TypeName = 'AWS::S3Express::BucketPolicy' + AND listing.region = 'us-east-1' + bucket_policies_list_only: + name: bucket_policies_list_only + id: aws.s3express.bucket_policies_list_only + x-cfn-schema-name: BucketPolicy + x-cfn-type-name: AWS::S3Express::BucketPolicy + x-identifiers: + - Bucket + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Bucket') as bucket + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::BucketPolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Bucket') as bucket + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::BucketPolicy' + AND region = 'us-east-1' directory_buckets: name: directory_buckets id: aws.s3express.directory_buckets @@ -706,10 +749,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BucketName') as bucket_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::DirectoryBucket' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.LocationName') as location_name, + JSON_EXTRACT(detail.Properties, '$.DataRedundancy') as data_redundancy, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::S3Express::DirectoryBucket' + AND detail.data__TypeName = 'AWS::S3Express::DirectoryBucket' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -727,10 +778,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BucketName') as bucket_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::DirectoryBucket' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'LocationName') as location_name, + json_extract_path_text(detail.Properties, 'DataRedundancy') as data_redundancy, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::S3Express::DirectoryBucket' + AND detail.data__TypeName = 'AWS::S3Express::DirectoryBucket' + AND listing.region = 'us-east-1' + directory_buckets_list_only: + name: directory_buckets_list_only + id: aws.s3express.directory_buckets_list_only + x-cfn-schema-name: DirectoryBucket + x-cfn-type-name: AWS::S3Express::DirectoryBucket + x-identifiers: + - BucketName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BucketName') as bucket_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::DirectoryBucket' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BucketName') as bucket_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Express::DirectoryBucket' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/s3objectlambda.yaml b/providers/src/aws/v00.00.00000/services/s3objectlambda.yaml index e602ae15..de022554 100644 --- a/providers/src/aws/v00.00.00000/services/s3objectlambda.yaml +++ b/providers/src/aws/v00.00.00000/services/s3objectlambda.yaml @@ -749,10 +749,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3ObjectLambda::AccessPoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.PublicAccessBlockConfiguration') as public_access_block_configuration, + JSON_EXTRACT(detail.Properties, '$.PolicyStatus') as policy_status, + JSON_EXTRACT(detail.Properties, '$.ObjectLambdaConfiguration') as object_lambda_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::S3ObjectLambda::AccessPoint' + AND detail.data__TypeName = 'AWS::S3ObjectLambda::AccessPoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -773,10 +784,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3ObjectLambda::AccessPoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'PublicAccessBlockConfiguration') as public_access_block_configuration, + json_extract_path_text(detail.Properties, 'PolicyStatus') as policy_status, + json_extract_path_text(detail.Properties, 'ObjectLambdaConfiguration') as object_lambda_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::S3ObjectLambda::AccessPoint' + AND detail.data__TypeName = 'AWS::S3ObjectLambda::AccessPoint' + AND listing.region = 'us-east-1' + access_points_list_only: + name: access_points_list_only + id: aws.s3objectlambda.access_points_list_only + x-cfn-schema-name: AccessPoint + x-cfn-type-name: AWS::S3ObjectLambda::AccessPoint + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3ObjectLambda::AccessPoint' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3ObjectLambda::AccessPoint' + AND region = 'us-east-1' access_point_policies: name: access_point_policies id: aws.s3objectlambda.access_point_policies diff --git a/providers/src/aws/v00.00.00000/services/s3outposts.yaml b/providers/src/aws/v00.00.00000/services/s3outposts.yaml index 29b7034c..2cd9290e 100644 --- a/providers/src/aws/v00.00.00000/services/s3outposts.yaml +++ b/providers/src/aws/v00.00.00000/services/s3outposts.yaml @@ -1117,10 +1117,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Outposts::AccessPoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Bucket') as bucket, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.VpcConfiguration') as vpc_configuration, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy + 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::S3Outposts::AccessPoint' + AND detail.data__TypeName = 'AWS::S3Outposts::AccessPoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1139,10 +1148,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Outposts::AccessPoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Bucket') as bucket, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'VpcConfiguration') as vpc_configuration, + json_extract_path_text(detail.Properties, 'Policy') as policy + 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::S3Outposts::AccessPoint' + AND detail.data__TypeName = 'AWS::S3Outposts::AccessPoint' + AND listing.region = 'us-east-1' + access_points_list_only: + name: access_points_list_only + id: aws.s3outposts.access_points_list_only + x-cfn-schema-name: AccessPoint + x-cfn-type-name: AWS::S3Outposts::AccessPoint + 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::S3Outposts::AccessPoint' + 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::S3Outposts::AccessPoint' + AND region = 'us-east-1' buckets: name: buckets id: aws.s3outposts.buckets @@ -1218,10 +1267,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Outposts::Bucket' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.OutpostId') as outpost_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LifecycleConfiguration') as lifecycle_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::S3Outposts::Bucket' + AND detail.data__TypeName = 'AWS::S3Outposts::Bucket' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1240,10 +1298,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Outposts::Bucket' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'OutpostId') as outpost_id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LifecycleConfiguration') as lifecycle_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::S3Outposts::Bucket' + AND detail.data__TypeName = 'AWS::S3Outposts::Bucket' + AND listing.region = 'us-east-1' + buckets_list_only: + name: buckets_list_only + id: aws.s3outposts.buckets_list_only + x-cfn-schema-name: Bucket + x-cfn-type-name: AWS::S3Outposts::Bucket + 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::S3Outposts::Bucket' + 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::S3Outposts::Bucket' + AND region = 'us-east-1' + bucket_tags: + name: bucket_tags + id: aws.s3outposts.bucket_tags + x-cfn-schema-name: Bucket + x-cfn-type-name: AWS::S3Outposts::Bucket + 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, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.OutpostId') as outpost_id, + JSON_EXTRACT(detail.Properties, '$.LifecycleConfiguration') as lifecycle_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::S3Outposts::Bucket' + AND detail.data__TypeName = 'AWS::S3Outposts::Bucket' + 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, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'OutpostId') as outpost_id, + json_extract_path_text(detail.Properties, 'LifecycleConfiguration') as lifecycle_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::S3Outposts::Bucket' + AND detail.data__TypeName = 'AWS::S3Outposts::Bucket' + AND listing.region = 'us-east-1' bucket_policies: name: bucket_policies id: aws.s3outposts.bucket_policies @@ -1392,10 +1541,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Outposts::Endpoint' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CidrBlock') as cidr_block, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.NetworkInterfaces') as network_interfaces, + JSON_EXTRACT(detail.Properties, '$.OutpostId') as outpost_id, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupId') as security_group_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.SubnetId') as subnet_id, + JSON_EXTRACT(detail.Properties, '$.AccessType') as access_type, + JSON_EXTRACT(detail.Properties, '$.CustomerOwnedIpv4Pool') as customer_owned_ipv4_pool, + JSON_EXTRACT(detail.Properties, '$.FailedReason') as failed_reason + 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::S3Outposts::Endpoint' + AND detail.data__TypeName = 'AWS::S3Outposts::Endpoint' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1421,10 +1586,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::S3Outposts::Endpoint' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CidrBlock') as cidr_block, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'NetworkInterfaces') as network_interfaces, + json_extract_path_text(detail.Properties, 'OutpostId') as outpost_id, + json_extract_path_text(detail.Properties, 'SecurityGroupId') as security_group_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'SubnetId') as subnet_id, + json_extract_path_text(detail.Properties, 'AccessType') as access_type, + json_extract_path_text(detail.Properties, 'CustomerOwnedIpv4Pool') as customer_owned_ipv4_pool, + json_extract_path_text(detail.Properties, 'FailedReason') as failed_reason + 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::S3Outposts::Endpoint' + AND detail.data__TypeName = 'AWS::S3Outposts::Endpoint' + AND listing.region = 'us-east-1' + endpoints_list_only: + name: endpoints_list_only + id: aws.s3outposts.endpoints_list_only + x-cfn-schema-name: Endpoint + x-cfn-type-name: AWS::S3Outposts::Endpoint + 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::S3Outposts::Endpoint' + 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::S3Outposts::Endpoint' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/sagemaker.yaml b/providers/src/aws/v00.00.00000/services/sagemaker.yaml index d9ff067a..391f7578 100644 --- a/providers/src/aws/v00.00.00000/services/sagemaker.yaml +++ b/providers/src/aws/v00.00.00000/services/sagemaker.yaml @@ -6973,13 +6973,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AppName') as app_name, - JSON_EXTRACT(Properties, '$.AppType') as app_type, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.UserProfileName') as user_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::App' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AppArn') as app_arn, + JSON_EXTRACT(detail.Properties, '$.AppName') as app_name, + JSON_EXTRACT(detail.Properties, '$.AppType') as app_type, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.ResourceSpec') as resource_spec, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UserProfileName') as user_profile_name + 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::SageMaker::App' + AND detail.data__TypeName = 'AWS::SageMaker::App' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7000,13 +7008,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AppName') as app_name, - json_extract_path_text(Properties, 'AppType') as app_type, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'UserProfileName') as user_profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::App' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AppArn') as app_arn, + json_extract_path_text(detail.Properties, 'AppName') as app_name, + json_extract_path_text(detail.Properties, 'AppType') as app_type, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'ResourceSpec') as resource_spec, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UserProfileName') as user_profile_name + 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::SageMaker::App' + AND detail.data__TypeName = 'AWS::SageMaker::App' + AND listing.region = 'us-east-1' + apps_list_only: + name: apps_list_only + id: aws.sagemaker.apps_list_only + x-cfn-schema-name: App + x-cfn-type-name: AWS::SageMaker::App + x-identifiers: + - AppName + - AppType + - DomainId + - UserProfileName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AppName') as app_name, + JSON_EXTRACT(Properties, '$.AppType') as app_type, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.UserProfileName') as user_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::App' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AppName') as app_name, + json_extract_path_text(Properties, 'AppType') as app_type, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'UserProfileName') as user_profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::App' + AND region = 'us-east-1' + app_tags: + name: app_tags + id: aws.sagemaker.app_tags + x-cfn-schema-name: App + x-cfn-type-name: AWS::SageMaker::App + 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, '$.AppArn') as app_arn, + JSON_EXTRACT(detail.Properties, '$.AppName') as app_name, + JSON_EXTRACT(detail.Properties, '$.AppType') as app_type, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.ResourceSpec') as resource_spec, + JSON_EXTRACT(detail.Properties, '$.UserProfileName') as user_profile_name + 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::SageMaker::App' + AND detail.data__TypeName = 'AWS::SageMaker::App' + 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, 'AppArn') as app_arn, + json_extract_path_text(detail.Properties, 'AppName') as app_name, + json_extract_path_text(detail.Properties, 'AppType') as app_type, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'ResourceSpec') as resource_spec, + json_extract_path_text(detail.Properties, 'UserProfileName') as user_profile_name + 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::SageMaker::App' + AND detail.data__TypeName = 'AWS::SageMaker::App' + AND listing.region = 'us-east-1' app_image_configs: name: app_image_configs id: aws.sagemaker.app_image_configs @@ -7083,10 +7194,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AppImageConfigName') as app_image_config_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::AppImageConfig' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AppImageConfigArn') as app_image_config_arn, + JSON_EXTRACT(detail.Properties, '$.AppImageConfigName') as app_image_config_name, + JSON_EXTRACT(detail.Properties, '$.KernelGatewayImageConfig') as kernel_gateway_image_config, + JSON_EXTRACT(detail.Properties, '$.JupyterLabAppImageConfig') as jupyter_lab_app_image_config, + JSON_EXTRACT(detail.Properties, '$.CodeEditorAppImageConfig') as code_editor_app_image_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SageMaker::AppImageConfig' + AND detail.data__TypeName = 'AWS::SageMaker::AppImageConfig' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7106,10 +7227,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AppImageConfigName') as app_image_config_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::AppImageConfig' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AppImageConfigArn') as app_image_config_arn, + json_extract_path_text(detail.Properties, 'AppImageConfigName') as app_image_config_name, + json_extract_path_text(detail.Properties, 'KernelGatewayImageConfig') as kernel_gateway_image_config, + json_extract_path_text(detail.Properties, 'JupyterLabAppImageConfig') as jupyter_lab_app_image_config, + json_extract_path_text(detail.Properties, 'CodeEditorAppImageConfig') as code_editor_app_image_config, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SageMaker::AppImageConfig' + AND detail.data__TypeName = 'AWS::SageMaker::AppImageConfig' + AND listing.region = 'us-east-1' + app_image_configs_list_only: + name: app_image_configs_list_only + id: aws.sagemaker.app_image_configs_list_only + x-cfn-schema-name: AppImageConfig + x-cfn-type-name: AWS::SageMaker::AppImageConfig + x-identifiers: + - AppImageConfigName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AppImageConfigName') as app_image_config_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::AppImageConfig' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AppImageConfigName') as app_image_config_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::AppImageConfig' + AND region = 'us-east-1' + app_image_config_tags: + name: app_image_config_tags + id: aws.sagemaker.app_image_config_tags + x-cfn-schema-name: AppImageConfig + x-cfn-type-name: AWS::SageMaker::AppImageConfig + 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, '$.AppImageConfigArn') as app_image_config_arn, + JSON_EXTRACT(detail.Properties, '$.AppImageConfigName') as app_image_config_name, + JSON_EXTRACT(detail.Properties, '$.KernelGatewayImageConfig') as kernel_gateway_image_config, + JSON_EXTRACT(detail.Properties, '$.JupyterLabAppImageConfig') as jupyter_lab_app_image_config, + JSON_EXTRACT(detail.Properties, '$.CodeEditorAppImageConfig') as code_editor_app_image_config + 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::SageMaker::AppImageConfig' + AND detail.data__TypeName = 'AWS::SageMaker::AppImageConfig' + 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, 'AppImageConfigArn') as app_image_config_arn, + json_extract_path_text(detail.Properties, 'AppImageConfigName') as app_image_config_name, + json_extract_path_text(detail.Properties, 'KernelGatewayImageConfig') as kernel_gateway_image_config, + json_extract_path_text(detail.Properties, 'JupyterLabAppImageConfig') as jupyter_lab_app_image_config, + json_extract_path_text(detail.Properties, 'CodeEditorAppImageConfig') as code_editor_app_image_config + 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::SageMaker::AppImageConfig' + AND detail.data__TypeName = 'AWS::SageMaker::AppImageConfig' + AND listing.region = 'us-east-1' data_quality_job_definitions: name: data_quality_job_definitions id: aws.sagemaker.data_quality_job_definitions @@ -7180,10 +7395,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.DataQualityBaselineConfig') as data_quality_baseline_config, + JSON_EXTRACT(detail.Properties, '$.DataQualityAppSpecification') as data_quality_app_specification, + JSON_EXTRACT(detail.Properties, '$.DataQualityJobInput') as data_quality_job_input, + JSON_EXTRACT(detail.Properties, '$.DataQualityJobOutputConfig') as data_quality_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::DataQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7210,10 +7442,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'DataQualityBaselineConfig') as data_quality_baseline_config, + json_extract_path_text(detail.Properties, 'DataQualityAppSpecification') as data_quality_app_specification, + json_extract_path_text(detail.Properties, 'DataQualityJobInput') as data_quality_job_input, + json_extract_path_text(detail.Properties, 'DataQualityJobOutputConfig') as data_quality_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::DataQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' + AND listing.region = 'us-east-1' + data_quality_job_definitions_list_only: + name: data_quality_job_definitions_list_only + id: aws.sagemaker.data_quality_job_definitions_list_only + x-cfn-schema-name: DataQualityJobDefinition + x-cfn-type-name: AWS::SageMaker::DataQualityJobDefinition + x-identifiers: + - JobDefinitionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' + AND region = 'us-east-1' + data_quality_job_definition_tags: + name: data_quality_job_definition_tags + id: aws.sagemaker.data_quality_job_definition_tags + x-cfn-schema-name: DataQualityJobDefinition + x-cfn-type-name: AWS::SageMaker::DataQualityJobDefinition + 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, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.DataQualityBaselineConfig') as data_quality_baseline_config, + JSON_EXTRACT(detail.Properties, '$.DataQualityAppSpecification') as data_quality_app_specification, + JSON_EXTRACT(detail.Properties, '$.DataQualityJobInput') as data_quality_job_input, + JSON_EXTRACT(detail.Properties, '$.DataQualityJobOutputConfig') as data_quality_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::DataQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' + 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, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'DataQualityBaselineConfig') as data_quality_baseline_config, + json_extract_path_text(detail.Properties, 'DataQualityAppSpecification') as data_quality_app_specification, + json_extract_path_text(detail.Properties, 'DataQualityJobInput') as data_quality_job_input, + json_extract_path_text(detail.Properties, 'DataQualityJobOutputConfig') as data_quality_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::DataQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::DataQualityJobDefinition' + AND listing.region = 'us-east-1' devices: name: devices id: aws.sagemaker.devices @@ -7462,10 +7809,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FeatureGroupName') as feature_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::FeatureGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FeatureGroupName') as feature_group_name, + JSON_EXTRACT(detail.Properties, '$.RecordIdentifierFeatureName') as record_identifier_feature_name, + JSON_EXTRACT(detail.Properties, '$.EventTimeFeatureName') as event_time_feature_name, + JSON_EXTRACT(detail.Properties, '$.FeatureDefinitions') as feature_definitions, + JSON_EXTRACT(detail.Properties, '$.OnlineStoreConfig') as online_store_config, + JSON_EXTRACT(detail.Properties, '$.OfflineStoreConfig') as offline_store_config, + JSON_EXTRACT(detail.Properties, '$.ThroughputConfig') as throughput_config, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.FeatureGroupStatus') as feature_group_status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SageMaker::FeatureGroup' + AND detail.data__TypeName = 'AWS::SageMaker::FeatureGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7491,10 +7854,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FeatureGroupName') as feature_group_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::FeatureGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FeatureGroupName') as feature_group_name, + json_extract_path_text(detail.Properties, 'RecordIdentifierFeatureName') as record_identifier_feature_name, + json_extract_path_text(detail.Properties, 'EventTimeFeatureName') as event_time_feature_name, + json_extract_path_text(detail.Properties, 'FeatureDefinitions') as feature_definitions, + json_extract_path_text(detail.Properties, 'OnlineStoreConfig') as online_store_config, + json_extract_path_text(detail.Properties, 'OfflineStoreConfig') as offline_store_config, + json_extract_path_text(detail.Properties, 'ThroughputConfig') as throughput_config, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'FeatureGroupStatus') as feature_group_status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SageMaker::FeatureGroup' + AND detail.data__TypeName = 'AWS::SageMaker::FeatureGroup' + AND listing.region = 'us-east-1' + feature_groups_list_only: + name: feature_groups_list_only + id: aws.sagemaker.feature_groups_list_only + x-cfn-schema-name: FeatureGroup + x-cfn-type-name: AWS::SageMaker::FeatureGroup + x-identifiers: + - FeatureGroupName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FeatureGroupName') as feature_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::FeatureGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FeatureGroupName') as feature_group_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::FeatureGroup' + AND region = 'us-east-1' + feature_group_tags: + name: feature_group_tags + id: aws.sagemaker.feature_group_tags + x-cfn-schema-name: FeatureGroup + x-cfn-type-name: AWS::SageMaker::FeatureGroup + 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, '$.FeatureGroupName') as feature_group_name, + JSON_EXTRACT(detail.Properties, '$.RecordIdentifierFeatureName') as record_identifier_feature_name, + JSON_EXTRACT(detail.Properties, '$.EventTimeFeatureName') as event_time_feature_name, + JSON_EXTRACT(detail.Properties, '$.FeatureDefinitions') as feature_definitions, + JSON_EXTRACT(detail.Properties, '$.OnlineStoreConfig') as online_store_config, + JSON_EXTRACT(detail.Properties, '$.OfflineStoreConfig') as offline_store_config, + JSON_EXTRACT(detail.Properties, '$.ThroughputConfig') as throughput_config, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.FeatureGroupStatus') as feature_group_status + 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::SageMaker::FeatureGroup' + AND detail.data__TypeName = 'AWS::SageMaker::FeatureGroup' + 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, 'FeatureGroupName') as feature_group_name, + json_extract_path_text(detail.Properties, 'RecordIdentifierFeatureName') as record_identifier_feature_name, + json_extract_path_text(detail.Properties, 'EventTimeFeatureName') as event_time_feature_name, + json_extract_path_text(detail.Properties, 'FeatureDefinitions') as feature_definitions, + json_extract_path_text(detail.Properties, 'OnlineStoreConfig') as online_store_config, + json_extract_path_text(detail.Properties, 'OfflineStoreConfig') as offline_store_config, + json_extract_path_text(detail.Properties, 'ThroughputConfig') as throughput_config, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'FeatureGroupStatus') as feature_group_status + 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::SageMaker::FeatureGroup' + AND detail.data__TypeName = 'AWS::SageMaker::FeatureGroup' + AND listing.region = 'us-east-1' images: name: images id: aws.sagemaker.images @@ -7571,10 +8046,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ImageArn') as image_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Image' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ImageName') as image_name, + JSON_EXTRACT(detail.Properties, '$.ImageArn') as image_arn, + JSON_EXTRACT(detail.Properties, '$.ImageRoleArn') as image_role_arn, + JSON_EXTRACT(detail.Properties, '$.ImageDisplayName') as image_display_name, + JSON_EXTRACT(detail.Properties, '$.ImageDescription') as image_description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SageMaker::Image' + AND detail.data__TypeName = 'AWS::SageMaker::Image' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7594,10 +8079,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ImageArn') as image_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Image' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ImageName') as image_name, + json_extract_path_text(detail.Properties, 'ImageArn') as image_arn, + json_extract_path_text(detail.Properties, 'ImageRoleArn') as image_role_arn, + json_extract_path_text(detail.Properties, 'ImageDisplayName') as image_display_name, + json_extract_path_text(detail.Properties, 'ImageDescription') as image_description, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SageMaker::Image' + AND detail.data__TypeName = 'AWS::SageMaker::Image' + AND listing.region = 'us-east-1' + images_list_only: + name: images_list_only + id: aws.sagemaker.images_list_only + x-cfn-schema-name: Image + x-cfn-type-name: AWS::SageMaker::Image + x-identifiers: + - ImageArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ImageArn') as image_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Image' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ImageArn') as image_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Image' + AND region = 'us-east-1' + image_tags: + name: image_tags + id: aws.sagemaker.image_tags + x-cfn-schema-name: Image + x-cfn-type-name: AWS::SageMaker::Image + 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, '$.ImageName') as image_name, + JSON_EXTRACT(detail.Properties, '$.ImageArn') as image_arn, + JSON_EXTRACT(detail.Properties, '$.ImageRoleArn') as image_role_arn, + JSON_EXTRACT(detail.Properties, '$.ImageDisplayName') as image_display_name, + JSON_EXTRACT(detail.Properties, '$.ImageDescription') as image_description + 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::SageMaker::Image' + AND detail.data__TypeName = 'AWS::SageMaker::Image' + 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, 'ImageName') as image_name, + json_extract_path_text(detail.Properties, 'ImageArn') as image_arn, + json_extract_path_text(detail.Properties, 'ImageRoleArn') as image_role_arn, + json_extract_path_text(detail.Properties, 'ImageDisplayName') as image_display_name, + json_extract_path_text(detail.Properties, 'ImageDescription') as image_description + 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::SageMaker::Image' + AND detail.data__TypeName = 'AWS::SageMaker::Image' + AND listing.region = 'us-east-1' image_versions: name: image_versions id: aws.sagemaker.image_versions @@ -7683,10 +8262,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ImageVersionArn') as image_version_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ImageVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ImageName') as image_name, + JSON_EXTRACT(detail.Properties, '$.ImageArn') as image_arn, + JSON_EXTRACT(detail.Properties, '$.ImageVersionArn') as image_version_arn, + JSON_EXTRACT(detail.Properties, '$.BaseImage') as base_image, + JSON_EXTRACT(detail.Properties, '$.ContainerImage') as container_image, + JSON_EXTRACT(detail.Properties, '$.Version') as version, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.Aliases') as aliases, + JSON_EXTRACT(detail.Properties, '$.VendorGuidance') as vendor_guidance, + JSON_EXTRACT(detail.Properties, '$.JobType') as job_type, + JSON_EXTRACT(detail.Properties, '$.MLFramework') as ml_framework, + JSON_EXTRACT(detail.Properties, '$.ProgrammingLang') as programming_lang, + JSON_EXTRACT(detail.Properties, '$.Processor') as processor, + JSON_EXTRACT(detail.Properties, '$.Horovod') as horovod, + JSON_EXTRACT(detail.Properties, '$.ReleaseNotes') as release_notes + 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::SageMaker::ImageVersion' + AND detail.data__TypeName = 'AWS::SageMaker::ImageVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7715,10 +8313,60 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ImageVersionArn') as image_version_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ImageVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ImageName') as image_name, + json_extract_path_text(detail.Properties, 'ImageArn') as image_arn, + json_extract_path_text(detail.Properties, 'ImageVersionArn') as image_version_arn, + json_extract_path_text(detail.Properties, 'BaseImage') as base_image, + json_extract_path_text(detail.Properties, 'ContainerImage') as container_image, + json_extract_path_text(detail.Properties, 'Version') as version, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'Aliases') as aliases, + json_extract_path_text(detail.Properties, 'VendorGuidance') as vendor_guidance, + json_extract_path_text(detail.Properties, 'JobType') as job_type, + json_extract_path_text(detail.Properties, 'MLFramework') as ml_framework, + json_extract_path_text(detail.Properties, 'ProgrammingLang') as programming_lang, + json_extract_path_text(detail.Properties, 'Processor') as processor, + json_extract_path_text(detail.Properties, 'Horovod') as horovod, + json_extract_path_text(detail.Properties, 'ReleaseNotes') as release_notes + 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::SageMaker::ImageVersion' + AND detail.data__TypeName = 'AWS::SageMaker::ImageVersion' + AND listing.region = 'us-east-1' + image_versions_list_only: + name: image_versions_list_only + id: aws.sagemaker.image_versions_list_only + x-cfn-schema-name: ImageVersion + x-cfn-type-name: AWS::SageMaker::ImageVersion + x-identifiers: + - ImageVersionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ImageVersionArn') as image_version_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ImageVersion' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ImageVersionArn') as image_version_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ImageVersion' + AND region = 'us-east-1' inference_components: name: inference_components id: aws.sagemaker.inference_components @@ -7801,10 +8449,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InferenceComponentArn') as inference_component_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceComponent' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InferenceComponentArn') as inference_component_arn, + JSON_EXTRACT(detail.Properties, '$.InferenceComponentName') as inference_component_name, + JSON_EXTRACT(detail.Properties, '$.EndpointArn') as endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.VariantName') as variant_name, + JSON_EXTRACT(detail.Properties, '$.FailureReason') as failure_reason, + JSON_EXTRACT(detail.Properties, '$.Specification') as specification, + JSON_EXTRACT(detail.Properties, '$.RuntimeConfig') as runtime_config, + JSON_EXTRACT(detail.Properties, '$.InferenceComponentStatus') as inference_component_status, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SageMaker::InferenceComponent' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceComponent' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7830,10 +8494,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InferenceComponentArn') as inference_component_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceComponent' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InferenceComponentArn') as inference_component_arn, + json_extract_path_text(detail.Properties, 'InferenceComponentName') as inference_component_name, + json_extract_path_text(detail.Properties, 'EndpointArn') as endpoint_arn, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'VariantName') as variant_name, + json_extract_path_text(detail.Properties, 'FailureReason') as failure_reason, + json_extract_path_text(detail.Properties, 'Specification') as specification, + json_extract_path_text(detail.Properties, 'RuntimeConfig') as runtime_config, + json_extract_path_text(detail.Properties, 'InferenceComponentStatus') as inference_component_status, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SageMaker::InferenceComponent' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceComponent' + AND listing.region = 'us-east-1' + inference_components_list_only: + name: inference_components_list_only + id: aws.sagemaker.inference_components_list_only + x-cfn-schema-name: InferenceComponent + x-cfn-type-name: AWS::SageMaker::InferenceComponent + x-identifiers: + - InferenceComponentArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InferenceComponentArn') as inference_component_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceComponent' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InferenceComponentArn') as inference_component_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceComponent' + AND region = 'us-east-1' + inference_component_tags: + name: inference_component_tags + id: aws.sagemaker.inference_component_tags + x-cfn-schema-name: InferenceComponent + x-cfn-type-name: AWS::SageMaker::InferenceComponent + 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, '$.InferenceComponentArn') as inference_component_arn, + JSON_EXTRACT(detail.Properties, '$.InferenceComponentName') as inference_component_name, + JSON_EXTRACT(detail.Properties, '$.EndpointArn') as endpoint_arn, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.VariantName') as variant_name, + JSON_EXTRACT(detail.Properties, '$.FailureReason') as failure_reason, + JSON_EXTRACT(detail.Properties, '$.Specification') as specification, + JSON_EXTRACT(detail.Properties, '$.RuntimeConfig') as runtime_config, + JSON_EXTRACT(detail.Properties, '$.InferenceComponentStatus') as inference_component_status, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time + 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::SageMaker::InferenceComponent' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceComponent' + 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, 'InferenceComponentArn') as inference_component_arn, + json_extract_path_text(detail.Properties, 'InferenceComponentName') as inference_component_name, + json_extract_path_text(detail.Properties, 'EndpointArn') as endpoint_arn, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'VariantName') as variant_name, + json_extract_path_text(detail.Properties, 'FailureReason') as failure_reason, + json_extract_path_text(detail.Properties, 'Specification') as specification, + json_extract_path_text(detail.Properties, 'RuntimeConfig') as runtime_config, + json_extract_path_text(detail.Properties, 'InferenceComponentStatus') as inference_component_status, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time + 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::SageMaker::InferenceComponent' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceComponent' + AND listing.region = 'us-east-1' inference_experiments: name: inference_experiments id: aws.sagemaker.inference_experiments @@ -7922,10 +8698,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceExperiment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.EndpointMetadata') as endpoint_metadata, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.KmsKey') as kms_key, + JSON_EXTRACT(detail.Properties, '$.DataStorageConfig') as data_storage_config, + JSON_EXTRACT(detail.Properties, '$.ModelVariants') as model_variants, + JSON_EXTRACT(detail.Properties, '$.ShadowModeConfig') as shadow_mode_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.DesiredState') as desired_state + 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::SageMaker::InferenceExperiment' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceExperiment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -7957,29 +8755,159 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceExperiment' - AND region = 'us-east-1' - model_bias_job_definitions: - name: model_bias_job_definitions - id: aws.sagemaker.model_bias_job_definitions - x-cfn-schema-name: ModelBiasJobDefinition - x-cfn-type-name: AWS::SageMaker::ModelBiasJobDefinition + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'EndpointMetadata') as endpoint_metadata, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'KmsKey') as kms_key, + json_extract_path_text(detail.Properties, 'DataStorageConfig') as data_storage_config, + json_extract_path_text(detail.Properties, 'ModelVariants') as model_variants, + json_extract_path_text(detail.Properties, 'ShadowModeConfig') as shadow_mode_config, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'DesiredState') as desired_state + 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::SageMaker::InferenceExperiment' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceExperiment' + AND listing.region = 'us-east-1' + inference_experiments_list_only: + name: inference_experiments_list_only + id: aws.sagemaker.inference_experiments_list_only + x-cfn-schema-name: InferenceExperiment + x-cfn-type-name: AWS::SageMaker::InferenceExperiment x-identifiers: - - JobDefinitionArn - x-type: cloud_control - methods: - create_resource: - config: - requestBodyTranslate: - algorithm: naive_DesiredState - operation: - $ref: '#/paths/~1?Action=CreateResource&Version=2021-09-30&__ModelBiasJobDefinition&__detailTransformed=true/post' - request: - mediaType: application/x-amz-json-1.0 - base: |- - { + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceExperiment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::InferenceExperiment' + AND region = 'us-east-1' + inference_experiment_tags: + name: inference_experiment_tags + id: aws.sagemaker.inference_experiment_tags + x-cfn-schema-name: InferenceExperiment + x-cfn-type-name: AWS::SageMaker::InferenceExperiment + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.EndpointMetadata') as endpoint_metadata, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.KmsKey') as kms_key, + JSON_EXTRACT(detail.Properties, '$.DataStorageConfig') as data_storage_config, + JSON_EXTRACT(detail.Properties, '$.ModelVariants') as model_variants, + JSON_EXTRACT(detail.Properties, '$.ShadowModeConfig') as shadow_mode_config, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.DesiredState') as desired_state + 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::SageMaker::InferenceExperiment' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceExperiment' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'EndpointMetadata') as endpoint_metadata, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'KmsKey') as kms_key, + json_extract_path_text(detail.Properties, 'DataStorageConfig') as data_storage_config, + json_extract_path_text(detail.Properties, 'ModelVariants') as model_variants, + json_extract_path_text(detail.Properties, 'ShadowModeConfig') as shadow_mode_config, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'DesiredState') as desired_state + 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::SageMaker::InferenceExperiment' + AND detail.data__TypeName = 'AWS::SageMaker::InferenceExperiment' + AND listing.region = 'us-east-1' + model_bias_job_definitions: + name: model_bias_job_definitions + id: aws.sagemaker.model_bias_job_definitions + x-cfn-schema-name: ModelBiasJobDefinition + x-cfn-type-name: AWS::SageMaker::ModelBiasJobDefinition + x-identifiers: + - JobDefinitionArn + x-type: cloud_control + methods: + create_resource: + config: + requestBodyTranslate: + algorithm: naive_DesiredState + operation: + $ref: '#/paths/~1?Action=CreateResource&Version=2021-09-30&__ModelBiasJobDefinition&__detailTransformed=true/post' + request: + mediaType: application/x-amz-json-1.0 + base: |- + { "TypeName": "AWS::SageMaker::ModelBiasJobDefinition" } response: @@ -8031,10 +8959,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.ModelBiasBaselineConfig') as model_bias_baseline_config, + JSON_EXTRACT(detail.Properties, '$.ModelBiasAppSpecification') as model_bias_app_specification, + JSON_EXTRACT(detail.Properties, '$.ModelBiasJobInput') as model_bias_job_input, + JSON_EXTRACT(detail.Properties, '$.ModelBiasJobOutputConfig') as model_bias_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::ModelBiasJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8061,10 +9006,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'ModelBiasBaselineConfig') as model_bias_baseline_config, + json_extract_path_text(detail.Properties, 'ModelBiasAppSpecification') as model_bias_app_specification, + json_extract_path_text(detail.Properties, 'ModelBiasJobInput') as model_bias_job_input, + json_extract_path_text(detail.Properties, 'ModelBiasJobOutputConfig') as model_bias_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::ModelBiasJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' + AND listing.region = 'us-east-1' + model_bias_job_definitions_list_only: + name: model_bias_job_definitions_list_only + id: aws.sagemaker.model_bias_job_definitions_list_only + x-cfn-schema-name: ModelBiasJobDefinition + x-cfn-type-name: AWS::SageMaker::ModelBiasJobDefinition + x-identifiers: + - JobDefinitionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' + AND region = 'us-east-1' + model_bias_job_definition_tags: + name: model_bias_job_definition_tags + id: aws.sagemaker.model_bias_job_definition_tags + x-cfn-schema-name: ModelBiasJobDefinition + x-cfn-type-name: AWS::SageMaker::ModelBiasJobDefinition + 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, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.ModelBiasBaselineConfig') as model_bias_baseline_config, + JSON_EXTRACT(detail.Properties, '$.ModelBiasAppSpecification') as model_bias_app_specification, + JSON_EXTRACT(detail.Properties, '$.ModelBiasJobInput') as model_bias_job_input, + JSON_EXTRACT(detail.Properties, '$.ModelBiasJobOutputConfig') as model_bias_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::ModelBiasJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' + 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, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'ModelBiasBaselineConfig') as model_bias_baseline_config, + json_extract_path_text(detail.Properties, 'ModelBiasAppSpecification') as model_bias_app_specification, + json_extract_path_text(detail.Properties, 'ModelBiasJobInput') as model_bias_job_input, + json_extract_path_text(detail.Properties, 'ModelBiasJobOutputConfig') as model_bias_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::ModelBiasJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelBiasJobDefinition' + AND listing.region = 'us-east-1' model_cards: name: model_cards id: aws.sagemaker.model_cards @@ -8147,10 +9207,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ModelCardName') as model_card_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelCard' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ModelCardArn') as model_card_arn, + JSON_EXTRACT(detail.Properties, '$.ModelCardVersion') as model_card_version, + JSON_EXTRACT(detail.Properties, '$.ModelCardName') as model_card_name, + JSON_EXTRACT(detail.Properties, '$.SecurityConfig') as security_config, + JSON_EXTRACT(detail.Properties, '$.ModelCardStatus') as model_card_status, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedBy') as last_modified_by, + JSON_EXTRACT(detail.Properties, '$.ModelCardProcessingStatus') as model_card_processing_status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SageMaker::ModelCard' + AND detail.data__TypeName = 'AWS::SageMaker::ModelCard' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8176,10 +9252,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ModelCardName') as model_card_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelCard' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ModelCardArn') as model_card_arn, + json_extract_path_text(detail.Properties, 'ModelCardVersion') as model_card_version, + json_extract_path_text(detail.Properties, 'ModelCardName') as model_card_name, + json_extract_path_text(detail.Properties, 'SecurityConfig') as security_config, + json_extract_path_text(detail.Properties, 'ModelCardStatus') as model_card_status, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'LastModifiedBy') as last_modified_by, + json_extract_path_text(detail.Properties, 'ModelCardProcessingStatus') as model_card_processing_status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SageMaker::ModelCard' + AND detail.data__TypeName = 'AWS::SageMaker::ModelCard' + AND listing.region = 'us-east-1' + model_cards_list_only: + name: model_cards_list_only + id: aws.sagemaker.model_cards_list_only + x-cfn-schema-name: ModelCard + x-cfn-type-name: AWS::SageMaker::ModelCard + x-identifiers: + - ModelCardName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ModelCardName') as model_card_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelCard' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ModelCardName') as model_card_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelCard' + AND region = 'us-east-1' + model_card_tags: + name: model_card_tags + id: aws.sagemaker.model_card_tags + x-cfn-schema-name: ModelCard + x-cfn-type-name: AWS::SageMaker::ModelCard + 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, '$.ModelCardArn') as model_card_arn, + JSON_EXTRACT(detail.Properties, '$.ModelCardVersion') as model_card_version, + JSON_EXTRACT(detail.Properties, '$.ModelCardName') as model_card_name, + JSON_EXTRACT(detail.Properties, '$.SecurityConfig') as security_config, + JSON_EXTRACT(detail.Properties, '$.ModelCardStatus') as model_card_status, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedBy') as last_modified_by, + JSON_EXTRACT(detail.Properties, '$.ModelCardProcessingStatus') as model_card_processing_status + 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::SageMaker::ModelCard' + AND detail.data__TypeName = 'AWS::SageMaker::ModelCard' + 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, 'ModelCardArn') as model_card_arn, + json_extract_path_text(detail.Properties, 'ModelCardVersion') as model_card_version, + json_extract_path_text(detail.Properties, 'ModelCardName') as model_card_name, + json_extract_path_text(detail.Properties, 'SecurityConfig') as security_config, + json_extract_path_text(detail.Properties, 'ModelCardStatus') as model_card_status, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'LastModifiedBy') as last_modified_by, + json_extract_path_text(detail.Properties, 'ModelCardProcessingStatus') as model_card_processing_status + 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::SageMaker::ModelCard' + AND detail.data__TypeName = 'AWS::SageMaker::ModelCard' + AND listing.region = 'us-east-1' model_explainability_job_definitions: name: model_explainability_job_definitions id: aws.sagemaker.model_explainability_job_definitions @@ -8250,10 +9438,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityBaselineConfig') as model_explainability_baseline_config, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityAppSpecification') as model_explainability_app_specification, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityJobInput') as model_explainability_job_input, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityJobOutputConfig') as model_explainability_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::ModelExplainabilityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8280,10 +9485,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'ModelExplainabilityBaselineConfig') as model_explainability_baseline_config, + json_extract_path_text(detail.Properties, 'ModelExplainabilityAppSpecification') as model_explainability_app_specification, + json_extract_path_text(detail.Properties, 'ModelExplainabilityJobInput') as model_explainability_job_input, + json_extract_path_text(detail.Properties, 'ModelExplainabilityJobOutputConfig') as model_explainability_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::ModelExplainabilityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' + AND listing.region = 'us-east-1' + model_explainability_job_definitions_list_only: + name: model_explainability_job_definitions_list_only + id: aws.sagemaker.model_explainability_job_definitions_list_only + x-cfn-schema-name: ModelExplainabilityJobDefinition + x-cfn-type-name: AWS::SageMaker::ModelExplainabilityJobDefinition + x-identifiers: + - JobDefinitionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' + AND region = 'us-east-1' + model_explainability_job_definition_tags: + name: model_explainability_job_definition_tags + id: aws.sagemaker.model_explainability_job_definition_tags + x-cfn-schema-name: ModelExplainabilityJobDefinition + x-cfn-type-name: AWS::SageMaker::ModelExplainabilityJobDefinition + 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, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityBaselineConfig') as model_explainability_baseline_config, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityAppSpecification') as model_explainability_app_specification, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityJobInput') as model_explainability_job_input, + JSON_EXTRACT(detail.Properties, '$.ModelExplainabilityJobOutputConfig') as model_explainability_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::ModelExplainabilityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' + 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, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'ModelExplainabilityBaselineConfig') as model_explainability_baseline_config, + json_extract_path_text(detail.Properties, 'ModelExplainabilityAppSpecification') as model_explainability_app_specification, + json_extract_path_text(detail.Properties, 'ModelExplainabilityJobInput') as model_explainability_job_input, + json_extract_path_text(detail.Properties, 'ModelExplainabilityJobOutputConfig') as model_explainability_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::ModelExplainabilityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelExplainabilityJobDefinition' + AND listing.region = 'us-east-1' model_packages: name: model_packages id: aws.sagemaker.model_packages @@ -8381,10 +9701,41 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ModelPackageArn') as model_package_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackage' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AdditionalInferenceSpecifications') as additional_inference_specifications, + JSON_EXTRACT(detail.Properties, '$.CertifyForMarketplace') as certify_for_marketplace, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.CustomerMetadataProperties') as customer_metadata_properties, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.DriftCheckBaselines') as drift_check_baselines, + JSON_EXTRACT(detail.Properties, '$.InferenceSpecification') as inference_specification, + JSON_EXTRACT(detail.Properties, '$.MetadataProperties') as metadata_properties, + JSON_EXTRACT(detail.Properties, '$.ModelApprovalStatus') as model_approval_status, + JSON_EXTRACT(detail.Properties, '$.ModelMetrics') as model_metrics, + JSON_EXTRACT(detail.Properties, '$.ModelPackageDescription') as model_package_description, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupName') as model_package_group_name, + JSON_EXTRACT(detail.Properties, '$.ModelPackageName') as model_package_name, + JSON_EXTRACT(detail.Properties, '$.SamplePayloadUrl') as sample_payload_url, + JSON_EXTRACT(detail.Properties, '$.SkipModelValidation') as skip_model_validation, + JSON_EXTRACT(detail.Properties, '$.SourceAlgorithmSpecification') as source_algorithm_specification, + JSON_EXTRACT(detail.Properties, '$.Task') as task, + JSON_EXTRACT(detail.Properties, '$.ValidationSpecification') as validation_specification, + JSON_EXTRACT(detail.Properties, '$.ModelPackageArn') as model_package_arn, + JSON_EXTRACT(detail.Properties, '$.ApprovalDescription') as approval_description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.ModelPackageStatus') as model_package_status, + JSON_EXTRACT(detail.Properties, '$.ModelPackageVersion') as model_package_version, + JSON_EXTRACT(detail.Properties, '$.AdditionalInferenceSpecificationsToAdd') as additional_inference_specifications_to_add, + JSON_EXTRACT(detail.Properties, '$.ModelPackageStatusDetails') as model_package_status_details + 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::SageMaker::ModelPackage' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackage' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8425,10 +9776,167 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ModelPackageArn') as model_package_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackage' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AdditionalInferenceSpecifications') as additional_inference_specifications, + json_extract_path_text(detail.Properties, 'CertifyForMarketplace') as certify_for_marketplace, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'CustomerMetadataProperties') as customer_metadata_properties, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'DriftCheckBaselines') as drift_check_baselines, + json_extract_path_text(detail.Properties, 'InferenceSpecification') as inference_specification, + json_extract_path_text(detail.Properties, 'MetadataProperties') as metadata_properties, + json_extract_path_text(detail.Properties, 'ModelApprovalStatus') as model_approval_status, + json_extract_path_text(detail.Properties, 'ModelMetrics') as model_metrics, + json_extract_path_text(detail.Properties, 'ModelPackageDescription') as model_package_description, + json_extract_path_text(detail.Properties, 'ModelPackageGroupName') as model_package_group_name, + json_extract_path_text(detail.Properties, 'ModelPackageName') as model_package_name, + json_extract_path_text(detail.Properties, 'SamplePayloadUrl') as sample_payload_url, + json_extract_path_text(detail.Properties, 'SkipModelValidation') as skip_model_validation, + json_extract_path_text(detail.Properties, 'SourceAlgorithmSpecification') as source_algorithm_specification, + json_extract_path_text(detail.Properties, 'Task') as task, + json_extract_path_text(detail.Properties, 'ValidationSpecification') as validation_specification, + json_extract_path_text(detail.Properties, 'ModelPackageArn') as model_package_arn, + json_extract_path_text(detail.Properties, 'ApprovalDescription') as approval_description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'ModelPackageStatus') as model_package_status, + json_extract_path_text(detail.Properties, 'ModelPackageVersion') as model_package_version, + json_extract_path_text(detail.Properties, 'AdditionalInferenceSpecificationsToAdd') as additional_inference_specifications_to_add, + json_extract_path_text(detail.Properties, 'ModelPackageStatusDetails') as model_package_status_details + 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::SageMaker::ModelPackage' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackage' + AND listing.region = 'us-east-1' + model_packages_list_only: + name: model_packages_list_only + id: aws.sagemaker.model_packages_list_only + x-cfn-schema-name: ModelPackage + x-cfn-type-name: AWS::SageMaker::ModelPackage + x-identifiers: + - ModelPackageArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ModelPackageArn') as model_package_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackage' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ModelPackageArn') as model_package_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackage' + AND region = 'us-east-1' + model_package_tags: + name: model_package_tags + id: aws.sagemaker.model_package_tags + x-cfn-schema-name: ModelPackage + x-cfn-type-name: AWS::SageMaker::ModelPackage + 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, '$.AdditionalInferenceSpecifications') as additional_inference_specifications, + JSON_EXTRACT(detail.Properties, '$.CertifyForMarketplace') as certify_for_marketplace, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.CustomerMetadataProperties') as customer_metadata_properties, + JSON_EXTRACT(detail.Properties, '$.Domain') as domain, + JSON_EXTRACT(detail.Properties, '$.DriftCheckBaselines') as drift_check_baselines, + JSON_EXTRACT(detail.Properties, '$.InferenceSpecification') as inference_specification, + JSON_EXTRACT(detail.Properties, '$.MetadataProperties') as metadata_properties, + JSON_EXTRACT(detail.Properties, '$.ModelApprovalStatus') as model_approval_status, + JSON_EXTRACT(detail.Properties, '$.ModelMetrics') as model_metrics, + JSON_EXTRACT(detail.Properties, '$.ModelPackageDescription') as model_package_description, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupName') as model_package_group_name, + JSON_EXTRACT(detail.Properties, '$.ModelPackageName') as model_package_name, + JSON_EXTRACT(detail.Properties, '$.SamplePayloadUrl') as sample_payload_url, + JSON_EXTRACT(detail.Properties, '$.SkipModelValidation') as skip_model_validation, + JSON_EXTRACT(detail.Properties, '$.SourceAlgorithmSpecification') as source_algorithm_specification, + JSON_EXTRACT(detail.Properties, '$.Task') as task, + JSON_EXTRACT(detail.Properties, '$.ValidationSpecification') as validation_specification, + JSON_EXTRACT(detail.Properties, '$.ModelPackageArn') as model_package_arn, + JSON_EXTRACT(detail.Properties, '$.ApprovalDescription') as approval_description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.ModelPackageStatus') as model_package_status, + JSON_EXTRACT(detail.Properties, '$.ModelPackageVersion') as model_package_version, + JSON_EXTRACT(detail.Properties, '$.AdditionalInferenceSpecificationsToAdd') as additional_inference_specifications_to_add, + JSON_EXTRACT(detail.Properties, '$.ModelPackageStatusDetails') as model_package_status_details + 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::SageMaker::ModelPackage' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackage' + 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, 'AdditionalInferenceSpecifications') as additional_inference_specifications, + json_extract_path_text(detail.Properties, 'CertifyForMarketplace') as certify_for_marketplace, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'CustomerMetadataProperties') as customer_metadata_properties, + json_extract_path_text(detail.Properties, 'Domain') as domain, + json_extract_path_text(detail.Properties, 'DriftCheckBaselines') as drift_check_baselines, + json_extract_path_text(detail.Properties, 'InferenceSpecification') as inference_specification, + json_extract_path_text(detail.Properties, 'MetadataProperties') as metadata_properties, + json_extract_path_text(detail.Properties, 'ModelApprovalStatus') as model_approval_status, + json_extract_path_text(detail.Properties, 'ModelMetrics') as model_metrics, + json_extract_path_text(detail.Properties, 'ModelPackageDescription') as model_package_description, + json_extract_path_text(detail.Properties, 'ModelPackageGroupName') as model_package_group_name, + json_extract_path_text(detail.Properties, 'ModelPackageName') as model_package_name, + json_extract_path_text(detail.Properties, 'SamplePayloadUrl') as sample_payload_url, + json_extract_path_text(detail.Properties, 'SkipModelValidation') as skip_model_validation, + json_extract_path_text(detail.Properties, 'SourceAlgorithmSpecification') as source_algorithm_specification, + json_extract_path_text(detail.Properties, 'Task') as task, + json_extract_path_text(detail.Properties, 'ValidationSpecification') as validation_specification, + json_extract_path_text(detail.Properties, 'ModelPackageArn') as model_package_arn, + json_extract_path_text(detail.Properties, 'ApprovalDescription') as approval_description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'ModelPackageStatus') as model_package_status, + json_extract_path_text(detail.Properties, 'ModelPackageVersion') as model_package_version, + json_extract_path_text(detail.Properties, 'AdditionalInferenceSpecificationsToAdd') as additional_inference_specifications_to_add, + json_extract_path_text(detail.Properties, 'ModelPackageStatusDetails') as model_package_status_details + 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::SageMaker::ModelPackage' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackage' + AND listing.region = 'us-east-1' model_package_groups: name: model_package_groups id: aws.sagemaker.model_package_groups @@ -8506,10 +10014,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ModelPackageGroupArn') as model_package_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackageGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupArn') as model_package_group_arn, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupName') as model_package_group_name, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupDescription') as model_package_group_description, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupPolicy') as model_package_group_policy, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupStatus') as model_package_group_status + 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::SageMaker::ModelPackageGroup' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackageGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8530,10 +10049,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ModelPackageGroupArn') as model_package_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackageGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ModelPackageGroupArn') as model_package_group_arn, + json_extract_path_text(detail.Properties, 'ModelPackageGroupName') as model_package_group_name, + json_extract_path_text(detail.Properties, 'ModelPackageGroupDescription') as model_package_group_description, + json_extract_path_text(detail.Properties, 'ModelPackageGroupPolicy') as model_package_group_policy, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModelPackageGroupStatus') as model_package_group_status + 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::SageMaker::ModelPackageGroup' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackageGroup' + AND listing.region = 'us-east-1' + model_package_groups_list_only: + name: model_package_groups_list_only + id: aws.sagemaker.model_package_groups_list_only + x-cfn-schema-name: ModelPackageGroup + x-cfn-type-name: AWS::SageMaker::ModelPackageGroup + x-identifiers: + - ModelPackageGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ModelPackageGroupArn') as model_package_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackageGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ModelPackageGroupArn') as model_package_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelPackageGroup' + AND region = 'us-east-1' + model_package_group_tags: + name: model_package_group_tags + id: aws.sagemaker.model_package_group_tags + x-cfn-schema-name: ModelPackageGroup + x-cfn-type-name: AWS::SageMaker::ModelPackageGroup + 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, '$.ModelPackageGroupArn') as model_package_group_arn, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupName') as model_package_group_name, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupDescription') as model_package_group_description, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupPolicy') as model_package_group_policy, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ModelPackageGroupStatus') as model_package_group_status + 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::SageMaker::ModelPackageGroup' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackageGroup' + 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, 'ModelPackageGroupArn') as model_package_group_arn, + json_extract_path_text(detail.Properties, 'ModelPackageGroupName') as model_package_group_name, + json_extract_path_text(detail.Properties, 'ModelPackageGroupDescription') as model_package_group_description, + json_extract_path_text(detail.Properties, 'ModelPackageGroupPolicy') as model_package_group_policy, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ModelPackageGroupStatus') as model_package_group_status + 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::SageMaker::ModelPackageGroup' + AND detail.data__TypeName = 'AWS::SageMaker::ModelPackageGroup' + AND listing.region = 'us-east-1' model_quality_job_definitions: name: model_quality_job_definitions id: aws.sagemaker.model_quality_job_definitions @@ -8604,10 +10220,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.ModelQualityBaselineConfig') as model_quality_baseline_config, + JSON_EXTRACT(detail.Properties, '$.ModelQualityAppSpecification') as model_quality_app_specification, + JSON_EXTRACT(detail.Properties, '$.ModelQualityJobInput') as model_quality_job_input, + JSON_EXTRACT(detail.Properties, '$.ModelQualityJobOutputConfig') as model_quality_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::ModelQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8634,10 +10267,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'ModelQualityBaselineConfig') as model_quality_baseline_config, + json_extract_path_text(detail.Properties, 'ModelQualityAppSpecification') as model_quality_app_specification, + json_extract_path_text(detail.Properties, 'ModelQualityJobInput') as model_quality_job_input, + json_extract_path_text(detail.Properties, 'ModelQualityJobOutputConfig') as model_quality_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::ModelQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' + AND listing.region = 'us-east-1' + model_quality_job_definitions_list_only: + name: model_quality_job_definitions_list_only + id: aws.sagemaker.model_quality_job_definitions_list_only + x-cfn-schema-name: ModelQualityJobDefinition + x-cfn-type-name: AWS::SageMaker::ModelQualityJobDefinition + x-identifiers: + - JobDefinitionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'JobDefinitionArn') as job_definition_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' + AND region = 'us-east-1' + model_quality_job_definition_tags: + name: model_quality_job_definition_tags + id: aws.sagemaker.model_quality_job_definition_tags + x-cfn-schema-name: ModelQualityJobDefinition + x-cfn-type-name: AWS::SageMaker::ModelQualityJobDefinition + 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, '$.JobDefinitionArn') as job_definition_arn, + JSON_EXTRACT(detail.Properties, '$.JobDefinitionName') as job_definition_name, + JSON_EXTRACT(detail.Properties, '$.ModelQualityBaselineConfig') as model_quality_baseline_config, + JSON_EXTRACT(detail.Properties, '$.ModelQualityAppSpecification') as model_quality_app_specification, + JSON_EXTRACT(detail.Properties, '$.ModelQualityJobInput') as model_quality_job_input, + JSON_EXTRACT(detail.Properties, '$.ModelQualityJobOutputConfig') as model_quality_job_output_config, + JSON_EXTRACT(detail.Properties, '$.JobResources') as job_resources, + JSON_EXTRACT(detail.Properties, '$.NetworkConfig') as network_config, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.StoppingCondition') as stopping_condition, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time + 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::SageMaker::ModelQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' + 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, 'JobDefinitionArn') as job_definition_arn, + json_extract_path_text(detail.Properties, 'JobDefinitionName') as job_definition_name, + json_extract_path_text(detail.Properties, 'ModelQualityBaselineConfig') as model_quality_baseline_config, + json_extract_path_text(detail.Properties, 'ModelQualityAppSpecification') as model_quality_app_specification, + json_extract_path_text(detail.Properties, 'ModelQualityJobInput') as model_quality_job_input, + json_extract_path_text(detail.Properties, 'ModelQualityJobOutputConfig') as model_quality_job_output_config, + json_extract_path_text(detail.Properties, 'JobResources') as job_resources, + json_extract_path_text(detail.Properties, 'NetworkConfig') as network_config, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'StoppingCondition') as stopping_condition, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time + 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::SageMaker::ModelQualityJobDefinition' + AND detail.data__TypeName = 'AWS::SageMaker::ModelQualityJobDefinition' + AND listing.region = 'us-east-1' monitoring_schedules: name: monitoring_schedules id: aws.sagemaker.monitoring_schedules @@ -8718,10 +10466,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.MonitoringScheduleArn') as monitoring_schedule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::MonitoringSchedule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.MonitoringScheduleArn') as monitoring_schedule_arn, + JSON_EXTRACT(detail.Properties, '$.MonitoringScheduleName') as monitoring_schedule_name, + JSON_EXTRACT(detail.Properties, '$.MonitoringScheduleConfig') as monitoring_schedule_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.FailureReason') as failure_reason, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.LastMonitoringExecutionSummary') as last_monitoring_execution_summary, + JSON_EXTRACT(detail.Properties, '$.MonitoringScheduleStatus') as monitoring_schedule_status + 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::SageMaker::MonitoringSchedule' + AND detail.data__TypeName = 'AWS::SageMaker::MonitoringSchedule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8745,10 +10507,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'MonitoringScheduleArn') as monitoring_schedule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::MonitoringSchedule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'MonitoringScheduleArn') as monitoring_schedule_arn, + json_extract_path_text(detail.Properties, 'MonitoringScheduleName') as monitoring_schedule_name, + json_extract_path_text(detail.Properties, 'MonitoringScheduleConfig') as monitoring_schedule_config, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'FailureReason') as failure_reason, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'LastMonitoringExecutionSummary') as last_monitoring_execution_summary, + json_extract_path_text(detail.Properties, 'MonitoringScheduleStatus') as monitoring_schedule_status + 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::SageMaker::MonitoringSchedule' + AND detail.data__TypeName = 'AWS::SageMaker::MonitoringSchedule' + AND listing.region = 'us-east-1' + monitoring_schedules_list_only: + name: monitoring_schedules_list_only + id: aws.sagemaker.monitoring_schedules_list_only + x-cfn-schema-name: MonitoringSchedule + x-cfn-type-name: AWS::SageMaker::MonitoringSchedule + x-identifiers: + - MonitoringScheduleArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.MonitoringScheduleArn') as monitoring_schedule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::MonitoringSchedule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'MonitoringScheduleArn') as monitoring_schedule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::MonitoringSchedule' + AND region = 'us-east-1' + monitoring_schedule_tags: + name: monitoring_schedule_tags + id: aws.sagemaker.monitoring_schedule_tags + x-cfn-schema-name: MonitoringSchedule + x-cfn-type-name: AWS::SageMaker::MonitoringSchedule + 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, '$.MonitoringScheduleArn') as monitoring_schedule_arn, + JSON_EXTRACT(detail.Properties, '$.MonitoringScheduleName') as monitoring_schedule_name, + JSON_EXTRACT(detail.Properties, '$.MonitoringScheduleConfig') as monitoring_schedule_config, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.EndpointName') as endpoint_name, + JSON_EXTRACT(detail.Properties, '$.FailureReason') as failure_reason, + JSON_EXTRACT(detail.Properties, '$.LastModifiedTime') as last_modified_time, + JSON_EXTRACT(detail.Properties, '$.LastMonitoringExecutionSummary') as last_monitoring_execution_summary, + JSON_EXTRACT(detail.Properties, '$.MonitoringScheduleStatus') as monitoring_schedule_status + 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::SageMaker::MonitoringSchedule' + AND detail.data__TypeName = 'AWS::SageMaker::MonitoringSchedule' + 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, 'MonitoringScheduleArn') as monitoring_schedule_arn, + json_extract_path_text(detail.Properties, 'MonitoringScheduleName') as monitoring_schedule_name, + json_extract_path_text(detail.Properties, 'MonitoringScheduleConfig') as monitoring_schedule_config, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'EndpointName') as endpoint_name, + json_extract_path_text(detail.Properties, 'FailureReason') as failure_reason, + json_extract_path_text(detail.Properties, 'LastModifiedTime') as last_modified_time, + json_extract_path_text(detail.Properties, 'LastMonitoringExecutionSummary') as last_monitoring_execution_summary, + json_extract_path_text(detail.Properties, 'MonitoringScheduleStatus') as monitoring_schedule_status + 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::SageMaker::MonitoringSchedule' + AND detail.data__TypeName = 'AWS::SageMaker::MonitoringSchedule' + AND listing.region = 'us-east-1' pipelines: name: pipelines id: aws.sagemaker.pipelines @@ -8826,10 +10694,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PipelineName') as pipeline_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Pipeline' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PipelineName') as pipeline_name, + JSON_EXTRACT(detail.Properties, '$.PipelineDisplayName') as pipeline_display_name, + JSON_EXTRACT(detail.Properties, '$.PipelineDescription') as pipeline_description, + JSON_EXTRACT(detail.Properties, '$.PipelineDefinition') as pipeline_definition, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ParallelismConfiguration') as parallelism_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::SageMaker::Pipeline' + AND detail.data__TypeName = 'AWS::SageMaker::Pipeline' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8850,10 +10729,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PipelineName') as pipeline_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Pipeline' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PipelineName') as pipeline_name, + json_extract_path_text(detail.Properties, 'PipelineDisplayName') as pipeline_display_name, + json_extract_path_text(detail.Properties, 'PipelineDescription') as pipeline_description, + json_extract_path_text(detail.Properties, 'PipelineDefinition') as pipeline_definition, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ParallelismConfiguration') as parallelism_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::SageMaker::Pipeline' + AND detail.data__TypeName = 'AWS::SageMaker::Pipeline' + AND listing.region = 'us-east-1' + pipelines_list_only: + name: pipelines_list_only + id: aws.sagemaker.pipelines_list_only + x-cfn-schema-name: Pipeline + x-cfn-type-name: AWS::SageMaker::Pipeline + x-identifiers: + - PipelineName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PipelineName') as pipeline_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Pipeline' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PipelineName') as pipeline_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Pipeline' + AND region = 'us-east-1' + pipeline_tags: + name: pipeline_tags + id: aws.sagemaker.pipeline_tags + x-cfn-schema-name: Pipeline + x-cfn-type-name: AWS::SageMaker::Pipeline + 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, '$.PipelineName') as pipeline_name, + JSON_EXTRACT(detail.Properties, '$.PipelineDisplayName') as pipeline_display_name, + JSON_EXTRACT(detail.Properties, '$.PipelineDescription') as pipeline_description, + JSON_EXTRACT(detail.Properties, '$.PipelineDefinition') as pipeline_definition, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.ParallelismConfiguration') as parallelism_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::SageMaker::Pipeline' + AND detail.data__TypeName = 'AWS::SageMaker::Pipeline' + 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, 'PipelineName') as pipeline_name, + json_extract_path_text(detail.Properties, 'PipelineDisplayName') as pipeline_display_name, + json_extract_path_text(detail.Properties, 'PipelineDescription') as pipeline_description, + json_extract_path_text(detail.Properties, 'PipelineDefinition') as pipeline_definition, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'ParallelismConfiguration') as parallelism_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::SageMaker::Pipeline' + AND detail.data__TypeName = 'AWS::SageMaker::Pipeline' + AND listing.region = 'us-east-1' projects: name: projects id: aws.sagemaker.projects @@ -8933,10 +10909,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProjectArn') as project_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Project' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ProjectArn') as project_arn, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name, + JSON_EXTRACT(detail.Properties, '$.ProjectDescription') as project_description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ServiceCatalogProvisioningDetails') as service_catalog_provisioning_details, + JSON_EXTRACT(detail.Properties, '$.ServiceCatalogProvisionedProductDetails') as service_catalog_provisioned_product_details, + JSON_EXTRACT(detail.Properties, '$.ProjectStatus') as project_status + 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::SageMaker::Project' + AND detail.data__TypeName = 'AWS::SageMaker::Project' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -8959,10 +10948,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProjectArn') as project_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Project' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ProjectArn') as project_arn, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name, + json_extract_path_text(detail.Properties, 'ProjectDescription') as project_description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ServiceCatalogProvisioningDetails') as service_catalog_provisioning_details, + json_extract_path_text(detail.Properties, 'ServiceCatalogProvisionedProductDetails') as service_catalog_provisioned_product_details, + json_extract_path_text(detail.Properties, 'ProjectStatus') as project_status + 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::SageMaker::Project' + AND detail.data__TypeName = 'AWS::SageMaker::Project' + AND listing.region = 'us-east-1' + projects_list_only: + name: projects_list_only + id: aws.sagemaker.projects_list_only + x-cfn-schema-name: Project + x-cfn-type-name: AWS::SageMaker::Project + x-identifiers: + - ProjectArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProjectArn') as project_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Project' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProjectArn') as project_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Project' + AND region = 'us-east-1' + project_tags: + name: project_tags + id: aws.sagemaker.project_tags + x-cfn-schema-name: Project + x-cfn-type-name: AWS::SageMaker::Project + 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, '$.ProjectArn') as project_arn, + JSON_EXTRACT(detail.Properties, '$.ProjectId') as project_id, + JSON_EXTRACT(detail.Properties, '$.ProjectName') as project_name, + JSON_EXTRACT(detail.Properties, '$.ProjectDescription') as project_description, + JSON_EXTRACT(detail.Properties, '$.CreationTime') as creation_time, + JSON_EXTRACT(detail.Properties, '$.ServiceCatalogProvisioningDetails') as service_catalog_provisioning_details, + JSON_EXTRACT(detail.Properties, '$.ServiceCatalogProvisionedProductDetails') as service_catalog_provisioned_product_details, + JSON_EXTRACT(detail.Properties, '$.ProjectStatus') as project_status + 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::SageMaker::Project' + AND detail.data__TypeName = 'AWS::SageMaker::Project' + 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, 'ProjectArn') as project_arn, + json_extract_path_text(detail.Properties, 'ProjectId') as project_id, + json_extract_path_text(detail.Properties, 'ProjectName') as project_name, + json_extract_path_text(detail.Properties, 'ProjectDescription') as project_description, + json_extract_path_text(detail.Properties, 'CreationTime') as creation_time, + json_extract_path_text(detail.Properties, 'ServiceCatalogProvisioningDetails') as service_catalog_provisioning_details, + json_extract_path_text(detail.Properties, 'ServiceCatalogProvisionedProductDetails') as service_catalog_provisioned_product_details, + json_extract_path_text(detail.Properties, 'ProjectStatus') as project_status + 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::SageMaker::Project' + AND detail.data__TypeName = 'AWS::SageMaker::Project' + AND listing.region = 'us-east-1' spaces: name: spaces id: aws.sagemaker.spaces @@ -9043,11 +11135,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id, - JSON_EXTRACT(Properties, '$.SpaceName') as space_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Space' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SpaceArn') as space_arn, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.SpaceName') as space_name, + JSON_EXTRACT(detail.Properties, '$.SpaceSettings') as space_settings, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.OwnershipSettings') as ownership_settings, + JSON_EXTRACT(detail.Properties, '$.SpaceSharingSettings') as space_sharing_settings, + JSON_EXTRACT(detail.Properties, '$.SpaceDisplayName') as space_display_name, + JSON_EXTRACT(detail.Properties, '$.Url') as url + 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::SageMaker::Space' + AND detail.data__TypeName = 'AWS::SageMaker::Space' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -9070,11 +11174,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id, - json_extract_path_text(Properties, 'SpaceName') as space_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Space' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SpaceArn') as space_arn, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'SpaceName') as space_name, + json_extract_path_text(detail.Properties, 'SpaceSettings') as space_settings, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'OwnershipSettings') as ownership_settings, + json_extract_path_text(detail.Properties, 'SpaceSharingSettings') as space_sharing_settings, + json_extract_path_text(detail.Properties, 'SpaceDisplayName') as space_display_name, + json_extract_path_text(detail.Properties, 'Url') as url + 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::SageMaker::Space' + AND detail.data__TypeName = 'AWS::SageMaker::Space' + AND listing.region = 'us-east-1' + spaces_list_only: + name: spaces_list_only + id: aws.sagemaker.spaces_list_only + x-cfn-schema-name: Space + x-cfn-type-name: AWS::SageMaker::Space + x-identifiers: + - DomainId + - SpaceName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(Properties, '$.SpaceName') as space_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Space' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id, + json_extract_path_text(Properties, 'SpaceName') as space_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::Space' + AND region = 'us-east-1' + space_tags: + name: space_tags + id: aws.sagemaker.space_tags + x-cfn-schema-name: Space + x-cfn-type-name: AWS::SageMaker::Space + 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, '$.SpaceArn') as space_arn, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.SpaceName') as space_name, + JSON_EXTRACT(detail.Properties, '$.SpaceSettings') as space_settings, + JSON_EXTRACT(detail.Properties, '$.OwnershipSettings') as ownership_settings, + JSON_EXTRACT(detail.Properties, '$.SpaceSharingSettings') as space_sharing_settings, + JSON_EXTRACT(detail.Properties, '$.SpaceDisplayName') as space_display_name, + JSON_EXTRACT(detail.Properties, '$.Url') as url + 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::SageMaker::Space' + AND detail.data__TypeName = 'AWS::SageMaker::Space' + 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, 'SpaceArn') as space_arn, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'SpaceName') as space_name, + json_extract_path_text(detail.Properties, 'SpaceSettings') as space_settings, + json_extract_path_text(detail.Properties, 'OwnershipSettings') as ownership_settings, + json_extract_path_text(detail.Properties, 'SpaceSharingSettings') as space_sharing_settings, + json_extract_path_text(detail.Properties, 'SpaceDisplayName') as space_display_name, + json_extract_path_text(detail.Properties, 'Url') as url + 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::SageMaker::Space' + AND detail.data__TypeName = 'AWS::SageMaker::Space' + AND listing.region = 'us-east-1' user_profiles: name: user_profiles id: aws.sagemaker.user_profiles @@ -9153,11 +11362,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserProfileName') as user_profile_name, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::UserProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.UserProfileArn') as user_profile_arn, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.SingleSignOnUserIdentifier') as single_sign_on_user_identifier, + JSON_EXTRACT(detail.Properties, '$.SingleSignOnUserValue') as single_sign_on_user_value, + JSON_EXTRACT(detail.Properties, '$.UserProfileName') as user_profile_name, + JSON_EXTRACT(detail.Properties, '$.UserSettings') as user_settings, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SageMaker::UserProfile' + AND detail.data__TypeName = 'AWS::SageMaker::UserProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -9178,11 +11397,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserProfileName') as user_profile_name, - json_extract_path_text(Properties, 'DomainId') as domain_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::UserProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'UserProfileArn') as user_profile_arn, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'SingleSignOnUserIdentifier') as single_sign_on_user_identifier, + json_extract_path_text(detail.Properties, 'SingleSignOnUserValue') as single_sign_on_user_value, + json_extract_path_text(detail.Properties, 'UserProfileName') as user_profile_name, + json_extract_path_text(detail.Properties, 'UserSettings') as user_settings, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SageMaker::UserProfile' + AND detail.data__TypeName = 'AWS::SageMaker::UserProfile' + AND listing.region = 'us-east-1' + user_profiles_list_only: + name: user_profiles_list_only + id: aws.sagemaker.user_profiles_list_only + x-cfn-schema-name: UserProfile + x-cfn-type-name: AWS::SageMaker::UserProfile + x-identifiers: + - UserProfileName + - DomainId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserProfileName') as user_profile_name, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::UserProfile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserProfileName') as user_profile_name, + json_extract_path_text(Properties, 'DomainId') as domain_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SageMaker::UserProfile' + AND region = 'us-east-1' + user_profile_tags: + name: user_profile_tags + id: aws.sagemaker.user_profile_tags + x-cfn-schema-name: UserProfile + x-cfn-type-name: AWS::SageMaker::UserProfile + 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, '$.UserProfileArn') as user_profile_arn, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.SingleSignOnUserIdentifier') as single_sign_on_user_identifier, + JSON_EXTRACT(detail.Properties, '$.SingleSignOnUserValue') as single_sign_on_user_value, + JSON_EXTRACT(detail.Properties, '$.UserProfileName') as user_profile_name, + JSON_EXTRACT(detail.Properties, '$.UserSettings') as user_settings + 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::SageMaker::UserProfile' + AND detail.data__TypeName = 'AWS::SageMaker::UserProfile' + 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, 'UserProfileArn') as user_profile_arn, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'SingleSignOnUserIdentifier') as single_sign_on_user_identifier, + json_extract_path_text(detail.Properties, 'SingleSignOnUserValue') as single_sign_on_user_value, + json_extract_path_text(detail.Properties, 'UserProfileName') as user_profile_name, + json_extract_path_text(detail.Properties, 'UserSettings') as user_settings + 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::SageMaker::UserProfile' + AND detail.data__TypeName = 'AWS::SageMaker::UserProfile' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/scheduler.yaml b/providers/src/aws/v00.00.00000/services/scheduler.yaml index 887f7ba5..d8e262fd 100644 --- a/providers/src/aws/v00.00.00000/services/scheduler.yaml +++ b/providers/src/aws/v00.00.00000/services/scheduler.yaml @@ -1136,10 +1136,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::Schedule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.EndDate') as end_date, + JSON_EXTRACT(detail.Properties, '$.FlexibleTimeWindow') as flexible_time_window, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpression') as schedule_expression, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpressionTimezone') as schedule_expression_timezone, + JSON_EXTRACT(detail.Properties, '$.StartDate') as start_date, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Target') as target + 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::Scheduler::Schedule' + AND detail.data__TypeName = 'AWS::Scheduler::Schedule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1165,10 +1181,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::Schedule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'EndDate') as end_date, + json_extract_path_text(detail.Properties, 'FlexibleTimeWindow') as flexible_time_window, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ScheduleExpression') as schedule_expression, + json_extract_path_text(detail.Properties, 'ScheduleExpressionTimezone') as schedule_expression_timezone, + json_extract_path_text(detail.Properties, 'StartDate') as start_date, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Target') as target + 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::Scheduler::Schedule' + AND detail.data__TypeName = 'AWS::Scheduler::Schedule' + AND listing.region = 'us-east-1' + schedules_list_only: + name: schedules_list_only + id: aws.scheduler.schedules_list_only + x-cfn-schema-name: Schedule + x-cfn-type-name: AWS::Scheduler::Schedule + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::Schedule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::Schedule' + AND region = 'us-east-1' schedule_groups: name: schedule_groups id: aws.scheduler.schedule_groups @@ -1245,10 +1308,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::ScheduleGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.LastModificationDate') as last_modification_date, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Scheduler::ScheduleGroup' + AND detail.data__TypeName = 'AWS::Scheduler::ScheduleGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1268,10 +1341,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::ScheduleGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'LastModificationDate') as last_modification_date, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Scheduler::ScheduleGroup' + AND detail.data__TypeName = 'AWS::Scheduler::ScheduleGroup' + AND listing.region = 'us-east-1' + schedule_groups_list_only: + name: schedule_groups_list_only + id: aws.scheduler.schedule_groups_list_only + x-cfn-schema-name: ScheduleGroup + x-cfn-type-name: AWS::Scheduler::ScheduleGroup + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::ScheduleGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Scheduler::ScheduleGroup' + AND region = 'us-east-1' + schedule_group_tags: + name: schedule_group_tags + id: aws.scheduler.schedule_group_tags + x-cfn-schema-name: ScheduleGroup + x-cfn-type-name: AWS::Scheduler::ScheduleGroup + 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, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.LastModificationDate') as last_modification_date, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.State') as state + 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::Scheduler::ScheduleGroup' + AND detail.data__TypeName = 'AWS::Scheduler::ScheduleGroup' + 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, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'LastModificationDate') as last_modification_date, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'State') as state + 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::Scheduler::ScheduleGroup' + AND detail.data__TypeName = 'AWS::Scheduler::ScheduleGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/secretsmanager.yaml b/providers/src/aws/v00.00.00000/services/secretsmanager.yaml index 62b62675..ce05ab42 100644 --- a/providers/src/aws/v00.00.00000/services/secretsmanager.yaml +++ b/providers/src/aws/v00.00.00000/services/secretsmanager.yaml @@ -710,10 +710,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecretsManager::Secret' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SecretString') as secret_string, + JSON_EXTRACT(detail.Properties, '$.GenerateSecretString') as generate_secret_string, + JSON_EXTRACT(detail.Properties, '$.ReplicaRegions') as replica_regions, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::SecretsManager::Secret' + AND detail.data__TypeName = 'AWS::SecretsManager::Secret' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -735,10 +747,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecretsManager::Secret' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SecretString') as secret_string, + json_extract_path_text(detail.Properties, 'GenerateSecretString') as generate_secret_string, + json_extract_path_text(detail.Properties, 'ReplicaRegions') as replica_regions, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::SecretsManager::Secret' + AND detail.data__TypeName = 'AWS::SecretsManager::Secret' + AND listing.region = 'us-east-1' + secrets_list_only: + name: secrets_list_only + id: aws.secretsmanager.secrets_list_only + x-cfn-schema-name: Secret + x-cfn-type-name: AWS::SecretsManager::Secret + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecretsManager::Secret' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecretsManager::Secret' + AND region = 'us-east-1' + secret_tags: + name: secret_tags + id: aws.secretsmanager.secret_tags + x-cfn-schema-name: Secret + x-cfn-type-name: AWS::SecretsManager::Secret + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SecretString') as secret_string, + JSON_EXTRACT(detail.Properties, '$.GenerateSecretString') as generate_secret_string, + JSON_EXTRACT(detail.Properties, '$.ReplicaRegions') as replica_regions, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::SecretsManager::Secret' + AND detail.data__TypeName = 'AWS::SecretsManager::Secret' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SecretString') as secret_string, + json_extract_path_text(detail.Properties, 'GenerateSecretString') as generate_secret_string, + json_extract_path_text(detail.Properties, 'ReplicaRegions') as replica_regions, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name + 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::SecretsManager::Secret' + AND detail.data__TypeName = 'AWS::SecretsManager::Secret' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/securityhub.yaml b/providers/src/aws/v00.00.00000/services/securityhub.yaml index 3eab420e..c8fc655d 100644 --- a/providers/src/aws/v00.00.00000/services/securityhub.yaml +++ b/providers/src/aws/v00.00.00000/services/securityhub.yaml @@ -3108,10 +3108,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RuleArn') as rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::AutomationRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.RuleArn') as rule_arn, + JSON_EXTRACT(detail.Properties, '$.RuleStatus') as rule_status, + JSON_EXTRACT(detail.Properties, '$.RuleOrder') as rule_order, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RuleName') as rule_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.IsTerminal') as is_terminal, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.Criteria') as criteria, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SecurityHub::AutomationRule' + AND detail.data__TypeName = 'AWS::SecurityHub::AutomationRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3137,10 +3153,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RuleArn') as rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::AutomationRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'RuleArn') as rule_arn, + json_extract_path_text(detail.Properties, 'RuleStatus') as rule_status, + json_extract_path_text(detail.Properties, 'RuleOrder') as rule_order, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RuleName') as rule_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'IsTerminal') as is_terminal, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'Criteria') as criteria, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SecurityHub::AutomationRule' + AND detail.data__TypeName = 'AWS::SecurityHub::AutomationRule' + AND listing.region = 'us-east-1' + automation_rules_list_only: + name: automation_rules_list_only + id: aws.securityhub.automation_rules_list_only + x-cfn-schema-name: AutomationRule + x-cfn-type-name: AWS::SecurityHub::AutomationRule + x-identifiers: + - RuleArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RuleArn') as rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::AutomationRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RuleArn') as rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::AutomationRule' + AND region = 'us-east-1' + automation_rule_tags: + name: automation_rule_tags + id: aws.securityhub.automation_rule_tags + x-cfn-schema-name: AutomationRule + x-cfn-type-name: AWS::SecurityHub::AutomationRule + 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, '$.RuleArn') as rule_arn, + JSON_EXTRACT(detail.Properties, '$.RuleStatus') as rule_status, + JSON_EXTRACT(detail.Properties, '$.RuleOrder') as rule_order, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RuleName') as rule_name, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.CreatedBy') as created_by, + JSON_EXTRACT(detail.Properties, '$.IsTerminal') as is_terminal, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.Criteria') as criteria + 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::SecurityHub::AutomationRule' + AND detail.data__TypeName = 'AWS::SecurityHub::AutomationRule' + 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, 'RuleArn') as rule_arn, + json_extract_path_text(detail.Properties, 'RuleStatus') as rule_status, + json_extract_path_text(detail.Properties, 'RuleOrder') as rule_order, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RuleName') as rule_name, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'CreatedBy') as created_by, + json_extract_path_text(detail.Properties, 'IsTerminal') as is_terminal, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'Criteria') as criteria + 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::SecurityHub::AutomationRule' + AND detail.data__TypeName = 'AWS::SecurityHub::AutomationRule' + AND listing.region = 'us-east-1' configuration_policies: name: configuration_policies id: aws.securityhub.configuration_policies @@ -3220,10 +3348,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::ConfigurationPolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ConfigurationPolicy') as configuration_policy, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.ServiceEnabled') as service_enabled, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SecurityHub::ConfigurationPolicy' + AND detail.data__TypeName = 'AWS::SecurityHub::ConfigurationPolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3246,10 +3387,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::ConfigurationPolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ConfigurationPolicy') as configuration_policy, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'ServiceEnabled') as service_enabled, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SecurityHub::ConfigurationPolicy' + AND detail.data__TypeName = 'AWS::SecurityHub::ConfigurationPolicy' + AND listing.region = 'us-east-1' + configuration_policies_list_only: + name: configuration_policies_list_only + id: aws.securityhub.configuration_policies_list_only + x-cfn-schema-name: ConfigurationPolicy + x-cfn-type-name: AWS::SecurityHub::ConfigurationPolicy + 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::SecurityHub::ConfigurationPolicy' + 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::SecurityHub::ConfigurationPolicy' + AND region = 'us-east-1' + configuration_policy_tags: + name: configuration_policy_tags + id: aws.securityhub.configuration_policy_tags + x-cfn-schema-name: ConfigurationPolicy + x-cfn-type-name: AWS::SecurityHub::ConfigurationPolicy + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ConfigurationPolicy') as configuration_policy, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.ServiceEnabled') as service_enabled + 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::SecurityHub::ConfigurationPolicy' + AND detail.data__TypeName = 'AWS::SecurityHub::ConfigurationPolicy' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ConfigurationPolicy') as configuration_policy, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'ServiceEnabled') as service_enabled + 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::SecurityHub::ConfigurationPolicy' + AND detail.data__TypeName = 'AWS::SecurityHub::ConfigurationPolicy' + AND listing.region = 'us-east-1' delegated_admins: name: delegated_admins id: aws.securityhub.delegated_admins @@ -3310,10 +3554,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DelegatedAdminIdentifier') as delegated_admin_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::DelegatedAdmin' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DelegatedAdminIdentifier') as delegated_admin_identifier, + JSON_EXTRACT(detail.Properties, '$.AdminAccountId') as admin_account_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::SecurityHub::DelegatedAdmin' + AND detail.data__TypeName = 'AWS::SecurityHub::DelegatedAdmin' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3330,10 +3581,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DelegatedAdminIdentifier') as delegated_admin_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::DelegatedAdmin' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DelegatedAdminIdentifier') as delegated_admin_identifier, + json_extract_path_text(detail.Properties, 'AdminAccountId') as admin_account_id, + json_extract_path_text(detail.Properties, 'Status') as status + 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::SecurityHub::DelegatedAdmin' + AND detail.data__TypeName = 'AWS::SecurityHub::DelegatedAdmin' + AND listing.region = 'us-east-1' + delegated_admins_list_only: + name: delegated_admins_list_only + id: aws.securityhub.delegated_admins_list_only + x-cfn-schema-name: DelegatedAdmin + x-cfn-type-name: AWS::SecurityHub::DelegatedAdmin + x-identifiers: + - DelegatedAdminIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DelegatedAdminIdentifier') as delegated_admin_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::DelegatedAdmin' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DelegatedAdminIdentifier') as delegated_admin_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::DelegatedAdmin' + AND region = 'us-east-1' finding_aggregators: name: finding_aggregators id: aws.securityhub.finding_aggregators @@ -3408,10 +3697,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.FindingAggregatorArn') as finding_aggregator_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::FindingAggregator' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FindingAggregatorArn') as finding_aggregator_arn, + JSON_EXTRACT(detail.Properties, '$.RegionLinkingMode') as region_linking_mode, + JSON_EXTRACT(detail.Properties, '$.Regions') as regions, + JSON_EXTRACT(detail.Properties, '$.FindingAggregationRegion') as finding_aggregation_region + 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::SecurityHub::FindingAggregator' + AND detail.data__TypeName = 'AWS::SecurityHub::FindingAggregator' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3429,10 +3726,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'FindingAggregatorArn') as finding_aggregator_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::FindingAggregator' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FindingAggregatorArn') as finding_aggregator_arn, + json_extract_path_text(detail.Properties, 'RegionLinkingMode') as region_linking_mode, + json_extract_path_text(detail.Properties, 'Regions') as regions, + json_extract_path_text(detail.Properties, 'FindingAggregationRegion') as finding_aggregation_region + 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::SecurityHub::FindingAggregator' + AND detail.data__TypeName = 'AWS::SecurityHub::FindingAggregator' + AND listing.region = 'us-east-1' + finding_aggregators_list_only: + name: finding_aggregators_list_only + id: aws.securityhub.finding_aggregators_list_only + x-cfn-schema-name: FindingAggregator + x-cfn-type-name: AWS::SecurityHub::FindingAggregator + x-identifiers: + - FindingAggregatorArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.FindingAggregatorArn') as finding_aggregator_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::FindingAggregator' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'FindingAggregatorArn') as finding_aggregator_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::FindingAggregator' + AND region = 'us-east-1' hubs: name: hubs id: aws.securityhub.hubs @@ -3509,10 +3845,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ARN') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Hub' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ARN') as arn, + JSON_EXTRACT(detail.Properties, '$.EnableDefaultStandards') as enable_default_standards, + JSON_EXTRACT(detail.Properties, '$.ControlFindingGenerator') as control_finding_generator, + JSON_EXTRACT(detail.Properties, '$.AutoEnableControls') as auto_enable_controls, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.SubscribedAt') as subscribed_at + 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::SecurityHub::Hub' + AND detail.data__TypeName = 'AWS::SecurityHub::Hub' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3532,10 +3878,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::SecurityHub::Hub' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ARN') as arn, + json_extract_path_text(detail.Properties, 'EnableDefaultStandards') as enable_default_standards, + json_extract_path_text(detail.Properties, 'ControlFindingGenerator') as control_finding_generator, + json_extract_path_text(detail.Properties, 'AutoEnableControls') as auto_enable_controls, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'SubscribedAt') as subscribed_at + 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::SecurityHub::Hub' + AND detail.data__TypeName = 'AWS::SecurityHub::Hub' + AND listing.region = 'us-east-1' + hubs_list_only: + name: hubs_list_only + id: aws.securityhub.hubs_list_only + x-cfn-schema-name: Hub + x-cfn-type-name: AWS::SecurityHub::Hub + 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::SecurityHub::Hub' + 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::SecurityHub::Hub' + AND region = 'us-east-1' + hub_tags: + name: hub_tags + id: aws.securityhub.hub_tags + x-cfn-schema-name: Hub + x-cfn-type-name: AWS::SecurityHub::Hub + 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, '$.EnableDefaultStandards') as enable_default_standards, + JSON_EXTRACT(detail.Properties, '$.ControlFindingGenerator') as control_finding_generator, + JSON_EXTRACT(detail.Properties, '$.AutoEnableControls') as auto_enable_controls, + JSON_EXTRACT(detail.Properties, '$.SubscribedAt') as subscribed_at + 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::SecurityHub::Hub' + AND detail.data__TypeName = 'AWS::SecurityHub::Hub' + 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, 'EnableDefaultStandards') as enable_default_standards, + json_extract_path_text(detail.Properties, 'ControlFindingGenerator') as control_finding_generator, + json_extract_path_text(detail.Properties, 'AutoEnableControls') as auto_enable_controls, + json_extract_path_text(detail.Properties, 'SubscribedAt') as subscribed_at + 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::SecurityHub::Hub' + AND detail.data__TypeName = 'AWS::SecurityHub::Hub' + AND listing.region = 'us-east-1' insights: name: insights id: aws.securityhub.insights @@ -3610,10 +4050,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InsightArn') as insight_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Insight' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InsightArn') as insight_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Filters') as filters, + JSON_EXTRACT(detail.Properties, '$.GroupByAttribute') as group_by_attribute + 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::SecurityHub::Insight' + AND detail.data__TypeName = 'AWS::SecurityHub::Insight' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3631,10 +4079,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InsightArn') as insight_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Insight' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InsightArn') as insight_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Filters') as filters, + json_extract_path_text(detail.Properties, 'GroupByAttribute') as group_by_attribute + 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::SecurityHub::Insight' + AND detail.data__TypeName = 'AWS::SecurityHub::Insight' + AND listing.region = 'us-east-1' + insights_list_only: + name: insights_list_only + id: aws.securityhub.insights_list_only + x-cfn-schema-name: Insight + x-cfn-type-name: AWS::SecurityHub::Insight + x-identifiers: + - InsightArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InsightArn') as insight_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Insight' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InsightArn') as insight_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Insight' + AND region = 'us-east-1' organization_configurations: name: organization_configurations id: aws.securityhub.organization_configurations @@ -3712,10 +4199,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.OrganizationConfigurationIdentifier') as organization_configuration_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::OrganizationConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AutoEnable') as auto_enable, + JSON_EXTRACT(detail.Properties, '$.AutoEnableStandards') as auto_enable_standards, + JSON_EXTRACT(detail.Properties, '$.ConfigurationType') as configuration_type, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.StatusMessage') as status_message, + JSON_EXTRACT(detail.Properties, '$.MemberAccountLimitReached') as member_account_limit_reached, + JSON_EXTRACT(detail.Properties, '$.OrganizationConfigurationIdentifier') as organization_configuration_identifier + 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::SecurityHub::OrganizationConfiguration' + AND detail.data__TypeName = 'AWS::SecurityHub::OrganizationConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3736,10 +4234,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'OrganizationConfigurationIdentifier') as organization_configuration_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::OrganizationConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AutoEnable') as auto_enable, + json_extract_path_text(detail.Properties, 'AutoEnableStandards') as auto_enable_standards, + json_extract_path_text(detail.Properties, 'ConfigurationType') as configuration_type, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'StatusMessage') as status_message, + json_extract_path_text(detail.Properties, 'MemberAccountLimitReached') as member_account_limit_reached, + json_extract_path_text(detail.Properties, 'OrganizationConfigurationIdentifier') as organization_configuration_identifier + 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::SecurityHub::OrganizationConfiguration' + AND detail.data__TypeName = 'AWS::SecurityHub::OrganizationConfiguration' + AND listing.region = 'us-east-1' + organization_configurations_list_only: + name: organization_configurations_list_only + id: aws.securityhub.organization_configurations_list_only + x-cfn-schema-name: OrganizationConfiguration + x-cfn-type-name: AWS::SecurityHub::OrganizationConfiguration + x-identifiers: + - OrganizationConfigurationIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.OrganizationConfigurationIdentifier') as organization_configuration_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::OrganizationConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'OrganizationConfigurationIdentifier') as organization_configuration_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::OrganizationConfiguration' + AND region = 'us-east-1' policy_associations: name: policy_associations id: aws.securityhub.policy_associations @@ -3818,10 +4358,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssociationIdentifier') as association_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::PolicyAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ConfigurationPolicyId') as configuration_policy_id, + JSON_EXTRACT(detail.Properties, '$.AssociationStatus') as association_status, + JSON_EXTRACT(detail.Properties, '$.AssociationType') as association_type, + JSON_EXTRACT(detail.Properties, '$.AssociationStatusMessage') as association_status_message, + JSON_EXTRACT(detail.Properties, '$.TargetId') as target_id, + JSON_EXTRACT(detail.Properties, '$.TargetType') as target_type, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.AssociationIdentifier') as association_identifier + 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::SecurityHub::PolicyAssociation' + AND detail.data__TypeName = 'AWS::SecurityHub::PolicyAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3843,10 +4395,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssociationIdentifier') as association_identifier - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::PolicyAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ConfigurationPolicyId') as configuration_policy_id, + json_extract_path_text(detail.Properties, 'AssociationStatus') as association_status, + json_extract_path_text(detail.Properties, 'AssociationType') as association_type, + json_extract_path_text(detail.Properties, 'AssociationStatusMessage') as association_status_message, + json_extract_path_text(detail.Properties, 'TargetId') as target_id, + json_extract_path_text(detail.Properties, 'TargetType') as target_type, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'AssociationIdentifier') as association_identifier + 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::SecurityHub::PolicyAssociation' + AND detail.data__TypeName = 'AWS::SecurityHub::PolicyAssociation' + AND listing.region = 'us-east-1' + policy_associations_list_only: + name: policy_associations_list_only + id: aws.securityhub.policy_associations_list_only + x-cfn-schema-name: PolicyAssociation + x-cfn-type-name: AWS::SecurityHub::PolicyAssociation + x-identifiers: + - AssociationIdentifier + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssociationIdentifier') as association_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::PolicyAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssociationIdentifier') as association_identifier + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::PolicyAssociation' + AND region = 'us-east-1' product_subscriptions: name: product_subscriptions id: aws.securityhub.product_subscriptions @@ -3906,10 +4501,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProductSubscriptionArn') as product_subscription_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::ProductSubscription' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProductArn') as product_arn, + JSON_EXTRACT(detail.Properties, '$.ProductSubscriptionArn') as product_subscription_arn + 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::SecurityHub::ProductSubscription' + AND detail.data__TypeName = 'AWS::SecurityHub::ProductSubscription' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3925,10 +4526,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProductSubscriptionArn') as product_subscription_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::ProductSubscription' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProductArn') as product_arn, + json_extract_path_text(detail.Properties, 'ProductSubscriptionArn') as product_subscription_arn + 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::SecurityHub::ProductSubscription' + AND detail.data__TypeName = 'AWS::SecurityHub::ProductSubscription' + AND listing.region = 'us-east-1' + product_subscriptions_list_only: + name: product_subscriptions_list_only + id: aws.securityhub.product_subscriptions_list_only + x-cfn-schema-name: ProductSubscription + x-cfn-type-name: AWS::SecurityHub::ProductSubscription + x-identifiers: + - ProductSubscriptionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProductSubscriptionArn') as product_subscription_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::ProductSubscription' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProductSubscriptionArn') as product_subscription_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::ProductSubscription' + AND region = 'us-east-1' security_controls: name: security_controls id: aws.securityhub.security_controls @@ -4003,10 +4641,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SecurityControlId') as security_control_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::SecurityControl' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SecurityControlId') as security_control_id, + JSON_EXTRACT(detail.Properties, '$.SecurityControlArn') as security_control_arn, + JSON_EXTRACT(detail.Properties, '$.LastUpdateReason') as last_update_reason, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters + 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::SecurityHub::SecurityControl' + AND detail.data__TypeName = 'AWS::SecurityHub::SecurityControl' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4024,10 +4670,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SecurityControlId') as security_control_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::SecurityControl' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SecurityControlId') as security_control_id, + json_extract_path_text(detail.Properties, 'SecurityControlArn') as security_control_arn, + json_extract_path_text(detail.Properties, 'LastUpdateReason') as last_update_reason, + json_extract_path_text(detail.Properties, 'Parameters') as parameters + 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::SecurityHub::SecurityControl' + AND detail.data__TypeName = 'AWS::SecurityHub::SecurityControl' + AND listing.region = 'us-east-1' + security_controls_list_only: + name: security_controls_list_only + id: aws.securityhub.security_controls_list_only + x-cfn-schema-name: SecurityControl + x-cfn-type-name: AWS::SecurityHub::SecurityControl + x-identifiers: + - SecurityControlId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SecurityControlId') as security_control_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::SecurityControl' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SecurityControlId') as security_control_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::SecurityControl' + AND region = 'us-east-1' standards: name: standards id: aws.securityhub.standards @@ -4101,10 +4786,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StandardsSubscriptionArn') as standards_subscription_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Standard' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.StandardsSubscriptionArn') as standards_subscription_arn, + JSON_EXTRACT(detail.Properties, '$.StandardsArn') as standards_arn, + JSON_EXTRACT(detail.Properties, '$.DisabledStandardsControls') as disabled_standards_controls + 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::SecurityHub::Standard' + AND detail.data__TypeName = 'AWS::SecurityHub::Standard' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -4121,10 +4813,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StandardsSubscriptionArn') as standards_subscription_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Standard' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'StandardsSubscriptionArn') as standards_subscription_arn, + json_extract_path_text(detail.Properties, 'StandardsArn') as standards_arn, + json_extract_path_text(detail.Properties, 'DisabledStandardsControls') as disabled_standards_controls + 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::SecurityHub::Standard' + AND detail.data__TypeName = 'AWS::SecurityHub::Standard' + AND listing.region = 'us-east-1' + standards_list_only: + name: standards_list_only + id: aws.securityhub.standards_list_only + x-cfn-schema-name: Standard + x-cfn-type-name: AWS::SecurityHub::Standard + x-identifiers: + - StandardsSubscriptionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StandardsSubscriptionArn') as standards_subscription_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Standard' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StandardsSubscriptionArn') as standards_subscription_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityHub::Standard' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/securitylake.yaml b/providers/src/aws/v00.00.00000/services/securitylake.yaml index c37d0b9a..b2ff024c 100644 --- a/providers/src/aws/v00.00.00000/services/securitylake.yaml +++ b/providers/src/aws/v00.00.00000/services/securitylake.yaml @@ -1164,10 +1164,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::DataLake' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.LifecycleConfiguration') as lifecycle_configuration, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfiguration') as replication_configuration, + JSON_EXTRACT(detail.Properties, '$.MetaStoreManagerRoleArn') as meta_store_manager_role_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.S3BucketArn') as s3_bucket_arn + 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::SecurityLake::DataLake' + AND detail.data__TypeName = 'AWS::SecurityLake::DataLake' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1188,10 +1199,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::DataLake' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'LifecycleConfiguration') as lifecycle_configuration, + json_extract_path_text(detail.Properties, 'ReplicationConfiguration') as replication_configuration, + json_extract_path_text(detail.Properties, 'MetaStoreManagerRoleArn') as meta_store_manager_role_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'S3BucketArn') as s3_bucket_arn + 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::SecurityLake::DataLake' + AND detail.data__TypeName = 'AWS::SecurityLake::DataLake' + AND listing.region = 'us-east-1' + data_lakes_list_only: + name: data_lakes_list_only + id: aws.securitylake.data_lakes_list_only + x-cfn-schema-name: DataLake + x-cfn-type-name: AWS::SecurityLake::DataLake + 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::SecurityLake::DataLake' + 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::SecurityLake::DataLake' + AND region = 'us-east-1' + data_lake_tags: + name: data_lake_tags + id: aws.securitylake.data_lake_tags + x-cfn-schema-name: DataLake + x-cfn-type-name: AWS::SecurityLake::DataLake + 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, '$.EncryptionConfiguration') as encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.LifecycleConfiguration') as lifecycle_configuration, + JSON_EXTRACT(detail.Properties, '$.ReplicationConfiguration') as replication_configuration, + JSON_EXTRACT(detail.Properties, '$.MetaStoreManagerRoleArn') as meta_store_manager_role_arn, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.S3BucketArn') as s3_bucket_arn + 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::SecurityLake::DataLake' + AND detail.data__TypeName = 'AWS::SecurityLake::DataLake' + 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, 'EncryptionConfiguration') as encryption_configuration, + json_extract_path_text(detail.Properties, 'LifecycleConfiguration') as lifecycle_configuration, + json_extract_path_text(detail.Properties, 'ReplicationConfiguration') as replication_configuration, + json_extract_path_text(detail.Properties, 'MetaStoreManagerRoleArn') as meta_store_manager_role_arn, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'S3BucketArn') as s3_bucket_arn + 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::SecurityLake::DataLake' + AND detail.data__TypeName = 'AWS::SecurityLake::DataLake' + AND listing.region = 'us-east-1' subscribers: name: subscribers id: aws.securitylake.subscribers @@ -1274,10 +1382,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SubscriberArn') as subscriber_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::Subscriber' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessTypes') as access_types, + JSON_EXTRACT(detail.Properties, '$.DataLakeArn') as data_lake_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriberIdentity') as subscriber_identity, + JSON_EXTRACT(detail.Properties, '$.SubscriberName') as subscriber_name, + JSON_EXTRACT(detail.Properties, '$.SubscriberDescription') as subscriber_description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.ResourceShareArn') as resource_share_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceShareName') as resource_share_name, + JSON_EXTRACT(detail.Properties, '$.SubscriberRoleArn') as subscriber_role_arn, + JSON_EXTRACT(detail.Properties, '$.S3BucketArn') as s3_bucket_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriberArn') as subscriber_arn + 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::SecurityLake::Subscriber' + AND detail.data__TypeName = 'AWS::SecurityLake::Subscriber' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1303,10 +1427,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SubscriberArn') as subscriber_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::Subscriber' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessTypes') as access_types, + json_extract_path_text(detail.Properties, 'DataLakeArn') as data_lake_arn, + json_extract_path_text(detail.Properties, 'SubscriberIdentity') as subscriber_identity, + json_extract_path_text(detail.Properties, 'SubscriberName') as subscriber_name, + json_extract_path_text(detail.Properties, 'SubscriberDescription') as subscriber_description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'ResourceShareArn') as resource_share_arn, + json_extract_path_text(detail.Properties, 'ResourceShareName') as resource_share_name, + json_extract_path_text(detail.Properties, 'SubscriberRoleArn') as subscriber_role_arn, + json_extract_path_text(detail.Properties, 'S3BucketArn') as s3_bucket_arn, + json_extract_path_text(detail.Properties, 'SubscriberArn') as subscriber_arn + 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::SecurityLake::Subscriber' + AND detail.data__TypeName = 'AWS::SecurityLake::Subscriber' + AND listing.region = 'us-east-1' + subscribers_list_only: + name: subscribers_list_only + id: aws.securitylake.subscribers_list_only + x-cfn-schema-name: Subscriber + x-cfn-type-name: AWS::SecurityLake::Subscriber + x-identifiers: + - SubscriberArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SubscriberArn') as subscriber_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::Subscriber' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SubscriberArn') as subscriber_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::Subscriber' + AND region = 'us-east-1' + subscriber_tags: + name: subscriber_tags + id: aws.securitylake.subscriber_tags + x-cfn-schema-name: Subscriber + x-cfn-type-name: AWS::SecurityLake::Subscriber + 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, '$.AccessTypes') as access_types, + JSON_EXTRACT(detail.Properties, '$.DataLakeArn') as data_lake_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriberIdentity') as subscriber_identity, + JSON_EXTRACT(detail.Properties, '$.SubscriberName') as subscriber_name, + JSON_EXTRACT(detail.Properties, '$.SubscriberDescription') as subscriber_description, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.ResourceShareArn') as resource_share_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceShareName') as resource_share_name, + JSON_EXTRACT(detail.Properties, '$.SubscriberRoleArn') as subscriber_role_arn, + JSON_EXTRACT(detail.Properties, '$.S3BucketArn') as s3_bucket_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriberArn') as subscriber_arn + 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::SecurityLake::Subscriber' + AND detail.data__TypeName = 'AWS::SecurityLake::Subscriber' + 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, 'AccessTypes') as access_types, + json_extract_path_text(detail.Properties, 'DataLakeArn') as data_lake_arn, + json_extract_path_text(detail.Properties, 'SubscriberIdentity') as subscriber_identity, + json_extract_path_text(detail.Properties, 'SubscriberName') as subscriber_name, + json_extract_path_text(detail.Properties, 'SubscriberDescription') as subscriber_description, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'ResourceShareArn') as resource_share_arn, + json_extract_path_text(detail.Properties, 'ResourceShareName') as resource_share_name, + json_extract_path_text(detail.Properties, 'SubscriberRoleArn') as subscriber_role_arn, + json_extract_path_text(detail.Properties, 'S3BucketArn') as s3_bucket_arn, + json_extract_path_text(detail.Properties, 'SubscriberArn') as subscriber_arn + 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::SecurityLake::Subscriber' + AND detail.data__TypeName = 'AWS::SecurityLake::Subscriber' + AND listing.region = 'us-east-1' subscriber_notifications: name: subscriber_notifications id: aws.securitylake.subscriber_notifications @@ -1380,10 +1616,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SubscriberArn') as subscriber_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::SubscriberNotification' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.NotificationConfiguration') as notification_configuration, + JSON_EXTRACT(detail.Properties, '$.SubscriberArn') as subscriber_arn, + JSON_EXTRACT(detail.Properties, '$.SubscriberEndpoint') as subscriber_endpoint + 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::SecurityLake::SubscriberNotification' + AND detail.data__TypeName = 'AWS::SecurityLake::SubscriberNotification' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1400,10 +1643,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SubscriberArn') as subscriber_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::SubscriberNotification' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'NotificationConfiguration') as notification_configuration, + json_extract_path_text(detail.Properties, 'SubscriberArn') as subscriber_arn, + json_extract_path_text(detail.Properties, 'SubscriberEndpoint') as subscriber_endpoint + 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::SecurityLake::SubscriberNotification' + AND detail.data__TypeName = 'AWS::SecurityLake::SubscriberNotification' + AND listing.region = 'us-east-1' + subscriber_notifications_list_only: + name: subscriber_notifications_list_only + id: aws.securitylake.subscriber_notifications_list_only + x-cfn-schema-name: SubscriberNotification + x-cfn-type-name: AWS::SecurityLake::SubscriberNotification + x-identifiers: + - SubscriberArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SubscriberArn') as subscriber_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::SubscriberNotification' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SubscriberArn') as subscriber_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SecurityLake::SubscriberNotification' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/servicecatalog.yaml b/providers/src/aws/v00.00.00000/services/servicecatalog.yaml index 709251f1..34ad72f9 100644 --- a/providers/src/aws/v00.00.00000/services/servicecatalog.yaml +++ b/providers/src/aws/v00.00.00000/services/servicecatalog.yaml @@ -1020,10 +1020,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceAction' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AcceptLanguage') as accept_language, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DefinitionType') as definition_type, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Id') as id + 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::ServiceCatalog::ServiceAction' + AND detail.data__TypeName = 'AWS::ServiceCatalog::ServiceAction' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1043,10 +1053,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceAction' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AcceptLanguage') as accept_language, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DefinitionType') as definition_type, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Id') as id + 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::ServiceCatalog::ServiceAction' + AND detail.data__TypeName = 'AWS::ServiceCatalog::ServiceAction' + AND listing.region = 'us-east-1' + service_actions_list_only: + name: service_actions_list_only + id: aws.servicecatalog.service_actions_list_only + x-cfn-schema-name: ServiceAction + x-cfn-type-name: AWS::ServiceCatalog::ServiceAction + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceAction' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceAction' + AND region = 'us-east-1' service_action_associations: name: service_action_associations id: aws.servicecatalog.service_action_associations @@ -1109,12 +1160,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProductId') as product_id, - JSON_EXTRACT(Properties, '$.ProvisioningArtifactId') as provisioning_artifact_id, - JSON_EXTRACT(Properties, '$.ServiceActionId') as service_action_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceActionAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProductId') as product_id, + JSON_EXTRACT(detail.Properties, '$.ProvisioningArtifactId') as provisioning_artifact_id, + JSON_EXTRACT(detail.Properties, '$.ServiceActionId') as service_action_id + 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::ServiceCatalog::ServiceActionAssociation' + AND detail.data__TypeName = 'AWS::ServiceCatalog::ServiceActionAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1131,12 +1187,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProductId') as product_id, - json_extract_path_text(Properties, 'ProvisioningArtifactId') as provisioning_artifact_id, - json_extract_path_text(Properties, 'ServiceActionId') as service_action_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceActionAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProductId') as product_id, + json_extract_path_text(detail.Properties, 'ProvisioningArtifactId') as provisioning_artifact_id, + json_extract_path_text(detail.Properties, 'ServiceActionId') as service_action_id + 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::ServiceCatalog::ServiceActionAssociation' + AND detail.data__TypeName = 'AWS::ServiceCatalog::ServiceActionAssociation' + AND listing.region = 'us-east-1' + service_action_associations_list_only: + name: service_action_associations_list_only + id: aws.servicecatalog.service_action_associations_list_only + x-cfn-schema-name: ServiceActionAssociation + x-cfn-type-name: AWS::ServiceCatalog::ServiceActionAssociation + x-identifiers: + - ProductId + - ProvisioningArtifactId + - ServiceActionId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProductId') as product_id, + JSON_EXTRACT(Properties, '$.ProvisioningArtifactId') as provisioning_artifact_id, + JSON_EXTRACT(Properties, '$.ServiceActionId') as service_action_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceActionAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProductId') as product_id, + json_extract_path_text(Properties, 'ProvisioningArtifactId') as provisioning_artifact_id, + json_extract_path_text(Properties, 'ServiceActionId') as service_action_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalog::ServiceActionAssociation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/servicecatalogappregistry.yaml b/providers/src/aws/v00.00.00000/services/servicecatalogappregistry.yaml index 8685e233..59baff84 100644 --- a/providers/src/aws/v00.00.00000/services/servicecatalogappregistry.yaml +++ b/providers/src/aws/v00.00.00000/services/servicecatalogappregistry.yaml @@ -895,10 +895,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ApplicationTagKey') as application_tag_key, + JSON_EXTRACT(detail.Properties, '$.ApplicationTagValue') as application_tag_value, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name + 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::ServiceCatalogAppRegistry::Application' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -920,10 +932,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ApplicationTagKey') as application_tag_key, + json_extract_path_text(detail.Properties, 'ApplicationTagValue') as application_tag_value, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name + 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::ServiceCatalogAppRegistry::Application' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.servicecatalogappregistry.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::ServiceCatalogAppRegistry::Application + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.servicecatalogappregistry.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::ServiceCatalogAppRegistry::Application + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApplicationTagKey') as application_tag_key, + JSON_EXTRACT(detail.Properties, '$.ApplicationTagValue') as application_tag_value, + JSON_EXTRACT(detail.Properties, '$.ApplicationName') as application_name + 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::ServiceCatalogAppRegistry::Application' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApplicationTagKey') as application_tag_key, + json_extract_path_text(detail.Properties, 'ApplicationTagValue') as application_tag_value, + json_extract_path_text(detail.Properties, 'ApplicationName') as application_name + 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::ServiceCatalogAppRegistry::Application' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::Application' + AND listing.region = 'us-east-1' attribute_groups: name: attribute_groups id: aws.servicecatalogappregistry.attribute_groups @@ -1000,10 +1112,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Attributes') as attributes, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::ServiceCatalogAppRegistry::AttributeGroup' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1023,10 +1145,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Attributes') as attributes, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::ServiceCatalogAppRegistry::AttributeGroup' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' + AND listing.region = 'us-east-1' + attribute_groups_list_only: + name: attribute_groups_list_only + id: aws.servicecatalogappregistry.attribute_groups_list_only + x-cfn-schema-name: AttributeGroup + x-cfn-type-name: AWS::ServiceCatalogAppRegistry::AttributeGroup + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' + AND region = 'us-east-1' + attribute_group_tags: + name: attribute_group_tags + id: aws.servicecatalogappregistry.attribute_group_tags + x-cfn-schema-name: AttributeGroup + x-cfn-type-name: AWS::ServiceCatalogAppRegistry::AttributeGroup + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Attributes') as attributes + 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::ServiceCatalogAppRegistry::AttributeGroup' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Attributes') as attributes + 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::ServiceCatalogAppRegistry::AttributeGroup' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroup' + AND listing.region = 'us-east-1' attribute_group_associations: name: attribute_group_associations id: aws.servicecatalogappregistry.attribute_group_associations @@ -1089,11 +1305,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn, - JSON_EXTRACT(Properties, '$.AttributeGroupArn') as attribute_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Application') as application, + JSON_EXTRACT(detail.Properties, '$.AttributeGroup') as attribute_group, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.AttributeGroupArn') as attribute_group_arn + 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::ServiceCatalogAppRegistry::AttributeGroupAssociation' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1111,11 +1334,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationArn') as application_arn, - json_extract_path_text(Properties, 'AttributeGroupArn') as attribute_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Application') as application, + json_extract_path_text(detail.Properties, 'AttributeGroup') as attribute_group, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'AttributeGroupArn') as attribute_group_arn + 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::ServiceCatalogAppRegistry::AttributeGroupAssociation' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation' + AND listing.region = 'us-east-1' + attribute_group_associations_list_only: + name: attribute_group_associations_list_only + id: aws.servicecatalogappregistry.attribute_group_associations_list_only + x-cfn-schema-name: AttributeGroupAssociation + x-cfn-type-name: AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation + x-identifiers: + - ApplicationArn + - AttributeGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(Properties, '$.AttributeGroupArn') as attribute_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(Properties, 'AttributeGroupArn') as attribute_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation' + AND region = 'us-east-1' resource_associations: name: resource_associations id: aws.servicecatalogappregistry.resource_associations @@ -1180,12 +1444,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn, - JSON_EXTRACT(Properties, '$.ResourceArn') as resource_arn, - JSON_EXTRACT(Properties, '$.ResourceType') as resource_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::ResourceAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Application') as application, + JSON_EXTRACT(detail.Properties, '$.Resource') as resource, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn + 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::ServiceCatalogAppRegistry::ResourceAssociation' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::ResourceAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1204,12 +1475,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationArn') as application_arn, - json_extract_path_text(Properties, 'ResourceArn') as resource_arn, - json_extract_path_text(Properties, 'ResourceType') as resource_type - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::ResourceAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Application') as application, + json_extract_path_text(detail.Properties, 'Resource') as resource, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn + 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::ServiceCatalogAppRegistry::ResourceAssociation' + AND detail.data__TypeName = 'AWS::ServiceCatalogAppRegistry::ResourceAssociation' + AND listing.region = 'us-east-1' + resource_associations_list_only: + name: resource_associations_list_only + id: aws.servicecatalogappregistry.resource_associations_list_only + x-cfn-schema-name: ResourceAssociation + x-cfn-type-name: AWS::ServiceCatalogAppRegistry::ResourceAssociation + x-identifiers: + - ApplicationArn + - ResourceArn + - ResourceType + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(Properties, '$.ResourceType') as resource_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::ResourceAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(Properties, 'ResourceType') as resource_type + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ServiceCatalogAppRegistry::ResourceAssociation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ses.yaml b/providers/src/aws/v00.00.00000/services/ses.yaml index e81d559b..425aeb36 100644 --- a/providers/src/aws/v00.00.00000/services/ses.yaml +++ b/providers/src/aws/v00.00.00000/services/ses.yaml @@ -1265,10 +1265,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ConfigurationSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.TrackingOptions') as tracking_options, + JSON_EXTRACT(detail.Properties, '$.DeliveryOptions') as delivery_options, + JSON_EXTRACT(detail.Properties, '$.ReputationOptions') as reputation_options, + JSON_EXTRACT(detail.Properties, '$.SendingOptions') as sending_options, + JSON_EXTRACT(detail.Properties, '$.SuppressionOptions') as suppression_options, + JSON_EXTRACT(detail.Properties, '$.VdmOptions') as vdm_options + 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::SES::ConfigurationSet' + AND detail.data__TypeName = 'AWS::SES::ConfigurationSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1289,10 +1300,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ConfigurationSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'TrackingOptions') as tracking_options, + json_extract_path_text(detail.Properties, 'DeliveryOptions') as delivery_options, + json_extract_path_text(detail.Properties, 'ReputationOptions') as reputation_options, + json_extract_path_text(detail.Properties, 'SendingOptions') as sending_options, + json_extract_path_text(detail.Properties, 'SuppressionOptions') as suppression_options, + json_extract_path_text(detail.Properties, 'VdmOptions') as vdm_options + 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::SES::ConfigurationSet' + AND detail.data__TypeName = 'AWS::SES::ConfigurationSet' + AND listing.region = 'us-east-1' + configuration_sets_list_only: + name: configuration_sets_list_only + id: aws.ses.configuration_sets_list_only + x-cfn-schema-name: ConfigurationSet + x-cfn-type-name: AWS::SES::ConfigurationSet + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ConfigurationSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ConfigurationSet' + AND region = 'us-east-1' configuration_set_event_destinations: name: configuration_set_event_destinations id: aws.ses.configuration_set_event_destinations @@ -1448,10 +1501,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ContactListName') as contact_list_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ContactList' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ContactListName') as contact_list_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Topics') as topics, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SES::ContactList' + AND detail.data__TypeName = 'AWS::SES::ContactList' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1469,10 +1530,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ContactListName') as contact_list_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ContactList' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ContactListName') as contact_list_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Topics') as topics, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SES::ContactList' + AND detail.data__TypeName = 'AWS::SES::ContactList' + AND listing.region = 'us-east-1' + contact_lists_list_only: + name: contact_lists_list_only + id: aws.ses.contact_lists_list_only + x-cfn-schema-name: ContactList + x-cfn-type-name: AWS::SES::ContactList + x-identifiers: + - ContactListName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ContactListName') as contact_list_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ContactList' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ContactListName') as contact_list_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::ContactList' + AND region = 'us-east-1' + contact_list_tags: + name: contact_list_tags + id: aws.ses.contact_list_tags + x-cfn-schema-name: ContactList + x-cfn-type-name: AWS::SES::ContactList + 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, '$.ContactListName') as contact_list_name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Topics') as topics + 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::SES::ContactList' + AND detail.data__TypeName = 'AWS::SES::ContactList' + 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, 'ContactListName') as contact_list_name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Topics') as topics + 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::SES::ContactList' + AND detail.data__TypeName = 'AWS::SES::ContactList' + AND listing.region = 'us-east-1' dedicated_ip_pools: name: dedicated_ip_pools id: aws.ses.dedicated_ip_pools @@ -1545,10 +1694,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PoolName') as pool_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::DedicatedIpPool' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PoolName') as pool_name, + JSON_EXTRACT(detail.Properties, '$.ScalingMode') as scaling_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::SES::DedicatedIpPool' + AND detail.data__TypeName = 'AWS::SES::DedicatedIpPool' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1564,10 +1719,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PoolName') as pool_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::DedicatedIpPool' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PoolName') as pool_name, + json_extract_path_text(detail.Properties, 'ScalingMode') as scaling_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::SES::DedicatedIpPool' + AND detail.data__TypeName = 'AWS::SES::DedicatedIpPool' + AND listing.region = 'us-east-1' + dedicated_ip_pools_list_only: + name: dedicated_ip_pools_list_only + id: aws.ses.dedicated_ip_pools_list_only + x-cfn-schema-name: DedicatedIpPool + x-cfn-type-name: AWS::SES::DedicatedIpPool + x-identifiers: + - PoolName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PoolName') as pool_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::DedicatedIpPool' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PoolName') as pool_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::DedicatedIpPool' + AND region = 'us-east-1' email_identities: name: email_identities id: aws.ses.email_identities @@ -1650,10 +1842,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.EmailIdentity') as email_identity - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::EmailIdentity' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.EmailIdentity') as email_identity, + JSON_EXTRACT(detail.Properties, '$.ConfigurationSetAttributes') as configuration_set_attributes, + JSON_EXTRACT(detail.Properties, '$.DkimSigningAttributes') as dkim_signing_attributes, + JSON_EXTRACT(detail.Properties, '$.DkimAttributes') as dkim_attributes, + JSON_EXTRACT(detail.Properties, '$.MailFromAttributes') as mail_from_attributes, + JSON_EXTRACT(detail.Properties, '$.FeedbackAttributes') as feedback_attributes, + JSON_EXTRACT(detail.Properties, '$.DkimDNSTokenName1') as dkim_dns_token_name1, + JSON_EXTRACT(detail.Properties, '$.DkimDNSTokenName2') as dkim_dns_token_name2, + JSON_EXTRACT(detail.Properties, '$.DkimDNSTokenName3') as dkim_dns_token_name3, + JSON_EXTRACT(detail.Properties, '$.DkimDNSTokenValue1') as dkim_dns_token_value1, + JSON_EXTRACT(detail.Properties, '$.DkimDNSTokenValue2') as dkim_dns_token_value2, + JSON_EXTRACT(detail.Properties, '$.DkimDNSTokenValue3') as dkim_dns_token_value3 + 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::SES::EmailIdentity' + AND detail.data__TypeName = 'AWS::SES::EmailIdentity' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1679,10 +1887,57 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'EmailIdentity') as email_identity - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::EmailIdentity' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'EmailIdentity') as email_identity, + json_extract_path_text(detail.Properties, 'ConfigurationSetAttributes') as configuration_set_attributes, + json_extract_path_text(detail.Properties, 'DkimSigningAttributes') as dkim_signing_attributes, + json_extract_path_text(detail.Properties, 'DkimAttributes') as dkim_attributes, + json_extract_path_text(detail.Properties, 'MailFromAttributes') as mail_from_attributes, + json_extract_path_text(detail.Properties, 'FeedbackAttributes') as feedback_attributes, + json_extract_path_text(detail.Properties, 'DkimDNSTokenName1') as dkim_dns_token_name1, + json_extract_path_text(detail.Properties, 'DkimDNSTokenName2') as dkim_dns_token_name2, + json_extract_path_text(detail.Properties, 'DkimDNSTokenName3') as dkim_dns_token_name3, + json_extract_path_text(detail.Properties, 'DkimDNSTokenValue1') as dkim_dns_token_value1, + json_extract_path_text(detail.Properties, 'DkimDNSTokenValue2') as dkim_dns_token_value2, + json_extract_path_text(detail.Properties, 'DkimDNSTokenValue3') as dkim_dns_token_value3 + 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::SES::EmailIdentity' + AND detail.data__TypeName = 'AWS::SES::EmailIdentity' + AND listing.region = 'us-east-1' + email_identities_list_only: + name: email_identities_list_only + id: aws.ses.email_identities_list_only + x-cfn-schema-name: EmailIdentity + x-cfn-type-name: AWS::SES::EmailIdentity + x-identifiers: + - EmailIdentity + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.EmailIdentity') as email_identity + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::EmailIdentity' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'EmailIdentity') as email_identity + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::EmailIdentity' + AND region = 'us-east-1' templates: name: templates id: aws.ses.templates @@ -1755,10 +2010,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::Template' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Template') as template + 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::SES::Template' + AND detail.data__TypeName = 'AWS::SES::Template' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1774,10 +2035,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::Template' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Template') as template + 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::SES::Template' + AND detail.data__TypeName = 'AWS::SES::Template' + AND listing.region = 'us-east-1' + templates_list_only: + name: templates_list_only + id: aws.ses.templates_list_only + x-cfn-schema-name: Template + x-cfn-type-name: AWS::SES::Template + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::Template' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SES::Template' + AND region = 'us-east-1' vdm_attributes: name: vdm_attributes id: aws.ses.vdm_attributes diff --git a/providers/src/aws/v00.00.00000/services/shield.yaml b/providers/src/aws/v00.00.00000/services/shield.yaml index 07e5182f..f4887bdf 100644 --- a/providers/src/aws/v00.00.00000/services/shield.yaml +++ b/providers/src/aws/v00.00.00000/services/shield.yaml @@ -1063,10 +1063,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::DRTAccess' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.LogBucketList') as log_bucket_list, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn + 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::Shield::DRTAccess' + AND detail.data__TypeName = 'AWS::Shield::DRTAccess' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1083,10 +1090,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::DRTAccess' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'LogBucketList') as log_bucket_list, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn + 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::Shield::DRTAccess' + AND detail.data__TypeName = 'AWS::Shield::DRTAccess' + AND listing.region = 'us-east-1' + drt_accesses_list_only: + name: drt_accesses_list_only + id: aws.shield.drt_accesses_list_only + x-cfn-schema-name: DRTAccess + x-cfn-type-name: AWS::Shield::DRTAccess + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::DRTAccess' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::DRTAccess' + AND region = 'us-east-1' proactive_engagements: name: proactive_engagements id: aws.shield.proactive_engagements @@ -1160,10 +1205,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProactiveEngagement' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountId') as account_id, + JSON_EXTRACT(detail.Properties, '$.ProactiveEngagementStatus') as proactive_engagement_status, + JSON_EXTRACT(detail.Properties, '$.EmergencyContactList') as emergency_contact_list + 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::Shield::ProactiveEngagement' + AND detail.data__TypeName = 'AWS::Shield::ProactiveEngagement' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1180,10 +1232,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountId') as account_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProactiveEngagement' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountId') as account_id, + json_extract_path_text(detail.Properties, 'ProactiveEngagementStatus') as proactive_engagement_status, + json_extract_path_text(detail.Properties, 'EmergencyContactList') as emergency_contact_list + 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::Shield::ProactiveEngagement' + AND detail.data__TypeName = 'AWS::Shield::ProactiveEngagement' + AND listing.region = 'us-east-1' + proactive_engagements_list_only: + name: proactive_engagements_list_only + id: aws.shield.proactive_engagements_list_only + x-cfn-schema-name: ProactiveEngagement + x-cfn-type-name: AWS::Shield::ProactiveEngagement + x-identifiers: + - AccountId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProactiveEngagement' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountId') as account_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProactiveEngagement' + AND region = 'us-east-1' protections: name: protections id: aws.shield.protections @@ -1261,10 +1351,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProtectionArn') as protection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::Protection' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProtectionId') as protection_id, + JSON_EXTRACT(detail.Properties, '$.ProtectionArn') as protection_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.HealthCheckArns') as health_check_arns, + JSON_EXTRACT(detail.Properties, '$.ApplicationLayerAutomaticResponseConfiguration') as application_layer_automatic_response_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Shield::Protection' + AND detail.data__TypeName = 'AWS::Shield::Protection' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1285,10 +1386,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProtectionArn') as protection_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::Protection' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProtectionId') as protection_id, + json_extract_path_text(detail.Properties, 'ProtectionArn') as protection_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'HealthCheckArns') as health_check_arns, + json_extract_path_text(detail.Properties, 'ApplicationLayerAutomaticResponseConfiguration') as application_layer_automatic_response_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Shield::Protection' + AND detail.data__TypeName = 'AWS::Shield::Protection' + AND listing.region = 'us-east-1' + protections_list_only: + name: protections_list_only + id: aws.shield.protections_list_only + x-cfn-schema-name: Protection + x-cfn-type-name: AWS::Shield::Protection + x-identifiers: + - ProtectionArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProtectionArn') as protection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::Protection' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProtectionArn') as protection_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::Protection' + AND region = 'us-east-1' + protection_tags: + name: protection_tags + id: aws.shield.protection_tags + x-cfn-schema-name: Protection + x-cfn-type-name: AWS::Shield::Protection + 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, '$.ProtectionId') as protection_id, + JSON_EXTRACT(detail.Properties, '$.ProtectionArn') as protection_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.HealthCheckArns') as health_check_arns, + JSON_EXTRACT(detail.Properties, '$.ApplicationLayerAutomaticResponseConfiguration') as application_layer_automatic_response_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::Shield::Protection' + AND detail.data__TypeName = 'AWS::Shield::Protection' + 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, 'ProtectionId') as protection_id, + json_extract_path_text(detail.Properties, 'ProtectionArn') as protection_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'HealthCheckArns') as health_check_arns, + json_extract_path_text(detail.Properties, 'ApplicationLayerAutomaticResponseConfiguration') as application_layer_automatic_response_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::Shield::Protection' + AND detail.data__TypeName = 'AWS::Shield::Protection' + AND listing.region = 'us-east-1' protection_groups: name: protection_groups id: aws.shield.protection_groups @@ -1366,10 +1564,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProtectionGroupArn') as protection_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProtectionGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProtectionGroupId') as protection_group_id, + JSON_EXTRACT(detail.Properties, '$.ProtectionGroupArn') as protection_group_arn, + JSON_EXTRACT(detail.Properties, '$.Aggregation') as aggregation, + JSON_EXTRACT(detail.Properties, '$.Pattern') as pattern, + JSON_EXTRACT(detail.Properties, '$.Members') as members, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Shield::ProtectionGroup' + AND detail.data__TypeName = 'AWS::Shield::ProtectionGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1390,10 +1599,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProtectionGroupArn') as protection_group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProtectionGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProtectionGroupId') as protection_group_id, + json_extract_path_text(detail.Properties, 'ProtectionGroupArn') as protection_group_arn, + json_extract_path_text(detail.Properties, 'Aggregation') as aggregation, + json_extract_path_text(detail.Properties, 'Pattern') as pattern, + json_extract_path_text(detail.Properties, 'Members') as members, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Shield::ProtectionGroup' + AND detail.data__TypeName = 'AWS::Shield::ProtectionGroup' + AND listing.region = 'us-east-1' + protection_groups_list_only: + name: protection_groups_list_only + id: aws.shield.protection_groups_list_only + x-cfn-schema-name: ProtectionGroup + x-cfn-type-name: AWS::Shield::ProtectionGroup + x-identifiers: + - ProtectionGroupArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProtectionGroupArn') as protection_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProtectionGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProtectionGroupArn') as protection_group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Shield::ProtectionGroup' + AND region = 'us-east-1' + protection_group_tags: + name: protection_group_tags + id: aws.shield.protection_group_tags + x-cfn-schema-name: ProtectionGroup + x-cfn-type-name: AWS::Shield::ProtectionGroup + 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, '$.ProtectionGroupId') as protection_group_id, + JSON_EXTRACT(detail.Properties, '$.ProtectionGroupArn') as protection_group_arn, + JSON_EXTRACT(detail.Properties, '$.Aggregation') as aggregation, + JSON_EXTRACT(detail.Properties, '$.Pattern') as pattern, + JSON_EXTRACT(detail.Properties, '$.Members') as members, + JSON_EXTRACT(detail.Properties, '$.ResourceType') as resource_type + 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::Shield::ProtectionGroup' + AND detail.data__TypeName = 'AWS::Shield::ProtectionGroup' + 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, 'ProtectionGroupId') as protection_group_id, + json_extract_path_text(detail.Properties, 'ProtectionGroupArn') as protection_group_arn, + json_extract_path_text(detail.Properties, 'Aggregation') as aggregation, + json_extract_path_text(detail.Properties, 'Pattern') as pattern, + json_extract_path_text(detail.Properties, 'Members') as members, + json_extract_path_text(detail.Properties, 'ResourceType') as resource_type + 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::Shield::ProtectionGroup' + AND detail.data__TypeName = 'AWS::Shield::ProtectionGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/signer.yaml b/providers/src/aws/v00.00.00000/services/signer.yaml index cab93c14..b5f5f9f0 100644 --- a/providers/src/aws/v00.00.00000/services/signer.yaml +++ b/providers/src/aws/v00.00.00000/services/signer.yaml @@ -669,11 +669,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.StatementId') as statement_id, - JSON_EXTRACT(Properties, '$.ProfileName') as profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Signer::ProfilePermission' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProfileName') as profile_name, + JSON_EXTRACT(detail.Properties, '$.ProfileVersion') as profile_version, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Principal') as principal, + JSON_EXTRACT(detail.Properties, '$.StatementId') as statement_id + 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::Signer::ProfilePermission' + AND detail.data__TypeName = 'AWS::Signer::ProfilePermission' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -692,11 +700,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'StatementId') as statement_id, - json_extract_path_text(Properties, 'ProfileName') as profile_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Signer::ProfilePermission' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProfileName') as profile_name, + json_extract_path_text(detail.Properties, 'ProfileVersion') as profile_version, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'Principal') as principal, + json_extract_path_text(detail.Properties, 'StatementId') as statement_id + 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::Signer::ProfilePermission' + AND detail.data__TypeName = 'AWS::Signer::ProfilePermission' + AND listing.region = 'us-east-1' + profile_permissions_list_only: + name: profile_permissions_list_only + id: aws.signer.profile_permissions_list_only + x-cfn-schema-name: ProfilePermission + x-cfn-type-name: AWS::Signer::ProfilePermission + x-identifiers: + - StatementId + - ProfileName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.StatementId') as statement_id, + JSON_EXTRACT(Properties, '$.ProfileName') as profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Signer::ProfilePermission' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'StatementId') as statement_id, + json_extract_path_text(Properties, 'ProfileName') as profile_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Signer::ProfilePermission' + AND region = 'us-east-1' signing_profiles: name: signing_profiles id: aws.signer.signing_profiles @@ -774,10 +824,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Signer::SigningProfile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ProfileName') as profile_name, + JSON_EXTRACT(detail.Properties, '$.ProfileVersion') as profile_version, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ProfileVersionArn') as profile_version_arn, + JSON_EXTRACT(detail.Properties, '$.SignatureValidityPeriod') as signature_validity_period, + JSON_EXTRACT(detail.Properties, '$.PlatformId') as platform_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Signer::SigningProfile' + AND detail.data__TypeName = 'AWS::Signer::SigningProfile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -798,10 +859,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Signer::SigningProfile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ProfileName') as profile_name, + json_extract_path_text(detail.Properties, 'ProfileVersion') as profile_version, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ProfileVersionArn') as profile_version_arn, + json_extract_path_text(detail.Properties, 'SignatureValidityPeriod') as signature_validity_period, + json_extract_path_text(detail.Properties, 'PlatformId') as platform_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Signer::SigningProfile' + AND detail.data__TypeName = 'AWS::Signer::SigningProfile' + AND listing.region = 'us-east-1' + signing_profiles_list_only: + name: signing_profiles_list_only + id: aws.signer.signing_profiles_list_only + x-cfn-schema-name: SigningProfile + x-cfn-type-name: AWS::Signer::SigningProfile + 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::Signer::SigningProfile' + 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::Signer::SigningProfile' + AND region = 'us-east-1' + signing_profile_tags: + name: signing_profile_tags + id: aws.signer.signing_profile_tags + x-cfn-schema-name: SigningProfile + x-cfn-type-name: AWS::Signer::SigningProfile + 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, '$.ProfileName') as profile_name, + JSON_EXTRACT(detail.Properties, '$.ProfileVersion') as profile_version, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ProfileVersionArn') as profile_version_arn, + JSON_EXTRACT(detail.Properties, '$.SignatureValidityPeriod') as signature_validity_period, + JSON_EXTRACT(detail.Properties, '$.PlatformId') as platform_id + 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::Signer::SigningProfile' + AND detail.data__TypeName = 'AWS::Signer::SigningProfile' + 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, 'ProfileName') as profile_name, + json_extract_path_text(detail.Properties, 'ProfileVersion') as profile_version, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ProfileVersionArn') as profile_version_arn, + json_extract_path_text(detail.Properties, 'SignatureValidityPeriod') as signature_validity_period, + json_extract_path_text(detail.Properties, 'PlatformId') as platform_id + 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::Signer::SigningProfile' + AND detail.data__TypeName = 'AWS::Signer::SigningProfile' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/simspaceweaver.yaml b/providers/src/aws/v00.00.00000/services/simspaceweaver.yaml index b1ee3a50..d91f430d 100644 --- a/providers/src/aws/v00.00.00000/services/simspaceweaver.yaml +++ b/providers/src/aws/v00.00.00000/services/simspaceweaver.yaml @@ -592,10 +592,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SimSpaceWeaver::Simulation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.SchemaS3Location') as schema_s3_location, + JSON_EXTRACT(detail.Properties, '$.DescribePayload') as describe_payload, + JSON_EXTRACT(detail.Properties, '$.MaximumDuration') as maximum_duration, + JSON_EXTRACT(detail.Properties, '$.SnapshotS3Location') as snapshot_s3_location + 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::SimSpaceWeaver::Simulation' + AND detail.data__TypeName = 'AWS::SimSpaceWeaver::Simulation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -615,10 +625,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SimSpaceWeaver::Simulation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'SchemaS3Location') as schema_s3_location, + json_extract_path_text(detail.Properties, 'DescribePayload') as describe_payload, + json_extract_path_text(detail.Properties, 'MaximumDuration') as maximum_duration, + json_extract_path_text(detail.Properties, 'SnapshotS3Location') as snapshot_s3_location + 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::SimSpaceWeaver::Simulation' + AND detail.data__TypeName = 'AWS::SimSpaceWeaver::Simulation' + AND listing.region = 'us-east-1' + simulations_list_only: + name: simulations_list_only + id: aws.simspaceweaver.simulations_list_only + x-cfn-schema-name: Simulation + x-cfn-type-name: AWS::SimSpaceWeaver::Simulation + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SimSpaceWeaver::Simulation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SimSpaceWeaver::Simulation' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/sns.yaml b/providers/src/aws/v00.00.00000/services/sns.yaml index 06169fb8..6d30c8af 100644 --- a/providers/src/aws/v00.00.00000/services/sns.yaml +++ b/providers/src/aws/v00.00.00000/services/sns.yaml @@ -827,10 +827,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TopicArn') as topic_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SNS::Topic' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.KmsMasterKeyId') as kms_master_key_id, + JSON_EXTRACT(detail.Properties, '$.DataProtectionPolicy') as data_protection_policy, + JSON_EXTRACT(detail.Properties, '$.Subscription') as subscription, + JSON_EXTRACT(detail.Properties, '$.FifoTopic') as fifo_topic, + JSON_EXTRACT(detail.Properties, '$.ContentBasedDeduplication') as content_based_deduplication, + JSON_EXTRACT(detail.Properties, '$.ArchivePolicy') as archive_policy, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TopicName') as topic_name, + JSON_EXTRACT(detail.Properties, '$.TopicArn') as topic_arn, + JSON_EXTRACT(detail.Properties, '$.SignatureVersion') as signature_version, + JSON_EXTRACT(detail.Properties, '$.TracingConfig') as tracing_config, + JSON_EXTRACT(detail.Properties, '$.DeliveryStatusLogging') as delivery_status_logging + 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::SNS::Topic' + AND detail.data__TypeName = 'AWS::SNS::Topic' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -857,10 +874,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TopicArn') as topic_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SNS::Topic' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'KmsMasterKeyId') as kms_master_key_id, + json_extract_path_text(detail.Properties, 'DataProtectionPolicy') as data_protection_policy, + json_extract_path_text(detail.Properties, 'Subscription') as subscription, + json_extract_path_text(detail.Properties, 'FifoTopic') as fifo_topic, + json_extract_path_text(detail.Properties, 'ContentBasedDeduplication') as content_based_deduplication, + json_extract_path_text(detail.Properties, 'ArchivePolicy') as archive_policy, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TopicName') as topic_name, + json_extract_path_text(detail.Properties, 'TopicArn') as topic_arn, + json_extract_path_text(detail.Properties, 'SignatureVersion') as signature_version, + json_extract_path_text(detail.Properties, 'TracingConfig') as tracing_config, + json_extract_path_text(detail.Properties, 'DeliveryStatusLogging') as delivery_status_logging + 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::SNS::Topic' + AND detail.data__TypeName = 'AWS::SNS::Topic' + AND listing.region = 'us-east-1' + topics_list_only: + name: topics_list_only + id: aws.sns.topics_list_only + x-cfn-schema-name: Topic + x-cfn-type-name: AWS::SNS::Topic + x-identifiers: + - TopicArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TopicArn') as topic_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SNS::Topic' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TopicArn') as topic_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SNS::Topic' + AND region = 'us-east-1' + topic_tags: + name: topic_tags + id: aws.sns.topic_tags + x-cfn-schema-name: Topic + x-cfn-type-name: AWS::SNS::Topic + 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, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.KmsMasterKeyId') as kms_master_key_id, + JSON_EXTRACT(detail.Properties, '$.DataProtectionPolicy') as data_protection_policy, + JSON_EXTRACT(detail.Properties, '$.Subscription') as subscription, + JSON_EXTRACT(detail.Properties, '$.FifoTopic') as fifo_topic, + JSON_EXTRACT(detail.Properties, '$.ContentBasedDeduplication') as content_based_deduplication, + JSON_EXTRACT(detail.Properties, '$.ArchivePolicy') as archive_policy, + JSON_EXTRACT(detail.Properties, '$.TopicName') as topic_name, + JSON_EXTRACT(detail.Properties, '$.TopicArn') as topic_arn, + JSON_EXTRACT(detail.Properties, '$.SignatureVersion') as signature_version, + JSON_EXTRACT(detail.Properties, '$.TracingConfig') as tracing_config, + JSON_EXTRACT(detail.Properties, '$.DeliveryStatusLogging') as delivery_status_logging + 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::SNS::Topic' + AND detail.data__TypeName = 'AWS::SNS::Topic' + 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, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'KmsMasterKeyId') as kms_master_key_id, + json_extract_path_text(detail.Properties, 'DataProtectionPolicy') as data_protection_policy, + json_extract_path_text(detail.Properties, 'Subscription') as subscription, + json_extract_path_text(detail.Properties, 'FifoTopic') as fifo_topic, + json_extract_path_text(detail.Properties, 'ContentBasedDeduplication') as content_based_deduplication, + json_extract_path_text(detail.Properties, 'ArchivePolicy') as archive_policy, + json_extract_path_text(detail.Properties, 'TopicName') as topic_name, + json_extract_path_text(detail.Properties, 'TopicArn') as topic_arn, + json_extract_path_text(detail.Properties, 'SignatureVersion') as signature_version, + json_extract_path_text(detail.Properties, 'TracingConfig') as tracing_config, + json_extract_path_text(detail.Properties, 'DeliveryStatusLogging') as delivery_status_logging + 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::SNS::Topic' + AND detail.data__TypeName = 'AWS::SNS::Topic' + AND listing.region = 'us-east-1' topic_inline_policies: name: topic_inline_policies id: aws.sns.topic_inline_policies diff --git a/providers/src/aws/v00.00.00000/services/sqs.yaml b/providers/src/aws/v00.00.00000/services/sqs.yaml index 2f644dba..fbb8b8c1 100644 --- a/providers/src/aws/v00.00.00000/services/sqs.yaml +++ b/providers/src/aws/v00.00.00000/services/sqs.yaml @@ -817,10 +817,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.QueueUrl') as queue_url - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SQS::Queue' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.QueueUrl') as queue_url, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ContentBasedDeduplication') as content_based_deduplication, + JSON_EXTRACT(detail.Properties, '$.DeduplicationScope') as deduplication_scope, + JSON_EXTRACT(detail.Properties, '$.DelaySeconds') as delay_seconds, + JSON_EXTRACT(detail.Properties, '$.FifoQueue') as fifo_queue, + JSON_EXTRACT(detail.Properties, '$.FifoThroughputLimit') as fifo_throughput_limit, + JSON_EXTRACT(detail.Properties, '$.KmsDataKeyReusePeriodSeconds') as kms_data_key_reuse_period_seconds, + JSON_EXTRACT(detail.Properties, '$.KmsMasterKeyId') as kms_master_key_id, + JSON_EXTRACT(detail.Properties, '$.SqsManagedSseEnabled') as sqs_managed_sse_enabled, + JSON_EXTRACT(detail.Properties, '$.MaximumMessageSize') as maximum_message_size, + JSON_EXTRACT(detail.Properties, '$.MessageRetentionPeriod') as message_retention_period, + JSON_EXTRACT(detail.Properties, '$.QueueName') as queue_name, + JSON_EXTRACT(detail.Properties, '$.ReceiveMessageWaitTimeSeconds') as receive_message_wait_time_seconds, + JSON_EXTRACT(detail.Properties, '$.RedriveAllowPolicy') as redrive_allow_policy, + JSON_EXTRACT(detail.Properties, '$.RedrivePolicy') as redrive_policy, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VisibilityTimeout') as visibility_timeout + 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::SQS::Queue' + AND detail.data__TypeName = 'AWS::SQS::Queue' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -852,10 +874,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'QueueUrl') as queue_url - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SQS::Queue' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'QueueUrl') as queue_url, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ContentBasedDeduplication') as content_based_deduplication, + json_extract_path_text(detail.Properties, 'DeduplicationScope') as deduplication_scope, + json_extract_path_text(detail.Properties, 'DelaySeconds') as delay_seconds, + json_extract_path_text(detail.Properties, 'FifoQueue') as fifo_queue, + json_extract_path_text(detail.Properties, 'FifoThroughputLimit') as fifo_throughput_limit, + json_extract_path_text(detail.Properties, 'KmsDataKeyReusePeriodSeconds') as kms_data_key_reuse_period_seconds, + json_extract_path_text(detail.Properties, 'KmsMasterKeyId') as kms_master_key_id, + json_extract_path_text(detail.Properties, 'SqsManagedSseEnabled') as sqs_managed_sse_enabled, + json_extract_path_text(detail.Properties, 'MaximumMessageSize') as maximum_message_size, + json_extract_path_text(detail.Properties, 'MessageRetentionPeriod') as message_retention_period, + json_extract_path_text(detail.Properties, 'QueueName') as queue_name, + json_extract_path_text(detail.Properties, 'ReceiveMessageWaitTimeSeconds') as receive_message_wait_time_seconds, + json_extract_path_text(detail.Properties, 'RedriveAllowPolicy') as redrive_allow_policy, + json_extract_path_text(detail.Properties, 'RedrivePolicy') as redrive_policy, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VisibilityTimeout') as visibility_timeout + 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::SQS::Queue' + AND detail.data__TypeName = 'AWS::SQS::Queue' + AND listing.region = 'us-east-1' + queues_list_only: + name: queues_list_only + id: aws.sqs.queues_list_only + x-cfn-schema-name: Queue + x-cfn-type-name: AWS::SQS::Queue + x-identifiers: + - QueueUrl + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.QueueUrl') as queue_url + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SQS::Queue' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'QueueUrl') as queue_url + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SQS::Queue' + AND region = 'us-east-1' + queue_tags: + name: queue_tags + id: aws.sqs.queue_tags + x-cfn-schema-name: Queue + x-cfn-type-name: AWS::SQS::Queue + 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, '$.QueueUrl') as queue_url, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ContentBasedDeduplication') as content_based_deduplication, + JSON_EXTRACT(detail.Properties, '$.DeduplicationScope') as deduplication_scope, + JSON_EXTRACT(detail.Properties, '$.DelaySeconds') as delay_seconds, + JSON_EXTRACT(detail.Properties, '$.FifoQueue') as fifo_queue, + JSON_EXTRACT(detail.Properties, '$.FifoThroughputLimit') as fifo_throughput_limit, + JSON_EXTRACT(detail.Properties, '$.KmsDataKeyReusePeriodSeconds') as kms_data_key_reuse_period_seconds, + JSON_EXTRACT(detail.Properties, '$.KmsMasterKeyId') as kms_master_key_id, + JSON_EXTRACT(detail.Properties, '$.SqsManagedSseEnabled') as sqs_managed_sse_enabled, + JSON_EXTRACT(detail.Properties, '$.MaximumMessageSize') as maximum_message_size, + JSON_EXTRACT(detail.Properties, '$.MessageRetentionPeriod') as message_retention_period, + JSON_EXTRACT(detail.Properties, '$.QueueName') as queue_name, + JSON_EXTRACT(detail.Properties, '$.ReceiveMessageWaitTimeSeconds') as receive_message_wait_time_seconds, + JSON_EXTRACT(detail.Properties, '$.RedriveAllowPolicy') as redrive_allow_policy, + JSON_EXTRACT(detail.Properties, '$.RedrivePolicy') as redrive_policy, + JSON_EXTRACT(detail.Properties, '$.VisibilityTimeout') as visibility_timeout + 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::SQS::Queue' + AND detail.data__TypeName = 'AWS::SQS::Queue' + 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, 'QueueUrl') as queue_url, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ContentBasedDeduplication') as content_based_deduplication, + json_extract_path_text(detail.Properties, 'DeduplicationScope') as deduplication_scope, + json_extract_path_text(detail.Properties, 'DelaySeconds') as delay_seconds, + json_extract_path_text(detail.Properties, 'FifoQueue') as fifo_queue, + json_extract_path_text(detail.Properties, 'FifoThroughputLimit') as fifo_throughput_limit, + json_extract_path_text(detail.Properties, 'KmsDataKeyReusePeriodSeconds') as kms_data_key_reuse_period_seconds, + json_extract_path_text(detail.Properties, 'KmsMasterKeyId') as kms_master_key_id, + json_extract_path_text(detail.Properties, 'SqsManagedSseEnabled') as sqs_managed_sse_enabled, + json_extract_path_text(detail.Properties, 'MaximumMessageSize') as maximum_message_size, + json_extract_path_text(detail.Properties, 'MessageRetentionPeriod') as message_retention_period, + json_extract_path_text(detail.Properties, 'QueueName') as queue_name, + json_extract_path_text(detail.Properties, 'ReceiveMessageWaitTimeSeconds') as receive_message_wait_time_seconds, + json_extract_path_text(detail.Properties, 'RedriveAllowPolicy') as redrive_allow_policy, + json_extract_path_text(detail.Properties, 'RedrivePolicy') as redrive_policy, + json_extract_path_text(detail.Properties, 'VisibilityTimeout') as visibility_timeout + 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::SQS::Queue' + AND detail.data__TypeName = 'AWS::SQS::Queue' + AND listing.region = 'us-east-1' queue_inline_policies: name: queue_inline_policies id: aws.sqs.queue_inline_policies diff --git a/providers/src/aws/v00.00.00000/services/ssm.yaml b/providers/src/aws/v00.00.00000/services/ssm.yaml index f343550e..521e6f9c 100644 --- a/providers/src/aws/v00.00.00000/services/ssm.yaml +++ b/providers/src/aws/v00.00.00000/services/ssm.yaml @@ -1890,10 +1890,32 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Association' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssociationName') as association_name, + JSON_EXTRACT(detail.Properties, '$.CalendarNames') as calendar_names, + JSON_EXTRACT(detail.Properties, '$.ScheduleExpression') as schedule_expression, + JSON_EXTRACT(detail.Properties, '$.MaxErrors') as max_errors, + JSON_EXTRACT(detail.Properties, '$.Parameters') as parameters, + JSON_EXTRACT(detail.Properties, '$.InstanceId') as instance_id, + JSON_EXTRACT(detail.Properties, '$.WaitForSuccessTimeoutSeconds') as wait_for_success_timeout_seconds, + JSON_EXTRACT(detail.Properties, '$.MaxConcurrency') as max_concurrency, + JSON_EXTRACT(detail.Properties, '$.ComplianceSeverity') as compliance_severity, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.SyncCompliance') as sync_compliance, + JSON_EXTRACT(detail.Properties, '$.OutputLocation') as output_location, + JSON_EXTRACT(detail.Properties, '$.ScheduleOffset') as schedule_offset, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ApplyOnlyAtCronInterval') as apply_only_at_cron_interval, + JSON_EXTRACT(detail.Properties, '$.DocumentVersion') as document_version, + JSON_EXTRACT(detail.Properties, '$.AssociationId') as association_id, + JSON_EXTRACT(detail.Properties, '$.AutomationTargetParameterName') as automation_target_parameter_name + 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::SSM::Association' + AND detail.data__TypeName = 'AWS::SSM::Association' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1925,10 +1947,63 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssociationId') as association_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Association' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssociationName') as association_name, + json_extract_path_text(detail.Properties, 'CalendarNames') as calendar_names, + json_extract_path_text(detail.Properties, 'ScheduleExpression') as schedule_expression, + json_extract_path_text(detail.Properties, 'MaxErrors') as max_errors, + json_extract_path_text(detail.Properties, 'Parameters') as parameters, + json_extract_path_text(detail.Properties, 'InstanceId') as instance_id, + json_extract_path_text(detail.Properties, 'WaitForSuccessTimeoutSeconds') as wait_for_success_timeout_seconds, + json_extract_path_text(detail.Properties, 'MaxConcurrency') as max_concurrency, + json_extract_path_text(detail.Properties, 'ComplianceSeverity') as compliance_severity, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'SyncCompliance') as sync_compliance, + json_extract_path_text(detail.Properties, 'OutputLocation') as output_location, + json_extract_path_text(detail.Properties, 'ScheduleOffset') as schedule_offset, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ApplyOnlyAtCronInterval') as apply_only_at_cron_interval, + json_extract_path_text(detail.Properties, 'DocumentVersion') as document_version, + json_extract_path_text(detail.Properties, 'AssociationId') as association_id, + json_extract_path_text(detail.Properties, 'AutomationTargetParameterName') as automation_target_parameter_name + 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::SSM::Association' + AND detail.data__TypeName = 'AWS::SSM::Association' + AND listing.region = 'us-east-1' + associations_list_only: + name: associations_list_only + id: aws.ssm.associations_list_only + x-cfn-schema-name: Association + x-cfn-type-name: AWS::SSM::Association + x-identifiers: + - AssociationId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Association' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssociationId') as association_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Association' + AND region = 'us-east-1' documents: name: documents id: aws.ssm.documents @@ -2009,10 +2084,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Document' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Attachments') as attachments, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.VersionName') as version_name, + JSON_EXTRACT(detail.Properties, '$.DocumentType') as document_type, + JSON_EXTRACT(detail.Properties, '$.DocumentFormat') as document_format, + JSON_EXTRACT(detail.Properties, '$.TargetType') as target_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Requires') as requires, + JSON_EXTRACT(detail.Properties, '$.UpdateMethod') as update_method + 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::SSM::Document' + AND detail.data__TypeName = 'AWS::SSM::Document' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2036,10 +2125,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Document' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Content') as content, + json_extract_path_text(detail.Properties, 'Attachments') as attachments, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'VersionName') as version_name, + json_extract_path_text(detail.Properties, 'DocumentType') as document_type, + json_extract_path_text(detail.Properties, 'DocumentFormat') as document_format, + json_extract_path_text(detail.Properties, 'TargetType') as target_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Requires') as requires, + json_extract_path_text(detail.Properties, 'UpdateMethod') as update_method + 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::SSM::Document' + AND detail.data__TypeName = 'AWS::SSM::Document' + AND listing.region = 'us-east-1' + documents_list_only: + name: documents_list_only + id: aws.ssm.documents_list_only + x-cfn-schema-name: Document + x-cfn-type-name: AWS::SSM::Document + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Document' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Document' + AND region = 'us-east-1' + document_tags: + name: document_tags + id: aws.ssm.document_tags + x-cfn-schema-name: Document + x-cfn-type-name: AWS::SSM::Document + 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, '$.Content') as content, + JSON_EXTRACT(detail.Properties, '$.Attachments') as attachments, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.VersionName') as version_name, + JSON_EXTRACT(detail.Properties, '$.DocumentType') as document_type, + JSON_EXTRACT(detail.Properties, '$.DocumentFormat') as document_format, + JSON_EXTRACT(detail.Properties, '$.TargetType') as target_type, + JSON_EXTRACT(detail.Properties, '$.Requires') as requires, + JSON_EXTRACT(detail.Properties, '$.UpdateMethod') as update_method + 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::SSM::Document' + AND detail.data__TypeName = 'AWS::SSM::Document' + 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, 'Content') as content, + json_extract_path_text(detail.Properties, 'Attachments') as attachments, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'VersionName') as version_name, + json_extract_path_text(detail.Properties, 'DocumentType') as document_type, + json_extract_path_text(detail.Properties, 'DocumentFormat') as document_format, + json_extract_path_text(detail.Properties, 'TargetType') as target_type, + json_extract_path_text(detail.Properties, 'Requires') as requires, + json_extract_path_text(detail.Properties, 'UpdateMethod') as update_method + 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::SSM::Document' + AND detail.data__TypeName = 'AWS::SSM::Document' + AND listing.region = 'us-east-1' parameters: name: parameters id: aws.ssm.parameters @@ -2119,10 +2314,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Parameter' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Value') as value, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies, + JSON_EXTRACT(detail.Properties, '$.AllowedPattern') as allowed_pattern, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.DataType') as data_type, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::SSM::Parameter' + AND detail.data__TypeName = 'AWS::SSM::Parameter' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2145,10 +2353,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Parameter' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Value') as value, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Policies') as policies, + json_extract_path_text(detail.Properties, 'AllowedPattern') as allowed_pattern, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'DataType') as data_type, + json_extract_path_text(detail.Properties, 'Name') as name + 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::SSM::Parameter' + AND detail.data__TypeName = 'AWS::SSM::Parameter' + AND listing.region = 'us-east-1' + parameters_list_only: + name: parameters_list_only + id: aws.ssm.parameters_list_only + x-cfn-schema-name: Parameter + x-cfn-type-name: AWS::SSM::Parameter + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Parameter' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::Parameter' + AND region = 'us-east-1' + parameter_tags: + name: parameter_tags + id: aws.ssm.parameter_tags + x-cfn-schema-name: Parameter + x-cfn-type-name: AWS::SSM::Parameter + 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, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Value') as value, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Policies') as policies, + JSON_EXTRACT(detail.Properties, '$.AllowedPattern') as allowed_pattern, + JSON_EXTRACT(detail.Properties, '$.Tier') as tier, + JSON_EXTRACT(detail.Properties, '$.DataType') as data_type, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::SSM::Parameter' + AND detail.data__TypeName = 'AWS::SSM::Parameter' + 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, 'Type') as type, + json_extract_path_text(detail.Properties, 'Value') as value, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Policies') as policies, + json_extract_path_text(detail.Properties, 'AllowedPattern') as allowed_pattern, + json_extract_path_text(detail.Properties, 'Tier') as tier, + json_extract_path_text(detail.Properties, 'DataType') as data_type, + json_extract_path_text(detail.Properties, 'Name') as name + 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::SSM::Parameter' + AND detail.data__TypeName = 'AWS::SSM::Parameter' + AND listing.region = 'us-east-1' patch_baselines: name: patch_baselines id: aws.ssm.patch_baselines @@ -2234,10 +2545,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::PatchBaseline' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DefaultBaseline') as default_baseline, + JSON_EXTRACT(detail.Properties, '$.OperatingSystem') as operating_system, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApprovalRules') as approval_rules, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RejectedPatches') as rejected_patches, + JSON_EXTRACT(detail.Properties, '$.ApprovedPatches') as approved_patches, + JSON_EXTRACT(detail.Properties, '$.RejectedPatchesAction') as rejected_patches_action, + JSON_EXTRACT(detail.Properties, '$.PatchGroups') as patch_groups, + JSON_EXTRACT(detail.Properties, '$.ApprovedPatchesComplianceLevel') as approved_patches_compliance_level, + JSON_EXTRACT(detail.Properties, '$.ApprovedPatchesEnableNonSecurity') as approved_patches_enable_non_security, + JSON_EXTRACT(detail.Properties, '$.GlobalFilters') as global_filters, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SSM::PatchBaseline' + AND detail.data__TypeName = 'AWS::SSM::PatchBaseline' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2266,10 +2596,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::PatchBaseline' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DefaultBaseline') as default_baseline, + json_extract_path_text(detail.Properties, 'OperatingSystem') as operating_system, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApprovalRules') as approval_rules, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RejectedPatches') as rejected_patches, + json_extract_path_text(detail.Properties, 'ApprovedPatches') as approved_patches, + json_extract_path_text(detail.Properties, 'RejectedPatchesAction') as rejected_patches_action, + json_extract_path_text(detail.Properties, 'PatchGroups') as patch_groups, + json_extract_path_text(detail.Properties, 'ApprovedPatchesComplianceLevel') as approved_patches_compliance_level, + json_extract_path_text(detail.Properties, 'ApprovedPatchesEnableNonSecurity') as approved_patches_enable_non_security, + json_extract_path_text(detail.Properties, 'GlobalFilters') as global_filters, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SSM::PatchBaseline' + AND detail.data__TypeName = 'AWS::SSM::PatchBaseline' + AND listing.region = 'us-east-1' + patch_baselines_list_only: + name: patch_baselines_list_only + id: aws.ssm.patch_baselines_list_only + x-cfn-schema-name: PatchBaseline + x-cfn-type-name: AWS::SSM::PatchBaseline + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::PatchBaseline' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::PatchBaseline' + AND region = 'us-east-1' + patch_baseline_tags: + name: patch_baseline_tags + id: aws.ssm.patch_baseline_tags + x-cfn-schema-name: PatchBaseline + x-cfn-type-name: AWS::SSM::PatchBaseline + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DefaultBaseline') as default_baseline, + JSON_EXTRACT(detail.Properties, '$.OperatingSystem') as operating_system, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ApprovalRules') as approval_rules, + JSON_EXTRACT(detail.Properties, '$.Sources') as sources, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RejectedPatches') as rejected_patches, + JSON_EXTRACT(detail.Properties, '$.ApprovedPatches') as approved_patches, + JSON_EXTRACT(detail.Properties, '$.RejectedPatchesAction') as rejected_patches_action, + JSON_EXTRACT(detail.Properties, '$.PatchGroups') as patch_groups, + JSON_EXTRACT(detail.Properties, '$.ApprovedPatchesComplianceLevel') as approved_patches_compliance_level, + JSON_EXTRACT(detail.Properties, '$.ApprovedPatchesEnableNonSecurity') as approved_patches_enable_non_security, + JSON_EXTRACT(detail.Properties, '$.GlobalFilters') as global_filters + 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::SSM::PatchBaseline' + AND detail.data__TypeName = 'AWS::SSM::PatchBaseline' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'DefaultBaseline') as default_baseline, + json_extract_path_text(detail.Properties, 'OperatingSystem') as operating_system, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ApprovalRules') as approval_rules, + json_extract_path_text(detail.Properties, 'Sources') as sources, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RejectedPatches') as rejected_patches, + json_extract_path_text(detail.Properties, 'ApprovedPatches') as approved_patches, + json_extract_path_text(detail.Properties, 'RejectedPatchesAction') as rejected_patches_action, + json_extract_path_text(detail.Properties, 'PatchGroups') as patch_groups, + json_extract_path_text(detail.Properties, 'ApprovedPatchesComplianceLevel') as approved_patches_compliance_level, + json_extract_path_text(detail.Properties, 'ApprovedPatchesEnableNonSecurity') as approved_patches_enable_non_security, + json_extract_path_text(detail.Properties, 'GlobalFilters') as global_filters + 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::SSM::PatchBaseline' + AND detail.data__TypeName = 'AWS::SSM::PatchBaseline' + AND listing.region = 'us-east-1' resource_data_syncs: name: resource_data_syncs id: aws.ssm.resource_data_syncs @@ -2349,10 +2800,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.SyncName') as sync_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourceDataSync' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.S3Destination') as s3_destination, + JSON_EXTRACT(detail.Properties, '$.KMSKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.SyncSource') as sync_source, + JSON_EXTRACT(detail.Properties, '$.BucketName') as bucket_name, + JSON_EXTRACT(detail.Properties, '$.BucketRegion') as bucket_region, + JSON_EXTRACT(detail.Properties, '$.SyncFormat') as sync_format, + JSON_EXTRACT(detail.Properties, '$.SyncName') as sync_name, + JSON_EXTRACT(detail.Properties, '$.SyncType') as sync_type, + JSON_EXTRACT(detail.Properties, '$.BucketPrefix') as bucket_prefix + 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::SSM::ResourceDataSync' + AND detail.data__TypeName = 'AWS::SSM::ResourceDataSync' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2375,10 +2839,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'SyncName') as sync_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourceDataSync' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'S3Destination') as s3_destination, + json_extract_path_text(detail.Properties, 'KMSKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'SyncSource') as sync_source, + json_extract_path_text(detail.Properties, 'BucketName') as bucket_name, + json_extract_path_text(detail.Properties, 'BucketRegion') as bucket_region, + json_extract_path_text(detail.Properties, 'SyncFormat') as sync_format, + json_extract_path_text(detail.Properties, 'SyncName') as sync_name, + json_extract_path_text(detail.Properties, 'SyncType') as sync_type, + json_extract_path_text(detail.Properties, 'BucketPrefix') as bucket_prefix + 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::SSM::ResourceDataSync' + AND detail.data__TypeName = 'AWS::SSM::ResourceDataSync' + AND listing.region = 'us-east-1' + resource_data_syncs_list_only: + name: resource_data_syncs_list_only + id: aws.ssm.resource_data_syncs_list_only + x-cfn-schema-name: ResourceDataSync + x-cfn-type-name: AWS::SSM::ResourceDataSync + x-identifiers: + - SyncName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.SyncName') as sync_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourceDataSync' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'SyncName') as sync_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourceDataSync' + AND region = 'us-east-1' resource_policies: name: resource_policies id: aws.ssm.resource_policies @@ -2454,11 +2962,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyId') as policy_id, - JSON_EXTRACT(Properties, '$.ResourceArn') as resource_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.Policy') as policy, + JSON_EXTRACT(detail.Properties, '$.PolicyId') as policy_id, + JSON_EXTRACT(detail.Properties, '$.PolicyHash') as policy_hash + 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::SSM::ResourcePolicy' + AND detail.data__TypeName = 'AWS::SSM::ResourcePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2476,11 +2991,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyId') as policy_id, - json_extract_path_text(Properties, 'ResourceArn') as resource_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'Policy') as policy, + json_extract_path_text(detail.Properties, 'PolicyId') as policy_id, + json_extract_path_text(detail.Properties, 'PolicyHash') as policy_hash + 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::SSM::ResourcePolicy' + AND detail.data__TypeName = 'AWS::SSM::ResourcePolicy' + AND listing.region = 'us-east-1' + resource_policies_list_only: + name: resource_policies_list_only + id: aws.ssm.resource_policies_list_only + x-cfn-schema-name: ResourcePolicy + x-cfn-type-name: AWS::SSM::ResourcePolicy + x-identifiers: + - PolicyId + - ResourceArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyId') as policy_id, + JSON_EXTRACT(Properties, '$.ResourceArn') as resource_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourcePolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyId') as policy_id, + json_extract_path_text(Properties, 'ResourceArn') as resource_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSM::ResourcePolicy' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ssmcontacts.yaml b/providers/src/aws/v00.00.00000/services/ssmcontacts.yaml index 39120850..110b4743 100644 --- a/providers/src/aws/v00.00.00000/services/ssmcontacts.yaml +++ b/providers/src/aws/v00.00.00000/services/ssmcontacts.yaml @@ -1103,10 +1103,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMContacts::Contact' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Alias') as alias, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Plan') as plan, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::SSMContacts::Contact' + AND detail.data__TypeName = 'AWS::SSMContacts::Contact' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1125,10 +1134,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMContacts::Contact' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Alias') as alias, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Plan') as plan, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::SSMContacts::Contact' + AND detail.data__TypeName = 'AWS::SSMContacts::Contact' + AND listing.region = 'us-east-1' + contacts_list_only: + name: contacts_list_only + id: aws.ssmcontacts.contacts_list_only + x-cfn-schema-name: Contact + x-cfn-type-name: AWS::SSMContacts::Contact + 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::SSMContacts::Contact' + 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::SSMContacts::Contact' + AND region = 'us-east-1' contact_channels: name: contact_channels id: aws.ssmcontacts.contact_channels @@ -1205,10 +1254,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMContacts::ContactChannel' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ContactId') as contact_id, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.ChannelType') as channel_type, + JSON_EXTRACT(detail.Properties, '$.DeferActivation') as defer_activation, + JSON_EXTRACT(detail.Properties, '$.ChannelAddress') as channel_address, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::SSMContacts::ContactChannel' + AND detail.data__TypeName = 'AWS::SSMContacts::ContactChannel' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1228,10 +1287,51 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMContacts::ContactChannel' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ContactId') as contact_id, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'ChannelType') as channel_type, + json_extract_path_text(detail.Properties, 'DeferActivation') as defer_activation, + json_extract_path_text(detail.Properties, 'ChannelAddress') as channel_address, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::SSMContacts::ContactChannel' + AND detail.data__TypeName = 'AWS::SSMContacts::ContactChannel' + AND listing.region = 'us-east-1' + contact_channels_list_only: + name: contact_channels_list_only + id: aws.ssmcontacts.contact_channels_list_only + x-cfn-schema-name: ContactChannel + x-cfn-type-name: AWS::SSMContacts::ContactChannel + 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::SSMContacts::ContactChannel' + 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::SSMContacts::ContactChannel' + AND region = 'us-east-1' plans: name: plans id: aws.ssmcontacts.plans @@ -1392,10 +1492,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMContacts::Rotation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ContactIds') as contact_ids, + JSON_EXTRACT(detail.Properties, '$.StartTime') as start_time, + JSON_EXTRACT(detail.Properties, '$.TimeZoneId') as time_zone_id, + JSON_EXTRACT(detail.Properties, '$.Recurrence') as recurrence, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::SSMContacts::Rotation' + AND detail.data__TypeName = 'AWS::SSMContacts::Rotation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1416,10 +1527,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMContacts::Rotation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ContactIds') as contact_ids, + json_extract_path_text(detail.Properties, 'StartTime') as start_time, + json_extract_path_text(detail.Properties, 'TimeZoneId') as time_zone_id, + json_extract_path_text(detail.Properties, 'Recurrence') as recurrence, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::SSMContacts::Rotation' + AND detail.data__TypeName = 'AWS::SSMContacts::Rotation' + AND listing.region = 'us-east-1' + rotations_list_only: + name: rotations_list_only + id: aws.ssmcontacts.rotations_list_only + x-cfn-schema-name: Rotation + x-cfn-type-name: AWS::SSMContacts::Rotation + 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::SSMContacts::Rotation' + 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::SSMContacts::Rotation' + AND region = 'us-east-1' + rotation_tags: + name: rotation_tags + id: aws.ssmcontacts.rotation_tags + x-cfn-schema-name: Rotation + x-cfn-type-name: AWS::SSMContacts::Rotation + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ContactIds') as contact_ids, + JSON_EXTRACT(detail.Properties, '$.StartTime') as start_time, + JSON_EXTRACT(detail.Properties, '$.TimeZoneId') as time_zone_id, + JSON_EXTRACT(detail.Properties, '$.Recurrence') as recurrence, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::SSMContacts::Rotation' + AND detail.data__TypeName = 'AWS::SSMContacts::Rotation' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'ContactIds') as contact_ids, + json_extract_path_text(detail.Properties, 'StartTime') as start_time, + json_extract_path_text(detail.Properties, 'TimeZoneId') as time_zone_id, + json_extract_path_text(detail.Properties, 'Recurrence') as recurrence, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::SSMContacts::Rotation' + AND detail.data__TypeName = 'AWS::SSMContacts::Rotation' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/ssmincidents.yaml b/providers/src/aws/v00.00.00000/services/ssmincidents.yaml index 0c06e21d..54458d5f 100644 --- a/providers/src/aws/v00.00.00000/services/ssmincidents.yaml +++ b/providers/src/aws/v00.00.00000/services/ssmincidents.yaml @@ -1029,10 +1029,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMIncidents::ReplicationSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Regions') as regions, + JSON_EXTRACT(detail.Properties, '$.DeletionProtected') as deletion_protected, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SSMIncidents::ReplicationSet' + AND detail.data__TypeName = 'AWS::SSMIncidents::ReplicationSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1050,10 +1058,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMIncidents::ReplicationSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Regions') as regions, + json_extract_path_text(detail.Properties, 'DeletionProtected') as deletion_protected, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SSMIncidents::ReplicationSet' + AND detail.data__TypeName = 'AWS::SSMIncidents::ReplicationSet' + AND listing.region = 'us-east-1' + replication_sets_list_only: + name: replication_sets_list_only + id: aws.ssmincidents.replication_sets_list_only + x-cfn-schema-name: ReplicationSet + x-cfn-type-name: AWS::SSMIncidents::ReplicationSet + 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::SSMIncidents::ReplicationSet' + 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::SSMIncidents::ReplicationSet' + AND region = 'us-east-1' + replication_set_tags: + name: replication_set_tags + id: aws.ssmincidents.replication_set_tags + x-cfn-schema-name: ReplicationSet + x-cfn-type-name: AWS::SSMIncidents::ReplicationSet + 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, '$.Regions') as regions, + JSON_EXTRACT(detail.Properties, '$.DeletionProtected') as deletion_protected + 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::SSMIncidents::ReplicationSet' + AND detail.data__TypeName = 'AWS::SSMIncidents::ReplicationSet' + 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, 'Regions') as regions, + json_extract_path_text(detail.Properties, 'DeletionProtected') as deletion_protected + 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::SSMIncidents::ReplicationSet' + AND detail.data__TypeName = 'AWS::SSMIncidents::ReplicationSet' + AND listing.region = 'us-east-1' response_plans: name: response_plans id: aws.ssmincidents.response_plans @@ -1133,10 +1229,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMIncidents::ResponsePlan' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.ChatChannel') as chat_channel, + JSON_EXTRACT(detail.Properties, '$.Engagements') as engagements, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.Integrations') as integrations, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.IncidentTemplate') as incident_template + 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::SSMIncidents::ResponsePlan' + AND detail.data__TypeName = 'AWS::SSMIncidents::ResponsePlan' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1159,10 +1268,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSMIncidents::ResponsePlan' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'ChatChannel') as chat_channel, + json_extract_path_text(detail.Properties, 'Engagements') as engagements, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'Integrations') as integrations, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'IncidentTemplate') as incident_template + 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::SSMIncidents::ResponsePlan' + AND detail.data__TypeName = 'AWS::SSMIncidents::ResponsePlan' + AND listing.region = 'us-east-1' + response_plans_list_only: + name: response_plans_list_only + id: aws.ssmincidents.response_plans_list_only + x-cfn-schema-name: ResponsePlan + x-cfn-type-name: AWS::SSMIncidents::ResponsePlan + 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::SSMIncidents::ResponsePlan' + 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::SSMIncidents::ResponsePlan' + AND region = 'us-east-1' + response_plan_tags: + name: response_plan_tags + id: aws.ssmincidents.response_plan_tags + x-cfn-schema-name: ResponsePlan + x-cfn-type-name: AWS::SSMIncidents::ResponsePlan + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.ChatChannel') as chat_channel, + JSON_EXTRACT(detail.Properties, '$.Engagements') as engagements, + JSON_EXTRACT(detail.Properties, '$.Actions') as actions, + JSON_EXTRACT(detail.Properties, '$.Integrations') as integrations, + JSON_EXTRACT(detail.Properties, '$.IncidentTemplate') as incident_template + 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::SSMIncidents::ResponsePlan' + AND detail.data__TypeName = 'AWS::SSMIncidents::ResponsePlan' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'ChatChannel') as chat_channel, + json_extract_path_text(detail.Properties, 'Engagements') as engagements, + json_extract_path_text(detail.Properties, 'Actions') as actions, + json_extract_path_text(detail.Properties, 'Integrations') as integrations, + json_extract_path_text(detail.Properties, 'IncidentTemplate') as incident_template + 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::SSMIncidents::ResponsePlan' + AND detail.data__TypeName = 'AWS::SSMIncidents::ResponsePlan' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/sso.yaml b/providers/src/aws/v00.00.00000/services/sso.yaml index 9e7259fd..89d7aa0e 100644 --- a/providers/src/aws/v00.00.00000/services/sso.yaml +++ b/providers/src/aws/v00.00.00000/services/sso.yaml @@ -1405,10 +1405,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationProviderArn') as application_provider_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.PortalOptions') as portal_options, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SSO::Application' + AND detail.data__TypeName = 'AWS::SSO::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1430,10 +1442,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationArn') as application_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationProviderArn') as application_provider_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'PortalOptions') as portal_options, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SSO::Application' + AND detail.data__TypeName = 'AWS::SSO::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.sso.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::SSO::Application + x-identifiers: + - ApplicationArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Application' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationArn') as application_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.sso.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::SSO::Application + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.ApplicationProviderArn') as application_provider_arn, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.PortalOptions') as portal_options + 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::SSO::Application' + AND detail.data__TypeName = 'AWS::SSO::Application' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'ApplicationProviderArn') as application_provider_arn, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'PortalOptions') as portal_options + 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::SSO::Application' + AND detail.data__TypeName = 'AWS::SSO::Application' + AND listing.region = 'us-east-1' application_assignments: name: application_assignments id: aws.sso.application_assignments @@ -1496,12 +1608,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn, - JSON_EXTRACT(Properties, '$.PrincipalType') as principal_type, - JSON_EXTRACT(Properties, '$.PrincipalId') as principal_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::ApplicationAssignment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(detail.Properties, '$.PrincipalType') as principal_type, + JSON_EXTRACT(detail.Properties, '$.PrincipalId') as principal_id + 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::SSO::ApplicationAssignment' + AND detail.data__TypeName = 'AWS::SSO::ApplicationAssignment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1518,12 +1635,54 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ApplicationArn') as application_arn, - json_extract_path_text(Properties, 'PrincipalType') as principal_type, - json_extract_path_text(Properties, 'PrincipalId') as principal_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::ApplicationAssignment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(detail.Properties, 'PrincipalType') as principal_type, + json_extract_path_text(detail.Properties, 'PrincipalId') as principal_id + 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::SSO::ApplicationAssignment' + AND detail.data__TypeName = 'AWS::SSO::ApplicationAssignment' + AND listing.region = 'us-east-1' + application_assignments_list_only: + name: application_assignments_list_only + id: aws.sso.application_assignments_list_only + x-cfn-schema-name: ApplicationAssignment + x-cfn-type-name: AWS::SSO::ApplicationAssignment + x-identifiers: + - ApplicationArn + - PrincipalType + - PrincipalId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ApplicationArn') as application_arn, + JSON_EXTRACT(Properties, '$.PrincipalType') as principal_type, + JSON_EXTRACT(Properties, '$.PrincipalId') as principal_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::ApplicationAssignment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ApplicationArn') as application_arn, + json_extract_path_text(Properties, 'PrincipalType') as principal_type, + json_extract_path_text(Properties, 'PrincipalId') as principal_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::ApplicationAssignment' + AND region = 'us-east-1' assignments: name: assignments id: aws.sso.assignments @@ -1592,15 +1751,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, - JSON_EXTRACT(Properties, '$.TargetId') as target_id, - JSON_EXTRACT(Properties, '$.TargetType') as target_type, - JSON_EXTRACT(Properties, '$.PermissionSetArn') as permission_set_arn, - JSON_EXTRACT(Properties, '$.PrincipalType') as principal_type, - JSON_EXTRACT(Properties, '$.PrincipalId') as principal_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Assignment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.TargetId') as target_id, + JSON_EXTRACT(detail.Properties, '$.TargetType') as target_type, + JSON_EXTRACT(detail.Properties, '$.PermissionSetArn') as permission_set_arn, + JSON_EXTRACT(detail.Properties, '$.PrincipalType') as principal_type, + JSON_EXTRACT(detail.Properties, '$.PrincipalId') as principal_id + 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::SSO::Assignment' + AND detail.data__TypeName = 'AWS::SSO::Assignment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1620,15 +1784,66 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceArn') as instance_arn, - json_extract_path_text(Properties, 'TargetId') as target_id, - json_extract_path_text(Properties, 'TargetType') as target_type, - json_extract_path_text(Properties, 'PermissionSetArn') as permission_set_arn, - json_extract_path_text(Properties, 'PrincipalType') as principal_type, - json_extract_path_text(Properties, 'PrincipalId') as principal_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Assignment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'TargetId') as target_id, + json_extract_path_text(detail.Properties, 'TargetType') as target_type, + json_extract_path_text(detail.Properties, 'PermissionSetArn') as permission_set_arn, + json_extract_path_text(detail.Properties, 'PrincipalType') as principal_type, + json_extract_path_text(detail.Properties, 'PrincipalId') as principal_id + 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::SSO::Assignment' + AND detail.data__TypeName = 'AWS::SSO::Assignment' + AND listing.region = 'us-east-1' + assignments_list_only: + name: assignments_list_only + id: aws.sso.assignments_list_only + x-cfn-schema-name: Assignment + x-cfn-type-name: AWS::SSO::Assignment + x-identifiers: + - InstanceArn + - TargetId + - TargetType + - PermissionSetArn + - PrincipalType + - PrincipalId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(Properties, '$.TargetId') as target_id, + JSON_EXTRACT(Properties, '$.TargetType') as target_type, + JSON_EXTRACT(Properties, '$.PermissionSetArn') as permission_set_arn, + JSON_EXTRACT(Properties, '$.PrincipalType') as principal_type, + JSON_EXTRACT(Properties, '$.PrincipalId') as principal_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Assignment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(Properties, 'TargetId') as target_id, + json_extract_path_text(Properties, 'TargetType') as target_type, + json_extract_path_text(Properties, 'PermissionSetArn') as permission_set_arn, + json_extract_path_text(Properties, 'PrincipalType') as principal_type, + json_extract_path_text(Properties, 'PrincipalId') as principal_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Assignment' + AND region = 'us-east-1' instances: name: instances id: aws.sso.instances @@ -1705,10 +1920,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Instance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.IdentityStoreId') as identity_store_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SSO::Instance' + AND detail.data__TypeName = 'AWS::SSO::Instance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1728,10 +1953,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceArn') as instance_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Instance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'IdentityStoreId') as identity_store_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SSO::Instance' + AND detail.data__TypeName = 'AWS::SSO::Instance' + AND listing.region = 'us-east-1' + instances_list_only: + name: instances_list_only + id: aws.sso.instances_list_only + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::SSO::Instance + x-identifiers: + - InstanceArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Instance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceArn') as instance_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::Instance' + AND region = 'us-east-1' + instance_tags: + name: instance_tags + id: aws.sso.instance_tags + x-cfn-schema-name: Instance + x-cfn-type-name: AWS::SSO::Instance + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.OwnerAccountId') as owner_account_id, + JSON_EXTRACT(detail.Properties, '$.IdentityStoreId') as identity_store_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::SSO::Instance' + AND detail.data__TypeName = 'AWS::SSO::Instance' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'OwnerAccountId') as owner_account_id, + json_extract_path_text(detail.Properties, 'IdentityStoreId') as identity_store_id, + json_extract_path_text(detail.Properties, 'Status') as status + 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::SSO::Instance' + AND detail.data__TypeName = 'AWS::SSO::Instance' + AND listing.region = 'us-east-1' instance_access_control_attribute_configurations: name: instance_access_control_attribute_configurations id: aws.sso.instance_access_control_attribute_configurations @@ -1805,10 +2124,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::InstanceAccessControlAttributeConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.InstanceAccessControlAttributeConfiguration') as instance_access_control_attribute_configuration, + JSON_EXTRACT(detail.Properties, '$.AccessControlAttributes') as access_control_attributes + 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::SSO::InstanceAccessControlAttributeConfiguration' + AND detail.data__TypeName = 'AWS::SSO::InstanceAccessControlAttributeConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1825,10 +2151,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceArn') as instance_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::InstanceAccessControlAttributeConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'InstanceAccessControlAttributeConfiguration') as instance_access_control_attribute_configuration, + json_extract_path_text(detail.Properties, 'AccessControlAttributes') as access_control_attributes + 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::SSO::InstanceAccessControlAttributeConfiguration' + AND detail.data__TypeName = 'AWS::SSO::InstanceAccessControlAttributeConfiguration' + AND listing.region = 'us-east-1' + instance_access_control_attribute_configurations_list_only: + name: instance_access_control_attribute_configurations_list_only + id: aws.sso.instance_access_control_attribute_configurations_list_only + x-cfn-schema-name: InstanceAccessControlAttributeConfiguration + x-cfn-type-name: AWS::SSO::InstanceAccessControlAttributeConfiguration + x-identifiers: + - InstanceArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::InstanceAccessControlAttributeConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceArn') as instance_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::InstanceAccessControlAttributeConfiguration' + AND region = 'us-east-1' permission_sets: name: permission_sets id: aws.sso.permission_sets @@ -1911,11 +2275,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, - JSON_EXTRACT(Properties, '$.PermissionSetArn') as permission_set_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::PermissionSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PermissionSetArn') as permission_set_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.SessionDuration') as session_duration, + JSON_EXTRACT(detail.Properties, '$.RelayStateType') as relay_state_type, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicies') as managed_policies, + JSON_EXTRACT(detail.Properties, '$.InlinePolicy') as inline_policy, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedPolicyReferences') as customer_managed_policy_references, + JSON_EXTRACT(detail.Properties, '$.PermissionsBoundary') as permissions_boundary + 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::SSO::PermissionSet' + AND detail.data__TypeName = 'AWS::SSO::PermissionSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1940,11 +2318,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'InstanceArn') as instance_arn, - json_extract_path_text(Properties, 'PermissionSetArn') as permission_set_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::PermissionSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'PermissionSetArn') as permission_set_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'SessionDuration') as session_duration, + json_extract_path_text(detail.Properties, 'RelayStateType') as relay_state_type, + json_extract_path_text(detail.Properties, 'ManagedPolicies') as managed_policies, + json_extract_path_text(detail.Properties, 'InlinePolicy') as inline_policy, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CustomerManagedPolicyReferences') as customer_managed_policy_references, + json_extract_path_text(detail.Properties, 'PermissionsBoundary') as permissions_boundary + 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::SSO::PermissionSet' + AND detail.data__TypeName = 'AWS::SSO::PermissionSet' + AND listing.region = 'us-east-1' + permission_sets_list_only: + name: permission_sets_list_only + id: aws.sso.permission_sets_list_only + x-cfn-schema-name: PermissionSet + x-cfn-type-name: AWS::SSO::PermissionSet + x-identifiers: + - InstanceArn + - PermissionSetArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(Properties, '$.PermissionSetArn') as permission_set_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::PermissionSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(Properties, 'PermissionSetArn') as permission_set_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SSO::PermissionSet' + AND region = 'us-east-1' + permission_set_tags: + name: permission_set_tags + id: aws.sso.permission_set_tags + x-cfn-schema-name: PermissionSet + x-cfn-type-name: AWS::SSO::PermissionSet + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.PermissionSetArn') as permission_set_arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.InstanceArn') as instance_arn, + JSON_EXTRACT(detail.Properties, '$.SessionDuration') as session_duration, + JSON_EXTRACT(detail.Properties, '$.RelayStateType') as relay_state_type, + JSON_EXTRACT(detail.Properties, '$.ManagedPolicies') as managed_policies, + JSON_EXTRACT(detail.Properties, '$.InlinePolicy') as inline_policy, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedPolicyReferences') as customer_managed_policy_references, + JSON_EXTRACT(detail.Properties, '$.PermissionsBoundary') as permissions_boundary + 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::SSO::PermissionSet' + AND detail.data__TypeName = 'AWS::SSO::PermissionSet' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'PermissionSetArn') as permission_set_arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'InstanceArn') as instance_arn, + json_extract_path_text(detail.Properties, 'SessionDuration') as session_duration, + json_extract_path_text(detail.Properties, 'RelayStateType') as relay_state_type, + json_extract_path_text(detail.Properties, 'ManagedPolicies') as managed_policies, + json_extract_path_text(detail.Properties, 'InlinePolicy') as inline_policy, + json_extract_path_text(detail.Properties, 'CustomerManagedPolicyReferences') as customer_managed_policy_references, + json_extract_path_text(detail.Properties, 'PermissionsBoundary') as permissions_boundary + 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::SSO::PermissionSet' + AND detail.data__TypeName = 'AWS::SSO::PermissionSet' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/stepfunctions.yaml b/providers/src/aws/v00.00.00000/services/stepfunctions.yaml index e338fdfc..266f79a6 100644 --- a/providers/src/aws/v00.00.00000/services/stepfunctions.yaml +++ b/providers/src/aws/v00.00.00000/services/stepfunctions.yaml @@ -1022,10 +1022,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::Activity' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::StepFunctions::Activity' + AND detail.data__TypeName = 'AWS::StepFunctions::Activity' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1042,10 +1049,95 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::Activity' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::StepFunctions::Activity' + AND detail.data__TypeName = 'AWS::StepFunctions::Activity' + AND listing.region = 'us-east-1' + activities_list_only: + name: activities_list_only + id: aws.stepfunctions.activities_list_only + x-cfn-schema-name: Activity + x-cfn-type-name: AWS::StepFunctions::Activity + 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::StepFunctions::Activity' + 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::StepFunctions::Activity' + AND region = 'us-east-1' + activity_tags: + name: activity_tags + id: aws.stepfunctions.activity_tags + x-cfn-schema-name: Activity + x-cfn-type-name: AWS::StepFunctions::Activity + 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, '$.Name') as name + 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::StepFunctions::Activity' + AND detail.data__TypeName = 'AWS::StepFunctions::Activity' + 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, 'Name') as name + 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::StepFunctions::Activity' + AND detail.data__TypeName = 'AWS::StepFunctions::Activity' + AND listing.region = 'us-east-1' state_machines: name: state_machines id: aws.stepfunctions.state_machines @@ -1129,10 +1221,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::StateMachine' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.DefinitionSubstitutions') as definition_substitutions, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StateMachineType') as state_machine_type, + JSON_EXTRACT(detail.Properties, '$.TracingConfiguration') as tracing_configuration, + JSON_EXTRACT(detail.Properties, '$.DefinitionString') as definition_string, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.StateMachineRevisionId') as state_machine_revision_id, + JSON_EXTRACT(detail.Properties, '$.DefinitionS3Location') as definition_s3_location, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StateMachineName') as state_machine_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::StepFunctions::StateMachine' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachine' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1159,10 +1268,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::StateMachine' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'DefinitionSubstitutions') as definition_substitutions, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StateMachineType') as state_machine_type, + json_extract_path_text(detail.Properties, 'TracingConfiguration') as tracing_configuration, + json_extract_path_text(detail.Properties, 'DefinitionString') as definition_string, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'StateMachineRevisionId') as state_machine_revision_id, + json_extract_path_text(detail.Properties, 'DefinitionS3Location') as definition_s3_location, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StateMachineName') as state_machine_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::StepFunctions::StateMachine' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachine' + AND listing.region = 'us-east-1' + state_machines_list_only: + name: state_machines_list_only + id: aws.stepfunctions.state_machines_list_only + x-cfn-schema-name: StateMachine + x-cfn-type-name: AWS::StepFunctions::StateMachine + 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::StepFunctions::StateMachine' + 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::StepFunctions::StateMachine' + AND region = 'us-east-1' + state_machine_tags: + name: state_machine_tags + id: aws.stepfunctions.state_machine_tags + x-cfn-schema-name: StateMachine + x-cfn-type-name: AWS::StepFunctions::StateMachine + 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, '$.DefinitionSubstitutions') as definition_substitutions, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.RoleArn') as role_arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.StateMachineType') as state_machine_type, + JSON_EXTRACT(detail.Properties, '$.TracingConfiguration') as tracing_configuration, + JSON_EXTRACT(detail.Properties, '$.DefinitionString') as definition_string, + JSON_EXTRACT(detail.Properties, '$.LoggingConfiguration') as logging_configuration, + JSON_EXTRACT(detail.Properties, '$.StateMachineRevisionId') as state_machine_revision_id, + JSON_EXTRACT(detail.Properties, '$.DefinitionS3Location') as definition_s3_location, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StateMachineName') as state_machine_name + 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::StepFunctions::StateMachine' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachine' + 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, 'DefinitionSubstitutions') as definition_substitutions, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'RoleArn') as role_arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'StateMachineType') as state_machine_type, + json_extract_path_text(detail.Properties, 'TracingConfiguration') as tracing_configuration, + json_extract_path_text(detail.Properties, 'DefinitionString') as definition_string, + json_extract_path_text(detail.Properties, 'LoggingConfiguration') as logging_configuration, + json_extract_path_text(detail.Properties, 'StateMachineRevisionId') as state_machine_revision_id, + json_extract_path_text(detail.Properties, 'DefinitionS3Location') as definition_s3_location, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StateMachineName') as state_machine_name + 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::StepFunctions::StateMachine' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachine' + AND listing.region = 'us-east-1' state_machine_aliases: name: state_machine_aliases id: aws.stepfunctions.state_machine_aliases @@ -1238,10 +1462,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::StateMachineAlias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.RoutingConfiguration') as routing_configuration, + JSON_EXTRACT(detail.Properties, '$.DeploymentPreference') as deployment_preference + 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::StepFunctions::StateMachineAlias' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachineAlias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1260,10 +1493,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::StateMachineAlias' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'RoutingConfiguration') as routing_configuration, + json_extract_path_text(detail.Properties, 'DeploymentPreference') as deployment_preference + 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::StepFunctions::StateMachineAlias' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachineAlias' + AND listing.region = 'us-east-1' + state_machine_aliases_list_only: + name: state_machine_aliases_list_only + id: aws.stepfunctions.state_machine_aliases_list_only + x-cfn-schema-name: StateMachineAlias + x-cfn-type-name: AWS::StepFunctions::StateMachineAlias + 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::StepFunctions::StateMachineAlias' + 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::StepFunctions::StateMachineAlias' + AND region = 'us-east-1' state_machine_versions: name: state_machine_versions id: aws.stepfunctions.state_machine_versions @@ -1325,10 +1598,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::StateMachineVersion' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.StateMachineArn') as state_machine_arn, + JSON_EXTRACT(detail.Properties, '$.StateMachineRevisionId') as state_machine_revision_id, + JSON_EXTRACT(detail.Properties, '$.Description') as description + 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::StepFunctions::StateMachineVersion' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachineVersion' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1346,10 +1627,49 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::StepFunctions::StateMachineVersion' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'StateMachineArn') as state_machine_arn, + json_extract_path_text(detail.Properties, 'StateMachineRevisionId') as state_machine_revision_id, + json_extract_path_text(detail.Properties, 'Description') as description + 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::StepFunctions::StateMachineVersion' + AND detail.data__TypeName = 'AWS::StepFunctions::StateMachineVersion' + AND listing.region = 'us-east-1' + state_machine_versions_list_only: + name: state_machine_versions_list_only + id: aws.stepfunctions.state_machine_versions_list_only + x-cfn-schema-name: StateMachineVersion + x-cfn-type-name: AWS::StepFunctions::StateMachineVersion + 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::StepFunctions::StateMachineVersion' + 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::StepFunctions::StateMachineVersion' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/supportapp.yaml b/providers/src/aws/v00.00.00000/services/supportapp.yaml index 52deefd4..f1b33f9a 100644 --- a/providers/src/aws/v00.00.00000/services/supportapp.yaml +++ b/providers/src/aws/v00.00.00000/services/supportapp.yaml @@ -740,10 +740,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AccountAliasResourceId') as account_alias_resource_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::AccountAlias' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccountAlias') as account_alias, + JSON_EXTRACT(detail.Properties, '$.AccountAliasResourceId') as account_alias_resource_id + 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::SupportApp::AccountAlias' + AND detail.data__TypeName = 'AWS::SupportApp::AccountAlias' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -759,10 +765,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AccountAliasResourceId') as account_alias_resource_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::AccountAlias' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccountAlias') as account_alias, + json_extract_path_text(detail.Properties, 'AccountAliasResourceId') as account_alias_resource_id + 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::SupportApp::AccountAlias' + AND detail.data__TypeName = 'AWS::SupportApp::AccountAlias' + AND listing.region = 'us-east-1' + account_aliases_list_only: + name: account_aliases_list_only + id: aws.supportapp.account_aliases_list_only + x-cfn-schema-name: AccountAlias + x-cfn-type-name: AWS::SupportApp::AccountAlias + x-identifiers: + - AccountAliasResourceId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AccountAliasResourceId') as account_alias_resource_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::AccountAlias' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AccountAliasResourceId') as account_alias_resource_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::AccountAlias' + AND region = 'us-east-1' slack_channel_configurations: name: slack_channel_configurations id: aws.supportapp.slack_channel_configurations @@ -842,11 +885,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TeamId') as team_id, - JSON_EXTRACT(Properties, '$.ChannelId') as channel_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackChannelConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TeamId') as team_id, + JSON_EXTRACT(detail.Properties, '$.ChannelId') as channel_id, + JSON_EXTRACT(detail.Properties, '$.ChannelName') as channel_name, + JSON_EXTRACT(detail.Properties, '$.NotifyOnCreateOrReopenCase') as notify_on_create_or_reopen_case, + JSON_EXTRACT(detail.Properties, '$.NotifyOnAddCorrespondenceToCase') as notify_on_add_correspondence_to_case, + JSON_EXTRACT(detail.Properties, '$.NotifyOnResolveCase') as notify_on_resolve_case, + JSON_EXTRACT(detail.Properties, '$.NotifyOnCaseSeverity') as notify_on_case_severity, + JSON_EXTRACT(detail.Properties, '$.ChannelRoleArn') as channel_role_arn + 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::SupportApp::SlackChannelConfiguration' + AND detail.data__TypeName = 'AWS::SupportApp::SlackChannelConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -868,11 +922,56 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TeamId') as team_id, - json_extract_path_text(Properties, 'ChannelId') as channel_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackChannelConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TeamId') as team_id, + json_extract_path_text(detail.Properties, 'ChannelId') as channel_id, + json_extract_path_text(detail.Properties, 'ChannelName') as channel_name, + json_extract_path_text(detail.Properties, 'NotifyOnCreateOrReopenCase') as notify_on_create_or_reopen_case, + json_extract_path_text(detail.Properties, 'NotifyOnAddCorrespondenceToCase') as notify_on_add_correspondence_to_case, + json_extract_path_text(detail.Properties, 'NotifyOnResolveCase') as notify_on_resolve_case, + json_extract_path_text(detail.Properties, 'NotifyOnCaseSeverity') as notify_on_case_severity, + json_extract_path_text(detail.Properties, 'ChannelRoleArn') as channel_role_arn + 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::SupportApp::SlackChannelConfiguration' + AND detail.data__TypeName = 'AWS::SupportApp::SlackChannelConfiguration' + AND listing.region = 'us-east-1' + slack_channel_configurations_list_only: + name: slack_channel_configurations_list_only + id: aws.supportapp.slack_channel_configurations_list_only + x-cfn-schema-name: SlackChannelConfiguration + x-cfn-type-name: AWS::SupportApp::SlackChannelConfiguration + x-identifiers: + - TeamId + - ChannelId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TeamId') as team_id, + JSON_EXTRACT(Properties, '$.ChannelId') as channel_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackChannelConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TeamId') as team_id, + json_extract_path_text(Properties, 'ChannelId') as channel_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackChannelConfiguration' + AND region = 'us-east-1' slack_workspace_configurations: name: slack_workspace_configurations id: aws.supportapp.slack_workspace_configurations @@ -945,10 +1044,16 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TeamId') as team_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackWorkspaceConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.TeamId') as team_id, + JSON_EXTRACT(detail.Properties, '$.VersionId') as version_id + 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::SupportApp::SlackWorkspaceConfiguration' + AND detail.data__TypeName = 'AWS::SupportApp::SlackWorkspaceConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -964,10 +1069,47 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TeamId') as team_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackWorkspaceConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'TeamId') as team_id, + json_extract_path_text(detail.Properties, 'VersionId') as version_id + 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::SupportApp::SlackWorkspaceConfiguration' + AND detail.data__TypeName = 'AWS::SupportApp::SlackWorkspaceConfiguration' + AND listing.region = 'us-east-1' + slack_workspace_configurations_list_only: + name: slack_workspace_configurations_list_only + id: aws.supportapp.slack_workspace_configurations_list_only + x-cfn-schema-name: SlackWorkspaceConfiguration + x-cfn-type-name: AWS::SupportApp::SlackWorkspaceConfiguration + x-identifiers: + - TeamId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TeamId') as team_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackWorkspaceConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TeamId') as team_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SupportApp::SlackWorkspaceConfiguration' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/synthetics.yaml b/providers/src/aws/v00.00.00000/services/synthetics.yaml index a6c373ed..84001bbb 100644 --- a/providers/src/aws/v00.00.00000/services/synthetics.yaml +++ b/providers/src/aws/v00.00.00000/services/synthetics.yaml @@ -937,10 +937,31 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Canary' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Code') as code, + JSON_EXTRACT(detail.Properties, '$.ArtifactS3Location') as artifact_s3_location, + JSON_EXTRACT(detail.Properties, '$.ArtifactConfig') as artifact_config, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.RuntimeVersion') as runtime_version, + JSON_EXTRACT(detail.Properties, '$.SuccessRetentionPeriod') as success_retention_period, + JSON_EXTRACT(detail.Properties, '$.FailureRetentionPeriod') as failure_retention_period, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VPCConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.RunConfig') as run_config, + JSON_EXTRACT(detail.Properties, '$.StartCanaryAfterCreation') as start_canary_after_creation, + JSON_EXTRACT(detail.Properties, '$.VisualReference') as visual_reference, + JSON_EXTRACT(detail.Properties, '$.DeleteLambdaResourcesOnCanaryDeletion') as delete_lambda_resources_on_canary_deletion + 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::Synthetics::Canary' + AND detail.data__TypeName = 'AWS::Synthetics::Canary' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -971,10 +992,137 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Canary' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Code') as code, + json_extract_path_text(detail.Properties, 'ArtifactS3Location') as artifact_s3_location, + json_extract_path_text(detail.Properties, 'ArtifactConfig') as artifact_config, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'RuntimeVersion') as runtime_version, + json_extract_path_text(detail.Properties, 'SuccessRetentionPeriod') as success_retention_period, + json_extract_path_text(detail.Properties, 'FailureRetentionPeriod') as failure_retention_period, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VPCConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'RunConfig') as run_config, + json_extract_path_text(detail.Properties, 'StartCanaryAfterCreation') as start_canary_after_creation, + json_extract_path_text(detail.Properties, 'VisualReference') as visual_reference, + json_extract_path_text(detail.Properties, 'DeleteLambdaResourcesOnCanaryDeletion') as delete_lambda_resources_on_canary_deletion + 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::Synthetics::Canary' + AND detail.data__TypeName = 'AWS::Synthetics::Canary' + AND listing.region = 'us-east-1' + canaries_list_only: + name: canaries_list_only + id: aws.synthetics.canaries_list_only + x-cfn-schema-name: Canary + x-cfn-type-name: AWS::Synthetics::Canary + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Canary' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Canary' + AND region = 'us-east-1' + canary_tags: + name: canary_tags + id: aws.synthetics.canary_tags + x-cfn-schema-name: Canary + x-cfn-type-name: AWS::Synthetics::Canary + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.State') as state, + JSON_EXTRACT(detail.Properties, '$.Code') as code, + JSON_EXTRACT(detail.Properties, '$.ArtifactS3Location') as artifact_s3_location, + JSON_EXTRACT(detail.Properties, '$.ArtifactConfig') as artifact_config, + JSON_EXTRACT(detail.Properties, '$.Schedule') as schedule, + JSON_EXTRACT(detail.Properties, '$.ExecutionRoleArn') as execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.RuntimeVersion') as runtime_version, + JSON_EXTRACT(detail.Properties, '$.SuccessRetentionPeriod') as success_retention_period, + JSON_EXTRACT(detail.Properties, '$.FailureRetentionPeriod') as failure_retention_period, + JSON_EXTRACT(detail.Properties, '$.VPCConfig') as vpc_config, + JSON_EXTRACT(detail.Properties, '$.RunConfig') as run_config, + JSON_EXTRACT(detail.Properties, '$.StartCanaryAfterCreation') as start_canary_after_creation, + JSON_EXTRACT(detail.Properties, '$.VisualReference') as visual_reference, + JSON_EXTRACT(detail.Properties, '$.DeleteLambdaResourcesOnCanaryDeletion') as delete_lambda_resources_on_canary_deletion + 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::Synthetics::Canary' + AND detail.data__TypeName = 'AWS::Synthetics::Canary' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'State') as state, + json_extract_path_text(detail.Properties, 'Code') as code, + json_extract_path_text(detail.Properties, 'ArtifactS3Location') as artifact_s3_location, + json_extract_path_text(detail.Properties, 'ArtifactConfig') as artifact_config, + json_extract_path_text(detail.Properties, 'Schedule') as schedule, + json_extract_path_text(detail.Properties, 'ExecutionRoleArn') as execution_role_arn, + json_extract_path_text(detail.Properties, 'RuntimeVersion') as runtime_version, + json_extract_path_text(detail.Properties, 'SuccessRetentionPeriod') as success_retention_period, + json_extract_path_text(detail.Properties, 'FailureRetentionPeriod') as failure_retention_period, + json_extract_path_text(detail.Properties, 'VPCConfig') as vpc_config, + json_extract_path_text(detail.Properties, 'RunConfig') as run_config, + json_extract_path_text(detail.Properties, 'StartCanaryAfterCreation') as start_canary_after_creation, + json_extract_path_text(detail.Properties, 'VisualReference') as visual_reference, + json_extract_path_text(detail.Properties, 'DeleteLambdaResourcesOnCanaryDeletion') as delete_lambda_resources_on_canary_deletion + 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::Synthetics::Canary' + AND detail.data__TypeName = 'AWS::Synthetics::Canary' + AND listing.region = 'us-east-1' groups: name: groups id: aws.synthetics.groups @@ -1049,10 +1197,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Group' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.ResourceArns') as resource_arns + 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::Synthetics::Group' + AND detail.data__TypeName = 'AWS::Synthetics::Group' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1070,10 +1226,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Group' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'ResourceArns') as resource_arns + 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::Synthetics::Group' + AND detail.data__TypeName = 'AWS::Synthetics::Group' + AND listing.region = 'us-east-1' + groups_list_only: + name: groups_list_only + id: aws.synthetics.groups_list_only + x-cfn-schema-name: Group + x-cfn-type-name: AWS::Synthetics::Group + x-identifiers: + - Name + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Group' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Synthetics::Group' + AND region = 'us-east-1' + group_tags: + name: group_tags + id: aws.synthetics.group_tags + x-cfn-schema-name: Group + x-cfn-type-name: AWS::Synthetics::Group + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ResourceArns') as resource_arns + 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::Synthetics::Group' + AND detail.data__TypeName = 'AWS::Synthetics::Group' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ResourceArns') as resource_arns + 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::Synthetics::Group' + AND detail.data__TypeName = 'AWS::Synthetics::Group' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/systemsmanagersap.yaml b/providers/src/aws/v00.00.00000/services/systemsmanagersap.yaml index 62868981..99cfdb9f 100644 --- a/providers/src/aws/v00.00.00000/services/systemsmanagersap.yaml +++ b/providers/src/aws/v00.00.00000/services/systemsmanagersap.yaml @@ -644,10 +644,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SystemsManagerSAP::Application' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.ApplicationType') as application_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Credentials') as credentials, + JSON_EXTRACT(detail.Properties, '$.Instances') as instances, + JSON_EXTRACT(detail.Properties, '$.SapInstanceNumber') as sap_instance_number, + JSON_EXTRACT(detail.Properties, '$.Sid') as sid, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::SystemsManagerSAP::Application' + AND detail.data__TypeName = 'AWS::SystemsManagerSAP::Application' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -669,10 +681,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::SystemsManagerSAP::Application' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'ApplicationType') as application_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Credentials') as credentials, + json_extract_path_text(detail.Properties, 'Instances') as instances, + json_extract_path_text(detail.Properties, 'SapInstanceNumber') as sap_instance_number, + json_extract_path_text(detail.Properties, 'Sid') as sid, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::SystemsManagerSAP::Application' + AND detail.data__TypeName = 'AWS::SystemsManagerSAP::Application' + AND listing.region = 'us-east-1' + applications_list_only: + name: applications_list_only + id: aws.systemsmanagersap.applications_list_only + x-cfn-schema-name: Application + x-cfn-type-name: AWS::SystemsManagerSAP::Application + 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::SystemsManagerSAP::Application' + 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::SystemsManagerSAP::Application' + AND region = 'us-east-1' + application_tags: + name: application_tags + id: aws.systemsmanagersap.application_tags + x-cfn-schema-name: Application + x-cfn-type-name: AWS::SystemsManagerSAP::Application + 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, '$.ApplicationId') as application_id, + JSON_EXTRACT(detail.Properties, '$.ApplicationType') as application_type, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Credentials') as credentials, + JSON_EXTRACT(detail.Properties, '$.Instances') as instances, + JSON_EXTRACT(detail.Properties, '$.SapInstanceNumber') as sap_instance_number, + JSON_EXTRACT(detail.Properties, '$.Sid') as sid + 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::SystemsManagerSAP::Application' + AND detail.data__TypeName = 'AWS::SystemsManagerSAP::Application' + 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, 'ApplicationId') as application_id, + json_extract_path_text(detail.Properties, 'ApplicationType') as application_type, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Credentials') as credentials, + json_extract_path_text(detail.Properties, 'Instances') as instances, + json_extract_path_text(detail.Properties, 'SapInstanceNumber') as sap_instance_number, + json_extract_path_text(detail.Properties, 'Sid') as sid + 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::SystemsManagerSAP::Application' + AND detail.data__TypeName = 'AWS::SystemsManagerSAP::Application' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/timestream.yaml b/providers/src/aws/v00.00.00000/services/timestream.yaml index f49d00cd..637f8bfa 100644 --- a/providers/src/aws/v00.00.00000/services/timestream.yaml +++ b/providers/src/aws/v00.00.00000/services/timestream.yaml @@ -1679,10 +1679,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatabaseName') as database_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Database' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Timestream::Database' + AND detail.data__TypeName = 'AWS::Timestream::Database' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1700,10 +1708,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatabaseName') as database_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Database' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DatabaseName') as database_name, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Timestream::Database' + AND detail.data__TypeName = 'AWS::Timestream::Database' + AND listing.region = 'us-east-1' + databases_list_only: + name: databases_list_only + id: aws.timestream.databases_list_only + x-cfn-schema-name: Database + x-cfn-type-name: AWS::Timestream::Database + x-identifiers: + - DatabaseName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatabaseName') as database_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Database' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatabaseName') as database_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Database' + AND region = 'us-east-1' + database_tags: + name: database_tags + id: aws.timestream.database_tags + x-cfn-schema-name: Database + x-cfn-type-name: AWS::Timestream::Database + 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, '$.DatabaseName') as database_name, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id + 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::Timestream::Database' + AND detail.data__TypeName = 'AWS::Timestream::Database' + 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, 'DatabaseName') as database_name, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id + 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::Timestream::Database' + AND detail.data__TypeName = 'AWS::Timestream::Database' + AND listing.region = 'us-east-1' influxdb_instances: name: influxdb_instances id: aws.timestream.influxdb_instances @@ -1796,10 +1892,36 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::InfluxDBInstance' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Username') as username, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.Organization') as organization, + JSON_EXTRACT(detail.Properties, '$.Bucket') as bucket, + JSON_EXTRACT(detail.Properties, '$.DbInstanceType') as db_instance_type, + JSON_EXTRACT(detail.Properties, '$.VpcSubnetIds') as vpc_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.DbStorageType') as db_storage_type, + JSON_EXTRACT(detail.Properties, '$.AllocatedStorage') as allocated_storage, + JSON_EXTRACT(detail.Properties, '$.DbParameterGroupIdentifier') as db_parameter_group_identifier, + JSON_EXTRACT(detail.Properties, '$.LogDeliveryConfiguration') as log_delivery_configuration, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.SecondaryAvailabilityZone') as secondary_availability_zone, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.InfluxAuthParametersSecretArn') as influx_auth_parameters_secret_arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DeploymentType') as deployment_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Timestream::InfluxDBInstance' + AND detail.data__TypeName = 'AWS::Timestream::InfluxDBInstance' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1835,10 +1957,152 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::InfluxDBInstance' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Username') as username, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'Organization') as organization, + json_extract_path_text(detail.Properties, 'Bucket') as bucket, + json_extract_path_text(detail.Properties, 'DbInstanceType') as db_instance_type, + json_extract_path_text(detail.Properties, 'VpcSubnetIds') as vpc_subnet_ids, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'DbStorageType') as db_storage_type, + json_extract_path_text(detail.Properties, 'AllocatedStorage') as allocated_storage, + json_extract_path_text(detail.Properties, 'DbParameterGroupIdentifier') as db_parameter_group_identifier, + json_extract_path_text(detail.Properties, 'LogDeliveryConfiguration') as log_delivery_configuration, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'SecondaryAvailabilityZone') as secondary_availability_zone, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'InfluxAuthParametersSecretArn') as influx_auth_parameters_secret_arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DeploymentType') as deployment_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Timestream::InfluxDBInstance' + AND detail.data__TypeName = 'AWS::Timestream::InfluxDBInstance' + AND listing.region = 'us-east-1' + influxdb_instances_list_only: + name: influxdb_instances_list_only + id: aws.timestream.influxdb_instances_list_only + x-cfn-schema-name: InfluxDBInstance + x-cfn-type-name: AWS::Timestream::InfluxDBInstance + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::InfluxDBInstance' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::InfluxDBInstance' + AND region = 'us-east-1' + influxdb_instance_tags: + name: influxdb_instance_tags + id: aws.timestream.influxdb_instance_tags + x-cfn-schema-name: InfluxDBInstance + x-cfn-type-name: AWS::Timestream::InfluxDBInstance + 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, '$.Username') as username, + JSON_EXTRACT(detail.Properties, '$.Password') as password, + JSON_EXTRACT(detail.Properties, '$.Organization') as organization, + JSON_EXTRACT(detail.Properties, '$.Bucket') as bucket, + JSON_EXTRACT(detail.Properties, '$.DbInstanceType') as db_instance_type, + JSON_EXTRACT(detail.Properties, '$.VpcSubnetIds') as vpc_subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VpcSecurityGroupIds') as vpc_security_group_ids, + JSON_EXTRACT(detail.Properties, '$.PubliclyAccessible') as publicly_accessible, + JSON_EXTRACT(detail.Properties, '$.DbStorageType') as db_storage_type, + JSON_EXTRACT(detail.Properties, '$.AllocatedStorage') as allocated_storage, + JSON_EXTRACT(detail.Properties, '$.DbParameterGroupIdentifier') as db_parameter_group_identifier, + JSON_EXTRACT(detail.Properties, '$.LogDeliveryConfiguration') as log_delivery_configuration, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AvailabilityZone') as availability_zone, + JSON_EXTRACT(detail.Properties, '$.SecondaryAvailabilityZone') as secondary_availability_zone, + JSON_EXTRACT(detail.Properties, '$.Endpoint') as endpoint, + JSON_EXTRACT(detail.Properties, '$.InfluxAuthParametersSecretArn') as influx_auth_parameters_secret_arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.DeploymentType') as deployment_type + 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::Timestream::InfluxDBInstance' + AND detail.data__TypeName = 'AWS::Timestream::InfluxDBInstance' + 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, 'Username') as username, + json_extract_path_text(detail.Properties, 'Password') as password, + json_extract_path_text(detail.Properties, 'Organization') as organization, + json_extract_path_text(detail.Properties, 'Bucket') as bucket, + json_extract_path_text(detail.Properties, 'DbInstanceType') as db_instance_type, + json_extract_path_text(detail.Properties, 'VpcSubnetIds') as vpc_subnet_ids, + json_extract_path_text(detail.Properties, 'VpcSecurityGroupIds') as vpc_security_group_ids, + json_extract_path_text(detail.Properties, 'PubliclyAccessible') as publicly_accessible, + json_extract_path_text(detail.Properties, 'DbStorageType') as db_storage_type, + json_extract_path_text(detail.Properties, 'AllocatedStorage') as allocated_storage, + json_extract_path_text(detail.Properties, 'DbParameterGroupIdentifier') as db_parameter_group_identifier, + json_extract_path_text(detail.Properties, 'LogDeliveryConfiguration') as log_delivery_configuration, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AvailabilityZone') as availability_zone, + json_extract_path_text(detail.Properties, 'SecondaryAvailabilityZone') as secondary_availability_zone, + json_extract_path_text(detail.Properties, 'Endpoint') as endpoint, + json_extract_path_text(detail.Properties, 'InfluxAuthParametersSecretArn') as influx_auth_parameters_secret_arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'DeploymentType') as deployment_type + 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::Timestream::InfluxDBInstance' + AND detail.data__TypeName = 'AWS::Timestream::InfluxDBInstance' + AND listing.region = 'us-east-1' scheduled_queries: name: scheduled_queries id: aws.timestream.scheduled_queries @@ -1928,10 +2192,33 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::ScheduledQuery' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ScheduledQueryName') as scheduled_query_name, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.ScheduleConfiguration') as schedule_configuration, + JSON_EXTRACT(detail.Properties, '$.NotificationConfiguration') as notification_configuration, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.ScheduledQueryExecutionRoleArn') as scheduled_query_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.TargetConfiguration') as target_configuration, + JSON_EXTRACT(detail.Properties, '$.ErrorReportConfiguration') as error_report_configuration, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SQName') as sq_name, + JSON_EXTRACT(detail.Properties, '$.SQQueryString') as sq_query_string, + JSON_EXTRACT(detail.Properties, '$.SQScheduleConfiguration') as sq_schedule_configuration, + JSON_EXTRACT(detail.Properties, '$.SQNotificationConfiguration') as sq_notification_configuration, + JSON_EXTRACT(detail.Properties, '$.SQScheduledQueryExecutionRoleArn') as sq_scheduled_query_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.SQTargetConfiguration') as sq_target_configuration, + JSON_EXTRACT(detail.Properties, '$.SQErrorReportConfiguration') as sq_error_report_configuration, + JSON_EXTRACT(detail.Properties, '$.SQKmsKeyId') as sq_kms_key_id, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Timestream::ScheduledQuery' + AND detail.data__TypeName = 'AWS::Timestream::ScheduledQuery' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1964,10 +2251,143 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::ScheduledQuery' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ScheduledQueryName') as scheduled_query_name, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'ScheduleConfiguration') as schedule_configuration, + json_extract_path_text(detail.Properties, 'NotificationConfiguration') as notification_configuration, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'ScheduledQueryExecutionRoleArn') as scheduled_query_execution_role_arn, + json_extract_path_text(detail.Properties, 'TargetConfiguration') as target_configuration, + json_extract_path_text(detail.Properties, 'ErrorReportConfiguration') as error_report_configuration, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SQName') as sq_name, + json_extract_path_text(detail.Properties, 'SQQueryString') as sq_query_string, + json_extract_path_text(detail.Properties, 'SQScheduleConfiguration') as sq_schedule_configuration, + json_extract_path_text(detail.Properties, 'SQNotificationConfiguration') as sq_notification_configuration, + json_extract_path_text(detail.Properties, 'SQScheduledQueryExecutionRoleArn') as sq_scheduled_query_execution_role_arn, + json_extract_path_text(detail.Properties, 'SQTargetConfiguration') as sq_target_configuration, + json_extract_path_text(detail.Properties, 'SQErrorReportConfiguration') as sq_error_report_configuration, + json_extract_path_text(detail.Properties, 'SQKmsKeyId') as sq_kms_key_id, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Timestream::ScheduledQuery' + AND detail.data__TypeName = 'AWS::Timestream::ScheduledQuery' + AND listing.region = 'us-east-1' + scheduled_queries_list_only: + name: scheduled_queries_list_only + id: aws.timestream.scheduled_queries_list_only + x-cfn-schema-name: ScheduledQuery + x-cfn-type-name: AWS::Timestream::ScheduledQuery + 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::Timestream::ScheduledQuery' + 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::Timestream::ScheduledQuery' + AND region = 'us-east-1' + scheduled_query_tags: + name: scheduled_query_tags + id: aws.timestream.scheduled_query_tags + x-cfn-schema-name: ScheduledQuery + x-cfn-type-name: AWS::Timestream::ScheduledQuery + 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, '$.ScheduledQueryName') as scheduled_query_name, + JSON_EXTRACT(detail.Properties, '$.QueryString') as query_string, + JSON_EXTRACT(detail.Properties, '$.ScheduleConfiguration') as schedule_configuration, + JSON_EXTRACT(detail.Properties, '$.NotificationConfiguration') as notification_configuration, + JSON_EXTRACT(detail.Properties, '$.ClientToken') as client_token, + JSON_EXTRACT(detail.Properties, '$.ScheduledQueryExecutionRoleArn') as scheduled_query_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.TargetConfiguration') as target_configuration, + JSON_EXTRACT(detail.Properties, '$.ErrorReportConfiguration') as error_report_configuration, + JSON_EXTRACT(detail.Properties, '$.KmsKeyId') as kms_key_id, + JSON_EXTRACT(detail.Properties, '$.SQName') as sq_name, + JSON_EXTRACT(detail.Properties, '$.SQQueryString') as sq_query_string, + JSON_EXTRACT(detail.Properties, '$.SQScheduleConfiguration') as sq_schedule_configuration, + JSON_EXTRACT(detail.Properties, '$.SQNotificationConfiguration') as sq_notification_configuration, + JSON_EXTRACT(detail.Properties, '$.SQScheduledQueryExecutionRoleArn') as sq_scheduled_query_execution_role_arn, + JSON_EXTRACT(detail.Properties, '$.SQTargetConfiguration') as sq_target_configuration, + JSON_EXTRACT(detail.Properties, '$.SQErrorReportConfiguration') as sq_error_report_configuration, + JSON_EXTRACT(detail.Properties, '$.SQKmsKeyId') as sq_kms_key_id + 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::Timestream::ScheduledQuery' + AND detail.data__TypeName = 'AWS::Timestream::ScheduledQuery' + 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, 'ScheduledQueryName') as scheduled_query_name, + json_extract_path_text(detail.Properties, 'QueryString') as query_string, + json_extract_path_text(detail.Properties, 'ScheduleConfiguration') as schedule_configuration, + json_extract_path_text(detail.Properties, 'NotificationConfiguration') as notification_configuration, + json_extract_path_text(detail.Properties, 'ClientToken') as client_token, + json_extract_path_text(detail.Properties, 'ScheduledQueryExecutionRoleArn') as scheduled_query_execution_role_arn, + json_extract_path_text(detail.Properties, 'TargetConfiguration') as target_configuration, + json_extract_path_text(detail.Properties, 'ErrorReportConfiguration') as error_report_configuration, + json_extract_path_text(detail.Properties, 'KmsKeyId') as kms_key_id, + json_extract_path_text(detail.Properties, 'SQName') as sq_name, + json_extract_path_text(detail.Properties, 'SQQueryString') as sq_query_string, + json_extract_path_text(detail.Properties, 'SQScheduleConfiguration') as sq_schedule_configuration, + json_extract_path_text(detail.Properties, 'SQNotificationConfiguration') as sq_notification_configuration, + json_extract_path_text(detail.Properties, 'SQScheduledQueryExecutionRoleArn') as sq_scheduled_query_execution_role_arn, + json_extract_path_text(detail.Properties, 'SQTargetConfiguration') as sq_target_configuration, + json_extract_path_text(detail.Properties, 'SQErrorReportConfiguration') as sq_error_report_configuration, + json_extract_path_text(detail.Properties, 'SQKmsKeyId') as sq_kms_key_id + 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::Timestream::ScheduledQuery' + AND detail.data__TypeName = 'AWS::Timestream::ScheduledQuery' + AND listing.region = 'us-east-1' tables: name: tables id: aws.timestream.tables @@ -2047,11 +2467,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DatabaseName') as database_name, - JSON_EXTRACT(Properties, '$.TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Table' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.RetentionProperties') as retention_properties, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.MagneticStoreWriteProperties') as magnetic_store_write_properties, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Timestream::Table' + AND detail.data__TypeName = 'AWS::Timestream::Table' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2073,11 +2504,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DatabaseName') as database_name, - json_extract_path_text(Properties, 'TableName') as table_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Table' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DatabaseName') as database_name, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'RetentionProperties') as retention_properties, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'MagneticStoreWriteProperties') as magnetic_store_write_properties, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Timestream::Table' + AND detail.data__TypeName = 'AWS::Timestream::Table' + AND listing.region = 'us-east-1' + tables_list_only: + name: tables_list_only + id: aws.timestream.tables_list_only + x-cfn-schema-name: Table + x-cfn-type-name: AWS::Timestream::Table + x-identifiers: + - DatabaseName + - TableName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(Properties, '$.TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Table' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DatabaseName') as database_name, + json_extract_path_text(Properties, 'TableName') as table_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Timestream::Table' + AND region = 'us-east-1' + table_tags: + name: table_tags + id: aws.timestream.table_tags + x-cfn-schema-name: Table + x-cfn-type-name: AWS::Timestream::Table + 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, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DatabaseName') as database_name, + JSON_EXTRACT(detail.Properties, '$.TableName') as table_name, + JSON_EXTRACT(detail.Properties, '$.RetentionProperties') as retention_properties, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema, + JSON_EXTRACT(detail.Properties, '$.MagneticStoreWriteProperties') as magnetic_store_write_properties + 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::Timestream::Table' + AND detail.data__TypeName = 'AWS::Timestream::Table' + 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, 'Name') as name, + json_extract_path_text(detail.Properties, 'DatabaseName') as database_name, + json_extract_path_text(detail.Properties, 'TableName') as table_name, + json_extract_path_text(detail.Properties, 'RetentionProperties') as retention_properties, + json_extract_path_text(detail.Properties, 'Schema') as _schema, + json_extract_path_text(detail.Properties, 'MagneticStoreWriteProperties') as magnetic_store_write_properties + 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::Timestream::Table' + AND detail.data__TypeName = 'AWS::Timestream::Table' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/transfer.yaml b/providers/src/aws/v00.00.00000/services/transfer.yaml index 4d0e972f..769da749 100644 --- a/providers/src/aws/v00.00.00000/services/transfer.yaml +++ b/providers/src/aws/v00.00.00000/services/transfer.yaml @@ -2807,11 +2807,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AgreementId') as agreement_id, - JSON_EXTRACT(Properties, '$.ServerId') as server_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Agreement' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ServerId') as server_id, + JSON_EXTRACT(detail.Properties, '$.LocalProfileId') as local_profile_id, + JSON_EXTRACT(detail.Properties, '$.PartnerProfileId') as partner_profile_id, + JSON_EXTRACT(detail.Properties, '$.BaseDirectory') as base_directory, + JSON_EXTRACT(detail.Properties, '$.AccessRole') as access_role, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.AgreementId') as agreement_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Transfer::Agreement' + AND detail.data__TypeName = 'AWS::Transfer::Agreement' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2835,11 +2848,119 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AgreementId') as agreement_id, - json_extract_path_text(Properties, 'ServerId') as server_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Agreement' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'ServerId') as server_id, + json_extract_path_text(detail.Properties, 'LocalProfileId') as local_profile_id, + json_extract_path_text(detail.Properties, 'PartnerProfileId') as partner_profile_id, + json_extract_path_text(detail.Properties, 'BaseDirectory') as base_directory, + json_extract_path_text(detail.Properties, 'AccessRole') as access_role, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'AgreementId') as agreement_id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Transfer::Agreement' + AND detail.data__TypeName = 'AWS::Transfer::Agreement' + AND listing.region = 'us-east-1' + agreements_list_only: + name: agreements_list_only + id: aws.transfer.agreements_list_only + x-cfn-schema-name: Agreement + x-cfn-type-name: AWS::Transfer::Agreement + x-identifiers: + - AgreementId + - ServerId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AgreementId') as agreement_id, + JSON_EXTRACT(Properties, '$.ServerId') as server_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Agreement' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AgreementId') as agreement_id, + json_extract_path_text(Properties, 'ServerId') as server_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Agreement' + AND region = 'us-east-1' + agreement_tags: + name: agreement_tags + id: aws.transfer.agreement_tags + x-cfn-schema-name: Agreement + x-cfn-type-name: AWS::Transfer::Agreement + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.ServerId') as server_id, + JSON_EXTRACT(detail.Properties, '$.LocalProfileId') as local_profile_id, + JSON_EXTRACT(detail.Properties, '$.PartnerProfileId') as partner_profile_id, + JSON_EXTRACT(detail.Properties, '$.BaseDirectory') as base_directory, + JSON_EXTRACT(detail.Properties, '$.AccessRole') as access_role, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.AgreementId') as agreement_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Transfer::Agreement' + AND detail.data__TypeName = 'AWS::Transfer::Agreement' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'ServerId') as server_id, + json_extract_path_text(detail.Properties, 'LocalProfileId') as local_profile_id, + json_extract_path_text(detail.Properties, 'PartnerProfileId') as partner_profile_id, + json_extract_path_text(detail.Properties, 'BaseDirectory') as base_directory, + json_extract_path_text(detail.Properties, 'AccessRole') as access_role, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'AgreementId') as agreement_id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Transfer::Agreement' + AND detail.data__TypeName = 'AWS::Transfer::Agreement' + AND listing.region = 'us-east-1' certificates: name: certificates id: aws.transfer.certificates @@ -2925,10 +3046,29 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.CertificateId') as certificate_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Certificate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Usage') as usage, + JSON_EXTRACT(detail.Properties, '$.Certificate') as certificate, + JSON_EXTRACT(detail.Properties, '$.CertificateChain') as certificate_chain, + JSON_EXTRACT(detail.Properties, '$.PrivateKey') as private_key, + JSON_EXTRACT(detail.Properties, '$.ActiveDate') as active_date, + JSON_EXTRACT(detail.Properties, '$.InactiveDate') as inactive_date, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CertificateId') as certificate_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Serial') as serial, + JSON_EXTRACT(detail.Properties, '$.NotBeforeDate') as not_before_date, + JSON_EXTRACT(detail.Properties, '$.NotAfterDate') as not_after_date + 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::Transfer::Certificate' + AND detail.data__TypeName = 'AWS::Transfer::Certificate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2957,10 +3097,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'CertificateId') as certificate_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Certificate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Usage') as usage, + json_extract_path_text(detail.Properties, 'Certificate') as certificate, + json_extract_path_text(detail.Properties, 'CertificateChain') as certificate_chain, + json_extract_path_text(detail.Properties, 'PrivateKey') as private_key, + json_extract_path_text(detail.Properties, 'ActiveDate') as active_date, + json_extract_path_text(detail.Properties, 'InactiveDate') as inactive_date, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CertificateId') as certificate_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Serial') as serial, + json_extract_path_text(detail.Properties, 'NotBeforeDate') as not_before_date, + json_extract_path_text(detail.Properties, 'NotAfterDate') as not_after_date + 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::Transfer::Certificate' + AND detail.data__TypeName = 'AWS::Transfer::Certificate' + AND listing.region = 'us-east-1' + certificates_list_only: + name: certificates_list_only + id: aws.transfer.certificates_list_only + x-cfn-schema-name: Certificate + x-cfn-type-name: AWS::Transfer::Certificate + x-identifiers: + - CertificateId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.CertificateId') as certificate_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Certificate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'CertificateId') as certificate_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Certificate' + AND region = 'us-east-1' + certificate_tags: + name: certificate_tags + id: aws.transfer.certificate_tags + x-cfn-schema-name: Certificate + x-cfn-type-name: AWS::Transfer::Certificate + 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, '$.Usage') as usage, + JSON_EXTRACT(detail.Properties, '$.Certificate') as certificate, + JSON_EXTRACT(detail.Properties, '$.CertificateChain') as certificate_chain, + JSON_EXTRACT(detail.Properties, '$.PrivateKey') as private_key, + JSON_EXTRACT(detail.Properties, '$.ActiveDate') as active_date, + JSON_EXTRACT(detail.Properties, '$.InactiveDate') as inactive_date, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CertificateId') as certificate_id, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Serial') as serial, + JSON_EXTRACT(detail.Properties, '$.NotBeforeDate') as not_before_date, + JSON_EXTRACT(detail.Properties, '$.NotAfterDate') as not_after_date + 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::Transfer::Certificate' + AND detail.data__TypeName = 'AWS::Transfer::Certificate' + 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, 'Usage') as usage, + json_extract_path_text(detail.Properties, 'Certificate') as certificate, + json_extract_path_text(detail.Properties, 'CertificateChain') as certificate_chain, + json_extract_path_text(detail.Properties, 'PrivateKey') as private_key, + json_extract_path_text(detail.Properties, 'ActiveDate') as active_date, + json_extract_path_text(detail.Properties, 'InactiveDate') as inactive_date, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CertificateId') as certificate_id, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Serial') as serial, + json_extract_path_text(detail.Properties, 'NotBeforeDate') as not_before_date, + json_extract_path_text(detail.Properties, 'NotAfterDate') as not_after_date + 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::Transfer::Certificate' + AND detail.data__TypeName = 'AWS::Transfer::Certificate' + AND listing.region = 'us-east-1' connectors: name: connectors id: aws.transfer.connectors @@ -3041,10 +3302,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ConnectorId') as connector_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Connector' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AccessRole') as access_role, + JSON_EXTRACT(detail.Properties, '$.As2Config') as as2_config, + JSON_EXTRACT(detail.Properties, '$.SftpConfig') as sftp_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorId') as connector_id, + JSON_EXTRACT(detail.Properties, '$.LoggingRole') as logging_role, + JSON_EXTRACT(detail.Properties, '$.ServiceManagedEgressIpAddresses') as service_managed_egress_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.SecurityPolicyName') as security_policy_name + 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::Transfer::Connector' + AND detail.data__TypeName = 'AWS::Transfer::Connector' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3068,10 +3343,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ConnectorId') as connector_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Connector' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AccessRole') as access_role, + json_extract_path_text(detail.Properties, 'As2Config') as as2_config, + json_extract_path_text(detail.Properties, 'SftpConfig') as sftp_config, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ConnectorId') as connector_id, + json_extract_path_text(detail.Properties, 'LoggingRole') as logging_role, + json_extract_path_text(detail.Properties, 'ServiceManagedEgressIpAddresses') as service_managed_egress_ip_addresses, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'SecurityPolicyName') as security_policy_name + 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::Transfer::Connector' + AND detail.data__TypeName = 'AWS::Transfer::Connector' + AND listing.region = 'us-east-1' + connectors_list_only: + name: connectors_list_only + id: aws.transfer.connectors_list_only + x-cfn-schema-name: Connector + x-cfn-type-name: AWS::Transfer::Connector + x-identifiers: + - ConnectorId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ConnectorId') as connector_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Connector' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ConnectorId') as connector_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Connector' + AND region = 'us-east-1' + connector_tags: + name: connector_tags + id: aws.transfer.connector_tags + x-cfn-schema-name: Connector + x-cfn-type-name: AWS::Transfer::Connector + 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, '$.AccessRole') as access_role, + JSON_EXTRACT(detail.Properties, '$.As2Config') as as2_config, + JSON_EXTRACT(detail.Properties, '$.SftpConfig') as sftp_config, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ConnectorId') as connector_id, + JSON_EXTRACT(detail.Properties, '$.LoggingRole') as logging_role, + JSON_EXTRACT(detail.Properties, '$.ServiceManagedEgressIpAddresses') as service_managed_egress_ip_addresses, + JSON_EXTRACT(detail.Properties, '$.Url') as url, + JSON_EXTRACT(detail.Properties, '$.SecurityPolicyName') as security_policy_name + 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::Transfer::Connector' + AND detail.data__TypeName = 'AWS::Transfer::Connector' + 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, 'AccessRole') as access_role, + json_extract_path_text(detail.Properties, 'As2Config') as as2_config, + json_extract_path_text(detail.Properties, 'SftpConfig') as sftp_config, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ConnectorId') as connector_id, + json_extract_path_text(detail.Properties, 'LoggingRole') as logging_role, + json_extract_path_text(detail.Properties, 'ServiceManagedEgressIpAddresses') as service_managed_egress_ip_addresses, + json_extract_path_text(detail.Properties, 'Url') as url, + json_extract_path_text(detail.Properties, 'SecurityPolicyName') as security_policy_name + 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::Transfer::Connector' + AND detail.data__TypeName = 'AWS::Transfer::Connector' + AND listing.region = 'us-east-1' profiles: name: profiles id: aws.transfer.profiles @@ -3148,10 +3529,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ProfileId') as profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Profile' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.As2Id') as as2_id, + JSON_EXTRACT(detail.Properties, '$.ProfileType') as profile_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.CertificateIds') as certificate_ids, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id + 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::Transfer::Profile' + AND detail.data__TypeName = 'AWS::Transfer::Profile' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3171,10 +3562,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ProfileId') as profile_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Profile' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'As2Id') as as2_id, + json_extract_path_text(detail.Properties, 'ProfileType') as profile_type, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'CertificateIds') as certificate_ids, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id + 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::Transfer::Profile' + AND detail.data__TypeName = 'AWS::Transfer::Profile' + AND listing.region = 'us-east-1' + profiles_list_only: + name: profiles_list_only + id: aws.transfer.profiles_list_only + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::Transfer::Profile + x-identifiers: + - ProfileId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ProfileId') as profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Profile' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ProfileId') as profile_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Profile' + AND region = 'us-east-1' + profile_tags: + name: profile_tags + id: aws.transfer.profile_tags + x-cfn-schema-name: Profile + x-cfn-type-name: AWS::Transfer::Profile + 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, '$.As2Id') as as2_id, + JSON_EXTRACT(detail.Properties, '$.ProfileType') as profile_type, + JSON_EXTRACT(detail.Properties, '$.CertificateIds') as certificate_ids, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.ProfileId') as profile_id + 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::Transfer::Profile' + AND detail.data__TypeName = 'AWS::Transfer::Profile' + 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, 'As2Id') as as2_id, + json_extract_path_text(detail.Properties, 'ProfileType') as profile_type, + json_extract_path_text(detail.Properties, 'CertificateIds') as certificate_ids, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'ProfileId') as profile_id + 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::Transfer::Profile' + AND detail.data__TypeName = 'AWS::Transfer::Profile' + AND listing.region = 'us-east-1' workflows: name: workflows id: aws.transfer.workflows @@ -3251,10 +3736,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.WorkflowId') as workflow_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Workflow' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.OnExceptionSteps') as on_exception_steps, + JSON_EXTRACT(detail.Properties, '$.Steps') as steps, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.WorkflowId') as workflow_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Transfer::Workflow' + AND detail.data__TypeName = 'AWS::Transfer::Workflow' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3274,10 +3769,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'WorkflowId') as workflow_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Workflow' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'OnExceptionSteps') as on_exception_steps, + json_extract_path_text(detail.Properties, 'Steps') as steps, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'WorkflowId') as workflow_id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Transfer::Workflow' + AND detail.data__TypeName = 'AWS::Transfer::Workflow' + AND listing.region = 'us-east-1' + workflows_list_only: + name: workflows_list_only + id: aws.transfer.workflows_list_only + x-cfn-schema-name: Workflow + x-cfn-type-name: AWS::Transfer::Workflow + x-identifiers: + - WorkflowId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.WorkflowId') as workflow_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Workflow' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'WorkflowId') as workflow_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Transfer::Workflow' + AND region = 'us-east-1' + workflow_tags: + name: workflow_tags + id: aws.transfer.workflow_tags + x-cfn-schema-name: Workflow + x-cfn-type-name: AWS::Transfer::Workflow + 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, '$.OnExceptionSteps') as on_exception_steps, + JSON_EXTRACT(detail.Properties, '$.Steps') as steps, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.WorkflowId') as workflow_id, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn + 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::Transfer::Workflow' + AND detail.data__TypeName = 'AWS::Transfer::Workflow' + 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, 'OnExceptionSteps') as on_exception_steps, + json_extract_path_text(detail.Properties, 'Steps') as steps, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'WorkflowId') as workflow_id, + json_extract_path_text(detail.Properties, 'Arn') as arn + 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::Transfer::Workflow' + AND detail.data__TypeName = 'AWS::Transfer::Workflow' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/verifiedpermissions.yaml b/providers/src/aws/v00.00.00000/services/verifiedpermissions.yaml index a0d4a54b..63e05928 100644 --- a/providers/src/aws/v00.00.00000/services/verifiedpermissions.yaml +++ b/providers/src/aws/v00.00.00000/services/verifiedpermissions.yaml @@ -1008,11 +1008,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IdentitySourceId') as identity_source_id, - JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::IdentitySource' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Configuration') as configuration, + JSON_EXTRACT(detail.Properties, '$.Details') as details, + JSON_EXTRACT(detail.Properties, '$.IdentitySourceId') as identity_source_id, + JSON_EXTRACT(detail.Properties, '$.PolicyStoreId') as policy_store_id, + JSON_EXTRACT(detail.Properties, '$.PrincipalEntityType') as principal_entity_type + 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::VerifiedPermissions::IdentitySource' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::IdentitySource' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1031,11 +1039,53 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IdentitySourceId') as identity_source_id, - json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::IdentitySource' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Configuration') as configuration, + json_extract_path_text(detail.Properties, 'Details') as details, + json_extract_path_text(detail.Properties, 'IdentitySourceId') as identity_source_id, + json_extract_path_text(detail.Properties, 'PolicyStoreId') as policy_store_id, + json_extract_path_text(detail.Properties, 'PrincipalEntityType') as principal_entity_type + 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::VerifiedPermissions::IdentitySource' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::IdentitySource' + AND listing.region = 'us-east-1' + identity_sources_list_only: + name: identity_sources_list_only + id: aws.verifiedpermissions.identity_sources_list_only + x-cfn-schema-name: IdentitySource + x-cfn-type-name: AWS::VerifiedPermissions::IdentitySource + x-identifiers: + - IdentitySourceId + - PolicyStoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IdentitySourceId') as identity_source_id, + JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::IdentitySource' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IdentitySourceId') as identity_source_id, + json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::IdentitySource' + AND region = 'us-east-1' policies: name: policies id: aws.verifiedpermissions.policies @@ -1111,11 +1161,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyId') as policy_id, - JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::Policy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Definition') as definition, + JSON_EXTRACT(detail.Properties, '$.PolicyId') as policy_id, + JSON_EXTRACT(detail.Properties, '$.PolicyStoreId') as policy_store_id, + JSON_EXTRACT(detail.Properties, '$.PolicyType') as policy_type + 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::VerifiedPermissions::Policy' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::Policy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1133,11 +1190,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyId') as policy_id, - json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::Policy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Definition') as definition, + json_extract_path_text(detail.Properties, 'PolicyId') as policy_id, + json_extract_path_text(detail.Properties, 'PolicyStoreId') as policy_store_id, + json_extract_path_text(detail.Properties, 'PolicyType') as policy_type + 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::VerifiedPermissions::Policy' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::Policy' + AND listing.region = 'us-east-1' + policies_list_only: + name: policies_list_only + id: aws.verifiedpermissions.policies_list_only + x-cfn-schema-name: Policy + x-cfn-type-name: AWS::VerifiedPermissions::Policy + x-identifiers: + - PolicyId + - PolicyStoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyId') as policy_id, + JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::Policy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyId') as policy_id, + json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::Policy' + AND region = 'us-east-1' policy_stores: name: policy_stores id: aws.verifiedpermissions.policy_stores @@ -1213,10 +1311,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PolicyStoreId') as policy_store_id, + JSON_EXTRACT(detail.Properties, '$.ValidationSettings') as validation_settings, + JSON_EXTRACT(detail.Properties, '$.Schema') as _schema + 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::VerifiedPermissions::PolicyStore' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::PolicyStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1235,10 +1342,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PolicyStoreId') as policy_store_id, + json_extract_path_text(detail.Properties, 'ValidationSettings') as validation_settings, + json_extract_path_text(detail.Properties, 'Schema') as _schema + 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::VerifiedPermissions::PolicyStore' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::PolicyStore' + AND listing.region = 'us-east-1' + policy_stores_list_only: + name: policy_stores_list_only + id: aws.verifiedpermissions.policy_stores_list_only + x-cfn-schema-name: PolicyStore + x-cfn-type-name: AWS::VerifiedPermissions::PolicyStore + x-identifiers: + - PolicyStoreId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyStore' + AND region = 'us-east-1' policy_templates: name: policy_templates id: aws.verifiedpermissions.policy_templates @@ -1314,11 +1461,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id, - JSON_EXTRACT(Properties, '$.PolicyTemplateId') as policy_template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyTemplate' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.PolicyStoreId') as policy_store_id, + JSON_EXTRACT(detail.Properties, '$.PolicyTemplateId') as policy_template_id, + JSON_EXTRACT(detail.Properties, '$.Statement') as statement + 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::VerifiedPermissions::PolicyTemplate' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::PolicyTemplate' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1336,11 +1490,52 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id, - json_extract_path_text(Properties, 'PolicyTemplateId') as policy_template_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyTemplate' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'PolicyStoreId') as policy_store_id, + json_extract_path_text(detail.Properties, 'PolicyTemplateId') as policy_template_id, + json_extract_path_text(detail.Properties, 'Statement') as statement + 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::VerifiedPermissions::PolicyTemplate' + AND detail.data__TypeName = 'AWS::VerifiedPermissions::PolicyTemplate' + AND listing.region = 'us-east-1' + policy_templates_list_only: + name: policy_templates_list_only + id: aws.verifiedpermissions.policy_templates_list_only + x-cfn-schema-name: PolicyTemplate + x-cfn-type-name: AWS::VerifiedPermissions::PolicyTemplate + x-identifiers: + - PolicyStoreId + - PolicyTemplateId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyStoreId') as policy_store_id, + JSON_EXTRACT(Properties, '$.PolicyTemplateId') as policy_template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyTemplate' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyStoreId') as policy_store_id, + json_extract_path_text(Properties, 'PolicyTemplateId') as policy_template_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VerifiedPermissions::PolicyTemplate' + AND region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/voiceid.yaml b/providers/src/aws/v00.00.00000/services/voiceid.yaml index ffb5e765..19a3d0b1 100644 --- a/providers/src/aws/v00.00.00000/services/voiceid.yaml +++ b/providers/src/aws/v00.00.00000/services/voiceid.yaml @@ -615,10 +615,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.DomainId') as domain_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VoiceID::Domain' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VoiceID::Domain' + AND detail.data__TypeName = 'AWS::VoiceID::Domain' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -637,10 +646,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'DomainId') as domain_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VoiceID::Domain' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VoiceID::Domain' + AND detail.data__TypeName = 'AWS::VoiceID::Domain' + AND listing.region = 'us-east-1' + domains_list_only: + name: domains_list_only + id: aws.voiceid.domains_list_only + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::VoiceID::Domain + x-identifiers: + - DomainId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.DomainId') as domain_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VoiceID::Domain' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'DomainId') as domain_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VoiceID::Domain' + AND region = 'us-east-1' + domain_tags: + name: domain_tags + id: aws.voiceid.domain_tags + x-cfn-schema-name: Domain + x-cfn-type-name: AWS::VoiceID::Domain + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DomainId') as domain_id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_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::VoiceID::Domain' + AND detail.data__TypeName = 'AWS::VoiceID::Domain' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'DomainId') as domain_id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_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::VoiceID::Domain' + AND detail.data__TypeName = 'AWS::VoiceID::Domain' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/vpclattice.yaml b/providers/src/aws/v00.00.00000/services/vpclattice.yaml index 7b97ac9d..a3267649 100644 --- a/providers/src/aws/v00.00.00000/services/vpclattice.yaml +++ b/providers/src/aws/v00.00.00000/services/vpclattice.yaml @@ -2311,10 +2311,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::AccessLogSubscription' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DestinationArn') as destination_arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ResourceIdentifier') as resource_identifier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::AccessLogSubscription' + AND detail.data__TypeName = 'AWS::VpcLattice::AccessLogSubscription' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2335,10 +2346,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::AccessLogSubscription' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DestinationArn') as destination_arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ResourceIdentifier') as resource_identifier, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::AccessLogSubscription' + AND detail.data__TypeName = 'AWS::VpcLattice::AccessLogSubscription' + AND listing.region = 'us-east-1' + access_log_subscriptions_list_only: + name: access_log_subscriptions_list_only + id: aws.vpclattice.access_log_subscriptions_list_only + x-cfn-schema-name: AccessLogSubscription + x-cfn-type-name: AWS::VpcLattice::AccessLogSubscription + 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::VpcLattice::AccessLogSubscription' + 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::VpcLattice::AccessLogSubscription' + AND region = 'us-east-1' + access_log_subscription_tags: + name: access_log_subscription_tags + id: aws.vpclattice.access_log_subscription_tags + x-cfn-schema-name: AccessLogSubscription + x-cfn-type-name: AWS::VpcLattice::AccessLogSubscription + 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, '$.DestinationArn') as destination_arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.ResourceId') as resource_id, + JSON_EXTRACT(detail.Properties, '$.ResourceIdentifier') as resource_identifier + 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::VpcLattice::AccessLogSubscription' + AND detail.data__TypeName = 'AWS::VpcLattice::AccessLogSubscription' + 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, 'DestinationArn') as destination_arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'ResourceId') as resource_id, + json_extract_path_text(detail.Properties, 'ResourceIdentifier') as resource_identifier + 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::VpcLattice::AccessLogSubscription' + AND detail.data__TypeName = 'AWS::VpcLattice::AccessLogSubscription' + AND listing.region = 'us-east-1' auth_policies: name: auth_policies id: aws.vpclattice.auth_policies @@ -2500,10 +2608,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::Listener' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.DefaultAction') as default_action, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::Listener' + AND detail.data__TypeName = 'AWS::VpcLattice::Listener' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2527,10 +2649,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::Listener' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'DefaultAction') as default_action, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::Listener' + AND detail.data__TypeName = 'AWS::VpcLattice::Listener' + AND listing.region = 'us-east-1' + listeners_list_only: + name: listeners_list_only + id: aws.vpclattice.listeners_list_only + x-cfn-schema-name: Listener + x-cfn-type-name: AWS::VpcLattice::Listener + 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::VpcLattice::Listener' + 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::VpcLattice::Listener' + AND region = 'us-east-1' + listener_tags: + name: listener_tags + id: aws.vpclattice.listener_tags + x-cfn-schema-name: Listener + x-cfn-type-name: AWS::VpcLattice::Listener + 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, '$.DefaultAction') as default_action, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Port') as port, + JSON_EXTRACT(detail.Properties, '$.Protocol') as protocol, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier + 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::VpcLattice::Listener' + AND detail.data__TypeName = 'AWS::VpcLattice::Listener' + 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, 'DefaultAction') as default_action, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Port') as port, + json_extract_path_text(detail.Properties, 'Protocol') as protocol, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier + 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::VpcLattice::Listener' + AND detail.data__TypeName = 'AWS::VpcLattice::Listener' + AND listing.region = 'us-east-1' resource_policies: name: resource_policies id: aws.vpclattice.resource_policies @@ -2689,10 +2917,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::Rule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ListenerIdentifier') as listener_identifier, + JSON_EXTRACT(detail.Properties, '$.Match') as _match, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::Rule' + AND detail.data__TypeName = 'AWS::VpcLattice::Rule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2715,10 +2956,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::Rule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Action') as action, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ListenerIdentifier') as listener_identifier, + json_extract_path_text(detail.Properties, 'Match') as _match, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::Rule' + AND detail.data__TypeName = 'AWS::VpcLattice::Rule' + AND listing.region = 'us-east-1' + rules_list_only: + name: rules_list_only + id: aws.vpclattice.rules_list_only + x-cfn-schema-name: Rule + x-cfn-type-name: AWS::VpcLattice::Rule + 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::VpcLattice::Rule' + 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::VpcLattice::Rule' + AND region = 'us-east-1' + rule_tags: + name: rule_tags + id: aws.vpclattice.rule_tags + x-cfn-schema-name: Rule + x-cfn-type-name: AWS::VpcLattice::Rule + 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, '$.Action') as action, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ListenerIdentifier') as listener_identifier, + JSON_EXTRACT(detail.Properties, '$.Match') as _match, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Priority') as priority, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier + 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::VpcLattice::Rule' + AND detail.data__TypeName = 'AWS::VpcLattice::Rule' + 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, 'Action') as action, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ListenerIdentifier') as listener_identifier, + json_extract_path_text(detail.Properties, 'Match') as _match, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Priority') as priority, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier + 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::VpcLattice::Rule' + AND detail.data__TypeName = 'AWS::VpcLattice::Rule' + AND listing.region = 'us-east-1' services: name: services id: aws.vpclattice.services @@ -2800,10 +3144,25 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::Service' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.AuthType') as auth_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DnsEntry') as dns_entry, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.CustomDomainName') as custom_domain_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::Service' + AND detail.data__TypeName = 'AWS::VpcLattice::Service' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2828,10 +3187,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::VpcLattice::Service' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'AuthType') as auth_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DnsEntry') as dns_entry, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'CustomDomainName') as custom_domain_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::Service' + AND detail.data__TypeName = 'AWS::VpcLattice::Service' + AND listing.region = 'us-east-1' + services_list_only: + name: services_list_only + id: aws.vpclattice.services_list_only + x-cfn-schema-name: Service + x-cfn-type-name: AWS::VpcLattice::Service + 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::VpcLattice::Service' + 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::VpcLattice::Service' + AND region = 'us-east-1' + service_tags: + name: service_tags + id: aws.vpclattice.service_tags + x-cfn-schema-name: Service + x-cfn-type-name: AWS::VpcLattice::Service + 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, '$.AuthType') as auth_type, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DnsEntry') as dns_entry, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.CertificateArn') as certificate_arn, + JSON_EXTRACT(detail.Properties, '$.CustomDomainName') as custom_domain_name + 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::VpcLattice::Service' + AND detail.data__TypeName = 'AWS::VpcLattice::Service' + 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, 'AuthType') as auth_type, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DnsEntry') as dns_entry, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'CertificateArn') as certificate_arn, + json_extract_path_text(detail.Properties, 'CustomDomainName') as custom_domain_name + 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::VpcLattice::Service' + AND detail.data__TypeName = 'AWS::VpcLattice::Service' + AND listing.region = 'us-east-1' service_networks: name: service_networks id: aws.vpclattice.service_networks @@ -2909,10 +3377,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::ServiceNetwork' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AuthType') as auth_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::ServiceNetwork' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetwork' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2933,10 +3412,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::ServiceNetwork' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AuthType') as auth_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::ServiceNetwork' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetwork' + AND listing.region = 'us-east-1' + service_networks_list_only: + name: service_networks_list_only + id: aws.vpclattice.service_networks_list_only + x-cfn-schema-name: ServiceNetwork + x-cfn-type-name: AWS::VpcLattice::ServiceNetwork + 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::VpcLattice::ServiceNetwork' + 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::VpcLattice::ServiceNetwork' + AND region = 'us-east-1' + service_network_tags: + name: service_network_tags + id: aws.vpclattice.service_network_tags + x-cfn-schema-name: ServiceNetwork + x-cfn-type-name: AWS::VpcLattice::ServiceNetwork + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.AuthType') as auth_type + 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::VpcLattice::ServiceNetwork' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetwork' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'AuthType') as auth_type + 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::VpcLattice::ServiceNetwork' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetwork' + AND listing.region = 'us-east-1' service_network_service_associations: name: service_network_service_associations id: aws.vpclattice.service_network_service_associations @@ -3021,10 +3597,28 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::ServiceNetworkServiceAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DnsEntry') as dns_entry, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkArn') as service_network_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkId') as service_network_id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkIdentifier') as service_network_identifier, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkName') as service_network_name, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::ServiceNetworkServiceAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkServiceAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3052,10 +3646,128 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::ServiceNetworkServiceAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DnsEntry') as dns_entry, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ServiceNetworkArn') as service_network_arn, + json_extract_path_text(detail.Properties, 'ServiceNetworkId') as service_network_id, + json_extract_path_text(detail.Properties, 'ServiceNetworkIdentifier') as service_network_identifier, + json_extract_path_text(detail.Properties, 'ServiceNetworkName') as service_network_name, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::ServiceNetworkServiceAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkServiceAssociation' + AND listing.region = 'us-east-1' + service_network_service_associations_list_only: + name: service_network_service_associations_list_only + id: aws.vpclattice.service_network_service_associations_list_only + x-cfn-schema-name: ServiceNetworkServiceAssociation + x-cfn-type-name: AWS::VpcLattice::ServiceNetworkServiceAssociation + 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::VpcLattice::ServiceNetworkServiceAssociation' + 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::VpcLattice::ServiceNetworkServiceAssociation' + AND region = 'us-east-1' + service_network_service_association_tags: + name: service_network_service_association_tags + id: aws.vpclattice.service_network_service_association_tags + x-cfn-schema-name: ServiceNetworkServiceAssociation + x-cfn-type-name: AWS::VpcLattice::ServiceNetworkServiceAssociation + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.DnsEntry') as dns_entry, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkArn') as service_network_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkId') as service_network_id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkIdentifier') as service_network_identifier, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkName') as service_network_name, + JSON_EXTRACT(detail.Properties, '$.ServiceArn') as service_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceId') as service_id, + JSON_EXTRACT(detail.Properties, '$.ServiceIdentifier') as service_identifier, + JSON_EXTRACT(detail.Properties, '$.ServiceName') as service_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status + 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::VpcLattice::ServiceNetworkServiceAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkServiceAssociation' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'DnsEntry') as dns_entry, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ServiceNetworkArn') as service_network_arn, + json_extract_path_text(detail.Properties, 'ServiceNetworkId') as service_network_id, + json_extract_path_text(detail.Properties, 'ServiceNetworkIdentifier') as service_network_identifier, + json_extract_path_text(detail.Properties, 'ServiceNetworkName') as service_network_name, + json_extract_path_text(detail.Properties, 'ServiceArn') as service_arn, + json_extract_path_text(detail.Properties, 'ServiceId') as service_id, + json_extract_path_text(detail.Properties, 'ServiceIdentifier') as service_identifier, + json_extract_path_text(detail.Properties, 'ServiceName') as service_name, + json_extract_path_text(detail.Properties, 'Status') as status + 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::VpcLattice::ServiceNetworkServiceAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkServiceAssociation' + AND listing.region = 'us-east-1' service_network_vpc_associations: name: service_network_vpc_associations id: aws.vpclattice.service_network_vpc_associations @@ -3138,10 +3850,26 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::ServiceNetworkVpcAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkArn') as service_network_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkId') as service_network_id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkIdentifier') as service_network_identifier, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkName') as service_network_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcIdentifier') as vpc_identifier, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::ServiceNetworkVpcAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkVpcAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3167,10 +3895,122 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::ServiceNetworkVpcAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ServiceNetworkArn') as service_network_arn, + json_extract_path_text(detail.Properties, 'ServiceNetworkId') as service_network_id, + json_extract_path_text(detail.Properties, 'ServiceNetworkIdentifier') as service_network_identifier, + json_extract_path_text(detail.Properties, 'ServiceNetworkName') as service_network_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'VpcIdentifier') as vpc_identifier, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::ServiceNetworkVpcAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkVpcAssociation' + AND listing.region = 'us-east-1' + service_network_vpc_associations_list_only: + name: service_network_vpc_associations_list_only + id: aws.vpclattice.service_network_vpc_associations_list_only + x-cfn-schema-name: ServiceNetworkVpcAssociation + x-cfn-type-name: AWS::VpcLattice::ServiceNetworkVpcAssociation + 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::VpcLattice::ServiceNetworkVpcAssociation' + 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::VpcLattice::ServiceNetworkVpcAssociation' + AND region = 'us-east-1' + service_network_vpc_association_tags: + name: service_network_vpc_association_tags + id: aws.vpclattice.service_network_vpc_association_tags + x-cfn-schema-name: ServiceNetworkVpcAssociation + x-cfn-type-name: AWS::VpcLattice::ServiceNetworkVpcAssociation + 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, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkArn') as service_network_arn, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkId') as service_network_id, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkIdentifier') as service_network_identifier, + JSON_EXTRACT(detail.Properties, '$.ServiceNetworkName') as service_network_name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id, + JSON_EXTRACT(detail.Properties, '$.VpcIdentifier') as vpc_identifier + 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::VpcLattice::ServiceNetworkVpcAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkVpcAssociation' + 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, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'ServiceNetworkArn') as service_network_arn, + json_extract_path_text(detail.Properties, 'ServiceNetworkId') as service_network_id, + json_extract_path_text(detail.Properties, 'ServiceNetworkIdentifier') as service_network_identifier, + json_extract_path_text(detail.Properties, 'ServiceNetworkName') as service_network_name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id, + json_extract_path_text(detail.Properties, 'VpcIdentifier') as vpc_identifier + 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::VpcLattice::ServiceNetworkVpcAssociation' + AND detail.data__TypeName = 'AWS::VpcLattice::ServiceNetworkVpcAssociation' + AND listing.region = 'us-east-1' target_groups: name: target_groups id: aws.vpclattice.target_groups @@ -3251,10 +4091,24 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::TargetGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Config') as config, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::VpcLattice::TargetGroup' + AND detail.data__TypeName = 'AWS::VpcLattice::TargetGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3278,10 +4132,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Arn') as arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::VpcLattice::TargetGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Config') as config, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Targets') as targets, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::VpcLattice::TargetGroup' + AND detail.data__TypeName = 'AWS::VpcLattice::TargetGroup' + AND listing.region = 'us-east-1' + target_groups_list_only: + name: target_groups_list_only + id: aws.vpclattice.target_groups_list_only + x-cfn-schema-name: TargetGroup + x-cfn-type-name: AWS::VpcLattice::TargetGroup + 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::VpcLattice::TargetGroup' + 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::VpcLattice::TargetGroup' + AND region = 'us-east-1' + target_group_tags: + name: target_group_tags + id: aws.vpclattice.target_group_tags + x-cfn-schema-name: TargetGroup + x-cfn-type-name: AWS::VpcLattice::TargetGroup + 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, '$.Config') as config, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.LastUpdatedAt') as last_updated_at, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Status') as status, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Targets') as targets + 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::VpcLattice::TargetGroup' + AND detail.data__TypeName = 'AWS::VpcLattice::TargetGroup' + 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, 'Config') as config, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'LastUpdatedAt') as last_updated_at, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Status') as status, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Targets') as targets + 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::VpcLattice::TargetGroup' + AND detail.data__TypeName = 'AWS::VpcLattice::TargetGroup' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/wafv2.yaml b/providers/src/aws/v00.00.00000/services/wafv2.yaml index bb544e6f..63171ea9 100644 --- a/providers/src/aws/v00.00.00000/services/wafv2.yaml +++ b/providers/src/aws/v00.00.00000/services/wafv2.yaml @@ -2689,12 +2689,22 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::IPSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.IPAddressVersion') as ip_address_version, + JSON_EXTRACT(detail.Properties, '$.Addresses') as addresses, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::WAFv2::IPSet' + AND detail.data__TypeName = 'AWS::WAFv2::IPSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2716,12 +2726,116 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::IPSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'IPAddressVersion') as ip_address_version, + json_extract_path_text(detail.Properties, 'Addresses') as addresses, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::WAFv2::IPSet' + AND detail.data__TypeName = 'AWS::WAFv2::IPSet' + AND listing.region = 'us-east-1' + ip_sets_list_only: + name: ip_sets_list_only + id: aws.wafv2.ip_sets_list_only + x-cfn-schema-name: IPSet + x-cfn-type-name: AWS::WAFv2::IPSet + x-identifiers: + - Name + - Id + - Scope + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::IPSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::IPSet' + AND region = 'us-east-1' + ip_set_tags: + name: ip_set_tags + id: aws.wafv2.ip_set_tags + x-cfn-schema-name: IPSet + x-cfn-type-name: AWS::WAFv2::IPSet + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.IPAddressVersion') as ip_address_version, + JSON_EXTRACT(detail.Properties, '$.Addresses') as addresses + 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::WAFv2::IPSet' + AND detail.data__TypeName = 'AWS::WAFv2::IPSet' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'IPAddressVersion') as ip_address_version, + json_extract_path_text(detail.Properties, 'Addresses') as addresses + 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::WAFv2::IPSet' + AND detail.data__TypeName = 'AWS::WAFv2::IPSet' + AND listing.region = 'us-east-1' logging_configurations: name: logging_configurations id: aws.wafv2.logging_configurations @@ -2797,10 +2911,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.ResourceArn') as resource_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::LoggingConfiguration' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.ResourceArn') as resource_arn, + JSON_EXTRACT(detail.Properties, '$.LogDestinationConfigs') as log_destination_configs, + JSON_EXTRACT(detail.Properties, '$.RedactedFields') as redacted_fields, + JSON_EXTRACT(detail.Properties, '$.ManagedByFirewallManager') as managed_by_firewall_manager, + JSON_EXTRACT(detail.Properties, '$.LoggingFilter') as logging_filter + 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::WAFv2::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::WAFv2::LoggingConfiguration' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2819,10 +2942,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'ResourceArn') as resource_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::LoggingConfiguration' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'ResourceArn') as resource_arn, + json_extract_path_text(detail.Properties, 'LogDestinationConfigs') as log_destination_configs, + json_extract_path_text(detail.Properties, 'RedactedFields') as redacted_fields, + json_extract_path_text(detail.Properties, 'ManagedByFirewallManager') as managed_by_firewall_manager, + json_extract_path_text(detail.Properties, 'LoggingFilter') as logging_filter + 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::WAFv2::LoggingConfiguration' + AND detail.data__TypeName = 'AWS::WAFv2::LoggingConfiguration' + AND listing.region = 'us-east-1' + logging_configurations_list_only: + name: logging_configurations_list_only + id: aws.wafv2.logging_configurations_list_only + x-cfn-schema-name: LoggingConfiguration + x-cfn-type-name: AWS::WAFv2::LoggingConfiguration + x-identifiers: + - ResourceArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.ResourceArn') as resource_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::LoggingConfiguration' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'ResourceArn') as resource_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::LoggingConfiguration' + AND region = 'us-east-1' regex_pattern_sets: name: regex_pattern_sets id: aws.wafv2.regex_pattern_sets @@ -2902,12 +3065,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RegexPatternSet' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.RegularExpressionList') as regular_expression_list, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::WAFv2::RegexPatternSet' + AND detail.data__TypeName = 'AWS::WAFv2::RegexPatternSet' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2928,12 +3100,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RegexPatternSet' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'RegularExpressionList') as regular_expression_list, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::WAFv2::RegexPatternSet' + AND detail.data__TypeName = 'AWS::WAFv2::RegexPatternSet' + AND listing.region = 'us-east-1' + regex_pattern_sets_list_only: + name: regex_pattern_sets_list_only + id: aws.wafv2.regex_pattern_sets_list_only + x-cfn-schema-name: RegexPatternSet + x-cfn-type-name: AWS::WAFv2::RegexPatternSet + x-identifiers: + - Name + - Id + - Scope + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RegexPatternSet' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RegexPatternSet' + AND region = 'us-east-1' + regex_pattern_set_tags: + name: regex_pattern_set_tags + id: aws.wafv2.regex_pattern_set_tags + x-cfn-schema-name: RegexPatternSet + x-cfn-type-name: AWS::WAFv2::RegexPatternSet + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.RegularExpressionList') as regular_expression_list, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope + 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::WAFv2::RegexPatternSet' + AND detail.data__TypeName = 'AWS::WAFv2::RegexPatternSet' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'RegularExpressionList') as regular_expression_list, + json_extract_path_text(detail.Properties, 'Scope') as scope + 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::WAFv2::RegexPatternSet' + AND detail.data__TypeName = 'AWS::WAFv2::RegexPatternSet' + AND listing.region = 'us-east-1' rule_groups: name: rule_groups id: aws.wafv2.rule_groups @@ -3019,12 +3292,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RuleGroup' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.VisibilityConfig') as visibility_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LabelNamespace') as label_namespace, + JSON_EXTRACT(detail.Properties, '$.CustomResponseBodies') as custom_response_bodies, + JSON_EXTRACT(detail.Properties, '$.AvailableLabels') as available_labels, + JSON_EXTRACT(detail.Properties, '$.ConsumedLabels') as consumed_labels + 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::WAFv2::RuleGroup' + AND detail.data__TypeName = 'AWS::WAFv2::RuleGroup' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3051,12 +3339,131 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RuleGroup' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'VisibilityConfig') as visibility_config, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LabelNamespace') as label_namespace, + json_extract_path_text(detail.Properties, 'CustomResponseBodies') as custom_response_bodies, + json_extract_path_text(detail.Properties, 'AvailableLabels') as available_labels, + json_extract_path_text(detail.Properties, 'ConsumedLabels') as consumed_labels + 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::WAFv2::RuleGroup' + AND detail.data__TypeName = 'AWS::WAFv2::RuleGroup' + AND listing.region = 'us-east-1' + rule_groups_list_only: + name: rule_groups_list_only + id: aws.wafv2.rule_groups_list_only + x-cfn-schema-name: RuleGroup + x-cfn-type-name: AWS::WAFv2::RuleGroup + x-identifiers: + - Name + - Id + - Scope + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RuleGroup' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::RuleGroup' + AND region = 'us-east-1' + rule_group_tags: + name: rule_group_tags + id: aws.wafv2.rule_group_tags + x-cfn-schema-name: RuleGroup + x-cfn-type-name: AWS::WAFv2::RuleGroup + 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, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.VisibilityConfig') as visibility_config, + JSON_EXTRACT(detail.Properties, '$.LabelNamespace') as label_namespace, + JSON_EXTRACT(detail.Properties, '$.CustomResponseBodies') as custom_response_bodies, + JSON_EXTRACT(detail.Properties, '$.AvailableLabels') as available_labels, + JSON_EXTRACT(detail.Properties, '$.ConsumedLabels') as consumed_labels + 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::WAFv2::RuleGroup' + AND detail.data__TypeName = 'AWS::WAFv2::RuleGroup' + 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, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'VisibilityConfig') as visibility_config, + json_extract_path_text(detail.Properties, 'LabelNamespace') as label_namespace, + json_extract_path_text(detail.Properties, 'CustomResponseBodies') as custom_response_bodies, + json_extract_path_text(detail.Properties, 'AvailableLabels') as available_labels, + json_extract_path_text(detail.Properties, 'ConsumedLabels') as consumed_labels + 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::WAFv2::RuleGroup' + AND detail.data__TypeName = 'AWS::WAFv2::RuleGroup' + AND listing.region = 'us-east-1' web_acls: name: web_acls id: aws.wafv2.web_acls @@ -3145,12 +3552,30 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Name') as name, - JSON_EXTRACT(Properties, '$.Id') as id, - JSON_EXTRACT(Properties, '$.Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::WebACL' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.DefaultAction') as default_action, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.VisibilityConfig') as visibility_config, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.LabelNamespace') as label_namespace, + JSON_EXTRACT(detail.Properties, '$.CustomResponseBodies') as custom_response_bodies, + JSON_EXTRACT(detail.Properties, '$.CaptchaConfig') as captcha_config, + JSON_EXTRACT(detail.Properties, '$.ChallengeConfig') as challenge_config, + JSON_EXTRACT(detail.Properties, '$.TokenDomains') as token_domains, + JSON_EXTRACT(detail.Properties, '$.AssociationConfig') as association_config + 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::WAFv2::WebACL' + AND detail.data__TypeName = 'AWS::WAFv2::WebACL' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -3180,12 +3605,140 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Name') as name, - json_extract_path_text(Properties, 'Id') as id, - json_extract_path_text(Properties, 'Scope') as scope - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::WebACL' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'DefaultAction') as default_action, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'VisibilityConfig') as visibility_config, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'LabelNamespace') as label_namespace, + json_extract_path_text(detail.Properties, 'CustomResponseBodies') as custom_response_bodies, + json_extract_path_text(detail.Properties, 'CaptchaConfig') as captcha_config, + json_extract_path_text(detail.Properties, 'ChallengeConfig') as challenge_config, + json_extract_path_text(detail.Properties, 'TokenDomains') as token_domains, + json_extract_path_text(detail.Properties, 'AssociationConfig') as association_config + 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::WAFv2::WebACL' + AND detail.data__TypeName = 'AWS::WAFv2::WebACL' + AND listing.region = 'us-east-1' + web_acls_list_only: + name: web_acls_list_only + id: aws.wafv2.web_acls_list_only + x-cfn-schema-name: WebACL + x-cfn-type-name: AWS::WAFv2::WebACL + x-identifiers: + - Name + - Id + - Scope + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Name') as name, + JSON_EXTRACT(Properties, '$.Id') as id, + JSON_EXTRACT(Properties, '$.Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::WebACL' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Name') as name, + json_extract_path_text(Properties, 'Id') as id, + json_extract_path_text(Properties, 'Scope') as scope + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WAFv2::WebACL' + AND region = 'us-east-1' + web_acl_tags: + name: web_acl_tags + id: aws.wafv2.web_acl_tags + x-cfn-schema-name: WebACL + x-cfn-type-name: AWS::WAFv2::WebACL + 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, '$.Capacity') as capacity, + JSON_EXTRACT(detail.Properties, '$.DefaultAction') as default_action, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Scope') as scope, + JSON_EXTRACT(detail.Properties, '$.Rules') as rules, + JSON_EXTRACT(detail.Properties, '$.VisibilityConfig') as visibility_config, + JSON_EXTRACT(detail.Properties, '$.LabelNamespace') as label_namespace, + JSON_EXTRACT(detail.Properties, '$.CustomResponseBodies') as custom_response_bodies, + JSON_EXTRACT(detail.Properties, '$.CaptchaConfig') as captcha_config, + JSON_EXTRACT(detail.Properties, '$.ChallengeConfig') as challenge_config, + JSON_EXTRACT(detail.Properties, '$.TokenDomains') as token_domains, + JSON_EXTRACT(detail.Properties, '$.AssociationConfig') as association_config + 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::WAFv2::WebACL' + AND detail.data__TypeName = 'AWS::WAFv2::WebACL' + 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, 'Capacity') as capacity, + json_extract_path_text(detail.Properties, 'DefaultAction') as default_action, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Scope') as scope, + json_extract_path_text(detail.Properties, 'Rules') as rules, + json_extract_path_text(detail.Properties, 'VisibilityConfig') as visibility_config, + json_extract_path_text(detail.Properties, 'LabelNamespace') as label_namespace, + json_extract_path_text(detail.Properties, 'CustomResponseBodies') as custom_response_bodies, + json_extract_path_text(detail.Properties, 'CaptchaConfig') as captcha_config, + json_extract_path_text(detail.Properties, 'ChallengeConfig') as challenge_config, + json_extract_path_text(detail.Properties, 'TokenDomains') as token_domains, + json_extract_path_text(detail.Properties, 'AssociationConfig') as association_config + 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::WAFv2::WebACL' + AND detail.data__TypeName = 'AWS::WAFv2::WebACL' + AND listing.region = 'us-east-1' webacl_associations: name: webacl_associations id: aws.wafv2.webacl_associations diff --git a/providers/src/aws/v00.00.00000/services/wisdom.yaml b/providers/src/aws/v00.00.00000/services/wisdom.yaml index c7b87bfe..44b86532 100644 --- a/providers/src/aws/v00.00.00000/services/wisdom.yaml +++ b/providers/src/aws/v00.00.00000/services/wisdom.yaml @@ -886,10 +886,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssistantId') as assistant_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::Assistant' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AssistantArn') as assistant_arn, + JSON_EXTRACT(detail.Properties, '$.AssistantId') as assistant_id, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::Wisdom::Assistant' + AND detail.data__TypeName = 'AWS::Wisdom::Assistant' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -910,10 +921,107 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssistantId') as assistant_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::Assistant' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AssistantArn') as assistant_arn, + json_extract_path_text(detail.Properties, 'AssistantId') as assistant_id, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'Name') as name + 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::Wisdom::Assistant' + AND detail.data__TypeName = 'AWS::Wisdom::Assistant' + AND listing.region = 'us-east-1' + assistants_list_only: + name: assistants_list_only + id: aws.wisdom.assistants_list_only + x-cfn-schema-name: Assistant + x-cfn-type-name: AWS::Wisdom::Assistant + x-identifiers: + - AssistantId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssistantId') as assistant_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::Assistant' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssistantId') as assistant_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::Assistant' + AND region = 'us-east-1' + assistant_tags: + name: assistant_tags + id: aws.wisdom.assistant_tags + x-cfn-schema-name: Assistant + x-cfn-type-name: AWS::Wisdom::Assistant + 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, '$.Type') as type, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.AssistantArn') as assistant_arn, + JSON_EXTRACT(detail.Properties, '$.AssistantId') as assistant_id, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.Name') as name + 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::Wisdom::Assistant' + AND detail.data__TypeName = 'AWS::Wisdom::Assistant' + 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, 'Type') as type, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'AssistantArn') as assistant_arn, + json_extract_path_text(detail.Properties, 'AssistantId') as assistant_id, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'Name') as name + 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::Wisdom::Assistant' + AND detail.data__TypeName = 'AWS::Wisdom::Assistant' + AND listing.region = 'us-east-1' assistant_associations: name: assistant_associations id: aws.wisdom.assistant_associations @@ -992,11 +1100,21 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.AssistantAssociationId') as assistant_association_id, - JSON_EXTRACT(Properties, '$.AssistantId') as assistant_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::AssistantAssociation' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssistantAssociationArn') as assistant_association_arn, + JSON_EXTRACT(detail.Properties, '$.AssistantArn') as assistant_arn, + JSON_EXTRACT(detail.Properties, '$.AssistantAssociationId') as assistant_association_id, + JSON_EXTRACT(detail.Properties, '$.AssistantId') as assistant_id, + JSON_EXTRACT(detail.Properties, '$.Association') as association, + JSON_EXTRACT(detail.Properties, '$.AssociationType') as association_type, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Wisdom::AssistantAssociation' + AND detail.data__TypeName = 'AWS::Wisdom::AssistantAssociation' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1017,11 +1135,110 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'AssistantAssociationId') as assistant_association_id, - json_extract_path_text(Properties, 'AssistantId') as assistant_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::AssistantAssociation' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssistantAssociationArn') as assistant_association_arn, + json_extract_path_text(detail.Properties, 'AssistantArn') as assistant_arn, + json_extract_path_text(detail.Properties, 'AssistantAssociationId') as assistant_association_id, + json_extract_path_text(detail.Properties, 'AssistantId') as assistant_id, + json_extract_path_text(detail.Properties, 'Association') as association, + json_extract_path_text(detail.Properties, 'AssociationType') as association_type, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Wisdom::AssistantAssociation' + AND detail.data__TypeName = 'AWS::Wisdom::AssistantAssociation' + AND listing.region = 'us-east-1' + assistant_associations_list_only: + name: assistant_associations_list_only + id: aws.wisdom.assistant_associations_list_only + x-cfn-schema-name: AssistantAssociation + x-cfn-type-name: AWS::Wisdom::AssistantAssociation + x-identifiers: + - AssistantAssociationId + - AssistantId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.AssistantAssociationId') as assistant_association_id, + JSON_EXTRACT(Properties, '$.AssistantId') as assistant_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::AssistantAssociation' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'AssistantAssociationId') as assistant_association_id, + json_extract_path_text(Properties, 'AssistantId') as assistant_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::AssistantAssociation' + AND region = 'us-east-1' + assistant_association_tags: + name: assistant_association_tags + id: aws.wisdom.assistant_association_tags + x-cfn-schema-name: AssistantAssociation + x-cfn-type-name: AWS::Wisdom::AssistantAssociation + 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, '$.AssistantAssociationArn') as assistant_association_arn, + JSON_EXTRACT(detail.Properties, '$.AssistantArn') as assistant_arn, + JSON_EXTRACT(detail.Properties, '$.AssistantAssociationId') as assistant_association_id, + JSON_EXTRACT(detail.Properties, '$.AssistantId') as assistant_id, + JSON_EXTRACT(detail.Properties, '$.Association') as association, + JSON_EXTRACT(detail.Properties, '$.AssociationType') as association_type + 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::Wisdom::AssistantAssociation' + AND detail.data__TypeName = 'AWS::Wisdom::AssistantAssociation' + 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, 'AssistantAssociationArn') as assistant_association_arn, + json_extract_path_text(detail.Properties, 'AssistantArn') as assistant_arn, + json_extract_path_text(detail.Properties, 'AssistantAssociationId') as assistant_association_id, + json_extract_path_text(detail.Properties, 'AssistantId') as assistant_id, + json_extract_path_text(detail.Properties, 'Association') as association, + json_extract_path_text(detail.Properties, 'AssociationType') as association_type + 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::Wisdom::AssistantAssociation' + AND detail.data__TypeName = 'AWS::Wisdom::AssistantAssociation' + AND listing.region = 'us-east-1' knowledge_bases: name: knowledge_bases id: aws.wisdom.knowledge_bases @@ -1101,10 +1318,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.KnowledgeBaseId') as knowledge_base_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::KnowledgeBase' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseArn') as knowledge_base_arn, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseId') as knowledge_base_id, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseType') as knowledge_base_type, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RenderingConfiguration') as rendering_configuration, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.SourceConfiguration') as source_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::Wisdom::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Wisdom::KnowledgeBase' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1127,10 +1357,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'KnowledgeBaseId') as knowledge_base_id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::KnowledgeBase' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'KnowledgeBaseArn') as knowledge_base_arn, + json_extract_path_text(detail.Properties, 'KnowledgeBaseId') as knowledge_base_id, + json_extract_path_text(detail.Properties, 'KnowledgeBaseType') as knowledge_base_type, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RenderingConfiguration') as rendering_configuration, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'SourceConfiguration') as source_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::Wisdom::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Wisdom::KnowledgeBase' + AND listing.region = 'us-east-1' + knowledge_bases_list_only: + name: knowledge_bases_list_only + id: aws.wisdom.knowledge_bases_list_only + x-cfn-schema-name: KnowledgeBase + x-cfn-type-name: AWS::Wisdom::KnowledgeBase + x-identifiers: + - KnowledgeBaseId + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.KnowledgeBaseId') as knowledge_base_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::KnowledgeBase' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'KnowledgeBaseId') as knowledge_base_id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::Wisdom::KnowledgeBase' + AND region = 'us-east-1' + knowledge_base_tags: + name: knowledge_base_tags + id: aws.wisdom.knowledge_base_tags + x-cfn-schema-name: KnowledgeBase + x-cfn-type-name: AWS::Wisdom::KnowledgeBase + 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, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseArn') as knowledge_base_arn, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseId') as knowledge_base_id, + JSON_EXTRACT(detail.Properties, '$.KnowledgeBaseType') as knowledge_base_type, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.RenderingConfiguration') as rendering_configuration, + JSON_EXTRACT(detail.Properties, '$.ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + JSON_EXTRACT(detail.Properties, '$.SourceConfiguration') as source_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::Wisdom::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Wisdom::KnowledgeBase' + 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, 'Description') as description, + json_extract_path_text(detail.Properties, 'KnowledgeBaseArn') as knowledge_base_arn, + json_extract_path_text(detail.Properties, 'KnowledgeBaseId') as knowledge_base_id, + json_extract_path_text(detail.Properties, 'KnowledgeBaseType') as knowledge_base_type, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'RenderingConfiguration') as rendering_configuration, + json_extract_path_text(detail.Properties, 'ServerSideEncryptionConfiguration') as server_side_encryption_configuration, + json_extract_path_text(detail.Properties, 'SourceConfiguration') as source_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::Wisdom::KnowledgeBase' + AND detail.data__TypeName = 'AWS::Wisdom::KnowledgeBase' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/workspacesthinclient.yaml b/providers/src/aws/v00.00.00000/services/workspacesthinclient.yaml index f586f182..c206de79 100644 --- a/providers/src/aws/v00.00.00000/services/workspacesthinclient.yaml +++ b/providers/src/aws/v00.00.00000/services/workspacesthinclient.yaml @@ -835,10 +835,33 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesThinClient::Environment' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DesktopArn') as desktop_arn, + JSON_EXTRACT(detail.Properties, '$.DesktopEndpoint') as desktop_endpoint, + JSON_EXTRACT(detail.Properties, '$.DesktopType') as desktop_type, + JSON_EXTRACT(detail.Properties, '$.ActivationCode') as activation_code, + JSON_EXTRACT(detail.Properties, '$.RegisteredDevicesCount') as registered_devices_count, + JSON_EXTRACT(detail.Properties, '$.SoftwareSetUpdateSchedule') as software_set_update_schedule, + JSON_EXTRACT(detail.Properties, '$.MaintenanceWindow') as maintenance_window, + JSON_EXTRACT(detail.Properties, '$.SoftwareSetUpdateMode') as software_set_update_mode, + JSON_EXTRACT(detail.Properties, '$.DesiredSoftwareSetId') as desired_software_set_id, + JSON_EXTRACT(detail.Properties, '$.PendingSoftwareSetId') as pending_software_set_id, + JSON_EXTRACT(detail.Properties, '$.PendingSoftwareSetVersion') as pending_software_set_version, + JSON_EXTRACT(detail.Properties, '$.SoftwareSetComplianceStatus') as software_set_compliance_status, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::WorkSpacesThinClient::Environment' + AND detail.data__TypeName = 'AWS::WorkSpacesThinClient::Environment' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -871,10 +894,143 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'Id') as id - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesThinClient::Environment' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DesktopArn') as desktop_arn, + json_extract_path_text(detail.Properties, 'DesktopEndpoint') as desktop_endpoint, + json_extract_path_text(detail.Properties, 'DesktopType') as desktop_type, + json_extract_path_text(detail.Properties, 'ActivationCode') as activation_code, + json_extract_path_text(detail.Properties, 'RegisteredDevicesCount') as registered_devices_count, + json_extract_path_text(detail.Properties, 'SoftwareSetUpdateSchedule') as software_set_update_schedule, + json_extract_path_text(detail.Properties, 'MaintenanceWindow') as maintenance_window, + json_extract_path_text(detail.Properties, 'SoftwareSetUpdateMode') as software_set_update_mode, + json_extract_path_text(detail.Properties, 'DesiredSoftwareSetId') as desired_software_set_id, + json_extract_path_text(detail.Properties, 'PendingSoftwareSetId') as pending_software_set_id, + json_extract_path_text(detail.Properties, 'PendingSoftwareSetVersion') as pending_software_set_version, + json_extract_path_text(detail.Properties, 'SoftwareSetComplianceStatus') as software_set_compliance_status, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::WorkSpacesThinClient::Environment' + AND detail.data__TypeName = 'AWS::WorkSpacesThinClient::Environment' + AND listing.region = 'us-east-1' + environments_list_only: + name: environments_list_only + id: aws.workspacesthinclient.environments_list_only + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::WorkSpacesThinClient::Environment + x-identifiers: + - Id + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesThinClient::Environment' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'Id') as id + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesThinClient::Environment' + AND region = 'us-east-1' + environment_tags: + name: environment_tags + id: aws.workspacesthinclient.environment_tags + x-cfn-schema-name: Environment + x-cfn-type-name: AWS::WorkSpacesThinClient::Environment + 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, '$.Id') as id, + JSON_EXTRACT(detail.Properties, '$.Name') as name, + JSON_EXTRACT(detail.Properties, '$.DesktopArn') as desktop_arn, + JSON_EXTRACT(detail.Properties, '$.DesktopEndpoint') as desktop_endpoint, + JSON_EXTRACT(detail.Properties, '$.DesktopType') as desktop_type, + JSON_EXTRACT(detail.Properties, '$.ActivationCode') as activation_code, + JSON_EXTRACT(detail.Properties, '$.RegisteredDevicesCount') as registered_devices_count, + JSON_EXTRACT(detail.Properties, '$.SoftwareSetUpdateSchedule') as software_set_update_schedule, + JSON_EXTRACT(detail.Properties, '$.MaintenanceWindow') as maintenance_window, + JSON_EXTRACT(detail.Properties, '$.SoftwareSetUpdateMode') as software_set_update_mode, + JSON_EXTRACT(detail.Properties, '$.DesiredSoftwareSetId') as desired_software_set_id, + JSON_EXTRACT(detail.Properties, '$.PendingSoftwareSetId') as pending_software_set_id, + JSON_EXTRACT(detail.Properties, '$.PendingSoftwareSetVersion') as pending_software_set_version, + JSON_EXTRACT(detail.Properties, '$.SoftwareSetComplianceStatus') as software_set_compliance_status, + JSON_EXTRACT(detail.Properties, '$.CreatedAt') as created_at, + JSON_EXTRACT(detail.Properties, '$.UpdatedAt') as updated_at, + JSON_EXTRACT(detail.Properties, '$.Arn') as arn, + JSON_EXTRACT(detail.Properties, '$.KmsKeyArn') as kms_key_arn + 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::WorkSpacesThinClient::Environment' + AND detail.data__TypeName = 'AWS::WorkSpacesThinClient::Environment' + 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, 'Id') as id, + json_extract_path_text(detail.Properties, 'Name') as name, + json_extract_path_text(detail.Properties, 'DesktopArn') as desktop_arn, + json_extract_path_text(detail.Properties, 'DesktopEndpoint') as desktop_endpoint, + json_extract_path_text(detail.Properties, 'DesktopType') as desktop_type, + json_extract_path_text(detail.Properties, 'ActivationCode') as activation_code, + json_extract_path_text(detail.Properties, 'RegisteredDevicesCount') as registered_devices_count, + json_extract_path_text(detail.Properties, 'SoftwareSetUpdateSchedule') as software_set_update_schedule, + json_extract_path_text(detail.Properties, 'MaintenanceWindow') as maintenance_window, + json_extract_path_text(detail.Properties, 'SoftwareSetUpdateMode') as software_set_update_mode, + json_extract_path_text(detail.Properties, 'DesiredSoftwareSetId') as desired_software_set_id, + json_extract_path_text(detail.Properties, 'PendingSoftwareSetId') as pending_software_set_id, + json_extract_path_text(detail.Properties, 'PendingSoftwareSetVersion') as pending_software_set_version, + json_extract_path_text(detail.Properties, 'SoftwareSetComplianceStatus') as software_set_compliance_status, + json_extract_path_text(detail.Properties, 'CreatedAt') as created_at, + json_extract_path_text(detail.Properties, 'UpdatedAt') as updated_at, + json_extract_path_text(detail.Properties, 'Arn') as arn, + json_extract_path_text(detail.Properties, 'KmsKeyArn') as kms_key_arn + 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::WorkSpacesThinClient::Environment' + AND detail.data__TypeName = 'AWS::WorkSpacesThinClient::Environment' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/workspacesweb.yaml b/providers/src/aws/v00.00.00000/services/workspacesweb.yaml index 7c9c8f19..b2ea9b54 100644 --- a/providers/src/aws/v00.00.00000/services/workspacesweb.yaml +++ b/providers/src/aws/v00.00.00000/services/workspacesweb.yaml @@ -1881,10 +1881,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.BrowserSettingsArn') as browser_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.BrowserPolicy') as browser_policy, + JSON_EXTRACT(detail.Properties, '$.BrowserSettingsArn') as browser_settings_arn, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::WorkSpacesWeb::BrowserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1904,10 +1914,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'BrowserSettingsArn') as browser_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'BrowserPolicy') as browser_policy, + json_extract_path_text(detail.Properties, 'BrowserSettingsArn') as browser_settings_arn, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::WorkSpacesWeb::BrowserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' + AND listing.region = 'us-east-1' + browser_settings_list_only: + name: browser_settings_list_only + id: aws.workspacesweb.browser_settings_list_only + x-cfn-schema-name: BrowserSettings + x-cfn-type-name: AWS::WorkSpacesWeb::BrowserSettings + x-identifiers: + - BrowserSettingsArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.BrowserSettingsArn') as browser_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'BrowserSettingsArn') as browser_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' + AND region = 'us-east-1' + browser_settings_tags: + name: browser_settings_tags + id: aws.workspacesweb.browser_settings_tags + x-cfn-schema-name: BrowserSettings + x-cfn-type-name: AWS::WorkSpacesWeb::BrowserSettings + 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, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.BrowserPolicy') as browser_policy, + JSON_EXTRACT(detail.Properties, '$.BrowserSettingsArn') as browser_settings_arn, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key + 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::WorkSpacesWeb::BrowserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' + 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, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'BrowserPolicy') as browser_policy, + json_extract_path_text(detail.Properties, 'BrowserSettingsArn') as browser_settings_arn, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key + 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::WorkSpacesWeb::BrowserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::BrowserSettings' + AND listing.region = 'us-east-1' identity_providers: name: identity_providers id: aws.workspacesweb.identity_providers @@ -1983,10 +2087,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IdentityProviderArn') as identity_provider_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IdentityProvider' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderArn') as identity_provider_arn, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderDetails') as identity_provider_details, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderName') as identity_provider_name, + JSON_EXTRACT(detail.Properties, '$.IdentityProviderType') as identity_provider_type, + JSON_EXTRACT(detail.Properties, '$.PortalArn') as portal_arn + 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::WorkSpacesWeb::IdentityProvider' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::IdentityProvider' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2005,10 +2118,50 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IdentityProviderArn') as identity_provider_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IdentityProvider' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'IdentityProviderArn') as identity_provider_arn, + json_extract_path_text(detail.Properties, 'IdentityProviderDetails') as identity_provider_details, + json_extract_path_text(detail.Properties, 'IdentityProviderName') as identity_provider_name, + json_extract_path_text(detail.Properties, 'IdentityProviderType') as identity_provider_type, + json_extract_path_text(detail.Properties, 'PortalArn') as portal_arn + 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::WorkSpacesWeb::IdentityProvider' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::IdentityProvider' + AND listing.region = 'us-east-1' + identity_providers_list_only: + name: identity_providers_list_only + id: aws.workspacesweb.identity_providers_list_only + x-cfn-schema-name: IdentityProvider + x-cfn-type-name: AWS::WorkSpacesWeb::IdentityProvider + x-identifiers: + - IdentityProviderArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IdentityProviderArn') as identity_provider_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IdentityProvider' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IdentityProviderArn') as identity_provider_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IdentityProvider' + AND region = 'us-east-1' ip_access_settings: name: ip_access_settings id: aws.workspacesweb.ip_access_settings @@ -2088,10 +2241,23 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.IpAccessSettingsArn') as ip_access_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.IpAccessSettingsArn') as ip_access_settings_arn, + JSON_EXTRACT(detail.Properties, '$.IpRules') as ip_rules, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::WorkSpacesWeb::IpAccessSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2114,10 +2280,113 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'IpAccessSettingsArn') as ip_access_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'IpAccessSettingsArn') as ip_access_settings_arn, + json_extract_path_text(detail.Properties, 'IpRules') as ip_rules, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::WorkSpacesWeb::IpAccessSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' + AND listing.region = 'us-east-1' + ip_access_settings_list_only: + name: ip_access_settings_list_only + id: aws.workspacesweb.ip_access_settings_list_only + x-cfn-schema-name: IpAccessSettings + x-cfn-type-name: AWS::WorkSpacesWeb::IpAccessSettings + x-identifiers: + - IpAccessSettingsArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.IpAccessSettingsArn') as ip_access_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'IpAccessSettingsArn') as ip_access_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' + AND region = 'us-east-1' + ip_access_settings_tags: + name: ip_access_settings_tags + id: aws.workspacesweb.ip_access_settings_tags + x-cfn-schema-name: IpAccessSettings + x-cfn-type-name: AWS::WorkSpacesWeb::IpAccessSettings + 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, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key, + JSON_EXTRACT(detail.Properties, '$.Description') as description, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.IpAccessSettingsArn') as ip_access_settings_arn, + JSON_EXTRACT(detail.Properties, '$.IpRules') as ip_rules + 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::WorkSpacesWeb::IpAccessSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' + 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, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key, + json_extract_path_text(detail.Properties, 'Description') as description, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'IpAccessSettingsArn') as ip_access_settings_arn, + json_extract_path_text(detail.Properties, 'IpRules') as ip_rules + 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::WorkSpacesWeb::IpAccessSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::IpAccessSettings' + AND listing.region = 'us-east-1' network_settings: name: network_settings id: aws.workspacesweb.network_settings @@ -2194,10 +2463,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.NetworkSettingsArn') as network_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.NetworkSettingsArn') as network_settings_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::WorkSpacesWeb::NetworkSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2217,10 +2496,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'NetworkSettingsArn') as network_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'NetworkSettingsArn') as network_settings_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::WorkSpacesWeb::NetworkSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' + AND listing.region = 'us-east-1' + network_settings_list_only: + name: network_settings_list_only + id: aws.workspacesweb.network_settings_list_only + x-cfn-schema-name: NetworkSettings + x-cfn-type-name: AWS::WorkSpacesWeb::NetworkSettings + x-identifiers: + - NetworkSettingsArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.NetworkSettingsArn') as network_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'NetworkSettingsArn') as network_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' + AND region = 'us-east-1' + network_settings_tags: + name: network_settings_tags + id: aws.workspacesweb.network_settings_tags + x-cfn-schema-name: NetworkSettings + x-cfn-type-name: AWS::WorkSpacesWeb::NetworkSettings + 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, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.NetworkSettingsArn') as network_settings_arn, + JSON_EXTRACT(detail.Properties, '$.SecurityGroupIds') as security_group_ids, + JSON_EXTRACT(detail.Properties, '$.SubnetIds') as subnet_ids, + JSON_EXTRACT(detail.Properties, '$.VpcId') as vpc_id + 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::WorkSpacesWeb::NetworkSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' + 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, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'NetworkSettingsArn') as network_settings_arn, + json_extract_path_text(detail.Properties, 'SecurityGroupIds') as security_group_ids, + json_extract_path_text(detail.Properties, 'SubnetIds') as subnet_ids, + json_extract_path_text(detail.Properties, 'VpcId') as vpc_id + 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::WorkSpacesWeb::NetworkSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::NetworkSettings' + AND listing.region = 'us-east-1' portals: name: portals id: aws.workspacesweb.portals @@ -2312,10 +2685,35 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PortalArn') as portal_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::Portal' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AuthenticationType') as authentication_type, + JSON_EXTRACT(detail.Properties, '$.BrowserSettingsArn') as browser_settings_arn, + JSON_EXTRACT(detail.Properties, '$.BrowserType') as browser_type, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.IpAccessSettingsArn') as ip_access_settings_arn, + JSON_EXTRACT(detail.Properties, '$.MaxConcurrentSessions') as max_concurrent_sessions, + JSON_EXTRACT(detail.Properties, '$.NetworkSettingsArn') as network_settings_arn, + JSON_EXTRACT(detail.Properties, '$.PortalArn') as portal_arn, + JSON_EXTRACT(detail.Properties, '$.PortalEndpoint') as portal_endpoint, + JSON_EXTRACT(detail.Properties, '$.PortalStatus') as portal_status, + JSON_EXTRACT(detail.Properties, '$.RendererType') as renderer_type, + JSON_EXTRACT(detail.Properties, '$.ServiceProviderSamlMetadata') as service_provider_saml_metadata, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrustStoreArn') as trust_store_arn, + JSON_EXTRACT(detail.Properties, '$.UserAccessLoggingSettingsArn') as user_access_logging_settings_arn, + JSON_EXTRACT(detail.Properties, '$.UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::Portal' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::Portal' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2350,10 +2748,149 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PortalArn') as portal_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::Portal' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AuthenticationType') as authentication_type, + json_extract_path_text(detail.Properties, 'BrowserSettingsArn') as browser_settings_arn, + json_extract_path_text(detail.Properties, 'BrowserType') as browser_type, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'IpAccessSettingsArn') as ip_access_settings_arn, + json_extract_path_text(detail.Properties, 'MaxConcurrentSessions') as max_concurrent_sessions, + json_extract_path_text(detail.Properties, 'NetworkSettingsArn') as network_settings_arn, + json_extract_path_text(detail.Properties, 'PortalArn') as portal_arn, + json_extract_path_text(detail.Properties, 'PortalEndpoint') as portal_endpoint, + json_extract_path_text(detail.Properties, 'PortalStatus') as portal_status, + json_extract_path_text(detail.Properties, 'RendererType') as renderer_type, + json_extract_path_text(detail.Properties, 'ServiceProviderSamlMetadata') as service_provider_saml_metadata, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrustStoreArn') as trust_store_arn, + json_extract_path_text(detail.Properties, 'UserAccessLoggingSettingsArn') as user_access_logging_settings_arn, + json_extract_path_text(detail.Properties, 'UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::Portal' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::Portal' + AND listing.region = 'us-east-1' + portals_list_only: + name: portals_list_only + id: aws.workspacesweb.portals_list_only + x-cfn-schema-name: Portal + x-cfn-type-name: AWS::WorkSpacesWeb::Portal + x-identifiers: + - PortalArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PortalArn') as portal_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::Portal' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PortalArn') as portal_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::Portal' + AND region = 'us-east-1' + portal_tags: + name: portal_tags + id: aws.workspacesweb.portal_tags + x-cfn-schema-name: Portal + x-cfn-type-name: AWS::WorkSpacesWeb::Portal + 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, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AuthenticationType') as authentication_type, + JSON_EXTRACT(detail.Properties, '$.BrowserSettingsArn') as browser_settings_arn, + JSON_EXTRACT(detail.Properties, '$.BrowserType') as browser_type, + JSON_EXTRACT(detail.Properties, '$.CreationDate') as creation_date, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key, + JSON_EXTRACT(detail.Properties, '$.DisplayName') as display_name, + JSON_EXTRACT(detail.Properties, '$.InstanceType') as instance_type, + JSON_EXTRACT(detail.Properties, '$.IpAccessSettingsArn') as ip_access_settings_arn, + JSON_EXTRACT(detail.Properties, '$.MaxConcurrentSessions') as max_concurrent_sessions, + JSON_EXTRACT(detail.Properties, '$.NetworkSettingsArn') as network_settings_arn, + JSON_EXTRACT(detail.Properties, '$.PortalArn') as portal_arn, + JSON_EXTRACT(detail.Properties, '$.PortalEndpoint') as portal_endpoint, + JSON_EXTRACT(detail.Properties, '$.PortalStatus') as portal_status, + JSON_EXTRACT(detail.Properties, '$.RendererType') as renderer_type, + JSON_EXTRACT(detail.Properties, '$.ServiceProviderSamlMetadata') as service_provider_saml_metadata, + JSON_EXTRACT(detail.Properties, '$.StatusReason') as status_reason, + JSON_EXTRACT(detail.Properties, '$.TrustStoreArn') as trust_store_arn, + JSON_EXTRACT(detail.Properties, '$.UserAccessLoggingSettingsArn') as user_access_logging_settings_arn, + JSON_EXTRACT(detail.Properties, '$.UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::Portal' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::Portal' + 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, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AuthenticationType') as authentication_type, + json_extract_path_text(detail.Properties, 'BrowserSettingsArn') as browser_settings_arn, + json_extract_path_text(detail.Properties, 'BrowserType') as browser_type, + json_extract_path_text(detail.Properties, 'CreationDate') as creation_date, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key, + json_extract_path_text(detail.Properties, 'DisplayName') as display_name, + json_extract_path_text(detail.Properties, 'InstanceType') as instance_type, + json_extract_path_text(detail.Properties, 'IpAccessSettingsArn') as ip_access_settings_arn, + json_extract_path_text(detail.Properties, 'MaxConcurrentSessions') as max_concurrent_sessions, + json_extract_path_text(detail.Properties, 'NetworkSettingsArn') as network_settings_arn, + json_extract_path_text(detail.Properties, 'PortalArn') as portal_arn, + json_extract_path_text(detail.Properties, 'PortalEndpoint') as portal_endpoint, + json_extract_path_text(detail.Properties, 'PortalStatus') as portal_status, + json_extract_path_text(detail.Properties, 'RendererType') as renderer_type, + json_extract_path_text(detail.Properties, 'ServiceProviderSamlMetadata') as service_provider_saml_metadata, + json_extract_path_text(detail.Properties, 'StatusReason') as status_reason, + json_extract_path_text(detail.Properties, 'TrustStoreArn') as trust_store_arn, + json_extract_path_text(detail.Properties, 'UserAccessLoggingSettingsArn') as user_access_logging_settings_arn, + json_extract_path_text(detail.Properties, 'UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::Portal' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::Portal' + AND listing.region = 'us-east-1' trust_stores: name: trust_stores id: aws.workspacesweb.trust_stores @@ -2428,10 +2965,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.TrustStoreArn') as trust_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.CertificateList') as certificate_list, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.TrustStoreArn') as trust_store_arn + 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::WorkSpacesWeb::TrustStore' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2449,10 +2994,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'TrustStoreArn') as trust_store_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'CertificateList') as certificate_list, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'TrustStoreArn') as trust_store_arn + 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::WorkSpacesWeb::TrustStore' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' + AND listing.region = 'us-east-1' + trust_stores_list_only: + name: trust_stores_list_only + id: aws.workspacesweb.trust_stores_list_only + x-cfn-schema-name: TrustStore + x-cfn-type-name: AWS::WorkSpacesWeb::TrustStore + x-identifiers: + - TrustStoreArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.TrustStoreArn') as trust_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'TrustStoreArn') as trust_store_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' + AND region = 'us-east-1' + trust_store_tags: + name: trust_store_tags + id: aws.workspacesweb.trust_store_tags + x-cfn-schema-name: TrustStore + x-cfn-type-name: AWS::WorkSpacesWeb::TrustStore + 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, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.CertificateList') as certificate_list, + JSON_EXTRACT(detail.Properties, '$.TrustStoreArn') as trust_store_arn + 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::WorkSpacesWeb::TrustStore' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' + 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, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'CertificateList') as certificate_list, + json_extract_path_text(detail.Properties, 'TrustStoreArn') as trust_store_arn + 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::WorkSpacesWeb::TrustStore' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::TrustStore' + AND listing.region = 'us-east-1' user_access_logging_settings: name: user_access_logging_settings id: aws.workspacesweb.user_access_logging_settings @@ -2527,10 +3160,18 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserAccessLoggingSettingsArn') as user_access_logging_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.KinesisStreamArn') as kinesis_stream_arn, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UserAccessLoggingSettingsArn') as user_access_logging_settings_arn + 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::WorkSpacesWeb::UserAccessLoggingSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2548,10 +3189,98 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserAccessLoggingSettingsArn') as user_access_logging_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'KinesisStreamArn') as kinesis_stream_arn, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UserAccessLoggingSettingsArn') as user_access_logging_settings_arn + 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::WorkSpacesWeb::UserAccessLoggingSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' + AND listing.region = 'us-east-1' + user_access_logging_settings_list_only: + name: user_access_logging_settings_list_only + id: aws.workspacesweb.user_access_logging_settings_list_only + x-cfn-schema-name: UserAccessLoggingSettings + x-cfn-type-name: AWS::WorkSpacesWeb::UserAccessLoggingSettings + x-identifiers: + - UserAccessLoggingSettingsArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserAccessLoggingSettingsArn') as user_access_logging_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserAccessLoggingSettingsArn') as user_access_logging_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' + AND region = 'us-east-1' + user_access_logging_settings_tags: + name: user_access_logging_settings_tags + id: aws.workspacesweb.user_access_logging_settings_tags + x-cfn-schema-name: UserAccessLoggingSettings + x-cfn-type-name: AWS::WorkSpacesWeb::UserAccessLoggingSettings + 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, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.KinesisStreamArn') as kinesis_stream_arn, + JSON_EXTRACT(detail.Properties, '$.UserAccessLoggingSettingsArn') as user_access_logging_settings_arn + 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::WorkSpacesWeb::UserAccessLoggingSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' + 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, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'KinesisStreamArn') as kinesis_stream_arn, + json_extract_path_text(detail.Properties, 'UserAccessLoggingSettingsArn') as user_access_logging_settings_arn + 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::WorkSpacesWeb::UserAccessLoggingSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserAccessLoggingSettings' + AND listing.region = 'us-east-1' user_settings: name: user_settings id: aws.workspacesweb.user_settings @@ -2635,10 +3364,27 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.UserSettingsArn') as user_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.CookieSynchronizationConfiguration') as cookie_synchronization_configuration, + JSON_EXTRACT(detail.Properties, '$.CopyAllowed') as copy_allowed, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key, + JSON_EXTRACT(detail.Properties, '$.DisconnectTimeoutInMinutes') as disconnect_timeout_in_minutes, + JSON_EXTRACT(detail.Properties, '$.DownloadAllowed') as download_allowed, + JSON_EXTRACT(detail.Properties, '$.IdleDisconnectTimeoutInMinutes') as idle_disconnect_timeout_in_minutes, + JSON_EXTRACT(detail.Properties, '$.PasteAllowed') as paste_allowed, + JSON_EXTRACT(detail.Properties, '$.PrintAllowed') as print_allowed, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags, + JSON_EXTRACT(detail.Properties, '$.UploadAllowed') as upload_allowed, + JSON_EXTRACT(detail.Properties, '$.UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::UserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -2665,10 +3411,125 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'UserSettingsArn') as user_settings_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'CookieSynchronizationConfiguration') as cookie_synchronization_configuration, + json_extract_path_text(detail.Properties, 'CopyAllowed') as copy_allowed, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key, + json_extract_path_text(detail.Properties, 'DisconnectTimeoutInMinutes') as disconnect_timeout_in_minutes, + json_extract_path_text(detail.Properties, 'DownloadAllowed') as download_allowed, + json_extract_path_text(detail.Properties, 'IdleDisconnectTimeoutInMinutes') as idle_disconnect_timeout_in_minutes, + json_extract_path_text(detail.Properties, 'PasteAllowed') as paste_allowed, + json_extract_path_text(detail.Properties, 'PrintAllowed') as print_allowed, + json_extract_path_text(detail.Properties, 'Tags') as tags, + json_extract_path_text(detail.Properties, 'UploadAllowed') as upload_allowed, + json_extract_path_text(detail.Properties, 'UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::UserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' + AND listing.region = 'us-east-1' + user_settings_list_only: + name: user_settings_list_only + id: aws.workspacesweb.user_settings_list_only + x-cfn-schema-name: UserSettings + x-cfn-type-name: AWS::WorkSpacesWeb::UserSettings + x-identifiers: + - UserSettingsArn + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.UserSettingsArn') as user_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'UserSettingsArn') as user_settings_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' + AND region = 'us-east-1' + user_settings_tags: + name: user_settings_tags + id: aws.workspacesweb.user_settings_tags + x-cfn-schema-name: UserSettings + x-cfn-type-name: AWS::WorkSpacesWeb::UserSettings + 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, '$.AdditionalEncryptionContext') as additional_encryption_context, + JSON_EXTRACT(detail.Properties, '$.AssociatedPortalArns') as associated_portal_arns, + JSON_EXTRACT(detail.Properties, '$.CookieSynchronizationConfiguration') as cookie_synchronization_configuration, + JSON_EXTRACT(detail.Properties, '$.CopyAllowed') as copy_allowed, + JSON_EXTRACT(detail.Properties, '$.CustomerManagedKey') as customer_managed_key, + JSON_EXTRACT(detail.Properties, '$.DisconnectTimeoutInMinutes') as disconnect_timeout_in_minutes, + JSON_EXTRACT(detail.Properties, '$.DownloadAllowed') as download_allowed, + JSON_EXTRACT(detail.Properties, '$.IdleDisconnectTimeoutInMinutes') as idle_disconnect_timeout_in_minutes, + JSON_EXTRACT(detail.Properties, '$.PasteAllowed') as paste_allowed, + JSON_EXTRACT(detail.Properties, '$.PrintAllowed') as print_allowed, + JSON_EXTRACT(detail.Properties, '$.UploadAllowed') as upload_allowed, + JSON_EXTRACT(detail.Properties, '$.UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::UserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' + 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, 'AdditionalEncryptionContext') as additional_encryption_context, + json_extract_path_text(detail.Properties, 'AssociatedPortalArns') as associated_portal_arns, + json_extract_path_text(detail.Properties, 'CookieSynchronizationConfiguration') as cookie_synchronization_configuration, + json_extract_path_text(detail.Properties, 'CopyAllowed') as copy_allowed, + json_extract_path_text(detail.Properties, 'CustomerManagedKey') as customer_managed_key, + json_extract_path_text(detail.Properties, 'DisconnectTimeoutInMinutes') as disconnect_timeout_in_minutes, + json_extract_path_text(detail.Properties, 'DownloadAllowed') as download_allowed, + json_extract_path_text(detail.Properties, 'IdleDisconnectTimeoutInMinutes') as idle_disconnect_timeout_in_minutes, + json_extract_path_text(detail.Properties, 'PasteAllowed') as paste_allowed, + json_extract_path_text(detail.Properties, 'PrintAllowed') as print_allowed, + json_extract_path_text(detail.Properties, 'UploadAllowed') as upload_allowed, + json_extract_path_text(detail.Properties, 'UserSettingsArn') as user_settings_arn + 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::WorkSpacesWeb::UserSettings' + AND detail.data__TypeName = 'AWS::WorkSpacesWeb::UserSettings' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: diff --git a/providers/src/aws/v00.00.00000/services/xray.yaml b/providers/src/aws/v00.00.00000/services/xray.yaml index ae53caca..226edbc8 100644 --- a/providers/src/aws/v00.00.00000/services/xray.yaml +++ b/providers/src/aws/v00.00.00000/services/xray.yaml @@ -804,10 +804,19 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.GroupARN') as group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::Group' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.FilterExpression') as filter_expression, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.GroupARN') as group_arn, + JSON_EXTRACT(detail.Properties, '$.InsightsConfiguration') as insights_configuration, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::XRay::Group' + AND detail.data__TypeName = 'AWS::XRay::Group' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -826,10 +835,101 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'GroupARN') as group_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::Group' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'FilterExpression') as filter_expression, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'GroupARN') as group_arn, + json_extract_path_text(detail.Properties, 'InsightsConfiguration') as insights_configuration, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::XRay::Group' + AND detail.data__TypeName = 'AWS::XRay::Group' + AND listing.region = 'us-east-1' + groups_list_only: + name: groups_list_only + id: aws.xray.groups_list_only + x-cfn-schema-name: Group + x-cfn-type-name: AWS::XRay::Group + x-identifiers: + - GroupARN + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.GroupARN') as group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::Group' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'GroupARN') as group_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::Group' + AND region = 'us-east-1' + group_tags: + name: group_tags + id: aws.xray.group_tags + x-cfn-schema-name: Group + x-cfn-type-name: AWS::XRay::Group + 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, '$.FilterExpression') as filter_expression, + JSON_EXTRACT(detail.Properties, '$.GroupName') as group_name, + JSON_EXTRACT(detail.Properties, '$.GroupARN') as group_arn, + JSON_EXTRACT(detail.Properties, '$.InsightsConfiguration') as insights_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::XRay::Group' + AND detail.data__TypeName = 'AWS::XRay::Group' + 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, 'FilterExpression') as filter_expression, + json_extract_path_text(detail.Properties, 'GroupName') as group_name, + json_extract_path_text(detail.Properties, 'GroupARN') as group_arn, + json_extract_path_text(detail.Properties, 'InsightsConfiguration') as insights_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::XRay::Group' + AND detail.data__TypeName = 'AWS::XRay::Group' + AND listing.region = 'us-east-1' resource_policies: name: resource_policies id: aws.xray.resource_policies @@ -903,10 +1003,17 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.PolicyName') as policy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.PolicyName') as policy_name, + JSON_EXTRACT(detail.Properties, '$.PolicyDocument') as policy_document, + JSON_EXTRACT(detail.Properties, '$.BypassPolicyLockoutCheck') as bypass_policy_lockout_check + 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::XRay::ResourcePolicy' + AND detail.data__TypeName = 'AWS::XRay::ResourcePolicy' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -923,10 +1030,48 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'PolicyName') as policy_name - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::ResourcePolicy' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'PolicyName') as policy_name, + json_extract_path_text(detail.Properties, 'PolicyDocument') as policy_document, + json_extract_path_text(detail.Properties, 'BypassPolicyLockoutCheck') as bypass_policy_lockout_check + 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::XRay::ResourcePolicy' + AND detail.data__TypeName = 'AWS::XRay::ResourcePolicy' + AND listing.region = 'us-east-1' + resource_policies_list_only: + name: resource_policies_list_only + id: aws.xray.resource_policies_list_only + x-cfn-schema-name: ResourcePolicy + x-cfn-type-name: AWS::XRay::ResourcePolicy + x-identifiers: + - PolicyName + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.PolicyName') as policy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::ResourcePolicy' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'PolicyName') as policy_name + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::ResourcePolicy' + AND region = 'us-east-1' sampling_rules: name: sampling_rules id: aws.xray.sampling_rules @@ -1003,10 +1148,20 @@ components: predicate: sqlDialect == "sqlite3" ddl: |- SELECT - region, - JSON_EXTRACT(Properties, '$.RuleARN') as rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::SamplingRule' - AND region = 'us-east-1' + detail.region, + JSON_EXTRACT(detail.Properties, '$.SamplingRule') as sampling_rule, + JSON_EXTRACT(detail.Properties, '$.SamplingRuleRecord') as sampling_rule_record, + JSON_EXTRACT(detail.Properties, '$.SamplingRuleUpdate') as sampling_rule_update, + JSON_EXTRACT(detail.Properties, '$.RuleARN') as rule_arn, + JSON_EXTRACT(detail.Properties, '$.RuleName') as rule_name, + JSON_EXTRACT(detail.Properties, '$.Tags') as tags + 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::XRay::SamplingRule' + AND detail.data__TypeName = 'AWS::XRay::SamplingRule' + AND listing.region = 'us-east-1' fallback: predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ] ddl: |- @@ -1026,10 +1181,104 @@ components: predicate: sqlDialect == "postgres" ddl: |- SELECT - region, - json_extract_path_text(Properties, 'RuleARN') as rule_arn - FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::SamplingRule' - AND region = 'us-east-1' + detail.region, + json_extract_path_text(detail.Properties, 'SamplingRule') as sampling_rule, + json_extract_path_text(detail.Properties, 'SamplingRuleRecord') as sampling_rule_record, + json_extract_path_text(detail.Properties, 'SamplingRuleUpdate') as sampling_rule_update, + json_extract_path_text(detail.Properties, 'RuleARN') as rule_arn, + json_extract_path_text(detail.Properties, 'RuleName') as rule_name, + json_extract_path_text(detail.Properties, 'Tags') as tags + 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::XRay::SamplingRule' + AND detail.data__TypeName = 'AWS::XRay::SamplingRule' + AND listing.region = 'us-east-1' + sampling_rules_list_only: + name: sampling_rules_list_only + id: aws.xray.sampling_rules_list_only + x-cfn-schema-name: SamplingRule + x-cfn-type-name: AWS::XRay::SamplingRule + x-identifiers: + - RuleARN + x-type: cloud_control_view + methods: {} + sqlVerbs: + insert: [] + delete: [] + update: [] + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + region, + JSON_EXTRACT(Properties, '$.RuleARN') as rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::SamplingRule' + AND region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + region, + json_extract_path_text(Properties, 'RuleARN') as rule_arn + FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::XRay::SamplingRule' + AND region = 'us-east-1' + sampling_rule_tags: + name: sampling_rule_tags + id: aws.xray.sampling_rule_tags + x-cfn-schema-name: SamplingRule + x-cfn-type-name: AWS::XRay::SamplingRule + 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, '$.SamplingRule') as sampling_rule, + JSON_EXTRACT(detail.Properties, '$.SamplingRuleRecord') as sampling_rule_record, + JSON_EXTRACT(detail.Properties, '$.SamplingRuleUpdate') as sampling_rule_update, + JSON_EXTRACT(detail.Properties, '$.RuleARN') as rule_arn, + JSON_EXTRACT(detail.Properties, '$.RuleName') as rule_name + 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::XRay::SamplingRule' + AND detail.data__TypeName = 'AWS::XRay::SamplingRule' + 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, 'SamplingRule') as sampling_rule, + json_extract_path_text(detail.Properties, 'SamplingRuleRecord') as sampling_rule_record, + json_extract_path_text(detail.Properties, 'SamplingRuleUpdate') as sampling_rule_update, + json_extract_path_text(detail.Properties, 'RuleARN') as rule_arn, + json_extract_path_text(detail.Properties, 'RuleName') as rule_name + 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::XRay::SamplingRule' + AND detail.data__TypeName = 'AWS::XRay::SamplingRule' + AND listing.region = 'us-east-1' paths: /?Action=CreateResource&Version=2021-09-30: parameters: