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

feat: adds opensearchservice #1453

Merged
merged 5 commits into from
Sep 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 @@ -68,6 +68,7 @@ import (
mwaav1alpha1 "github.com/crossplane-contrib/provider-aws/apis/mwaa/v1alpha1"
neptunev1alpha1 "github.com/crossplane-contrib/provider-aws/apis/neptune/v1alpha1"
notificationv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/notification/v1alpha1"
opensearchv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/opensearchservice/v1alpha1"
prometheusservice "github.com/crossplane-contrib/provider-aws/apis/prometheusservice/v1alpha1"
ramv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/ram/v1alpha1"
rdsv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/rds/v1alpha1"
Expand Down Expand Up @@ -159,6 +160,7 @@ func init() {
cloudsearchv1alpha1.AddToScheme,
apigatewayv1alpha1.AddToScheme,
cognitoidentityv1alpha1.AddToScheme,
opensearchv1alpha1.AddToScheme,
)
}

Expand Down
31 changes: 31 additions & 0 deletions apis/opensearchservice/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
model_name: opensearch
ignore:
resource_names:
- Package
# - Domain
- OutboundConnection
field_paths:
# SnapshotOptions is irrelevant for OpenSearch 5.3+
- CreateDomainInput.SnapshotOptions
- CreateDomainInput.Name
- DeleteDomainInput.Name
resources:
Domain:
renames:
operations:
CreateDomain:
input_fields:
DomainName: Name
TagList: Tags
DeleteDomain:
input_fields:
DomainName: Name
DescribeDomain:
input_fields:
DomainName: Name
exceptions:
errors:
404:
code: ResourceNotFoundException
terminal_codes:
- ValidationException
4 changes: 4 additions & 0 deletions apis/opensearchservice/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package v1alpha1

// CustomDomainParameters includes the custom fields of Domain
type CustomDomainParameters struct{}
24 changes: 24 additions & 0 deletions apis/opensearchservice/v1alpha1/zz_doc.go

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

161 changes: 161 additions & 0 deletions apis/opensearchservice/v1alpha1/zz_domain.go

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

Loading