Interface IGateway
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGatewayRef,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IGateway.Jsii$Default
- All Known Implementing Classes:
Gateway,GatewayBase,IGateway.Jsii$Proxy
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIGateway.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe authorizer configuration for the gateway.default StringTimestamp when the gateway was created.default StringThe description of the gateway.default GatewayExceptionLevelThe exception level for the gateway.The ARN of the gateway resource.The id of the gateway.The name of the gateway.default StringThe URL endpoint for the gateway.default IKeyThe KMS key used for encryption.The protocol configuration for the gateway.getRole()The IAM role that provides permissions for the gateway to access AWS services.default StringThe status of the gateway.The status reasons for the gateway.default 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 interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IGatewayRef
getGatewayRefMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizerConfiguration
The authorizer configuration for the gateway. -
getGatewayArn
The ARN of the gateway resource. -
getGatewayId
The id of the gateway. -
getGatewayName
The name of the gateway. -
getProtocolConfiguration
The protocol configuration for the gateway. -
getRole
The IAM role that provides permissions for the gateway to access AWS services. -
getCreatedAt
Timestamp when the gateway was created. -
getDescription
The description of the gateway. -
getExceptionLevel
The exception level for the gateway. -
getGatewayUrl
The URL endpoint for the gateway. -
getKmsKey
The KMS key used for encryption. -
getStatus
The status of the gateway. -
getStatusReason
The status reasons for the gateway. -
getUpdatedAt
Timestamp when the gateway was last updated. -
grant
Grants IAM actions to the IAM Principal.- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantInvoke
Grants permission to invoke this Gateway.- Parameters:
grantee- This parameter is required.
-
grantManage
GrantsCreate,Update, andDeleteactions on the Gateway.- Parameters:
grantee- This parameter is required.
-
grantRead
GrantsGetandListactions on the Gateway.- Parameters:
grantee- This parameter is required.
-
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this gateway.- Parameters:
metricName- The name of the metric. This parameter is required.props- Optional metric configuration.
-
metric
Return the given named metric for this gateway.- Parameters:
metricName- The name of the metric. This parameter is required.
-
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.
Default: - Average statistic over 5 minutes
- Parameters:
props- Optional metric configuration.
-
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.
Default: - Average statistic over 5 minutes
-
metricInvocations
Return a metric containing the total number of invocations for this gateway.This metric tracks all successful invocations of the gateway.
Default: - Sum statistic over 5 minutes
- Parameters:
props- Optional metric configuration.
-
metricInvocations
Return a metric containing the total number of invocations for this gateway.This metric tracks all successful invocations of the gateway.
Default: - Sum statistic over 5 minutes
-
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.
Default: - Average statistic over 5 minutes
- Parameters:
props- Optional metric configuration.
-
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.
Default: - Average statistic over 5 minutes
-
metricSystemErrors
Return a metric containing the number of system errors (5xx status code) for this gateway.This metric tracks internal server errors and system failures.
Default: - Sum statistic over 5 minutes
- Parameters:
props- Optional metric configuration.
-
metricSystemErrors
Return a metric containing the number of system errors (5xx status code) for this gateway.This metric tracks internal server errors and system failures.
Default: - Sum statistic over 5 minutes
-
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.
Default: - Average statistic over 5 minutes
- Parameters:
props- Optional metric configuration.
-
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.
Default: - Average statistic over 5 minutes
-
metricTargetType
@Stability(Stable) @NotNull Metric metricTargetType(@NotNull String targetType, @Nullable MetricOptions props) Return a metric containing the number of requests served by each target type for this gateway.Default: - Sum statistic over 5 minutes
- Parameters:
targetType- The type of target (e.g., 'Lambda', 'OpenAPI', 'Smithy'). This parameter is required.props- Optional metric configuration.
-
metricTargetType
Return a metric containing the number of requests served by each target type for this gateway.Default: - Sum statistic over 5 minutes
- Parameters:
targetType- The type of target (e.g., 'Lambda', 'OpenAPI', 'Smithy'). This parameter is required.
-
metricThrottles
Return a metric containing the number of throttled requests (429 status code) for this gateway.This metric helps identify when the gateway is rate limiting requests.
Default: - Sum statistic over 5 minutes
- Parameters:
props- Optional metric configuration.
-
metricThrottles
Return a metric containing the number of throttled requests (429 status code) for this gateway.This metric helps identify when the gateway is rate limiting requests.
Default: - Sum statistic over 5 minutes
-
metricUserErrors
Return a metric containing the number of user errors (4xx status code, excluding 429) for this gateway.This metric tracks client errors like bad requests, unauthorized access, etc.
Default: - Sum statistic over 5 minutes
- Parameters:
props- Optional metric configuration.
-
metricUserErrors
Return a metric containing the number of user errors (4xx status code, excluding 429) for this gateway.This metric tracks client errors like bad requests, unauthorized access, etc.
Default: - Sum statistic over 5 minutes
-