Skip to content

create_limits_profile

create_limits_profile(
    account_id: AwsAccountId,
    profile_name: ProfileName,
    resource_limits: CreateLimitsProfileRequestResourceLimitsMap,
    client_token: CreateLimitsProfileRequestClientTokenString,
    *,
    config_overrides: Optional[QuickSightClientConfig] = None,
    description: Optional[ProfileDescription] = None,
) -> CreateLimitsProfileResponse

Creates a limits profile that defines resource usage limits for Amazon Quick Sight users.

Parameters:

Raises:

Source code in docs_src/capo_quicksight/_services/quick_sight.py
def create_limits_profile(
    self,
    account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
    profile_name: "capo_quicksight.types.profile_name.ProfileName",
    resource_limits: "capo_quicksight.types.create_limits_profile_request_resource_limits_map.CreateLimitsProfileRequestResourceLimitsMap",
    client_token: "capo_quicksight.types.create_limits_profile_request_client_token_string.CreateLimitsProfileRequestClientTokenString",
    *,
    config_overrides: Optional[QuickSightClientConfig] = None,
    description: Optional[
        "capo_quicksight.types.profile_description.ProfileDescription"
    ] = None,
) -> "capo_quicksight.types.create_limits_profile_response.CreateLimitsProfileResponse":
    """<p>Creates a limits profile that defines resource usage limits for Amazon Quick Sight users.</p>

    Args:
        account_id: <p>The ID of the Amazon Web Services account that contains the limits profile.</p>
        profile_name: <p>A display name for the limits profile.</p>
        description: <p>A description for the limits profile.</p>
        resource_limits: <p>A map of resource types to their limit values for this profile.</p>
        client_token: <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.</p>

    Raises:
        capo_quicksight.errors.access_denied_exception.AccessDeniedException: <p>You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.</p>
        capo_quicksight.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_quicksight.errors.internal_failure_exception.InternalFailureException: <p>An internal failure occurred.</p>
        capo_quicksight.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more parameters has a value that isn't valid.</p>
        capo_quicksight.errors.limit_exceeded_exception.LimitExceededException: <p>A limit is exceeded.</p>
        capo_quicksight.errors.throttling_exception.ThrottlingException: <p>Access is throttled.</p>
        capo_quicksight.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_quicksight.types.create_limits_profile_request.CreateLimitsProfileRequest]",
    ) -> OperationResponse[
        "capo_quicksight.types.create_limits_profile_response.CreateLimitsProfileResponse"
    ]:
        import capo_quicksight._operations.quick_sight_20180401.create_limits_profile

        output, http_response = (
            capo_quicksight._operations.quick_sight_20180401.create_limits_profile.create_limits_profile(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateLimitsProfile")
    )
    input_: capo_quicksight.types.create_limits_profile_request.CreateLimitsProfileRequest = {
        "account_id": account_id,
        "profile_name": profile_name,
        "resource_limits": resource_limits,
        "client_token": client_token,
    }
    if description is not None:
        input_["description"] = description

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