@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.061Z") @Stability(value=Experimental) public class Method extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Method.Builder
(experimental) A fluent builder for
Method. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Method(software.constructs.Construct scope,
String id,
MethodProps props) |
protected |
Method(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Method(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IRestApi |
getApi()
(experimental) The API Gateway RestApi associated with this method.
|
String |
getHttpMethod() |
String |
getMethodArn()
(experimental) Returns an execute-api ARN for this method:.
|
String |
getMethodId() |
IResource |
getResource() |
String |
getTestMethodArn()
(experimental) Returns an execute-api ARN for this method's "test-invoke-stage" stage.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Method(software.amazon.jsii.JsiiObjectRef objRef)
protected Method(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Method(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
MethodProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public IRestApi getApi()
@Stability(value=Experimental) @NotNull public String getHttpMethod()
@Stability(value=Experimental) @NotNull public String getMethodArn()
arn:aws:execute-api:{region}:{account}:{restApiId}/{stage}/{method}/{path}
NOTE: {stage} will refer to the restApi.deploymentStage, which will
automatically set if auto-deploy is enabled, or can be explicitly assigned.
When not configured, {stage} will be set to '*', as a shorthand for 'all stages'.
@Stability(value=Experimental) @NotNull public String getMethodId()
@Stability(value=Experimental) @NotNull public IResource getResource()
@Stability(value=Experimental) @NotNull public String getTestMethodArn()
This stage is used by the AWS Console UI when testing the method.
Copyright © 2021. All rights reserved.