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.98.0 (build 00b106d)", date="2024-05-24T02:42:39.160Z") @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