Class CfnAPIKey
The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer.
Inherited Members
Namespace: Amazon.CDK.AWS.Location
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAPIKey : CfnResource, IInspectable, IAPIKeyRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnAPIKey Inherits CfnResource Implements IInspectable, IAPIKeyRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Location;
var cfnAPIKey = new CfnAPIKey(this, "MyCfnAPIKey", new CfnAPIKeyProps {
KeyName = "keyName",
Restrictions = new ApiKeyRestrictionsProperty {
AllowActions = new [] { "allowActions" },
AllowResources = new [] { "allowResources" },
// the properties below are optional
AllowAndroidApps = new [] { new AndroidAppProperty {
CertificateFingerprint = "certificateFingerprint",
Package = "package"
} },
AllowAppleApps = new [] { new AppleAppProperty {
BundleId = "bundleId"
} },
AllowReferers = new [] { "allowReferers" }
},
// the properties below are optional
Description = "description",
ExpireTime = "expireTime",
ForceDelete = false,
ForceUpdate = false,
NoExpiry = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
| CfnAPIKey(Construct, string, ICfnAPIKeyProps) | Create a new |
Properties
| ApiKeyRef | A reference to a APIKey resource. |
| AttrArn | The Amazon Resource Name (ARN) for the resource. |
| AttrCreateTime | The timestamp for when the API key resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. |
| AttrKeyArn | The Amazon Resource Name (ARN) for the API key resource. |
| AttrUpdateTime | The timestamp for when the API key resource was last updated in ISO 8601 format: |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer. |
| Description | Updates the description for the API key resource. |
| ExpireTime | The optional timestamp for when the API key resource will expire in ISO 8601 format . |
| ForceDelete | ForceDelete bypasses an API key's expiry conditions and deletes the key. |
| ForceUpdate | The boolean flag to be included for updating |
| KeyName | A custom name for the API key resource. |
| NoExpiry | Whether the API key should expire. |
| Restrictions | The API key restrictions for the API key resource. |
| Tags | Applies one or more tags to the map resource. |
Methods
| ArnForAPIKey(IAPIKeyRef) | The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer. |
| FromAPIKeyArn(Construct, string, string) | Creates a new IAPIKeyRef from an ARN. |
| FromKeyName(Construct, string, string) | Creates a new IAPIKeyRef from a keyName. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnAPIKey(object) | Checks whether the given object is a CfnAPIKey. |
| RenderProperties(IDictionary<string, object>) | The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer. |
Constructors
CfnAPIKey(Construct, string, ICfnAPIKeyProps)
Create a new AWS::Location::APIKey.
public CfnAPIKey(Construct scope, string id, ICfnAPIKeyProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnAPIKeyProps
Resource properties.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
Properties
ApiKeyRef
A reference to a APIKey resource.
public virtual IAPIKeyReference ApiKeyRef { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
AttrArn
The Amazon Resource Name (ARN) for the resource.
public virtual string AttrArn { get; }
Property Value
Remarks
Used when you need to specify a resource across all AWS .
CloudformationAttribute: Arn
AttrCreateTime
The timestamp for when the API key resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.
public virtual string AttrCreateTime { get; }
Property Value
Remarks
CloudformationAttribute: CreateTime
AttrKeyArn
The Amazon Resource Name (ARN) for the API key resource.
public virtual string AttrKeyArn { get; }
Property Value
Remarks
Used when you need to specify a resource across all AWS .
CloudformationAttribute: KeyArn
AttrUpdateTime
The timestamp for when the API key resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ .
public virtual string AttrUpdateTime { get; }
Property Value
Remarks
CloudformationAttribute: UpdateTime
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
CfnProperties
The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
Description
Updates the description for the API key resource.
public virtual string? Description { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
ExpireTime
The optional timestamp for when the API key resource will expire in ISO 8601 format .
public virtual string? ExpireTime { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
ForceDelete
ForceDelete bypasses an API key's expiry conditions and deletes the key.
public virtual object? ForceDelete { get; set; }
Property Value
Remarks
Type union: either bool or IResolvable
ForceUpdate
The boolean flag to be included for updating ExpireTime or Restrictions details.
public virtual object? ForceUpdate { get; set; }
Property Value
Remarks
Type union: either bool or IResolvable
KeyName
A custom name for the API key resource.
public virtual string KeyName { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
NoExpiry
Whether the API key should expire.
public virtual object? NoExpiry { get; set; }
Property Value
Remarks
Type union: either bool or IResolvable
Restrictions
The API key restrictions for the API key resource.
public virtual object Restrictions { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnAPIKey.IApiKeyRestrictionsProperty
Tags
Applies one or more tags to the map resource.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
Methods
ArnForAPIKey(IAPIKeyRef)
The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer.
public static string ArnForAPIKey(IAPIKeyRef resource)
Parameters
- resource IAPIKeyRef
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Location;
var cfnAPIKey = new CfnAPIKey(this, "MyCfnAPIKey", new CfnAPIKeyProps {
KeyName = "keyName",
Restrictions = new ApiKeyRestrictionsProperty {
AllowActions = new [] { "allowActions" },
AllowResources = new [] { "allowResources" },
// the properties below are optional
AllowAndroidApps = new [] { new AndroidAppProperty {
CertificateFingerprint = "certificateFingerprint",
Package = "package"
} },
AllowAppleApps = new [] { new AppleAppProperty {
BundleId = "bundleId"
} },
AllowReferers = new [] { "allowReferers" }
},
// the properties below are optional
Description = "description",
ExpireTime = "expireTime",
ForceDelete = false,
ForceUpdate = false,
NoExpiry = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
FromAPIKeyArn(Construct, string, string)
Creates a new IAPIKeyRef from an ARN.
public static IAPIKeyRef FromAPIKeyArn(Construct scope, string id, string arn)
Parameters
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
FromKeyName(Construct, string, string)
Creates a new IAPIKeyRef from a keyName.
public static IAPIKeyRef FromKeyName(Construct scope, string id, string keyName)
Parameters
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
IsCfnAPIKey(object)
Checks whether the given object is a CfnAPIKey.
public static bool IsCfnAPIKey(object x)
Parameters
- x object
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The API key resource in your AWS account, which lets you grant actions for Amazon Location resources to the API key bearer.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-apikey.html
CloudformationResource: AWS::Location::APIKey
ExampleMetadata: fixture=_generated