Skip to content

update_global_settings async

update_global_settings(
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    organization_sharing_status: Optional[OrganizationSharingStatus] = None,
    discovery_integration_status: Optional[DiscoveryIntegrationStatus] = None,
    jira_configuration: Optional[AccountJiraConfigurationInput] = None,
) -> None

Update whether the Amazon Web Services account is opted into organization sharing and discovery integration features.

Parameters:

Raises:

Source code in docs_src/capo_wellarchitected/_services/async_well_architected.py
async def update_global_settings(
    self,
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    organization_sharing_status: Optional[
        "capo_wellarchitected.types.organization_sharing_status.OrganizationSharingStatus"
    ] = None,
    discovery_integration_status: Optional[
        "capo_wellarchitected.types.discovery_integration_status.DiscoveryIntegrationStatus"
    ] = None,
    jira_configuration: Optional[
        "capo_wellarchitected.types.account_jira_configuration_input.AccountJiraConfigurationInput"
    ] = None,
) -> None:
    """<p>Update whether the Amazon Web Services account is opted into organization sharing and discovery integration features.</p>

    Args:
        organization_sharing_status: <p>The status of organization sharing settings.</p>
        discovery_integration_status: <p>The status of discovery support settings.</p>
        jira_configuration: <p>The status of Jira integration settings.</p>

    Raises:
        capo_wellarchitected.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_wellarchitected.errors.conflict_exception.ConflictException: <p>The resource has already been processed, was deleted, or is too large.</p>
        capo_wellarchitected.errors.internal_server_exception.InternalServerException: <p>There is a problem with the Well-Architected Tool API service.</p>
        capo_wellarchitected.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_wellarchitected.errors.validation_exception.ValidationException: <p>The user input is not valid.</p>
        capo_wellarchitected.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_wellarchitected.types.update_global_settings_input.UpdateGlobalSettingsInput]",
    ) -> AsyncOperationResponse[None]:
        import capo_wellarchitected._operations.well_architected_api_service_lambda.update_global_settings

        (
            output,
            http_response,
        ) = await capo_wellarchitected._operations.well_architected_api_service_lambda.update_global_settings.async_update_global_settings(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateGlobalSettings")
    )
    input_: capo_wellarchitected.types.update_global_settings_input.UpdateGlobalSettingsInput = {}
    if organization_sharing_status is not None:
        input_["organization_sharing_status"] = organization_sharing_status
    if discovery_integration_status is not None:
        input_["discovery_integration_status"] = discovery_integration_status
    if jira_configuration is not None:
        input_["jira_configuration"] = jira_configuration

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