Skip to content

describe_group async

describe_group(
    organization_id: OrganizationId,
    group_id: EntityIdentifier,
    *,
    config_overrides: Optional[AsyncWorkMailClientConfig] = None,
) -> DescribeGroupResponse

Returns the data available for the group.

Parameters:

  • organization_id (OrganizationId) –

    The identifier for the organization under which the group exists.

  • group_id (EntityIdentifier) –

    The identifier for the group to be described.

    The identifier can accept GroupId, Groupname, or email. The following identity formats are available:

    • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

    • Email address: [email protected]

    • Group name: group

Raises:

Source code in docs_src/capo_workmail/_services/async_work_mail.py
async def describe_group(
    self,
    organization_id: "capo_workmail.types.organization_id.OrganizationId",
    group_id: "capo_workmail.types.entity_identifier.EntityIdentifier",
    *,
    config_overrides: Optional[AsyncWorkMailClientConfig] = None,
) -> "capo_workmail.types.describe_group_response.DescribeGroupResponse":
    """<p>Returns the data available for the group.</p>

    Args:
        organization_id: <p>The identifier for the organization under which the group exists.</p>
        group_id: <p>The identifier for the group to be described.</p> <p>The identifier can accept <i>GroupId</i>, <i>Groupname</i>, or <i>email</i>. The following identity formats are available:</p> <ul> <li> <p>Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p> </li> <li> <p>Email address: [email protected]</p> </li> <li> <p>Group name: group</p> </li> </ul>

    Raises:
        capo_workmail.errors.entity_not_found_exception.EntityNotFoundException: <p>The identifier supplied for the user, group, or resource does not exist in your organization.</p>
        capo_workmail.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more of the input parameters don't match the service's restrictions.</p>
        capo_workmail.errors.organization_not_found_exception.OrganizationNotFoundException: <p>An operation received a valid organization identifier that either doesn't belong or exist in the system.</p>
        capo_workmail.errors.organization_state_exception.OrganizationStateException: <p>The organization must have a valid state to perform certain operations on the organization or its members.</p>
        capo_workmail.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_workmail.types.describe_group_request.DescribeGroupRequest]",
    ) -> AsyncOperationResponse[
        "capo_workmail.types.describe_group_response.DescribeGroupResponse"
    ]:
        import capo_workmail._operations.work_mail_service.describe_group

        (
            output,
            http_response,
        ) = await capo_workmail._operations.work_mail_service.describe_group.async_describe_group(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeGroup")
    )
    input_: capo_workmail.types.describe_group_request.DescribeGroupRequest = {
        "organization_id": organization_id,
        "group_id": group_id,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output