@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:08.545Z") public interface ProxyResourceProps extends ProxyResourceOptions
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.apigateway.*; import software.amazon.awscdk.core.*; Authorizer authorizer; Integration integration; Model model; RequestValidator requestValidator; Resource resource; ProxyResourceProps proxyResourceProps = ProxyResourceProps.builder() .parent(resource) // the properties below are optional .anyMethod(false) .defaultCorsPreflightOptions(CorsOptions.builder() .allowOrigins(List.of("allowOrigins")) // the properties below are optional .allowCredentials(false) .allowHeaders(List.of("allowHeaders")) .allowMethods(List.of("allowMethods")) .disableCache(false) .exposeHeaders(List.of("exposeHeaders")) .maxAge(Duration.minutes(30)) .statusCode(123) .build()) .defaultIntegration(integration) .defaultMethodOptions(MethodOptions.builder() .apiKeyRequired(false) .authorizationScopes(List.of("authorizationScopes")) .authorizationType(AuthorizationType.NONE) .authorizer(authorizer) .methodResponses(List.of(MethodResponse.builder() .statusCode("statusCode") // the properties below are optional .responseModels(Map.of( "responseModelsKey", model)) .responseParameters(Map.of( "responseParametersKey", false)) .build())) .operationName("operationName") .requestModels(Map.of( "requestModelsKey", model)) .requestParameters(Map.of( "requestParametersKey", false)) .requestValidator(requestValidator) .requestValidatorOptions(RequestValidatorOptions.builder() .requestValidatorName("requestValidatorName") .validateRequestBody(false) .validateRequestParameters(false) .build()) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
ProxyResourceProps.Builder
A builder for
ProxyResourceProps |
static class |
ProxyResourceProps.Jsii$Proxy
An implementation for
ProxyResourceProps |
Modifier and Type | Method and Description |
---|---|
static ProxyResourceProps.Builder |
builder() |
IResource |
getParent()
The parent resource of this resource.
|
getAnyMethod
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptions
IResource getParent()
You can either pass another
Resource
object or a RestApi
object here.
static ProxyResourceProps.Builder builder()
builder
in interface ProxyResourceOptions
builder
in interface ResourceOptions
ProxyResourceProps.Builder
of ProxyResourceProps