@aws-cdk_aws-cloud9-alpha.Owner
static account
class Owner
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Cloud9.Alpha.Owner |
![]() | github.com/aws/aws-cdk-go/awscdkcloud9alpha/v2#Owner |
![]() | software.amazon.awscdk.services.cloud9.alpha.Owner |
![]() | aws_cdk.aws_cloud9_alpha.Owner |
![]() | @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
Name | Type | Description |
---|---|---|
owner | string | of environment owner. |
ownerArn
Type:
string
of environment owner.
Methods
Name | Description |
---|---|
static account | Make the Account Root User the environment owner (not recommended). |
static user(user) | Make an IAM user the environment owner. |
Root(accountId)
static accountpublic static accountRoot(accountId: string): Owner
Parameters
- accountId
string
โ the AccountId to use as the environment owner.
Returns
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
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