@Stability(value=Stable) @Internal public static final class CfnMethodProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnMethodProps
CfnMethodPropssoftware.amazon.jsii.JsiiObject.InitializationModeCfnMethodProps.Builder, CfnMethodProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnMethodProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnMethodProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Object |
getApiKeyRequired()
Indicates whether the method requires clients to submit a valid API key.
|
List<String> |
getAuthorizationScopes()
A list of authorization scopes configured on the method.
|
String |
getAuthorizationType()
The method's authorization type.
|
String |
getAuthorizerId()
The identifier of the [authorizer](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html) to use on this method.
|
String |
getHttpMethod()
The HTTP method that clients use to call this method.
|
Object |
getIntegration()
The backend system that the method calls when it receives a request.
|
Object |
getMethodResponses()
The responses that can be sent to the client who calls the method.
|
String |
getOperationName()
A friendly operation name for the method.
|
Object |
getRequestModels()
The resources that are used for the request's content type.
|
Object |
getRequestParameters()
The request parameters that API Gateway accepts.
|
String |
getRequestValidatorId()
The ID of the associated request validator.
|
String |
getResourceId()
The ID of an API Gateway [resource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-resource.html) .
|
String |
getRestApiId()
The ID of the [RestApi](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html) resource in which API Gateway creates the method.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnMethodProps.Builder builder)
CfnMethodProps.Builder.public final String getHttpMethod()
CfnMethodPropsgetHttpMethod in interface CfnMethodPropspublic final String getResourceId()
CfnMethodPropsgetResourceId in interface CfnMethodPropspublic final String getRestApiId()
CfnMethodPropsgetRestApiId in interface CfnMethodPropspublic final Object getApiKeyRequired()
CfnMethodPropsgetApiKeyRequired in interface CfnMethodPropspublic final List<String> getAuthorizationScopes()
CfnMethodProps
The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes match a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
getAuthorizationScopes in interface CfnMethodPropspublic final String getAuthorizationType()
CfnMethodPropsThis parameter is required. For valid values, see Method in the API Gateway API Reference .
If you specify the
AuthorizerIdproperty, specifyCUSTOMorCOGNITO_USER_POOLSfor this property.
getAuthorizationType in interface CfnMethodPropspublic final String getAuthorizerId()
CfnMethodPropsgetAuthorizerId in interface CfnMethodPropspublic final Object getIntegration()
CfnMethodPropsgetIntegration in interface CfnMethodPropspublic final Object getMethodResponses()
CfnMethodPropsgetMethodResponses in interface CfnMethodPropspublic final String getOperationName()
CfnMethodProps
For example, you can assign the OperationName of ListPets for the GET /pets method.
getOperationName in interface CfnMethodPropspublic final Object getRequestModels()
CfnMethodProps
Specify request models as key-value pairs (string-to-string mapping), with a content type as the key and a Model resource name as the value. To use the same model regardless of the content type, specify $default as the key.
getRequestModels in interface CfnMethodPropspublic final Object getRequestParameters()
CfnMethodProps
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.
getRequestParameters in interface CfnMethodPropspublic final String getRequestValidatorId()
CfnMethodPropsgetRequestValidatorId in interface CfnMethodProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.