Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

cloudfront distributions regenerated and tags added #207

Merged
merged 13 commits into from
Dec 3, 2021
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### :rocket: Added
* Added `aws_ssm_documents` resource [#307](https://github.com/cloudquery/cq-provider-aws/pull/307)
### 💥 Breaking Changes
* Renamed columns of `aws_cloudfront_distributions` behaviour -> behavior.
### :gear: Changed
* added lacking columns to `aws_cloudfront_distributions`



## [v0.7.0] - 2021-11-29
###### SDK Version: 0.5.2
Expand Down
20 changes: 20 additions & 0 deletions client/mocks/mock_cloudfront.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ type CloudfrontClient interface {
ListDistributions(ctx context.Context, params *cloudfront.ListDistributionsInput, optFns ...func(*cloudfront.Options)) (*cloudfront.ListDistributionsOutput, error)
ListCachePolicies(ctx context.Context, params *cloudfront.ListCachePoliciesInput, optFns ...func(*cloudfront.Options)) (*cloudfront.ListCachePoliciesOutput, error)
ListTagsForResource(ctx context.Context, params *cloudfront.ListTagsForResourceInput, optFns ...func(*cloudfront.Options)) (*cloudfront.ListTagsForResourceOutput, error)
GetDistribution(ctx context.Context, params *cloudfront.GetDistributionInput, optFns ...func(*cloudfront.Options)) (*cloudfront.GetDistributionOutput, error)
}

//go:generate mockgen -package=mocks -destination=./mocks/mock_cloudtrail.go . CloudtrailClient
Expand Down
10 changes: 0 additions & 10 deletions docs/tables/aws_cache_behaviour_lambda_function_associations.md

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# Table: aws_cloudfront_distribution_cache_behavior_lambda_functions
A complex type that contains a Lambda function association.
## Columns
| Name | Type | Description |
| ------------- | ------------- | ----- |
|distribution_cache_behavior_cq_id|uuid|Unique CloudQuery ID of aws_cloudfront_distribution_cache_behaviors table (FK)|
|event_type|text|Specifies the event type that triggers a Lambda function invocation|
|lambda_function_arn|text|The ARN of the Lambda function|
|include_body|boolean|A flag that allows a Lambda function to have read access to the body content. For more information, see Accessing the Request Body by Choosing the Include Body Option (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) in the Amazon CloudFront Developer Guide.|
30 changes: 30 additions & 0 deletions docs/tables/aws_cloudfront_distribution_cache_behaviors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

# Table: aws_cloudfront_distribution_cache_behaviors
A complex type that describes how CloudFront processes requests
## Columns
| Name | Type | Description |
| ------------- | ------------- | ----- |
|distribution_cq_id|uuid|Unique CloudQuery ID of aws_cloudfront_distributions table (FK)|
|path_pattern|text|The pattern (for example, images/*.jpg) that specifies which requests to apply the behavior to|
|target_origin_id|text|The value of ID for the origin that you want CloudFront to route requests to when they match this cache behavior.|
|viewer_protocol_policy|text|The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern|
|allowed_methods|text[]|A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.|
|cached_methods|text[]|A complex type that contains the HTTP methods that you want CloudFront to cache responses to.|
|cache_policy_id|text|The unique identifier of the cache policy that is attached to this cache behavior|
|compress|boolean|Whether you want CloudFront to automatically compress certain files for this cache behavior|
|default_ttl|bigint|This field is deprecated|
|field_level_encryption_id|text|The value of ID for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for this cache behavior.|
|forwarded_values_cookies_forward|text|This field is deprecated|
|forwarded_values_cookies_whitelisted_names|text[]|A list of cookie names.|
|forwarded_values_query_string|boolean|This field is deprecated|
|forwarded_values_headers|text[]|A list of HTTP header names.|
|forwarded_values_query_string_cache_keys|text[]|A list that contains the query string parameters that you want CloudFront to use as a basis for caching for a cache behavior|
|max_ttl|bigint|This field is deprecated|
|min_ttl|bigint|This field is deprecated|
|origin_request_policy_id|text|The unique identifier of the origin request policy that is attached to this cache behavior|
|realtime_log_config_arn|text|The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior|
|smooth_streaming|boolean|Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false|
|trusted_key_groups_enabled|boolean|This field is true if any of the key groups in the list have public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies. If not, this field is false.|
|trusted_key_groups|text[]|A list of key groups identifiers.|
|trusted_signers_enabled|boolean|This field is true if any of the AWS accounts have public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies|
|trusted_signers|text[]|A list of AWS account identifiers.|
12 changes: 0 additions & 12 deletions docs/tables/aws_cloudfront_distribution_cache_behaviours.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

# Table: aws_cloudfront_distribution_custom_error_responses

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.
## Columns
| Name | Type | Description |
| ------------- | ------------- | ----- |
|distribution_cq_id|uuid||
|error_code|integer||
|error_caching_min_ttl|bigint||
|response_code|text||
|response_page_path|text||
|distribution_cq_id|uuid|Unique CloudQuery ID of aws_cloudfront_distributions table (FK)|
|error_code|integer|The HTTP status code for which you want to specify a custom error page and/or a caching duration.|
|error_caching_min_ttl|bigint|The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode|
|response_code|text|The HTTP status code that you want CloudFront to return to the viewer along with the custom error page|
|response_page_path|text|The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by ErrorCode, for example, /4xx-errors/403-forbidden.html|
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# Table: aws_cloudfront_distribution_default_cache_behavior_lambda_functions
A complex type that contains a Lambda function association.
## Columns
| Name | Type | Description |
| ------------- | ------------- | ----- |
|distribution_cq_id|uuid|Unique CloudQuery ID of aws_cloudfront_distributions table (FK)|
|event_type|text|Specifies the event type that triggers a Lambda function invocation|
|lambda_function_arn|text|The ARN of the Lambda function|
|include_body|boolean|A flag that allows a Lambda function to have read access to the body content. For more information, see Accessing the Request Body by Choosing the Include Body Option (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) in the Amazon CloudFront Developer Guide.|
10 changes: 5 additions & 5 deletions docs/tables/aws_cloudfront_distribution_origin_groups.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

# Table: aws_cloudfront_distribution_origin_groups

An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify
## Columns
| Name | Type | Description |
| ------------- | ------------- | ----- |
|distribution_cq_id|uuid||
|failover_criteria_status_codes_items|integer[]||
|id|text||
|members_origin_ids|text[]||
|distribution_cq_id|uuid|Unique CloudQuery ID of aws_cloudfront_distributions table (FK)|
|failover_criteria_status_codes|integer[]|The items (status codes) for an origin group.|
|id|text|The origin group's ID.|
|members_origin_ids|text[]|Items (origins) in an origin group.|
34 changes: 17 additions & 17 deletions docs/tables/aws_cloudfront_distribution_origins.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

# Table: aws_cloudfront_distribution_origins

An origin
## Columns
| Name | Type | Description |
| ------------- | ------------- | ----- |
|distribution_cq_id|uuid||
|domain_name|text||
|id|text||
|connection_attempts|integer||
|connection_timeout|integer||
|custom_headers|jsonb||
|custom_origin_config_http_port|integer||
|custom_origin_config_https_port|integer||
|custom_origin_config_protocol_policy|text||
|custom_origin_config_keepalive_timeout|integer||
|custom_origin_config_read_timeout|integer||
|custom_origin_config_ssl_protocols|text[]||
|origin_path|text||
|origin_shield_enabled|boolean||
|origin_shield_region|text||
|s3_origin_config_origin_access_identity|text||
|distribution_cq_id|uuid|Unique CloudQuery ID of aws_cloudfront_distributions table (FK)|
|domain_name|text|The domain name for the origin|
|id|text|A unique identifier for the origin|
|connection_attempts|integer|The number of times that CloudFront attempts to connect to the origin|
|connection_timeout|integer|The number of seconds that CloudFront waits when trying to establish a connection to the origin|
|custom_headers|jsonb|A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin|
|custom_origin_config_http_port|integer|The HTTP port that CloudFront uses to connect to the origin|
|custom_origin_config_https_port|integer|The HTTPS port that CloudFront uses to connect to the origin|
|custom_origin_config_protocol_policy|text|Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin|
|custom_origin_config_keepalive_timeout|integer|Specifies how long, in seconds, CloudFront persists its connection to the origin|
|custom_origin_config_read_timeout|integer|Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the origin response timeout|
|custom_origin_config_ssl_protocols|text[]|A list that contains allowed SSL/TLS protocols for this distribution.|
|origin_path|text|An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin|
|origin_shield_enabled|boolean|A flag that specifies whether Origin Shield is enabled|
|origin_shield_region|text|The AWS Region for Origin Shield|
|s3_origin_config_origin_access_identity|text|The CloudFront origin access identity to associate with the origin|
Loading