Show / Hide Table of Contents

Class StarPrincipal

A principal that uses a literal '*' in the IAM JSON language.

Inheritance
object
PrincipalBase
StarPrincipal
Implements
IAssumeRolePrincipal
IComparablePrincipal
IPrincipal
IGrantable
Inherited Members
PrincipalBase.AddToAssumeRolePolicy(PolicyDocument)
PrincipalBase.AddToPolicy(PolicyStatement)
PrincipalBase.AddToPrincipalPolicy(PolicyStatement)
PrincipalBase.ToJSON()
PrincipalBase.WithConditions(IDictionary<string, object>)
PrincipalBase.WithSessionTags()
PrincipalBase.AssumeRoleAction
PrincipalBase.GrantPrincipal
PrincipalBase.PrincipalAccount
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StarPrincipal : PrincipalBase, IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Syntax (vb)
Public Class StarPrincipal Inherits PrincipalBase Implements IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Remarks

Some services behave differently when you specify Principal: "" or Principal: { AWS: "" } in their resource policy.

StarPrincipal renders to Principal: *. Most of the time, you should use AnyPrincipal instead.

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;

             var starPrincipal = new StarPrincipal();

Synopsis

Constructors

StarPrincipal()

A principal that uses a literal '*' in the IAM JSON language.

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.

ToString()

Returns a string representation of an object.

Constructors

StarPrincipal()

A principal that uses a literal '*' in the IAM JSON language.

public StarPrincipal()
Remarks

Some services behave differently when you specify Principal: "" or Principal: { AWS: "" } in their resource policy.

StarPrincipal renders to Principal: *. Most of the time, you should use AnyPrincipal instead.

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;

             var starPrincipal = new StarPrincipal();

Properties

PolicyFragment

Return the policy fragment that identifies this principal in a Policy.

public override PrincipalPolicyFragment PolicyFragment { get; }
Property Value

PrincipalPolicyFragment

Overrides
PrincipalBase.PolicyFragment
Remarks

Some services behave differently when you specify Principal: "" or Principal: { AWS: "" } in their resource policy.

StarPrincipal renders to Principal: *. Most of the time, you should use AnyPrincipal instead.

ExampleMetadata: fixture=_generated

Methods

DedupeString()

Return whether or not this principal is equal to the given principal.

public override string? DedupeString()
Returns

string

Overrides
PrincipalBase.DedupeString()
Remarks

Some services behave differently when you specify Principal: "" or Principal: { AWS: "" } in their resource policy.

StarPrincipal renders to Principal: *. Most of the time, you should use AnyPrincipal instead.

ExampleMetadata: fixture=_generated

ToString()

Returns a string representation of an object.

public override string ToString()
Returns

string

Overrides
PrincipalBase.ToString()
Remarks

Some services behave differently when you specify Principal: "" or Principal: { AWS: "" } in their resource policy.

StarPrincipal renders to Principal: *. Most of the time, you should use AnyPrincipal instead.

ExampleMetadata: fixture=_generated

Implements

IAssumeRolePrincipal
IComparablePrincipal
IPrincipal
IGrantable
Back to top Generated by DocFX