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.

Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context. You can specify only one type of encryption context. An empty map is treated as not specified. For more information, see GrantConstraints.

Inheritance Hierarchy

System.Object
  Amazon.AccessAnalyzer.Model.KmsGrantConstraints

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

Syntax

C#
public class KmsGrantConstraints

The KmsGrantConstraints type exposes the following members

Constructors

NameDescription
Public Method KmsGrantConstraints()

Properties

NameTypeDescription
Public Property EncryptionContextEquals System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property EncryptionContextEquals.

A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.

Public Property EncryptionContextSubset System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property EncryptionContextSubset.

A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5