@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:31.872Z") @Stability(value=Experimental) public class AccountRootPrincipal extends AccountPrincipal
Example:
Bucket bucket = new Bucket(this, "MyBucket");
AddToResourcePolicyResult result = bucket.addToResourcePolicy(PolicyStatement.Builder.create()
.actions(List.of("s3:GetObject"))
.resources(List.of(bucket.arnForObjects("file.txt")))
.principals(List.of(new AccountRootPrincipal()))
.build());
software.amazon.jsii.JsiiObject.InitializationModeIAssumeRolePrincipal.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
AccountRootPrincipal() |
protected |
AccountRootPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AccountRootPrincipal(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
(experimental) Returns a string representation of an object.
|
getAccountId, getPrincipalAccountgetArn, getPolicyFragment, inOrganizationaddToAssumeRolePolicy, addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getGrantPrincipal, toJSON, withConditions, withSessionTagsjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AccountRootPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
protected AccountRootPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public AccountRootPrincipal()
@Stability(value=Experimental) @NotNull public String toString()
toString in class AccountPrincipalCopyright © 2022. All rights reserved.