AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the PutMethod operation. Add a method to an existing Resource resource.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.APIGateway.AmazonAPIGatewayRequest
      Amazon.APIGateway.Model.PutMethodRequest

Namespace: Amazon.APIGateway.Model
Assembly: AWSSDK.APIGateway.dll
Version: 3.x.y.z

Syntax

C#
public class PutMethodRequest : AmazonAPIGatewayRequest
         IAmazonWebServiceRequest

The PutMethodRequest type exposes the following members

Constructors

NameDescription
Public Method PutMethodRequest()

Properties

NameTypeDescription
Public Property ApiKeyRequired System.Boolean

Gets and sets the property ApiKeyRequired.

Specifies whether the method required a valid ApiKey.

Public Property AuthorizationType System.String

Gets and sets the property AuthorizationType.

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

Public Property AuthorizerId System.String

Gets and sets the property AuthorizerId.

Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.

Public Property HttpMethod System.String

Gets and sets the property HttpMethod.

Specifies the method request's HTTP method type.

Public Property OperationName System.String

Gets and sets the property OperationName.

A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in PetStore example.

Public Property RequestModels System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property RequestModels.

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.

Public Property RequestParameters System.Collections.Generic.Dictionary<System.String, System.Boolean>

Gets and sets the property RequestParameters.

A key-value map defining required or optional method request parameters that can be accepted by Amazon 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.

Public Property RequestValidatorId System.String

Gets and sets the property RequestValidatorId.

The identifier of a RequestValidator for validating the method request.

Public Property ResourceId System.String

Gets and sets the property ResourceId.

The Resource identifier for the new Method resource.

Public Property RestApiId System.String

Gets and sets the property RestApiId.

The string identifier of the associated RestApi.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms