describe_environment_memberships
async
¶
describe_environment_memberships(
*,
config_overrides: Optional[AsyncCloud9ClientConfig] = None,
user_arn: Optional[UserArn] = None,
environment_id: Optional[EnvironmentId] = None,
permissions: Optional[PermissionsList] = None,
next_token: Optional[String] = None,
max_results: Optional[MaxResults] = None,
) -> DescribeEnvironmentMembershipsResult
Gets information about environment members for an Cloud9 development environment.
Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
Parameters:
-
user_arn(Optional[UserArn], default:None) –The Amazon Resource Name (ARN) of an individual environment member to get information about. If no value is specified, information about all environment members are returned.
-
environment_id(Optional[EnvironmentId], default:None) –The ID of the environment to get environment member information about.
-
permissions(Optional[PermissionsList], default:None) –The type of environment member permissions to get information about. Available values include:
-
owner: Owns the environment. -
read-only: Has read-only access to the environment. -
read-write: Has read-write access to the environment.
If no value is specified, information about all environment members are returned.
-
-
next_token(Optional[String], default:None) –During a previous call, if there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
-
max_results(Optional[MaxResults], default:None) –The maximum number of environment members to get information about.
Raises:
-
BadRequestException–The target request is invalid.
-
ConflictException–A conflict occurred.
-
ForbiddenException–An access permissions issue occurred.
-
InternalServerErrorException–An internal server error occurred.
-
LimitExceededException–A service limit was exceeded.
-
NotFoundException–The target resource cannot be found.
-
TooManyRequestsException–Too many service requests were made over the given time period.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
DescribeEnvironmentMemberships2 The following example gets information about the owner of the specified development environment.
>>> await client.describe_environment_memberships(permissions=['owner'], environment_id='8d9967e2f0624182b74e7690ad69ebEX')
DescribeEnvironmentMemberships3
The following example gets development environment membership information for the specified user.
>>> await client.describe_environment_memberships(user_arn='arn:aws:iam::123456789012:user/MyDemoUser')
DescribeEnvironmentMemberships1
The following example gets information about all of the environment members for the specified development environment.
>>> await client.describe_environment_memberships(environment_id='8d9967e2f0624182b74e7690ad69ebEX')
Source code in docs_src/capo_cloud9/_services/async_cloud9.py
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 | |