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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ViaServicePrincipal(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ViaServicePrincipal(String, IPrincipal) |
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(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ViaServicePrincipal(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ViaServicePrincipal(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ViaServicePrincipal(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ViaServicePrincipal(String, IPrincipal)
public ViaServicePrincipal(string serviceName, IPrincipal basePrincipal = null)
Parameters
- serviceName System.String
- basePrincipal IPrincipal
Properties
PolicyFragment
Return the policy fragment that identifies this principal in a Policy.
public override PrincipalPolicyFragment PolicyFragment { get; }
Property Value
Overrides
Methods
DedupeString()
Return whether or not this principal is equal to the given principal.
public override string DedupeString()
Returns
System.String