@aws-cdk_aws-cloud9-alpha.Owner

class Owner ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Cloud9.Alpha.Owner
Gogithub.com/aws/aws-cdk-go/awscdkcloud9alpha/v2#Owner
Javasoftware.amazon.awscdk.services.cloud9.alpha.Owner
Pythonaws_cdk.aws_cloud9_alpha.Owner
TypeScript (source)@aws-cdk/aws-cloud9-alpha ยป Owner

An environment owner.

Example

declare const vpc: ec2.Vpc;
new cloud9.Ec2Environment(this, 'C9Env', {
  vpc,
  imageId: cloud9.ImageId.AMAZON_LINUX_2,

  owner: cloud9.Owner.accountRoot('111111111')
})

Properties

NameTypeDescription
ownerArn๐Ÿ”นstringof environment owner.

ownerArn๐Ÿ”น

Type: string

of environment owner.

Methods

NameDescription
static accountRoot(accountId)๐Ÿ”นMake the Account Root User the environment owner (not recommended).
static user(user)๐Ÿ”นMake an IAM user the environment owner.

static accountRoot(accountId)๐Ÿ”น

public static accountRoot(accountId: string): Owner

Parameters

  • accountId string โ€” the AccountId to use as the environment owner.

Returns

  • Owner

Make the Account Root User the environment owner (not recommended).


static user(user)๐Ÿ”น

public static user(user: IUser): Owner

Parameters

  • user IUser โ€” the User object to use as the environment owner.

Returns

  • Owner

Make an IAM user the environment owner.

User need to have AWSCloud9Administrator permissions

See also: https://docs.aws.amazon.com/cloud9/latest/user-guide/share-environment.html#share-environment-about