source_views
Creates, updates, deletes, gets or lists a source_views resource.
Overview
| Name | source_views |
| Type | Resource |
| Id | aws.billing.source_views |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
associate_source_views | update | region, arn, sourceViews | Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources. | |
disassociate_source_views | exec | region, arn, sourceViews | Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
UPDATE examples
- associate_source_views
Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources.
UPDATE aws.billing.source_views
SET
arn = '{{ arn }}',
sourceViews = '{{ sourceViews }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
AND sourceViews = '{{ sourceViews }}' --required
RETURNING
arn;
Lifecycle Methods
- disassociate_source_views
Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views.
EXEC aws.billing.source_views.disassociate_source_views
@region='{{ region }}' --required
@@json=
'{
"arn": "{{ arn }}",
"sourceViews": "{{ sourceViews }}"
}'
;