|
| 1 | +/* |
| 2 | +Copyright 2021 The Crossplane Authors. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +package v1alpha1 |
| 18 | + |
| 19 | +import ( |
| 20 | + xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" |
| 21 | +) |
| 22 | + |
| 23 | +// CustomStreamParameters contains the additional fields for StreamParameters. |
| 24 | +type CustomStreamParameters struct { |
| 25 | + // The retention period of the stream, in hours. |
| 26 | + // Default: 24 hours |
| 27 | + RetentionPeriodHours *int64 `json:"retentionPeriodHours,omitempty"` |
| 28 | + |
| 29 | + // +optional |
| 30 | + // +crossplane:generate:reference:type=github.com/crossplane/provider-aws/apis/kms/v1alpha1.Key |
| 31 | + // +crossplane:generate:reference:extractor=github.com/crossplane/provider-aws/apis/kms/v1alpha1.KMSKeyARN() |
| 32 | + KMSKeyARN *string `json:"kmsKeyARN,omitempty"` |
| 33 | + |
| 34 | + KMSKeyARNRef *xpv1.Reference `json:"kmsKeyARNRef,omitempty"` |
| 35 | + |
| 36 | + KMSKeyARNSelector *xpv1.Selector `json:"kmsKeyARNSelector,omitempty"` |
| 37 | + |
| 38 | + // List of shard-level metrics. |
| 39 | + // |
| 40 | + // The following are the valid shard-level metrics. The value "ALL" enhances |
| 41 | + // every metric. |
| 42 | + // |
| 43 | + // * IncomingBytes |
| 44 | + // |
| 45 | + // * IncomingRecords |
| 46 | + // |
| 47 | + // * OutgoingBytes |
| 48 | + // |
| 49 | + // * OutgoingRecords |
| 50 | + // |
| 51 | + // * WriteProvisionedThroughputExceeded |
| 52 | + // |
| 53 | + // * ReadProvisionedThroughputExceeded |
| 54 | + // |
| 55 | + // * IteratorAgeMilliseconds |
| 56 | + // |
| 57 | + // * ALL |
| 58 | + // |
| 59 | + // For more information, see Monitoring the Amazon Kinesis Data Streams Service |
| 60 | + // with Amazon CloudWatch (https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) |
| 61 | + // in the Amazon Kinesis Data Streams Developer Guide. |
| 62 | + EnhancedMetrics []*EnhancedMetrics `json:"enhancedMetrics,omitempty"` |
| 63 | + |
| 64 | + Tags []CustomTag `json:"tags,omitempty"` |
| 65 | + |
| 66 | + // If this parameter is unset (null) or if you set it to false, and the stream |
| 67 | + // has registered consumers, the call to DeleteStream fails with a ResourceInUseException. |
| 68 | + EnforceConsumerDeletion *bool `json:"enforceConsumerDeletion,omitempty"` |
| 69 | +} |
| 70 | + |
| 71 | +// CustomTag contains the additional fields for Tag. |
| 72 | +type CustomTag struct { |
| 73 | + // A unique identifier for the tag. |
| 74 | + Key string `json:"key"` |
| 75 | + |
| 76 | + // An optional string, typically used to describe or define the tag. |
| 77 | + Value string `json:"value,omitempty"` |
| 78 | +} |
0 commit comments