@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T22:36:22.859Z") @Stability(value=Stable) public class StarPrincipal extends PrincipalBase
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();
software.amazon.jsii.JsiiObject.InitializationModeIAssumeRolePrincipal.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
StarPrincipal() |
protected |
StarPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StarPrincipal(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
PrincipalPolicyFragment |
getPolicyFragment()
Return the policy fragment that identifies this principal in a Policy.
|
String |
toString()
Returns a string representation of an object.
|
addToAssumeRolePolicy, addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getGrantPrincipal, getPrincipalAccount, toJSON, withConditions, withSessionTagsjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected StarPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
protected StarPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public StarPrincipal()
@Stability(value=Stable) @NotNull public String toString()
toString in class PrincipalBase@Stability(value=Stable) @NotNull public PrincipalPolicyFragment getPolicyFragment()
getPolicyFragment in interface IPrincipalgetPolicyFragment in class PrincipalBaseCopyright © 2022. All rights reserved.