AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the DescribeCustomKeyStores operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.KeyManagementService.Model.DescribeCustomKeyStoresResponse

Namespace: Amazon.KeyManagementService.Model
Assembly: AWSSDK.KeyManagementService.dll
Version: 3.x.y.z

Syntax

C#
public class DescribeCustomKeyStoresResponse : AmazonWebServiceResponse

The DescribeCustomKeyStoresResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property CustomKeyStores System.Collections.Generic.List<Amazon.KeyManagementService.Model.CustomKeyStoresListEntry>

Gets and sets the property CustomKeyStores.

Contains metadata about each custom key store.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property NextMarker System.String

Gets and sets the property NextMarker.

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Truncated System.Boolean

Gets and sets the property Truncated.

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

Examples

This example gets detailed information about all AWS KMS custom key stores in an AWS account and Region. To get all key stores, do not enter a custom key store name or ID.

To get detailed information about custom key stores in the account and Region


var client = new AmazonKeyManagementServiceClient();
var response = client.DescribeCustomKeyStores(new DescribeCustomKeyStoresRequest 
{
});

List<CustomKeyStoresListEntry> customKeyStores = response.CustomKeyStores; // Details about each custom key store in the account and Region.

            

This example gets detailed information about a particular AWS CloudHSM key store by specifying its friendly name. To limit the output to a particular custom key store, provide either the custom key store name or ID.

To get detailed information about an AWS CloudHSM key store by specifying its friendly name


var client = new AmazonKeyManagementServiceClient();
var response = client.DescribeCustomKeyStores(new DescribeCustomKeyStoresRequest 
{
    CustomKeyStoreName = "ExampleKeyStore" // The friendly name of the custom key store.
});

List<CustomKeyStoresListEntry> customKeyStores = response.CustomKeyStores; // Detailed information about the specified custom key store.

            

This example gets detailed information about an external key store by specifying its ID. The example external key store proxy uses public endpoint connectivity.

To get detailed information about an external key store by specifying its ID


var client = new AmazonKeyManagementServiceClient();
var response = client.DescribeCustomKeyStores(new DescribeCustomKeyStoresRequest 
{
    CustomKeyStoreId = "cks-9876543210fedcba9" // The ID of the custom key store.
});

List<CustomKeyStoresListEntry> customKeyStores = response.CustomKeyStores; // Detailed information about the specified custom key store.

            

This example gets detailed information about a particular external key store by specifying its friendly name. To limit the output to a particular custom key store, provide either the custom key store name or ID. The proxy URI path for this external key store includes an optional prefix. Also, because this example external key store uses VPC endpoint connectivity, the response includes the associated VPC endpoint service name.

To get detailed information about an external key store VPC endpoint connectivity by specifying its friendly name


var client = new AmazonKeyManagementServiceClient();
var response = client.DescribeCustomKeyStores(new DescribeCustomKeyStoresRequest 
{
    CustomKeyStoreName = "VPCExternalKeystore"
});

List<CustomKeyStoresListEntry> customKeyStores = response.CustomKeyStores; // Detailed information about the specified custom key store.

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5