@Stability(value=Experimental) public static final class RateLimitedApiKey.Builder extends Object implements software.amazon.jsii.Builder<RateLimitedApiKey>
RateLimitedApiKey.| Modifier and Type | Method and Description |
|---|---|
RateLimitedApiKey.Builder |
apiKeyName(String apiKeyName)
(experimental) A name for the API key.
|
RateLimitedApiKey.Builder |
apiStages(List<? extends UsagePlanPerApiStage> apiStages)
(experimental) API Stages to be associated with the RateLimitedApiKey.
|
RateLimitedApiKey |
build() |
static RateLimitedApiKey.Builder |
create(software.constructs.Construct scope,
String id) |
RateLimitedApiKey.Builder |
customerId(String customerId)
(experimental) An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.
|
RateLimitedApiKey.Builder |
defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
(experimental) Adds a CORS preflight OPTIONS method to this resource and all child resources.
|
RateLimitedApiKey.Builder |
defaultIntegration(Integration defaultIntegration)
(experimental) An integration to use as a default for all methods created within this API unless an integration is specified.
|
RateLimitedApiKey.Builder |
defaultMethodOptions(MethodOptions defaultMethodOptions)
(experimental) Method options to use as a default for all methods created within this API unless custom options are specified.
|
RateLimitedApiKey.Builder |
description(String description)
(experimental) A description of the purpose of the API key.
|
RateLimitedApiKey.Builder |
enabled(Boolean enabled)
(experimental) Indicates whether the API key can be used by clients.
|
RateLimitedApiKey.Builder |
generateDistinctId(Boolean generateDistinctId)
(experimental) Specifies whether the key identifier is distinct from the created API key value.
|
RateLimitedApiKey.Builder |
quota(QuotaSettings quota)
(experimental) Number of requests clients can make in a given time period.
|
RateLimitedApiKey.Builder |
resources(List<? extends IRestApi> resources)
(experimental) A list of resources this api key is associated with.
|
RateLimitedApiKey.Builder |
throttle(ThrottleSettings throttle)
(experimental) Overall throttle settings for the API.
|
RateLimitedApiKey.Builder |
value(String value)
(experimental) The value of the API key.
|
@Stability(value=Experimental) public static RateLimitedApiKey.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.RateLimitedApiKey.Builder.@Stability(value=Experimental) public RateLimitedApiKey.Builder defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
You can add CORS at the resource-level using addCorsPreflight.
Default: - CORS is disabled
defaultCorsPreflightOptions - Adds a CORS preflight OPTIONS method to this resource and all child resources. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder defaultIntegration(Integration defaultIntegration)
Default: - Inherited from parent.
defaultIntegration - An integration to use as a default for all methods created within this API unless an integration is specified. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder defaultMethodOptions(MethodOptions defaultMethodOptions)
Default: - Inherited from parent.
defaultMethodOptions - Method options to use as a default for all methods created within this API unless custom options are specified. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder apiKeyName(String apiKeyName)
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name.
Default: automically generated name
apiKeyName - A name for the API key. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder value(String value)
Must be at least 20 characters long.
Default: none
value - The value of the API key. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder customerId(String customerId)
Default: none
customerId - An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder description(String description)
Default: none
description - A description of the purpose of the API key. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder enabled(Boolean enabled)
Default: true
enabled - Indicates whether the API key can be used by clients. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder generateDistinctId(Boolean generateDistinctId)
Default: false
generateDistinctId - Specifies whether the key identifier is distinct from the created API key value. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder resources(List<? extends IRestApi> resources)
Default: none
resources - A list of resources this api key is associated with. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder apiStages(List<? extends UsagePlanPerApiStage> apiStages)
Default: none
apiStages - API Stages to be associated with the RateLimitedApiKey. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder quota(QuotaSettings quota)
Default: none
quota - Number of requests clients can make in a given time period. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey.Builder throttle(ThrottleSettings throttle)
Default: none
throttle - Overall throttle settings for the API. This parameter is required.this@Stability(value=Experimental) public RateLimitedApiKey build()
build in interface software.amazon.jsii.Builder<RateLimitedApiKey>Copyright © 2021. All rights reserved.