Values.PutMethodRequestSourceRequest to add a method to an existing Resource resource.
type nonrec t = {restApiId : String_.t;The string identifier of the associated RestApi.
*)resourceId : String_.t;The Resource identifier for the new Method resource.
*)httpMethod : String_.t;Specifies the method request's HTTP method type.
*)apiKeyRequired : Boolean.t option;Specifies whether the method required a valid ApiKey.
*)operationName : String_.t option;A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.
*)requestParameters : MapOfStringToBoolean.t option;A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key defines a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or body-mapping templates.
*)requestModels : MapOfStringToString.t option;Specifies the Model resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a Model name as the value.
*)requestValidatorId : String_.t option;The identifier of a RequestValidator for validating the method request.
*)}