pulumi / pulumi-aws-apigateway

Apache License 2.0
13 stars 5 forks source link

`Pulumi.AwsApiGateway.RestAPI` doesn't have a way to set its API endpoint type to "Regional" like `Pulumi.Aws.ApiGateway.RestApi` has using `Pulumi.Aws.ApiGateway.RestApiArgs.EndpointConfiguration` #172

Open tariano opened 1 week ago

tariano commented 1 week ago

with Pulumi.Aws.ApiGateway.RestApi we can set the endpoint configuration using:

new Pulumi.Aws.ApiGateway.RestApi(apiName, new RestApiArgs {
    // ...
    EndpointConfiguration = new RestApiEndpointConfigurationArgs {
        Types = "REGIONAL",
    },
    // ...
});

There is no way to do it, seemingly, with Pulumi.AwsApiGateway.RestAPI: it doesn't seem to have any property that facilitates this.

flostadler commented 1 week ago

Hey @tariano, thanks for this feature request!

You're right that this property is currently not exposed. I'm gonna track this as an enhancement request for the provider.

As a workaround you can use the transforms resource option, which allows you to modify the configuration of resources nested in a provider.