@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.119Z") @Stability(value=Stable) public class CfnGatewayResponse extends CfnResource implements IInspectable
The AWS::ApiGateway::GatewayResponse resource creates a gateway response for your API. For more information, see API Gateway Responses in the API Gateway Developer Guide .
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.*;
CfnGatewayResponse cfnGatewayResponse = CfnGatewayResponse.Builder.create(this, "MyCfnGatewayResponse")
.responseType("responseType")
.restApiId("restApiId")
// the properties below are optional
.responseParameters(Map.of(
"responseParametersKey", "responseParameters"))
.responseTemplates(Map.of(
"responseTemplatesKey", "responseTemplates"))
.statusCode("statusCode")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnGatewayResponse.Builder
A fluent builder for
CfnGatewayResponse. |
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 |
|---|---|
|
CfnGatewayResponse(software.constructs.Construct scope,
String id,
CfnGatewayResponseProps props)
Create a new `AWS::ApiGateway::GatewayResponse`.
|
protected |
CfnGatewayResponse(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGatewayResponse(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrId()
The ID for the gateway response.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getResponseParameters()
The response parameters (paths, query strings, and headers) for the response.
|
Object |
getResponseTemplates()
The response templates for the response.
|
String |
getResponseType()
The response type.
|
String |
getRestApiId()
The identifier of the API.
|
String |
getStatusCode()
The HTTP status code for the response.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setResponseParameters(IResolvable value)
The response parameters (paths, query strings, and headers) for the response.
|
void |
setResponseParameters(Map<String,String> value)
The response parameters (paths, query strings, and headers) for the response.
|
void |
setResponseTemplates(IResolvable value)
The response templates for the response.
|
void |
setResponseTemplates(Map<String,String> value)
The response templates for the response.
|
void |
setResponseType(String value)
The response type.
|
void |
setRestApiId(String value)
The identifier of the API.
|
void |
setStatusCode(String value)
The HTTP status code for the response.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, 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 CfnGatewayResponse(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGatewayResponse(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnGatewayResponse(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnGatewayResponseProps 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) @NotNull public String getAttrId()
For example: abc123 .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getResponseType()
For valid values, see GatewayResponse in the API Gateway API Reference .
@Stability(value=Stable)
public void setResponseType(@NotNull
String value)
For valid values, see GatewayResponse in the API Gateway API Reference .
@Stability(value=Stable) @NotNull public String getRestApiId()
@Stability(value=Stable)
public void setRestApiId(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getResponseParameters()
Duplicates not allowed.
@Stability(value=Stable)
public void setResponseParameters(@Nullable
IResolvable value)
Duplicates not allowed.
@Stability(value=Stable)
public void setResponseParameters(@Nullable
Map<String,String> value)
Duplicates not allowed.
@Stability(value=Stable) @Nullable public Object getResponseTemplates()
Duplicates not allowed.
@Stability(value=Stable)
public void setResponseTemplates(@Nullable
IResolvable value)
Duplicates not allowed.
@Stability(value=Stable)
public void setResponseTemplates(@Nullable
Map<String,String> value)
Duplicates not allowed.
@Stability(value=Stable) @Nullable public String getStatusCode()
@Stability(value=Stable)
public void setStatusCode(@Nullable
String value)
Copyright © 2022. All rights reserved.