Class StarPrincipal

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.PrincipalBase
software.amazon.awscdk.services.iam.StarPrincipal
All Implemented Interfaces:
IAssumeRolePrincipal, IComparablePrincipal, IGrantable, IPrincipal, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:32.287Z") @Stability(Stable) public class StarPrincipal extends PrincipalBase
A principal that uses a literal '*' in the IAM JSON language.

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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.iam.*;
 StarPrincipal starPrincipal = new StarPrincipal();
 
  • Constructor Details

    • StarPrincipal

      protected StarPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
    • StarPrincipal

      protected StarPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • StarPrincipal

      @Stability(Stable) public StarPrincipal()
  • Method Details