Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CloudSearch #1016

Merged
merged 2 commits into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
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"
cloudsearchv1alpha1 "github.com/crossplane/provider-aws/apis/cloudsearch/v1alpha1"
cloudwatchlogsv1alpha1 "github.com/crossplane/provider-aws/apis/cloudwatchlogs/v1alpha1"
databasev1beta1 "github.com/crossplane/provider-aws/apis/database/v1beta1"
docdbv1alpha1 "github.com/crossplane/provider-aws/apis/docdb/v1alpha1"
Expand Down Expand Up @@ -137,6 +138,7 @@ func init() {
neptunev1alpha1.SchemeBuilder.AddToScheme,
snsv1beta1.SchemeBuilder.AddToScheme,
prometheusservice.SchemeBuilder.AddToScheme,
cloudsearchv1alpha1.AddToScheme,
)
}

Expand Down
2 changes: 2 additions & 0 deletions apis/cloudsearch/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
resource_names:
37 changes: 37 additions & 0 deletions apis/cloudsearch/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
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

// CustomDomainParameters includes the custom fields of a CloudSearch Domain.
type CustomDomainParameters struct {

// The desired number of search instances that are available to process search requests.
// +optional
DesiredReplicationCount *int64 `json:"desiredReplicationCount,omitempty"`

// The desired instance type that is being used to process search requests.
// +optional
DesiredInstanceType *string `json:"desiredInstanceType,omitempty"`

// The desired number of partitions across which the search index is spread.
// +optional
DesiredPartitionCount *int64 `json:"desiredPartitionCount,omitempty"`

// The access rules you want to configure.
// +optional
AccessPolicies *string `json:"accessPolicies,omitempty"`
}
24 changes: 24 additions & 0 deletions apis/cloudsearch/v1alpha1/zz_doc.go

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

121 changes: 121 additions & 0 deletions apis/cloudsearch/v1alpha1/zz_domain.go

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

130 changes: 130 additions & 0 deletions apis/cloudsearch/v1alpha1/zz_enums.go

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