@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:15.653Z") @Stability(value=Stable) public class CfnMethod extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
CfnMethod cfnMethod = CfnMethod.Builder.create(this, "MyCfnMethod")
.httpMethod("httpMethod")
.resourceId("resourceId")
.restApiId("restApiId")
// the properties below are optional
.apiKeyRequired(false)
.authorizationScopes(List.of("authorizationScopes"))
.authorizationType("authorizationType")
.authorizerId("authorizerId")
.integration(IntegrationProperty.builder()
.cacheKeyParameters(List.of("cacheKeyParameters"))
.cacheNamespace("cacheNamespace")
.connectionId("connectionId")
.connectionType("connectionType")
.contentHandling("contentHandling")
.credentials("credentials")
.integrationHttpMethod("integrationHttpMethod")
.integrationResponses(List.of(IntegrationResponseProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.contentHandling("contentHandling")
.responseParameters(Map.of(
"responseParametersKey", "responseParameters"))
.responseTemplates(Map.of(
"responseTemplatesKey", "responseTemplates"))
.selectionPattern("selectionPattern")
.build()))
.passthroughBehavior("passthroughBehavior")
.requestParameters(Map.of(
"requestParametersKey", "requestParameters"))
.requestTemplates(Map.of(
"requestTemplatesKey", "requestTemplates"))
.timeoutInMillis(123)
.type("type")
.uri("uri")
.build())
.methodResponses(List.of(MethodResponseProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.responseModels(Map.of(
"responseModelsKey", "responseModels"))
.responseParameters(Map.of(
"responseParametersKey", false))
.build()))
.operationName("operationName")
.requestModels(Map.of(
"requestModelsKey", "requestModels"))
.requestParameters(Map.of(
"requestParametersKey", false))
.requestValidatorId("requestValidatorId")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnMethod.Builder
A fluent builder for
CfnMethod. |
static interface |
CfnMethod.IntegrationProperty
Example:
|
static interface |
CfnMethod.IntegrationResponseProperty
Example:
|
static interface |
CfnMethod.MethodResponseProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnMethod(software.constructs.Construct scope,
String id,
CfnMethodProps props)
Create a new `AWS::ApiGateway::Method`.
|
protected |
CfnMethod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMethod(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getApiKeyRequired()
`AWS::ApiGateway::Method.ApiKeyRequired`.
|
List<String> |
getAuthorizationScopes()
`AWS::ApiGateway::Method.AuthorizationScopes`.
|
String |
getAuthorizationType()
`AWS::ApiGateway::Method.AuthorizationType`.
|
String |
getAuthorizerId()
`AWS::ApiGateway::Method.AuthorizerId`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getHttpMethod()
`AWS::ApiGateway::Method.HttpMethod`.
|
Object |
getIntegration()
`AWS::ApiGateway::Method.Integration`.
|
Object |
getMethodResponses()
`AWS::ApiGateway::Method.MethodResponses`.
|
String |
getOperationName()
`AWS::ApiGateway::Method.OperationName`.
|
Object |
getRequestModels()
`AWS::ApiGateway::Method.RequestModels`.
|
Object |
getRequestParameters()
`AWS::ApiGateway::Method.RequestParameters`.
|
String |
getRequestValidatorId()
`AWS::ApiGateway::Method.RequestValidatorId`.
|
String |
getResourceId()
`AWS::ApiGateway::Method.ResourceId`.
|
String |
getRestApiId()
`AWS::ApiGateway::Method.RestApiId`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApiKeyRequired(Boolean value)
`AWS::ApiGateway::Method.ApiKeyRequired`.
|
void |
setApiKeyRequired(IResolvable value)
`AWS::ApiGateway::Method.ApiKeyRequired`.
|
void |
setAuthorizationScopes(List<String> value)
`AWS::ApiGateway::Method.AuthorizationScopes`.
|
void |
setAuthorizationType(String value)
`AWS::ApiGateway::Method.AuthorizationType`.
|
void |
setAuthorizerId(String value)
`AWS::ApiGateway::Method.AuthorizerId`.
|
void |
setHttpMethod(String value)
`AWS::ApiGateway::Method.HttpMethod`.
|
void |
setIntegration(CfnMethod.IntegrationProperty value)
`AWS::ApiGateway::Method.Integration`.
|
void |
setIntegration(IResolvable value)
`AWS::ApiGateway::Method.Integration`.
|
void |
setMethodResponses(IResolvable value)
`AWS::ApiGateway::Method.MethodResponses`.
|
void |
setMethodResponses(List<Object> value)
`AWS::ApiGateway::Method.MethodResponses`.
|
void |
setOperationName(String value)
`AWS::ApiGateway::Method.OperationName`.
|
void |
setRequestModels(IResolvable value)
`AWS::ApiGateway::Method.RequestModels`.
|
void |
setRequestModels(Map<String,String> value)
`AWS::ApiGateway::Method.RequestModels`.
|
void |
setRequestParameters(IResolvable value)
`AWS::ApiGateway::Method.RequestParameters`.
|
void |
setRequestParameters(Map<String,Object> value)
`AWS::ApiGateway::Method.RequestParameters`.
|
void |
setRequestValidatorId(String value)
`AWS::ApiGateway::Method.RequestValidatorId`.
|
void |
setResourceId(String value)
`AWS::ApiGateway::Method.ResourceId`.
|
void |
setRestApiId(String value)
`AWS::ApiGateway::Method.RestApiId`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMethod(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMethod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMethod(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnMethodProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @Nullable public Object getApiKeyRequired()
@Stability(value=Stable)
public void setApiKeyRequired(@Nullable
Boolean value)
@Stability(value=Stable)
public void setApiKeyRequired(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public List<String> getAuthorizationScopes()
@Stability(value=Stable)
public void setAuthorizationScopes(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public String getAuthorizationType()
@Stability(value=Stable)
public void setAuthorizationType(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getAuthorizerId()
@Stability(value=Stable)
public void setAuthorizerId(@Nullable
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getHttpMethod()
@Stability(value=Stable)
public void setHttpMethod(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getIntegration()
@Stability(value=Stable)
public void setIntegration(@Nullable
CfnMethod.IntegrationProperty value)
@Stability(value=Stable)
public void setIntegration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getMethodResponses()
@Stability(value=Stable)
public void setMethodResponses(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setMethodResponses(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getOperationName()
@Stability(value=Stable)
public void setOperationName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getRequestModels()
@Stability(value=Stable)
public void setRequestModels(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setRequestModels(@Nullable
Map<String,String> value)
@Stability(value=Stable) @Nullable public Object getRequestParameters()
@Stability(value=Stable)
public void setRequestParameters(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setRequestParameters(@Nullable
Map<String,Object> value)
@Stability(value=Stable) @Nullable public String getRequestValidatorId()
@Stability(value=Stable)
public void setRequestValidatorId(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getResourceId()
@Stability(value=Stable)
public void setResourceId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getRestApiId()
@Stability(value=Stable)
public void setRestApiId(@NotNull
String value)
Copyright © 2021. All rights reserved.