@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.208Z") @Stability(value=Stable) public interface ResourceProps extends software.amazon.jsii.JsiiSerializable, ResourceOptions
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.apigateway.*;
Authorizer authorizer;
Integration integration;
Model model;
RequestValidator requestValidator;
Resource resource;
ResourceProps resourceProps = ResourceProps.builder()
.parent(resource)
.pathPart("pathPart")
// the properties below are optional
.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 |
ResourceProps.Builder
A builder for
ResourceProps |
static class |
ResourceProps.Jsii$Proxy
An implementation for
ResourceProps |
| Modifier and Type | Method and Description |
|---|---|
static ResourceProps.Builder |
builder() |
IResource |
getParent()
The parent resource of this resource.
|
String |
getPathPart()
A path name for the resource.
|
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptions@Stability(value=Stable) @NotNull IResource getParent()
You can either pass another
Resource object or a RestApi object here.
@Stability(value=Stable) @NotNull String getPathPart()
@Stability(value=Stable) static ResourceProps.Builder builder()
builder in interface ResourceOptionsResourceProps.Builder of ResourcePropsCopyright © 2022. All rights reserved.