AWS SDK Version 4 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.

Contains information about a grant.

Inheritance Hierarchy

System.Object
  Amazon.KeyManagementService.Model.GrantListEntry

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

Syntax

C#
public class GrantListEntry

The GrantListEntry type exposes the following members

Constructors

NameDescription
Public Method GrantListEntry()

Properties

NameTypeDescription
Public Property Constraints Amazon.KeyManagementService.Model.GrantConstraints

Gets and sets the property Constraints.

A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

Public Property CreationDate System.Nullable<System.DateTime>

Gets and sets the property CreationDate.

The date and time when the grant was created.

Public Property GranteePrincipal System.String

Gets and sets the property GranteePrincipal.

The identity that gets the permissions in the grant.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Public Property GrantId System.String

Gets and sets the property GrantId.

The unique identifier for the grant.

Public Property IssuingAccount System.String

Gets and sets the property IssuingAccount.

The Amazon Web Services account under which the grant was issued.

Public Property KeyId System.String

Gets and sets the property KeyId.

The unique identifier for the KMS key to which the grant applies.

Public Property Name System.String

Gets and sets the property Name.

The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.

Public Property Operations System.Collections.Generic.List<System.String>

Gets and sets the property Operations.

The list of operations permitted by the grant.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property RetiringPrincipal System.String

Gets and sets the property RetiringPrincipal.

The principal that can retire the grant.

Version Information

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

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer