Class Owner
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloud9.alpha.Owner
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-13T18:55:13.370Z")
@Stability(Experimental)
public class Owner
extends software.amazon.jsii.JsiiObject
(experimental) An environment owner.
Example:
import software.amazon.awscdk.services.iam.*; Vpc vpc; Ec2Environment.Builder.create(this, "C9Env") .vpc(vpc) .imageId(ImageId.AMAZON_LINUX_2) .owner(Owner.federatedUser(Stack.of(this).getAccount(), "Admin/johndoe")) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Owner
accountRoot
(String accountId) (experimental) Make the Account Root User the environment owner (not recommended).static Owner
assumedRole
(String accountId, String roleName) (experimental) Make an IAM assumed role the environment owner.static Owner
federatedUser
(String accountId, String userName) (experimental) Make an IAM federated user the environment owner.(experimental) of environment owner.static Owner
(experimental) Make an IAM user the environment owner.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Owner
protected Owner(software.amazon.jsii.JsiiObjectRef objRef) -
Owner
protected Owner(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
accountRoot
(experimental) Make the Account Root User the environment owner (not recommended).- Parameters:
accountId
- the AccountId to use as the environment owner. This parameter is required.
-
assumedRole
@Stability(Experimental) @NotNull public static Owner assumedRole(@NotNull String accountId, @NotNull String roleName) (experimental) Make an IAM assumed role the environment owner.- Parameters:
accountId
- The account id of the target account. This parameter is required.roleName
- The name of the assumed role. This parameter is required.
-
federatedUser
@Stability(Experimental) @NotNull public static Owner federatedUser(@NotNull String accountId, @NotNull String userName) (experimental) Make an IAM federated user the environment owner.- Parameters:
accountId
- The AccountId of the target account. This parameter is required.userName
- The name of the federated user. This parameter is required.
-
user
(experimental) Make an IAM user the environment owner.User need to have AWSCloud9Administrator permissions
- Parameters:
user
- the User object to use as the environment owner. This parameter is required.- See Also:
-
getOwnerArn
(experimental) of environment owner.
-