Skip to content

update_service_settings

update_service_settings(
    *,
    config_overrides: Optional[LicenseManagerClientConfig] = None,
    s3_bucket_arn: Optional[String] = None,
    sns_topic_arn: Optional[String] = None,
    organization_configuration: Optional[OrganizationConfiguration] = None,
    enable_cross_accounts_discovery: Optional[BoxBoolean] = None,
    enabled_discovery_source_regions: Optional[StringList] = None,
) -> UpdateServiceSettingsResponse

Updates License Manager settings for the current Region.

Parameters:

  • s3_bucket_arn (Optional[String], default: None ) –

    Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager information is stored.

  • sns_topic_arn (Optional[String], default: None ) –

    Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts.

  • organization_configuration (Optional[OrganizationConfiguration], default: None ) –

    Enables integration with Organizations for cross-account discovery.

  • enable_cross_accounts_discovery (Optional[BoxBoolean], default: None ) –

    Activates cross-account discovery.

  • enabled_discovery_source_regions (Optional[StringList], default: None ) –

    Cross region discovery enabled source regions.

Raises:

Source code in docs_src/capo_license_manager/_services/license_manager.py
def update_service_settings(
    self,
    *,
    config_overrides: Optional[LicenseManagerClientConfig] = None,
    s3_bucket_arn: Optional["capo_license_manager.types.string.String"] = None,
    sns_topic_arn: Optional["capo_license_manager.types.string.String"] = None,
    organization_configuration: Optional[
        "capo_license_manager.types.organization_configuration.OrganizationConfiguration"
    ] = None,
    enable_cross_accounts_discovery: Optional[
        "capo_license_manager.types.box_boolean.BoxBoolean"
    ] = None,
    enabled_discovery_source_regions: Optional[
        "capo_license_manager.types.string_list.StringList"
    ] = None,
) -> "capo_license_manager.types.update_service_settings_response.UpdateServiceSettingsResponse":
    """<p>Updates License Manager settings for the current Region.</p>

    Args:
        s3_bucket_arn: <p>Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager information is stored.</p>
        sns_topic_arn: <p>Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts.</p>
        organization_configuration: <p>Enables integration with Organizations for cross-account discovery.</p>
        enable_cross_accounts_discovery: <p>Activates cross-account discovery.</p>
        enabled_discovery_source_regions: <p>Cross region discovery enabled source regions.</p>

    Raises:
        capo_license_manager.errors.access_denied_exception.AccessDeniedException: <p>Access to resource denied.</p>
        capo_license_manager.errors.authorization_exception.AuthorizationException: <p>The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.</p>
        capo_license_manager.errors.conflict_exception.ConflictException: <p>There was a conflict processing the request. Try your request again.</p>
        capo_license_manager.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more parameter values are not valid.</p>
        capo_license_manager.errors.rate_limit_exceeded_exception.RateLimitExceededException: <p>Too many requests have been submitted. Try again after a brief wait.</p>
        capo_license_manager.errors.server_internal_exception.ServerInternalException: <p>The server experienced an internal error. Try again.</p>
        capo_license_manager.errors.validation_exception.ValidationException: <p>The provided input is not valid. Try your request again.</p>
        capo_license_manager.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_license_manager.types.update_service_settings_request.UpdateServiceSettingsRequest]",
    ) -> OperationResponse[
        "capo_license_manager.types.update_service_settings_response.UpdateServiceSettingsResponse"
    ]:
        import capo_license_manager._operations.aws_license_manager.update_service_settings

        output, http_response = (
            capo_license_manager._operations.aws_license_manager.update_service_settings.update_service_settings(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateServiceSettings")
    )
    input_: capo_license_manager.types.update_service_settings_request.UpdateServiceSettingsRequest = {}
    if s3_bucket_arn is not None:
        input_["s3_bucket_arn"] = s3_bucket_arn
    if sns_topic_arn is not None:
        input_["sns_topic_arn"] = sns_topic_arn
    if organization_configuration is not None:
        input_["organization_configuration"] = organization_configuration
    if enable_cross_accounts_discovery is not None:
        input_["enable_cross_accounts_discovery"] = enable_cross_accounts_discovery
    if enabled_discovery_source_regions is not None:
        input_["enabled_discovery_source_regions"] = (
            enabled_discovery_source_regions
        )

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output