@Stability(value=Experimental) public static final class ApiKeyProps.Builder extends Object implements software.amazon.jsii.Builder<ApiKeyProps>
ApiKeyProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public ApiKeyProps.Builder customerId(String customerId)
ApiKeyProps.getCustomerId()customerId - An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.this@Stability(value=Experimental) public ApiKeyProps.Builder description(String description)
ApiKeyProps.getDescription()description - A description of the purpose of the API key.this@Stability(value=Experimental) public ApiKeyProps.Builder enabled(Boolean enabled)
ApiKeyProps.getEnabled()enabled - Indicates whether the API key can be used by clients.this@Stability(value=Experimental) public ApiKeyProps.Builder generateDistinctId(Boolean generateDistinctId)
ApiKeyProps.getGenerateDistinctId()generateDistinctId - Specifies whether the key identifier is distinct from the created API key value.this@Stability(value=Experimental) public ApiKeyProps.Builder resources(List<? extends IRestApi> resources)
ApiKeyProps.getResources()resources - A list of resources this api key is associated with.this@Stability(value=Experimental) public ApiKeyProps.Builder apiKeyName(String apiKeyName)
ApiKeyOptions.getApiKeyName()apiKeyName - A name for the API key.
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name.this@Stability(value=Experimental) public ApiKeyProps.Builder value(String value)
ApiKeyOptions.getValue()value - The value of the API key.
Must be at least 20 characters long.this@Stability(value=Experimental) public ApiKeyProps.Builder defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
ResourceOptions.getDefaultCorsPreflightOptions()defaultCorsPreflightOptions - Adds a CORS preflight OPTIONS method to this resource and all child resources.
You can add CORS at the resource-level using addCorsPreflight.this@Stability(value=Experimental) public ApiKeyProps.Builder defaultIntegration(Integration defaultIntegration)
ResourceOptions.getDefaultIntegration()defaultIntegration - An integration to use as a default for all methods created within this API unless an integration is specified.this@Stability(value=Experimental) public ApiKeyProps.Builder defaultMethodOptions(MethodOptions defaultMethodOptions)
ResourceOptions.getDefaultMethodOptions()defaultMethodOptions - Method options to use as a default for all methods created within this API unless custom options are specified.this@Stability(value=Experimental) public ApiKeyProps build()
build in interface software.amazon.jsii.Builder<ApiKeyProps>ApiKeyPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.