Skip to content

Commit

Permalink
feat(servicecatalog): add support for provisioned products from AWS S…
Browse files Browse the repository at this point in the history
…ervice Catalog

Signed-off-by: Kai Parry <[email protected]>
  • Loading branch information
threadproc committed Sep 6, 2023
1 parent d5f6675 commit 4482809
Show file tree
Hide file tree
Showing 25 changed files with 4,839 additions and 9 deletions.
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ import (
s3control "github.com/crossplane-contrib/provider-aws/apis/s3control/v1alpha1"
secretsmanagerv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/secretsmanager/v1alpha1"
secretsmanagerv1beta1 "github.com/crossplane-contrib/provider-aws/apis/secretsmanager/v1beta1"
servicecatalogv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/servicecatalog/v1alpha1"
servicediscoveryv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/servicediscovery/v1alpha1"
sesv2v1alpha1 "github.com/crossplane-contrib/provider-aws/apis/sesv2/v1alpha1"
sfnv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/sfn/v1alpha1"
Expand Down Expand Up @@ -170,6 +171,7 @@ func init() {
batchmanualv1alpha1.SchemeBuilder.AddToScheme,
emrcontainersv1alpah1.SchemeBuilder.AddToScheme,
autoscalingv1beta1.SchemeBuilder.AddToScheme,
servicecatalogv1alpha1.SchemeBuilder.AddToScheme,
s3control.SchemeBuilder.AddToScheme,
)
}
Expand Down
99 changes: 99 additions & 0 deletions apis/servicecatalog/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
ignore:
resource_names:
- Constraint
- PortfolioShare
- Portfolio
- Cluster
- Product
- ProvisionedProductPlan
- ProvisioningArtifact
- ServiceAction
- TagOption
field_paths:
- ProvisionProductInput.ProvisionToken
- UpdateProvisioningParameter.UsePreviousValue
- UpdateProvisioningPreferences.StackSetOperationType
- UpdateProvisionedProductInput.ProvisionedProductId
- TerminateProvisionedProductInput.ProvisionedProductId
shape_names:
- ProvisionedProductPlanSummary
- ProvisionedProductPlanDetails
operations:
ProvisionProduct:
operation_type:
- Create
resource_name: ProvisionedProduct
UpdateProvisionedProduct:
operation_type:
- Update
resource_name: ProvisionedProduct
DescribeProvisionedProduct:
operation_type:
- Read
resource_name: ProvisionedProduct
TerminateProvisionedProduct:
operation_type:
- Delete
resource_name: ProvisionedProduct
resources:
ProvisionedProduct:
exceptions:
errors:
404:
code: ResourceNotFoundException
fields:
Outputs:
is_read_only: true
custom_field:
map_of: RecordOutput
Arn:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.Arn
CreatedTime:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.CreatedTime
LastProvisioningRecordId:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.LastProvisioningRecordId
LastPathID:
is_read_only: true
from:
operation: DescribeRecord
path: RecordDetail.PathId
LastProductID:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.ProductId
LastProvisioningArtifactID:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.ProvisioningArtifactId
LaunchRoleArn:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.LaunchRoleArn
Status:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.Status
StatusMessage:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.StatusMessage
renames:
operations:
ProvisionProduct:
input_fields:
ProvisionedProductName: Name
4 changes: 4 additions & 0 deletions apis/servicecatalog/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package v1alpha1

// CustomProvisionedProductParameters includes the custom fields.
type CustomProvisionedProductParameters struct{}
24 changes: 24 additions & 0 deletions apis/servicecatalog/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 4482809

Please sign in to comment.