public sealed class KeyAccessJustificationsPolicy : IMessage<KeyAccessJustificationsPolicy>, IEquatable<KeyAccessJustificationsPolicy>, IDeepCloneable<KeyAccessJustificationsPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class KeyAccessJustificationsPolicy.
A
[KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy]
specifies zero or more allowed
[AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt,
and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey].
public RepeatedField<AccessReason> AllowedAccessReasons { get; }
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
[CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
fail.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eKeyAccessJustificationsPolicy\u003c/code\u003e class within the Google Cloud Key Management Service v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeyAccessJustificationsPolicy\u003c/code\u003e class is used to define allowed access reasons for encrypt, decrypt, and sign operations on a \u003ccode\u003eCryptoKey\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 3.16.0, but there are 24 prior versions from 2.2.0 available.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, along with inheriting from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllowedAccessReasons\u003c/code\u003e property of the class, of type \u003ccode\u003eRepeatedField<AccessReason>\u003c/code\u003e, dictates the acceptable access reasons, and if this list is empty, all operations will fail.\u003c/p\u003e\n"]]],[],null,[]]