Skip to content

Commit

Permalink
feat(cloudsearch): implement CloudSearch support
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hoff <m.hoff@accenture.com>
  • Loading branch information
mhoff committed Feb 10, 2022
1 parent f05c9ac commit a29ad0b
Show file tree
Hide file tree
Showing 21 changed files with 3,349 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 @@ -29,6 +29,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 @@ -127,6 +128,7 @@ func init() {
kinesisv1alpha1.SchemeBuilder.AddToScheme,
neptunev1alpha1.SchemeBuilder.AddToScheme,
snsv1beta1.SchemeBuilder.AddToScheme,
cloudsearchv1alpha1.AddToScheme,
)
}

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

120 changes: 120 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.

126 changes: 126 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.

0 comments on commit a29ad0b

Please sign in to comment.