Skip to content

feat(VpcEndpointServiceConfiguration): vpc endpoint service configuration controller added #134

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

Closed
wants to merge 3 commits into from
Closed
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
74 changes: 57 additions & 17 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ ignore:
- CreateVpcEndpointInput.DryRun
- CreateVpcEndpointInput.TagSpecifications
- CreateVpcEndpointInput.ClientToken
- CreateVpcEndpointServiceConfigurationInput.ClientToken
- CreateVpcEndpointServiceConfigurationInput.DryRun
- CreateVpcEndpointServiceConfigurationInput.TagSpecifications
- DeleteRouteInput.DryRun
- DeleteRouteInput.RouteTableId
# support EC2-VPC only
Expand Down Expand Up @@ -111,7 +114,7 @@ ignore:
#- TransitGateway
- Volume
- VpcEndpointConnectionNotification
- VpcEndpointServiceConfiguration
#- VpcEndpointServiceConfiguration
#- VpcEndpoint
#- Vpc
- VpcCidrBlock
Expand Down Expand Up @@ -141,6 +144,12 @@ operations:
operation_type:
- Delete
resource_name: VpcEndpoint
CreateVpcEndpointServiceConfiguration:
output_wrapper_field_path: ServiceConfiguration
DeleteVpcEndpointServiceConfigurations:
operation_type:
- Delete
resource_name: VpcEndpointServiceConfiguration
RunInstances:
#ouput shape: Reservation
output_wrapper_field_path: Instances
Expand Down Expand Up @@ -378,22 +387,22 @@ resources:
references:
resource: VPC
path: Status.VPCID
Routes.GatewayId:
references:
resource: InternetGateway
path: Status.InternetGatewayID
Routes.NatGatewayId:
references:
resource: NATGateway
path: Status.NATGatewayID
Routes.TransitGatewayId:
references:
resource: TransitGateway
path: Status.TransitGatewayID
Routes.VpcEndpointId:
references:
resource: VPCEndpoint
path: Status.VPCEndpointID
# Routes.GatewayId:
# references:
# resource: InternetGateway
# path: Status.InternetGatewayID
# Routes.NatGatewayId:
# references:
# resource: NATGateway
# path: Status.NATGatewayID
# Routes.TransitGatewayId:
# references:
# resource: TransitGateway
# path: Status.TransitGatewayID
# Routes.VpcEndpointId:
# references:
# resource: VPCEndpoint
# path: Status.VPCEndpointID
hooks:
delta_pre_compare:
code: customPreCompare(delta, a, b)
Expand Down Expand Up @@ -465,6 +474,37 @@ resources:
template_path: hooks/security_group/sdk_read_many_post_set_output.go.tpl
update_operation:
custom_method_name: customUpdateSecurityGroup
VpcEndpointServiceConfiguration:
fields:
ServiceID:
is_primary_key: true
is_read_only: true
print:
path: Status.serviceID
name: ServiceID
ServiceState:
is_read_only: true
print:
path: Status.serviceState
name: ServiceState
Tags:
from:
operation: CreateTags
path: Tags
compare:
is_ignored: true
synced:
when:
- path: Status.ServiceState
in:
- available
hooks:
delta_pre_compare:
code: compareTags(delta, a, b)
sdk_delete_post_build_request:
template_path: hooks/vpc_endpoint_service_configuration/sdk_delete_post_build_request.go.tpl
sdk_file_end:
template_path: hooks/vpc_endpoint_service_configuration/sdk_file_end.go.tpl
Subnet:
fields:
# code-generator infers fields into
Expand Down
64 changes: 36 additions & 28 deletions apis/v1alpha1/types.go

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

110 changes: 110 additions & 0 deletions apis/v1alpha1/vpc_endpoint_service_configuration.go

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

Loading