@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.142Z") @Stability(value=Stable) public class CfnUsagePlanKey extends CfnResource implements IInspectable
The AWS::ApiGateway::UsagePlanKey resource associates an API key with a usage plan. This association determines which users the usage plan is applied to.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
CfnUsagePlanKey cfnUsagePlanKey = CfnUsagePlanKey.Builder.create(this, "MyCfnUsagePlanKey")
.keyId("keyId")
.keyType("keyType")
.usagePlanId("usagePlanId")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnUsagePlanKey.Builder
A fluent builder for
CfnUsagePlanKey. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnUsagePlanKey(software.constructs.Construct scope,
String id,
CfnUsagePlanKeyProps props)
Create a new `AWS::ApiGateway::UsagePlanKey`.
|
protected |
CfnUsagePlanKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnUsagePlanKey(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrId() |
protected Map<String,Object> |
getCfnProperties() |
String |
getKeyId()
The ID of the usage plan key.
|
String |
getKeyType()
The type of usage plan key.
|
String |
getUsagePlanId()
The ID of the usage plan.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setKeyId(String value)
The ID of the usage plan key.
|
void |
setKeyType(String value)
The type of usage plan key.
|
void |
setUsagePlanId(String value)
The ID of the usage plan.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnUsagePlanKey(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnUsagePlanKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnUsagePlanKey(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnUsagePlanKeyProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getKeyId()
@Stability(value=Stable)
public void setKeyId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getKeyType()
Currently, the only valid key type is API_KEY .
@Stability(value=Stable)
public void setKeyType(@NotNull
String value)
Currently, the only valid key type is API_KEY .
@Stability(value=Stable) @NotNull public String getUsagePlanId()
@Stability(value=Stable)
public void setUsagePlanId(@NotNull
String value)
Copyright © 2022. All rights reserved.