Skip to content

update_space async

update_space(
    space_id: SpaceId,
    *,
    config_overrides: Optional[AsyncrepostspaceClientConfig] = None,
    description: Optional[SpaceDescription] = None,
    tier: Optional[TierLevel] = None,
    role_arn: Optional[Arn] = None,
    supported_email_domains: Optional[SupportedEmailDomainsParameters] = None,
) -> None

Modifies an existing AWS re:Post Private private re:Post.

Parameters:

  • space_id (SpaceId) –

    The unique ID of this private re:Post.

  • description (Optional[SpaceDescription], default: None ) –

    A description for the private re:Post. This is used only to help you identify this private re:Post.

  • tier (Optional[TierLevel], default: None ) –

    The pricing tier of this private re:Post.

  • role_arn (Optional[Arn], default: None ) –

    The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.

  • supported_email_domains (Optional[SupportedEmailDomainsParameters], default: None ) –

Raises:

Source code in docs_src/capo_repostspace/_services/async_repostspace.py
async def update_space(
    self,
    space_id: "capo_repostspace.types.space_id.SpaceId",
    *,
    config_overrides: Optional[AsyncrepostspaceClientConfig] = None,
    description: Optional[
        "capo_repostspace.types.space_description.SpaceDescription"
    ] = None,
    tier: Optional["capo_repostspace.types.tier_level.TierLevel"] = None,
    role_arn: Optional["capo_repostspace.types.arn.Arn"] = None,
    supported_email_domains: Optional[
        "capo_repostspace.types.supported_email_domains_parameters.SupportedEmailDomainsParameters"
    ] = None,
) -> None:
    """<p>Modifies an existing AWS re:Post Private private re:Post.</p>

    Args:
        space_id: <p>The unique ID of this private re:Post.</p>
        description: <p>A description for the private re:Post. This is used only to help you identify this private re:Post.</p>
        tier: <p>The pricing tier of this private re:Post.</p>
        role_arn: <p>The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.</p>
        supported_email_domains: <p/>

    Raises:
        capo_repostspace.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_repostspace.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_repostspace.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_repostspace.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_repostspace.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_repostspace.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
        capo_repostspace.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_repostspace.types.update_space_input.UpdateSpaceInput]",
    ) -> AsyncOperationResponse[None]:
        import capo_repostspace._operations.repost_space.update_space

        (
            output,
            http_response,
        ) = await capo_repostspace._operations.repost_space.update_space.async_update_space(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_repostspace.types.update_space_input.UpdateSpaceInput",
    ) -> dict[str, Any]:
        import capo_repostspace.types.update_space_input

        return capo_repostspace.types.update_space_input.redact_sensitive(input_)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("UpdateSpace", redact_input=_redact_input),
    )
    input_: capo_repostspace.types.update_space_input.UpdateSpaceInput = {
        "space_id": space_id
    }
    if description is not None:
        input_["description"] = description
    if tier is not None:
        input_["tier"] = tier
    if role_arn is not None:
        input_["role_arn"] = role_arn
    if supported_email_domains is not None:
        input_["supported_email_domains"] = supported_email_domains

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