Skip to content

Commit

Permalink
add ignoreErrorHandler to tables
Browse files Browse the repository at this point in the history
  • Loading branch information
bbernays committed Jun 6, 2022
1 parent facb58f commit da624e3
Show file tree
Hide file tree
Showing 61 changed files with 201 additions and 8 deletions.
3 changes: 3 additions & 0 deletions resources/services/accessanalyzer/analyzers.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func Analyzers() *schema.Table {
Name: "aws_access_analyzer_analyzer_findings",
Description: "Contains information about a finding",
Resolver: fetchAccessAnalyzerAnalyzerFindings,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "analyzer_cq_id",
Expand Down Expand Up @@ -168,6 +169,7 @@ func Analyzers() *schema.Table {
Description: "The source of the finding",
Resolver: fetchAccessAnalyzerAnalyzerFindingSources,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "analyzer_finding_cq_id",
Expand All @@ -194,6 +196,7 @@ func Analyzers() *schema.Table {
Name: "aws_access_analyzer_analyzer_archive_rules",
Description: "Contains information about an archive rule",
Resolver: fetchAccessAnalyzerAnalyzerArchiveRules,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down
1 change: 1 addition & 0 deletions resources/services/apigateway/domain_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func ApigatewayDomainNames() *schema.Table {
Name: "aws_apigateway_domain_name_base_path_mappings",
Description: "Represents the base path that callers of the API must provide as part of the URL after the domain name.",
Resolver: fetchApigatewayDomainNameBasePathMappings,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "domain_name_cq_id",
Expand Down
9 changes: 9 additions & 0 deletions resources/services/apigateway/rest_apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_authorizers",
Description: "Represents an authorization layer for methods.",
Resolver: fetchApigatewayRestApiAuthorizers,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -205,6 +206,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_deployments",
Description: "An immutable representation of a RestApi resource that can be called by users using Stages.",
Resolver: fetchApigatewayRestApiDeployments,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -256,6 +258,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_documentation_parts",
Description: "A documentation part for a targeted API entity.",
Resolver: fetchApigatewayRestApiDocumentationParts,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -327,6 +330,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_documentation_versions",
Description: "A snapshot of the documentation of an API.",
Resolver: fetchApigatewayRestApiDocumentationVersions,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -372,6 +376,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_gateway_responses",
Description: "A gateway response of a given response type and status code, with optional response parameters and mapping templates.",
Resolver: fetchApigatewayRestApiGatewayResponses,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -427,6 +432,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_models",
Description: "Represents the data structure of a method's request or response payload.",
Resolver: fetchApigatewayRestApiModels,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -488,6 +494,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_request_validators",
Description: "A set of validation rules for incoming Method requests.",
Resolver: fetchApigatewayRestApiRequestValidators,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -539,6 +546,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_resources",
Description: "Represents an API resource.",
Resolver: fetchApigatewayRestApiResources,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -595,6 +603,7 @@ func ApigatewayRestApis() *schema.Table {
Name: "aws_apigateway_rest_api_stages",
Description: "Represents a unique identifier for a version of a deployed RestApi that is callable by users.",
Resolver: fetchApigatewayRestApiStages,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down
2 changes: 2 additions & 0 deletions resources/services/apigateway/usage_plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func ApigatewayUsagePlans() *schema.Table {
Name: "aws_apigateway_usage_plan_api_stages",
Description: "API stage name of the associated API stage in a usage plan.",
Resolver: fetchApigatewayUsagePlanApiStages,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -141,6 +142,7 @@ func ApigatewayUsagePlans() *schema.Table {
Name: "aws_apigateway_usage_plan_keys",
Description: "Represents a usage plan key to identify a plan customer.",
Resolver: fetchApigatewayUsagePlanKeys,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down
8 changes: 8 additions & 0 deletions resources/services/apigatewayv2/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func Apigatewayv2Apis() *schema.Table {
Description: "Represents an authorizer.",
Resolver: fetchApigatewayv2ApiAuthorizers,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "api_cq_id",
Expand Down Expand Up @@ -266,6 +267,7 @@ func Apigatewayv2Apis() *schema.Table {
Name: "aws_apigatewayv2_api_deployments",
Description: "An immutable representation of an API that can be called by users.",
Resolver: fetchApigatewayv2ApiDeployments,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "api_cq_id",
Expand Down Expand Up @@ -326,6 +328,7 @@ func Apigatewayv2Apis() *schema.Table {
Name: "aws_apigatewayv2_api_integrations",
Description: "Represents an integration.",
Resolver: fetchApigatewayv2ApiIntegrations,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "api_cq_id",
Expand Down Expand Up @@ -467,6 +470,7 @@ func Apigatewayv2Apis() *schema.Table {
Description: "Represents an integration response.",
Resolver: fetchApigatewayv2ApiIntegrationResponses,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "api_integration_cq_id",
Expand Down Expand Up @@ -530,6 +534,7 @@ func Apigatewayv2Apis() *schema.Table {
Description: "Represents a data model for an API.",
Resolver: fetchApigatewayv2ApiModels,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "api_cq_id",
Expand Down Expand Up @@ -589,6 +594,7 @@ func Apigatewayv2Apis() *schema.Table {
Name: "aws_apigatewayv2_api_routes",
Description: "Represents a route.",
Resolver: fetchApigatewayv2ApiRoutes,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "api_cq_id",
Expand Down Expand Up @@ -691,6 +697,7 @@ func Apigatewayv2Apis() *schema.Table {
Description: "Represents a route response.",
Resolver: fetchApigatewayv2ApiRouteResponses,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "api_route_cq_id",
Expand Down Expand Up @@ -748,6 +755,7 @@ func Apigatewayv2Apis() *schema.Table {
Name: "aws_apigatewayv2_api_stages",
Description: "Represents an API stage.",
Resolver: fetchApigatewayv2ApiStages,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "api_cq_id",
Expand Down
2 changes: 2 additions & 0 deletions resources/services/apigatewayv2/domain_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func Apigatewayv2DomainNames() *schema.Table {
Name: "aws_apigatewayv2_domain_name_configurations",
Description: "The domain name configuration.",
Resolver: fetchApigatewayv2DomainNameConfigurations,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "domain_name_cq_id",
Expand Down Expand Up @@ -142,6 +143,7 @@ func Apigatewayv2DomainNames() *schema.Table {
Name: "aws_apigatewayv2_domain_name_rest_api_mappings",
Description: "Represents an API mapping.",
Resolver: fetchApigatewayv2DomainNameRestApiMappings,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "domain_name_cq_id",
Expand Down
4 changes: 4 additions & 0 deletions resources/services/athena/data_catalogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func DataCatalogs() *schema.Table {
Name: "aws_athena_data_catalog_databases",
Description: "Contains metadata information for a database in a data catalog",
Resolver: fetchAthenaDataCatalogDatabases,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "data_catalog_cq_id",
Expand Down Expand Up @@ -108,6 +109,7 @@ func DataCatalogs() *schema.Table {
Name: "aws_athena_data_catalog_database_tables",
Description: "Contains metadata for a table",
Resolver: fetchAthenaDataCatalogDatabaseTables,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "data_catalog_database_cq_id",
Expand Down Expand Up @@ -149,6 +151,7 @@ func DataCatalogs() *schema.Table {
Description: "Contains metadata for a column in a table",
Resolver: fetchAthenaDataCatalogDatabaseTableColumns,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "data_catalog_database_table_cq_id",
Expand Down Expand Up @@ -178,6 +181,7 @@ func DataCatalogs() *schema.Table {
Description: "Contains metadata for a column in a table",
Resolver: fetchAthenaDataCatalogDatabaseTablePartitionKeys,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "data_catalog_database_table_cq_id",
Expand Down
3 changes: 3 additions & 0 deletions resources/services/athena/work_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func WorkGroups() *schema.Table {
Description: "A prepared SQL statement for use with Athena",
Resolver: fetchAthenaWorkGroupPreparedStatements,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "work_group_cq_id",
Expand Down Expand Up @@ -183,6 +184,7 @@ func WorkGroups() *schema.Table {
Description: "Information about a single instance of a query execution",
Resolver: fetchAthenaWorkGroupQueryExecutions,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "work_group_cq_id",
Expand Down Expand Up @@ -361,6 +363,7 @@ func WorkGroups() *schema.Table {
Name: "aws_athena_work_group_named_queries",
Description: "A query, where QueryString contains the SQL statements that make up the query",
Resolver: fetchAthenaWorkGroupNamedQueries,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "work_group_cq_id",
Expand Down
1 change: 1 addition & 0 deletions resources/services/autoscaling/configurations.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func AutoscalingLaunchConfigurations() *schema.Table {
Name: "aws_autoscaling_launch_configuration_block_device_mappings",
Description: "Describes a block device mapping.",
Resolver: fetchAutoscalingLaunchConfigurationBlockDeviceMappings,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "launch_configuration_cq_id",
Expand Down
4 changes: 4 additions & 0 deletions resources/services/autoscaling/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func AutoscalingGroups() *schema.Table {
Name: "aws_autoscaling_group_instances",
Description: "Describes an EC2 instance.",
Resolver: fetchAutoscalingGroupInstances,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "group_cq_id",
Expand Down Expand Up @@ -293,6 +294,7 @@ func AutoscalingGroups() *schema.Table {
Name: "aws_autoscaling_group_tags",
Description: "Describes a tag for an Auto Scaling group.",
Resolver: fetchAutoscalingGroupTags,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "group_cq_id",
Expand Down Expand Up @@ -331,6 +333,7 @@ func AutoscalingGroups() *schema.Table {
Name: "aws_autoscaling_group_scaling_policies",
Description: "Describes a scaling policy.",
Resolver: fetchAutoscalingGroupScalingPolicies,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down Expand Up @@ -475,6 +478,7 @@ func AutoscalingGroups() *schema.Table {
Description: "Describes a lifecycle hook, which tells Amazon EC2 Auto Scaling that you want to perform an action whenever it launches instances or terminates instances.",
Resolver: fetchAutoscalingGroupLifecycleHooks,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "group_cq_id",
Expand Down
2 changes: 2 additions & 0 deletions resources/services/cloudformation/stacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func Stacks() *schema.Table {
Description: "The Output data type.",
Resolver: fetchCloudformationStackOutputs,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "stack_cq_id",
Expand Down Expand Up @@ -222,6 +223,7 @@ func Stacks() *schema.Table {
Name: "aws_cloudformation_stack_resources",
Description: "Contains high-level information about the specified stack resource.",
Resolver: fetchCloudformationStackResources,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "stack_cq_id",
Expand Down
6 changes: 6 additions & 0 deletions resources/services/cloudfront/distributions.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ func CloudfrontDistributions() *schema.Table {
Description: "A complex type that contains a Lambda function association.",
Resolver: fetchCloudfrontDistributionDefaultCacheBehaviorLambdaFunctions,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "distribution_cq_id",
Expand Down Expand Up @@ -405,6 +406,7 @@ func CloudfrontDistributions() *schema.Table {
Name: "aws_cloudfront_distribution_origins",
Description: "An origin",
Resolver: fetchCloudfrontDistributionOrigins,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "distribution_cq_id",
Expand Down Expand Up @@ -509,6 +511,7 @@ func CloudfrontDistributions() *schema.Table {
Name: "aws_cloudfront_distribution_cache_behaviors",
Description: "A complex type that describes how CloudFront processes requests",
Resolver: fetchCloudfrontDistributionCacheBehaviors,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "distribution_cq_id",
Expand Down Expand Up @@ -659,6 +662,7 @@ func CloudfrontDistributions() *schema.Table {
Description: "A complex type that contains a Lambda function association.",
Resolver: fetchCloudfrontDistributionCacheBehaviorLambdaFunctions,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "distribution_cache_behavior_cq_id",
Expand Down Expand Up @@ -690,6 +694,7 @@ func CloudfrontDistributions() *schema.Table {
Name: "aws_cloudfront_distribution_custom_error_responses",
Description: "A complex type that controls: * Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer. * How long CloudFront caches HTTP status codes in the 4xx and 5xx range. For more information about custom error pages, see Customizing Error Responses (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the Amazon CloudFront Developer Guide.",
Resolver: fetchCloudfrontDistributionCustomErrorResponses,
IgnoreError: client.IgnoreCommonErrors,
Columns: []schema.Column{
{
Name: "distribution_cq_id",
Expand Down Expand Up @@ -724,6 +729,7 @@ func CloudfrontDistributions() *schema.Table {
Name: "aws_cloudfront_distribution_origin_groups",
Description: "An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify",
Resolver: fetchCloudfrontDistributionOriginGroups,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down
1 change: 1 addition & 0 deletions resources/services/cloudtrail/trails.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func CloudtrailTrails() *schema.Table {
Name: "aws_cloudtrail_trail_event_selectors",
Description: "Use event selectors to further specify the management and data event settings for your trail",
Resolver: fetchCloudtrailTrailEventSelectors,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down
1 change: 1 addition & 0 deletions resources/services/cloudwatch/alarms.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func CloudwatchAlarms() *schema.Table {
Name: "aws_cloudwatch_alarm_metrics",
Description: "This structure is used in both GetMetricData and PutMetricAlarm.",
Resolver: fetchCloudwatchAlarmMetrics,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
IgnoreInTests: true,
Columns: []schema.Column{
{
Expand Down
1 change: 1 addition & 0 deletions resources/services/cloudwatchlogs/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func CloudwatchlogsFilters() *schema.Table {
Description: "Indicates how to transform ingested log events to metric data in a CloudWatch metric.",
Resolver: fetchCloudwatchlogsFilterMetricTransformations,
IgnoreInTests: true,
IgnoreError: client.IgnoreAccessDeniedServiceDisabled,
Columns: []schema.Column{
{
Name: "filter_cq_id",
Expand Down
Loading

0 comments on commit da624e3

Please sign in to comment.