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.103.1 (build bef2dea)", date="2024-09-11T18:01:25.451Z") @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
    Modifier
    Constructor
    Description
    protected
    Owner(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Owner(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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
    user(IUser user)
    (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

      @Stability(Experimental) @NotNull public static Owner accountRoot(@NotNull String accountId)
      (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

      @Stability(Experimental) @NotNull public static Owner user(@NotNull IUser 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

      @Stability(Experimental) @NotNull public String getOwnerArn()
      (experimental) of environment owner.