CfnMethodProps

class aws_cdk.aws_apigateway.CfnMethodProps(*, http_method, resource_id, rest_api_id, api_key_required=None, authorization_scopes=None, authorization_type=None, authorizer_id=None, integration=None, method_responses=None, operation_name=None, request_models=None, request_parameters=None, request_validator_id=None)

Bases: object

__init__(*, http_method, resource_id, rest_api_id, api_key_required=None, authorization_scopes=None, authorization_type=None, authorizer_id=None, integration=None, method_responses=None, operation_name=None, request_models=None, request_parameters=None, request_validator_id=None)

Properties for defining a AWS::ApiGateway::Method.

Parameters
  • http_method (str) – AWS::ApiGateway::Method.HttpMethod.

  • resource_id (str) – AWS::ApiGateway::Method.ResourceId.

  • rest_api_id (str) – AWS::ApiGateway::Method.RestApiId.

  • api_key_required (Union[bool, None, IResolvable]) – AWS::ApiGateway::Method.ApiKeyRequired.

  • authorization_scopes (Optional[List[str]]) – AWS::ApiGateway::Method.AuthorizationScopes.

  • authorization_type (Optional[str]) – AWS::ApiGateway::Method.AuthorizationType.

  • authorizer_id (Optional[str]) – AWS::ApiGateway::Method.AuthorizerId.

  • integration (Union[IResolvable, None, IntegrationProperty]) – AWS::ApiGateway::Method.Integration.

  • method_responses (Union[IResolvable, None, List[Union[IResolvable, MethodResponseProperty]]]) – AWS::ApiGateway::Method.MethodResponses.

  • operation_name (Optional[str]) – AWS::ApiGateway::Method.OperationName.

  • request_models (Union[IResolvable, None, Mapping[str, str]]) – AWS::ApiGateway::Method.RequestModels.

  • request_parameters (Union[IResolvable, None, Mapping[str, Union[bool, IResolvable]]]) – AWS::ApiGateway::Method.RequestParameters.

  • request_validator_id (Optional[str]) – AWS::ApiGateway::Method.RequestValidatorId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html

Attributes

api_key_required

AWS::ApiGateway::Method.ApiKeyRequired.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-apikeyrequired

Return type

Union[bool, None, IResolvable]

authorization_scopes

AWS::ApiGateway::Method.AuthorizationScopes.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-authorizationscopes

Return type

Optional[List[str]]

authorization_type

AWS::ApiGateway::Method.AuthorizationType.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-authorizationtype

Return type

Optional[str]

authorizer_id

AWS::ApiGateway::Method.AuthorizerId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-authorizerid

Return type

Optional[str]

http_method

AWS::ApiGateway::Method.HttpMethod.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-httpmethod

Return type

str

integration

AWS::ApiGateway::Method.Integration.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-integration

Return type

Union[IResolvable, None, IntegrationProperty]

method_responses

AWS::ApiGateway::Method.MethodResponses.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-methodresponses

Return type

Union[IResolvable, None, List[Union[IResolvable, MethodResponseProperty]]]

operation_name

AWS::ApiGateway::Method.OperationName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-operationname

Return type

Optional[str]

request_models

AWS::ApiGateway::Method.RequestModels.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-requestmodels

Return type

Union[IResolvable, None, Mapping[str, str]]

request_parameters

AWS::ApiGateway::Method.RequestParameters.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-requestparameters

Return type

Union[IResolvable, None, Mapping[str, Union[bool, IResolvable]]]

request_validator_id

AWS::ApiGateway::Method.RequestValidatorId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-requestvalidatorid

Return type

Optional[str]

resource_id

AWS::ApiGateway::Method.ResourceId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-resourceid

Return type

str

rest_api_id

AWS::ApiGateway::Method.RestApiId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-restapiid

Return type

str