Class MethodOptions.Jsii$Proxy
- All Implemented Interfaces:
MethodOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- MethodOptions
MethodOptions-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.MethodOptions
MethodOptions.Builder, MethodOptions.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(MethodOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theMethodOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal BooleanIndicates whether the method requires clients to submit a valid API key.A list of authorization scopes configured on the method.final AuthorizationTypeMethod authorization.final IAuthorizerIfauthorizationTypeisCustom, this specifies the ID of the method authorizer resource.final List<MethodResponse>The responses that can be sent to the client who calls the method.final StringA friendly operation name for the method.The models which describe data structure of request payload.The request parameters that API Gateway accepts.final IRequestValidatorThe ID of the associated request validator.final RequestValidatorOptionsRequest validator options to create new validator Only one ofrequestValidatororrequestValidatorOptionsmust be specified.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theMethodOptions.Builder.
-
-
Method Details
-
getApiKeyRequired
Description copied from interface:MethodOptionsIndicates whether the method requires clients to submit a valid API key.Default: false
- Specified by:
getApiKeyRequiredin interfaceMethodOptions
-
getAuthorizationScopes
Description copied from interface:MethodOptionsA list of authorization scopes configured on the method.The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation.
Default: - no authorization scopes
-
getAuthorizationType
Description copied from interface:MethodOptionsMethod authorization. If the value is set ofCustom, anauthorizermust also be specified.If you're using one of the authorizers that are available via the
Authorizerclass, such asAuthorizer#token(), it is recommended that this option not be specified. The authorizer will take care of setting the correct authorization type. However, specifying an authorization type using this property that conflicts with what is expected by theAuthorizerwill result in an error.Default: - open access unless `authorizer` is specified
- Specified by:
getAuthorizationTypein interfaceMethodOptions
-
getAuthorizer
Description copied from interface:MethodOptionsIfauthorizationTypeisCustom, this specifies the ID of the method authorizer resource.If specified, the value of
authorizationTypemust be set toCustom- Specified by:
getAuthorizerin interfaceMethodOptions
-
getMethodResponses
Description copied from interface:MethodOptionsThe responses that can be sent to the client who calls the method.Default: None This property is not required, but if these are not supplied for a Lambda proxy integration, the Lambda function must return a value of the correct format, for the integration response to be correctly mapped to a response to the client.
-
getOperationName
Description copied from interface:MethodOptionsA friendly operation name for the method.For example, you can assign the OperationName of ListPets for the GET /pets method.
- Specified by:
getOperationNamein interfaceMethodOptions
-
getRequestModels
Description copied from interface:MethodOptionsThe models which describe data structure of request payload.When combined with
requestValidatororrequestValidatorOptions, the service will validate the API request payload before it reaches the API's Integration (including proxies). SpecifyrequestModelsas key-value pairs, with a content type (e.g.'application/json') as the key and an API Gateway Model as the value.Example:
RestApi api; Function userLambda; Model userModel = api.addModel("UserModel", ModelOptions.builder() .schema(JsonSchema.builder() .type(JsonSchemaType.OBJECT) .properties(Map.of( "userId", JsonSchema.builder() .type(JsonSchemaType.STRING) .build(), "name", JsonSchema.builder() .type(JsonSchemaType.STRING) .build())) .required(List.of("userId")) .build()) .build()); api.root.addResource("user").addMethod("POST", new LambdaIntegration(userLambda), MethodOptions.builder() .requestModels(Map.of( "application/json", userModel)) .build()); -
getRequestParameters
Description copied from interface:MethodOptionsThe request parameters that API Gateway accepts.Specify request parameters as key-value pairs (string-to-Boolean mapping), with a source as the key and a Boolean as the value. The Boolean specifies whether a parameter is required. A source must match the format method.request.location.name, where the location is querystring, path, or header, and name is a valid, unique parameter name.
Default: None
- Specified by:
getRequestParametersin interfaceMethodOptions
-
getRequestValidator
Description copied from interface:MethodOptionsThe ID of the associated request validator.Only one of
requestValidatororrequestValidatorOptionsmust be specified. Works together withrequestModelsorrequestParametersto validate the request before it reaches integration like Lambda Proxy Integration.Default: - No default validator
- Specified by:
getRequestValidatorin interfaceMethodOptions
-
getRequestValidatorOptions
Description copied from interface:MethodOptionsRequest validator options to create new validator Only one ofrequestValidatororrequestValidatorOptionsmust be specified.Works together with
requestModelsorrequestParametersto validate the request before it reaches integration like Lambda Proxy Integration.Default: - No default validator
- Specified by:
getRequestValidatorOptionsin interfaceMethodOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-