Skip to content

Commit

Permalink
Merge pull request #1919 from devopsmindset/firehose
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterMX authored Oct 23, 2023
2 parents c6a1d6e + aa9d069 commit 4eae2d3
Show file tree
Hide file tree
Showing 19 changed files with 8,529 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 @@ -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 4eae2d3

Please sign in to comment.