Skip to content

Commit

Permalink
feat(firehose): Add DevileryStream controller
Browse files Browse the repository at this point in the history
Signed-off-by: Domene Esteban, Nil {DISB~SANT CUGAT DIA} <[email protected]>
  • Loading branch information
nilde committed Oct 20, 2023
1 parent 9a50654 commit 014ddbb
Show file tree
Hide file tree
Showing 20 changed files with 8,530 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import (
elbv2manualv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/elbv2/manualv1alpha1"
elbv2v1alpha1 "github.com/crossplane-contrib/provider-aws/apis/elbv2/v1alpha1"
emrcontainersv1alpah1 "github.com/crossplane-contrib/provider-aws/apis/emrcontainers/v1alpha1"
firehosev1alpha1 "github.com/crossplane-contrib/provider-aws/apis/firehose/v1alpha1"
globalacceleratorv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/globalaccelerator/v1alpha1"
gluev1alpha1 "github.com/crossplane-contrib/provider-aws/apis/glue/v1alpha1"
iamv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/iam/v1alpha1"
Expand Down Expand Up @@ -171,6 +172,7 @@ func init() {
emrcontainersv1alpah1.SchemeBuilder.AddToScheme,
autoscalingv1beta1.SchemeBuilder.AddToScheme,
s3control.SchemeBuilder.AddToScheme,
firehosev1alpha1.SchemeBuilder.AddToScheme,
)
}

Expand Down
17 changes: 17 additions & 0 deletions apis/firehose/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resources:
DeliveryStream:
fields:
DeliveryStreamStatus:
is_read_only: true
from:
operation: DescribeDeliveryStream
path: DeliveryStreamDescription.DeliveryStreamStatus
DeliveryStreamARN:
is_read_only: true
from:
operation: DescribeDeliveryStream
path: DeliveryStreamDescription.DeliveryStreamARN
exceptions:
errors:
404:
code: ResourceNotFoundException
33 changes: 33 additions & 0 deletions apis/firehose/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
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

import (
xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)

// CustomDeliveryStreamParameters contains the additional fields for DeliveryStreamParameters.
type CustomDeliveryStreamParameters struct {
// +optional
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-aws/apis/kms/v1alpha1.Key
// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-aws/apis/kms/v1alpha1.KMSKeyARN()
KMSKeyARN *string `json:"kmsKeyARN,omitempty"`

KMSKeyARNRef *xpv1.Reference `json:"kmsKeyARNRef,omitempty"`

KMSKeyARNSelector *xpv1.Selector `json:"kmsKeyARNSelector,omitempty"`
}
143 changes: 143 additions & 0 deletions apis/firehose/v1alpha1/zz_delivery_stream.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/firehose/v1alpha1/zz_doc.go

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

Loading

0 comments on commit 014ddbb

Please sign in to comment.