@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.790Z") @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$DefaultIComparablePrincipal.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 |
|---|---|
String |
dedupeString()
Return whether or not this principal is equal to the given principal.
|
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, withSessionTagsprotected StarPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
protected StarPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public StarPrincipal()
@Stability(value=Stable) @Nullable public String dedupeString()
dedupeString in interface IComparablePrincipaldedupeString in class PrincipalBase@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.