Class ViaServicePrincipal
A principal to allow access to a key if it's being used through another AWS service.
Inherited Members
Namespace: Amazon.CDK.AWS.KMS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ViaServicePrincipal : PrincipalBase, IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Syntax (vb)
Public Class ViaServicePrincipal Inherits PrincipalBase Implements IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Remarks
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.IAM;
using Amazon.CDK.AWS.KMS;
IPrincipal principal;
var viaServicePrincipal = new ViaServicePrincipal("serviceName", principal);
Synopsis
Constructors
| ViaServicePrincipal(string, IPrincipal?) | A principal to allow access to a key if it's being used through another AWS service. |
Properties
| PolicyFragment | Return the policy fragment that identifies this principal in a Policy. |
Methods
| DedupeString() | Return whether or not this principal is equal to the given principal. |
Constructors
ViaServicePrincipal(string, IPrincipal?)
A principal to allow access to a key if it's being used through another AWS service.
public ViaServicePrincipal(string serviceName, IPrincipal? basePrincipal = null)
Parameters
- serviceName string
- basePrincipal IPrincipal
Remarks
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.IAM;
using Amazon.CDK.AWS.KMS;
IPrincipal principal;
var viaServicePrincipal = new ViaServicePrincipal("serviceName", principal);
Properties
PolicyFragment
Return the policy fragment that identifies this principal in a Policy.
public override PrincipalPolicyFragment PolicyFragment { get; }
Property Value
Overrides
Remarks
ExampleMetadata: fixture=_generated
Methods
DedupeString()
Return whether or not this principal is equal to the given principal.
public override string? DedupeString()
Returns
Overrides
Remarks
ExampleMetadata: fixture=_generated