Skip to content

Commit

Permalink
Add CloudFront Distribution managed resource
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
  • Loading branch information
ulucinar committed May 31, 2021
1 parent 959cc5b commit fb1a0c3
Show file tree
Hide file tree
Showing 19 changed files with 10,990 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
apigatewayv2 "github.com/crossplane/provider-aws/apis/apigatewayv2/v1alpha1"
cachev1alpha1 "github.com/crossplane/provider-aws/apis/cache/v1alpha1"
cachev1beta1 "github.com/crossplane/provider-aws/apis/cache/v1beta1"
cloudfrontv1alpha1 "github.com/crossplane/provider-aws/apis/cloudfront/v1alpha1"
databasev1beta1 "github.com/crossplane/provider-aws/apis/database/v1beta1"
dynamodbv1alpha1 "github.com/crossplane/provider-aws/apis/dynamodb/v1alpha1"
ec2v1alpha1 "github.com/crossplane/provider-aws/apis/ec2/v1alpha1"
Expand Down Expand Up @@ -85,6 +86,7 @@ func init() {
rdsv1alpha1.SchemeBuilder.AddToScheme,
ec2v1alpha1.SchemeBuilder.AddToScheme,
lambdav1alpha1.SchemeBuilder.AddToScheme,
cloudfrontv1alpha1.SchemeBuilder.AddToScheme,
)
}

Expand Down
20 changes: 20 additions & 0 deletions apis/cloudfront/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

// CustomDistributionParameters includes the custom fields of Stage.
type CustomDistributionParameters struct{}
16 changes: 16 additions & 0 deletions apis/cloudfront/v1alpha1/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ignore:
resource_names:
- CachePolicy
- FieldLevelEncryptionProfile
- Invalidation
- KeyGroup
- OriginRequestPolicy
- PublicKey
- StreamingDistribution
- RealtimeLogConfig
- MonitoringSubscription
- FieldLevelEncryptionConfig
- CloudFrontOriginAccessIdentity
field_paths:
- DistributionConfig.CallerReference
- Origins.Quantity
94 changes: 94 additions & 0 deletions apis/cloudfront/v1alpha1/zz_distribution.go

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

24 changes: 24 additions & 0 deletions apis/cloudfront/v1alpha1/zz_doc.go

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

208 changes: 208 additions & 0 deletions apis/cloudfront/v1alpha1/zz_enums.go

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

0 comments on commit fb1a0c3

Please sign in to comment.