Module Smaws_Client_Billing.Types

type nonrec value = string
type nonrec values = value list
type nonrec validation_exception_reason =
  1. | OTHER
  2. | FIELD_VALIDATION_FAILED
  3. | CANNOT_PARSE
  4. | UNKNOWN_OPERATION
type nonrec field_name = string
type nonrec error_message = string
type nonrec validation_exception_field = {
  1. message : error_message;
    (*

    The message describing why the field failed validation.

    *)
  2. name : field_name;
    (*

    The name of the field.

    *)
}

The field's information of a request that resulted in an exception.

type nonrec validation_exception_field_list = validation_exception_field list
type nonrec validation_exception = {
  1. field_list : validation_exception_field_list option;
    (*

    The input fails to satisfy the constraints specified by an Amazon Web Services service.

    *)
  2. reason : validation_exception_reason;
    (*

    The input fails to satisfy the constraints specified by an Amazon Web Services service.

    *)
  3. message : error_message;
}

The input fails to satisfy the constraints specified by an Amazon Web Services service.

type nonrec billing_view_arn = string
type nonrec update_billing_view_response = {
  1. updated_at : Smaws_Lib.Smithy_api.Types.timestamp option;
    (*

    The time when the billing view was last updated.

    *)
  2. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}
type nonrec billing_view_name = string
type nonrec billing_view_description = string
type nonrec dimension =
  1. | LINKED_ACCOUNT
type nonrec dimension_values = {
  1. values : values;
    (*

    The metadata values that you can use to filter and group your results.

    *)
  2. key : dimension;
    (*

    The names of the metadata types that you can use to filter and group your results.

    *)
}

The metadata that you can use to filter and group your results.

type nonrec tag_key = string
type nonrec tag_values = {
  1. values : values;
    (*

    The specific value of the tag.

    *)
  2. key : tag_key;
    (*

    The key for the tag.

    *)
}

The values that are available for a tag.

type nonrec cost_category_name = string
type nonrec cost_category_values = {
  1. values : values;
    (*

    The specific value of the Cost Category.

    *)
  2. key : cost_category_name;
    (*

    The unique name of the Cost Category.

    *)
}

The Cost Categories values used for filtering the costs.

type nonrec time_range = {
  1. end_date_inclusive : Smaws_Lib.Smithy_api.Types.timestamp option;
    (*

    The inclusive end date of the time range.

    *)
  2. begin_date_inclusive : Smaws_Lib.Smithy_api.Types.timestamp option;
    (*

    The inclusive start date of the time range.

    *)
}

Specifies a time range with inclusive begin and end dates.

type nonrec expression = {
  1. time_range : time_range option;
    (*

    Specifies a time range filter for the billing view data.

    *)
  2. cost_categories : cost_category_values option;
    (*

    The filter that's based on CostCategory values.

    *)
  3. tags : tag_values option;
    (*

    The specific Tag to use for Expression.

    *)
  4. dimensions : dimension_values option;
    (*

    The specific Dimension to use for Expression.

    *)
}

See Expression. Billing view only supports LINKED_ACCOUNT, Tags, and CostCategories.

type nonrec update_billing_view_request = {
  1. data_filter_expression : expression option;
    (*

    See Expression. Billing view only supports LINKED_ACCOUNT, Tags, and CostCategories.

    *)
  2. description : billing_view_description option;
    (*

    The description of the billing view.

    *)
  3. name : billing_view_name option;
    (*

    The name of the billing view.

    *)
  4. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}
type nonrec throttling_exception = {
  1. message : error_message;
}

The request was denied due to request throttling.

type nonrec resource_id = string
type nonrec resource_type = string
type nonrec service_code = string
type nonrec quota_code = string
type nonrec service_quota_exceeded_exception = {
  1. quota_code : quota_code;
    (*

    The container for the quotaCode.

    *)
  2. service_code : service_code;
    (*

    The container for the serviceCode.

    *)
  3. resource_type : resource_type;
    (*

    The type of Amazon Web Services resource.

    *)
  4. resource_id : resource_id;
    (*

    The ID of the resource.

    *)
  5. message : error_message;
}

You've reached the limit of resources you can create, or exceeded the size of an individual resource.

type nonrec resource_not_found_exception = {
  1. resource_type : resource_type;
    (*

    Value is the type of resource that was not found.

    *)
  2. resource_id : resource_id;
    (*

    Value is a list of resource IDs that were not found.

    *)
  3. message : error_message;
}

The specified ARN in the request doesn't exist.

type nonrec internal_server_exception = {
  1. message : error_message;
}

The request processing failed because of an unknown error, exception, or failure.

type nonrec conflict_exception = {
  1. resource_type : resource_type;
    (*

    The type of resource associated with the request.

    *)
  2. resource_id : resource_id;
    (*

    The identifier for the service resource associated with the request.

    *)
  3. message : error_message;
}

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.

type nonrec billing_view_health_status_exception = {
  1. message : error_message;
}

Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than HEALTHY.

type nonrec access_denied_exception = {
  1. message : error_message;
}

You don't have sufficient access to perform this action.

type nonrec untag_resource_response = unit
type nonrec resource_arn = string
type nonrec resource_tag_key = string
type nonrec resource_tag_key_list = resource_tag_key list
type nonrec untag_resource_request = {
  1. resource_tag_keys : resource_tag_key_list;
    (*

    A list of tag key value pairs that are associated with the resource.

    *)
  2. resource_arn : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the resource.

    *)
}
type nonrec tag_resource_response = unit
type nonrec resource_tag_value = string
type nonrec resource_tag = {
  1. value : resource_tag_value option;
    (*

    The value that's associated with the tag.

    *)
  2. key : resource_tag_key;
    (*

    The key that's associated with the tag.

    *)
}

The tag structure that contains a tag key and value.

type nonrec resource_tag_list = resource_tag list
type nonrec tag_resource_request = {
  1. resource_tags : resource_tag_list;
    (*

    A list of tag key value pairs that are associated with the resource.

    *)
  2. resource_arn : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the resource.

    *)
}
type nonrec search_option =
  1. | STARTS_WITH
type nonrec search_value = string

A structure that defines how to search for string values. You can specify a search option and the value to search for.

type nonrec string_searches = string_search list
type nonrec policy_document = string
type nonrec page_token = string
type nonrec list_tags_for_resource_response = {
  1. resource_tags : resource_tag_list option;
    (*

    A list of tag key value pairs that are associated with the resource.

    *)
}
type nonrec list_tags_for_resource_request = {
  1. resource_arn : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the resource.

    *)
}
type nonrec billing_view_source_views_list = billing_view_arn list
type nonrec list_source_views_for_billing_view_response = {
  1. next_token : page_token option;
    (*

    The pagination token that is used on subsequent calls to list billing views.

    *)
  2. source_views : billing_view_source_views_list;
    (*

    A list of billing views used as the data source for the custom billing view.

    *)
}
type nonrec billing_views_max_results = int
type nonrec list_source_views_for_billing_view_request = {
  1. next_token : page_token option;
    (*

    The pagination token that is used on subsequent calls to list billing views.

    *)
  2. max_results : billing_views_max_results option;
    (*

    The number of entries a paginated response contains.

    *)
  3. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}
type nonrec account_id = string
type nonrec billing_view_type =
  1. | BILLING_TRANSFER_SHOWBACK
  2. | BILLING_TRANSFER
  3. | CUSTOM
  4. | BILLING_GROUP
  5. | PRIMARY
type nonrec billing_view_status =
  1. | UPDATING
  2. | CREATING
  3. | UNHEALTHY
  4. | HEALTHY
type nonrec billing_view_status_reason =
  1. | VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT
  2. | AGGREGATE_SOURCE
  3. | SOURCE_VIEW_DEPTH_EXCEEDED
  4. | CYCLIC_DEPENDENCY
  5. | SOURCE_VIEW_NOT_FOUND
  6. | SOURCE_VIEW_ACCESS_DENIED
  7. | SOURCE_VIEW_UPDATING
  8. | SOURCE_VIEW_UNHEALTHY
type nonrec billing_view_status_reasons = billing_view_status_reason list
type nonrec billing_view_health_status = {
  1. status_reasons : billing_view_status_reasons option;
    (*

    A list of reasons explaining the current health status, if applicable.

    *)
  2. status_code : billing_view_status option;
    (*

    The current health status code of the billing view.

    *)
}

Represents the health status of a billing view, including a status code and optional reasons for the status.

type nonrec billing_view_list_element = {
  1. health_status : billing_view_health_status option;
    (*

    The current health status of the billing view.

    *)
  2. billing_view_type : billing_view_type option;
    (*

    The type of billing view.

    *)
  3. source_account_id : account_id option;
    (*

    The Amazon Web Services account ID that owns the source billing view, if this is a derived billing view.

    *)
  4. owner_account_id : account_id option;
    (*

    The list of owners of the Billing view.

    *)
  5. description : billing_view_description option;
    (*

    The description of the billing view.

    *)
  6. name : billing_view_name option;
    (*

    A list of names of the Billing view.

    *)
  7. arn : billing_view_arn option;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}

A representation of a billing view.

type nonrec billing_view_list = billing_view_list_element list
type nonrec list_billing_views_response = {
  1. next_token : page_token option;
    (*

    The pagination token to use on subsequent calls to list billing views.

    *)
  2. billing_views : billing_view_list;
    (*

    A list of BillingViewListElement retrieved.

    *)
}
type nonrec active_time_range = {
  1. active_before_inclusive : Smaws_Lib.Smithy_api.Types.timestamp;
    (*

    The inclusive time range end date.

    *)
  2. active_after_inclusive : Smaws_Lib.Smithy_api.Types.timestamp;
    (*

    The inclusive time range start date.

    *)
}

A time range with a start and end time.

type nonrec billing_view_arn_list = billing_view_arn list
type nonrec billing_view_type_list = billing_view_type list
type nonrec list_billing_views_request = {
  1. next_token : page_token option;
    (*

    The pagination token that is used on subsequent calls to list billing views.

    *)
  2. max_results : billing_views_max_results option;
    (*

    The maximum number of billing views to retrieve. Default is 100.

    *)
  3. source_account_id : account_id option;
    (*

    Filters the results to include only billing views that use the specified account as a source.

    *)
  4. owner_account_id : account_id option;
    (*

    The list of owners of the billing view.

    *)
  5. names : string_searches option;
    (*

    Filters the list of billing views by name. You can specify search criteria to match billing view names based on the search option provided.

    *)
  6. billing_view_types : billing_view_type_list option;
    (*

    The type of billing view.

    *)
  7. arns : billing_view_arn_list option;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
  8. active_time_range : active_time_range option;
    (*

    The time range for the billing views listed. PRIMARY billing view is always listed. BILLING_GROUP billing views are listed for time ranges when the associated billing group resource in Billing Conductor is active. The time range must be within one calendar month.

    *)
}
type nonrec get_resource_policy_response = {
  1. policy : policy_document option;
    (*

    The resource-based policy document attached to the resource in JSON format.

    *)
  2. resource_arn : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to.

    *)
}
type nonrec get_resource_policy_request = {
  1. resource_arn : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to.

    *)
}
type nonrec billing_view_element = {
  1. health_status : billing_view_health_status option;
    (*

    The current health status of the billing view.

    *)
  2. view_definition_last_updated_at : Smaws_Lib.Smithy_api.Types.timestamp option;
    (*

    The timestamp of when the billing view definition was last updated.

    *)
  3. source_view_count : Smaws_Lib.Smithy_api.Types.integer option;
    (*

    The number of source views associated with this billing view.

    *)
  4. derived_view_count : Smaws_Lib.Smithy_api.Types.integer option;
    (*

    The number of billing views that use this billing view as a source.

    *)
  5. updated_at : Smaws_Lib.Smithy_api.Types.timestamp option;
    (*

    The time when the billing view was last updated.

    *)
  6. created_at : Smaws_Lib.Smithy_api.Types.timestamp option;
    (*

    The time when the billing view was created.

    *)
  7. data_filter_expression : expression option;
    (*

    See Expression. Billing view only supports LINKED_ACCOUNT, Tags, and CostCategories.

    *)
  8. source_account_id : account_id option;
    (*

    The Amazon Web Services account ID that owns the source billing view, if this is a derived billing view.

    *)
  9. owner_account_id : account_id option;
    (*

    The account owner of the billing view.

    *)
  10. billing_view_type : billing_view_type option;
    (*

    The type of billing group.

    *)
  11. description : billing_view_description option;
    (*

    The description of the billing view.

    *)
  12. name : billing_view_name option;
    (*

    The account name of the billing view.

    *)
  13. arn : billing_view_arn option;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}

The metadata associated to the billing view.

type nonrec get_billing_view_response = {
  1. billing_view : billing_view_element;
    (*

    The billing view element associated with the specified ARN.

    *)
}
type nonrec get_billing_view_request = {
  1. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}
type nonrec disassociate_source_views_response = {
  1. arn : billing_view_arn;
    (*

    The ARN of the billing view that the source views were disassociated from.

    *)
}
type nonrec disassociate_source_views_request = {
  1. source_views : billing_view_source_views_list;
    (*

    A list of ARNs of the source billing views to disassociate.

    *)
  2. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) of the billing view to disassociate source views from.

    *)
}
type nonrec delete_billing_view_response = {
  1. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}
type nonrec delete_billing_view_request = {
  1. force : Smaws_Lib.Smithy_api.Types.boolean_ option;
    (*

    If set to true, forces deletion of the billing view even if it has derived resources (e.g. other billing views or budgets). Use with caution as this may break dependent resources.

    *)
  2. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}
type nonrec create_billing_view_response = {
  1. created_at : Smaws_Lib.Smithy_api.Types.timestamp option;
    (*

    The time when the billing view was created.

    *)
  2. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

    *)
}
type nonrec client_token = string
type nonrec create_billing_view_request = {
  1. resource_tags : resource_tag_list option;
    (*

    A list of key value map specifying tags associated to the billing view being created.

    *)
  2. client_token : client_token option;
    (*

    A unique, case-sensitive identifier you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. If the original request completes successfully, any subsequent retries complete successfully without performing any further actions with an idempotent request.

    *)
  3. data_filter_expression : expression option;
    (*

    See Expression. Billing view only supports LINKED_ACCOUNT, Tags, and CostCategories.

    *)
  4. source_views : billing_view_source_views_list;
    (*

    A list of billing views used as the data source for the custom billing view.

    *)
  5. description : billing_view_description option;
    (*

    The description of the billing view.

    *)
  6. name : billing_view_name;
    (*

    The name of the billing view.

    *)
}
type nonrec associate_source_views_response = {
  1. arn : billing_view_arn;
    (*

    The ARN of the billing view that the source views were associated with.

    *)
}
type nonrec associate_source_views_request = {
  1. source_views : billing_view_source_views_list;
    (*

    A list of ARNs of the source billing views to associate.

    *)
  2. arn : billing_view_arn;
    (*

    The Amazon Resource Name (ARN) of the billing view to associate source views with.

    *)
}