Class GatewayBase
- All Implemented Interfaces:
IGatewayRef,IEnvironmentAware,IResource,IGateway,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
Gateway
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.IGateway
IGateway.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGatewayBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedGatewayBase(software.amazon.jsii.JsiiObjectRef objRef) protectedGatewayBase(software.constructs.Construct scope, String id) protectedGatewayBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract IGatewayAuthorizerConfigThe authorizer configuration for the gateway.abstract StringTimestamp when the gateway was created.abstract StringThe description of the gateway.abstract GatewayExceptionLevelThe exception level for the gateway.abstract StringThe ARN of the gateway resource.abstract StringThe id of the gateway.abstract StringThe name of the gateway.A reference to a Gateway resource.abstract StringThe URL endpoint for the gateway.abstract IKeyThe KMS key used for encryption.abstract IGatewayProtocolConfigThe protocol configuration for the gateway.abstract IRolegetRole()The IAM role that provides permissions for the gateway to access AWS services.abstract StringThe status of the gateway.The status reasons for the gateway.abstract StringTimestamp when the gateway was last updated.grant(IGrantable grantee, String... actions) Grants IAM actions to the IAM Principal.grantInvoke(IGrantable grantee) Grants permission to invoke this Gateway.grantManage(IGrantable grantee) GrantsCreate,Update, andDeleteactions on the Gateway.grantRead(IGrantable grantee) GrantsGetandListactions on the Gateway.Return the given named metric for this gateway.metric(String metricName, MetricOptions props) Return the given named metric for this gateway.Return a metric measuring the duration of requests for this gateway.metricDuration(MetricOptions props) Return a metric measuring the duration of requests for this gateway.Return a metric containing the total number of invocations for this gateway.metricInvocations(MetricOptions props) Return a metric containing the total number of invocations for this gateway.Return a metric measuring the latency of requests for this gateway.metricLatency(MetricOptions props) Return a metric measuring the latency of requests for this gateway.Return a metric containing the number of system errors (5xx status code) for this gateway.metricSystemErrors(MetricOptions props) Return a metric containing the number of system errors (5xx status code) for this gateway.Return a metric measuring the target execution time for this gateway.Return a metric measuring the target execution time for this gateway.metricTargetType(String targetType) Return a metric containing the number of requests served by each target type for this gateway.metricTargetType(String targetType, MetricOptions props) Return a metric containing the number of requests served by each target type for this gateway.Return a metric containing the number of throttled requests (429 status code) for this gateway.metricThrottles(MetricOptions props) Return a metric containing the number of throttled requests (429 status code) for this gateway.Return a metric containing the number of user errors (4xx status code, excluding 429) for this gateway.metricUserErrors(MetricOptions props) Return a metric containing the number of user errors (4xx status code, excluding 429) for this gateway.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
GatewayBase
protected GatewayBase(software.amazon.jsii.JsiiObjectRef objRef) -
GatewayBase
protected GatewayBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
GatewayBase
@Stability(Stable) protected GatewayBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
GatewayBase
@Stability(Stable) protected GatewayBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grants IAM actions to the IAM Principal.[disable-awslint:no-grants]
-
grantInvoke
Grants permission to invoke this Gateway.[disable-awslint:no-grants]
- Specified by:
grantInvokein interfaceIGateway- Parameters:
grantee- The principal to grant invoke permissions to. This parameter is required.
-
grantManage
GrantsCreate,Update, andDeleteactions on the Gateway.[disable-awslint:no-grants]
- Specified by:
grantManagein interfaceIGateway- Parameters:
grantee- The principal to grant manage permissions to. This parameter is required.
-
grantRead
GrantsGetandListactions on the Gateway.[disable-awslint:no-grants]
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this gateway.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties. -
metric
Return the given named metric for this gateway.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties. -
metricDuration
Return a metric measuring the duration of requests for this gateway.The duration metric represents the total time elapsed between receiving the request and sending the final response token, representing complete end-to-end processing time.
- Specified by:
metricDurationin interfaceIGateway- Parameters:
props-
-
metricDuration
Return a metric measuring the duration of requests for this gateway.The duration metric represents the total time elapsed between receiving the request and sending the final response token, representing complete end-to-end processing time.
- Specified by:
metricDurationin interfaceIGateway
-
metricInvocations
Return a metric containing the total number of invocations for this gateway.- Specified by:
metricInvocationsin interfaceIGateway- Parameters:
props-
-
metricInvocations
Return a metric containing the total number of invocations for this gateway.- Specified by:
metricInvocationsin interfaceIGateway
-
metricLatency
Return a metric measuring the latency of requests for this gateway.The latency metric represents the time elapsed between when the service receives the request and when it begins sending the first response token.
- Specified by:
metricLatencyin interfaceIGateway- Parameters:
props-
-
metricLatency
Return a metric measuring the latency of requests for this gateway.The latency metric represents the time elapsed between when the service receives the request and when it begins sending the first response token.
- Specified by:
metricLatencyin interfaceIGateway
-
metricSystemErrors
Return a metric containing the number of system errors (5xx status code) for this gateway.- Specified by:
metricSystemErrorsin interfaceIGateway- Parameters:
props-
-
metricSystemErrors
Return a metric containing the number of system errors (5xx status code) for this gateway.- Specified by:
metricSystemErrorsin interfaceIGateway
-
metricTargetExecutionTime
Return a metric measuring the target execution time for this gateway.This metric helps determine the contribution of the target (Lambda, OpenAPI, etc.) to the total latency.
- Specified by:
metricTargetExecutionTimein interfaceIGateway- Parameters:
props-
-
metricTargetExecutionTime
Return a metric measuring the target execution time for this gateway.This metric helps determine the contribution of the target (Lambda, OpenAPI, etc.) to the total latency.
- Specified by:
metricTargetExecutionTimein interfaceIGateway
-
metricTargetType
@Stability(Stable) @NotNull public Metric metricTargetType(@NotNull String targetType, @Nullable MetricOptions props) Return a metric containing the number of requests served by each target type for this gateway.- Specified by:
metricTargetTypein interfaceIGateway- Parameters:
targetType- This parameter is required.props-
-
metricTargetType
Return a metric containing the number of requests served by each target type for this gateway.- Specified by:
metricTargetTypein interfaceIGateway- Parameters:
targetType- This parameter is required.
-
metricThrottles
Return a metric containing the number of throttled requests (429 status code) for this gateway.- Specified by:
metricThrottlesin interfaceIGateway- Parameters:
props-
-
metricThrottles
Return a metric containing the number of throttled requests (429 status code) for this gateway.- Specified by:
metricThrottlesin interfaceIGateway
-
metricUserErrors
Return a metric containing the number of user errors (4xx status code, excluding 429) for this gateway.- Specified by:
metricUserErrorsin interfaceIGateway- Parameters:
props-
-
metricUserErrors
Return a metric containing the number of user errors (4xx status code, excluding 429) for this gateway.- Specified by:
metricUserErrorsin interfaceIGateway
-
getAuthorizerConfiguration
The authorizer configuration for the gateway.- Specified by:
getAuthorizerConfigurationin interfaceIGateway
-
getGatewayArn
The ARN of the gateway resource.- Specified by:
getGatewayArnin interfaceIGateway
-
getGatewayId
The id of the gateway.- Specified by:
getGatewayIdin interfaceIGateway
-
getGatewayName
The name of the gateway.- Specified by:
getGatewayNamein interfaceIGateway
-
getGatewayRef
A reference to a Gateway resource.- Specified by:
getGatewayRefin interfaceIGatewayRef
-
getProtocolConfiguration
The protocol configuration for the gateway.- Specified by:
getProtocolConfigurationin interfaceIGateway
-
getRole
The IAM role that provides permissions for the gateway to access AWS services. -
getCreatedAt
Timestamp when the gateway was created.- Specified by:
getCreatedAtin interfaceIGateway
-
getDescription
The description of the gateway.- Specified by:
getDescriptionin interfaceIGateway
-
getExceptionLevel
The exception level for the gateway.- Specified by:
getExceptionLevelin interfaceIGateway
-
getGatewayUrl
The URL endpoint for the gateway.- Specified by:
getGatewayUrlin interfaceIGateway
-
getKmsKey
The KMS key used for encryption. -
getStatus
The status of the gateway. -
getStatusReason
The status reasons for the gateway.- Specified by:
getStatusReasonin interfaceIGateway
-
getUpdatedAt
Timestamp when the gateway was last updated.- Specified by:
getUpdatedAtin interfaceIGateway
-