aws-sdk-billing 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:billing)
15
+
16
+ # This module provides support for AWS Billing. This module is available in the
17
+ # `aws-sdk-billing` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # billing = Aws::Billing::Client.new
26
+ # resp = billing.list_billing_views(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from AWS Billing are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::Billing::Errors::ServiceError
38
+ # # rescues all AWS Billing API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::Billing
45
+ autoload :Types, 'aws-sdk-billing/types'
46
+ autoload :ClientApi, 'aws-sdk-billing/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-billing/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-billing/client'
51
+ autoload :Errors, 'aws-sdk-billing/errors'
52
+ autoload :Waiters, 'aws-sdk-billing/waiters'
53
+ autoload :Resource, 'aws-sdk-billing/resource'
54
+ autoload :EndpointParameters, 'aws-sdk-billing/endpoint_parameters'
55
+ autoload :EndpointProvider, 'aws-sdk-billing/endpoint_provider'
56
+ autoload :Endpoints, 'aws-sdk-billing/endpoints'
57
+
58
+ GEM_VERSION = '1.0.0'
59
+
60
+ end
61
+
62
+ require_relative 'aws-sdk-billing/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,97 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Billing
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?simple_json: bool,
54
+ ?stub_responses: untyped,
55
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
56
+ ?token_provider: untyped,
57
+ ?use_dualstack_endpoint: bool,
58
+ ?use_fips_endpoint: bool,
59
+ ?validate_params: bool,
60
+ ?endpoint_provider: untyped,
61
+ ?http_proxy: String,
62
+ ?http_open_timeout: (Float | Integer),
63
+ ?http_read_timeout: (Float | Integer),
64
+ ?http_idle_timeout: (Float | Integer),
65
+ ?http_continue_timeout: (Float | Integer),
66
+ ?ssl_timeout: (Float | Integer | nil),
67
+ ?http_wire_trace: bool,
68
+ ?ssl_verify_peer: bool,
69
+ ?ssl_ca_bundle: String,
70
+ ?ssl_ca_directory: String,
71
+ ?ssl_ca_store: String,
72
+ ?on_chunk_received: Proc,
73
+ ?on_chunk_sent: Proc,
74
+ ?raise_response_errors: bool
75
+ ) -> instance
76
+ | (?Hash[Symbol, untyped]) -> instance
77
+
78
+
79
+ interface _ListBillingViewsResponseSuccess
80
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListBillingViewsResponse]
81
+ def billing_views: () -> ::Array[Types::BillingViewListElement]
82
+ def next_token: () -> ::String
83
+ end
84
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_billing_views-instance_method
85
+ def list_billing_views: (
86
+ active_time_range: {
87
+ active_after_inclusive: ::Time,
88
+ active_before_inclusive: ::Time
89
+ },
90
+ ?max_results: ::Integer,
91
+ ?next_token: ::String
92
+ ) -> _ListBillingViewsResponseSuccess
93
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBillingViewsResponseSuccess
94
+ end
95
+ end
96
+ end
97
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,30 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Billing
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ThrottlingException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ValidationException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ def reason: () -> ::String
26
+ def field_list: () -> ::String
27
+ end
28
+ end
29
+ end
30
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,83 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Billing
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?simple_json: bool,
54
+ ?stub_responses: untyped,
55
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
56
+ ?token_provider: untyped,
57
+ ?use_dualstack_endpoint: bool,
58
+ ?use_fips_endpoint: bool,
59
+ ?validate_params: bool,
60
+ ?endpoint_provider: untyped,
61
+ ?http_proxy: String,
62
+ ?http_open_timeout: (Float | Integer),
63
+ ?http_read_timeout: (Float | Integer),
64
+ ?http_idle_timeout: (Float | Integer),
65
+ ?http_continue_timeout: (Float | Integer),
66
+ ?ssl_timeout: (Float | Integer | nil),
67
+ ?http_wire_trace: bool,
68
+ ?ssl_verify_peer: bool,
69
+ ?ssl_ca_bundle: String,
70
+ ?ssl_ca_directory: String,
71
+ ?ssl_ca_store: String,
72
+ ?on_chunk_received: Proc,
73
+ ?on_chunk_sent: Proc,
74
+ ?raise_response_errors: bool
75
+ ) -> void
76
+ | (?Hash[Symbol, untyped]) -> void
77
+
78
+ def client: () -> Client
79
+
80
+
81
+ end
82
+ end
83
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,66 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Billing
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ SENSITIVE: []
14
+ end
15
+
16
+ class ActiveTimeRange
17
+ attr_accessor active_after_inclusive: ::Time
18
+ attr_accessor active_before_inclusive: ::Time
19
+ SENSITIVE: []
20
+ end
21
+
22
+ class BillingViewListElement
23
+ attr_accessor arn: ::String
24
+ attr_accessor name: ::String
25
+ attr_accessor owner_account_id: ::String
26
+ attr_accessor billing_view_type: ("PRIMARY" | "BILLING_GROUP")
27
+ SENSITIVE: [:name]
28
+ end
29
+
30
+ class InternalServerException
31
+ attr_accessor message: ::String
32
+ SENSITIVE: []
33
+ end
34
+
35
+ class ListBillingViewsRequest
36
+ attr_accessor active_time_range: Types::ActiveTimeRange
37
+ attr_accessor max_results: ::Integer
38
+ attr_accessor next_token: ::String
39
+ SENSITIVE: []
40
+ end
41
+
42
+ class ListBillingViewsResponse
43
+ attr_accessor billing_views: ::Array[Types::BillingViewListElement]
44
+ attr_accessor next_token: ::String
45
+ SENSITIVE: []
46
+ end
47
+
48
+ class ThrottlingException
49
+ attr_accessor message: ::String
50
+ SENSITIVE: []
51
+ end
52
+
53
+ class ValidationException
54
+ attr_accessor message: ::String
55
+ attr_accessor reason: ("unknownOperation" | "cannotParse" | "fieldValidationFailed" | "other")
56
+ attr_accessor field_list: ::Array[Types::ValidationExceptionField]
57
+ SENSITIVE: []
58
+ end
59
+
60
+ class ValidationExceptionField
61
+ attr_accessor name: ::String
62
+ attr_accessor message: ::String
63
+ SENSITIVE: []
64
+ end
65
+ end
66
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Billing
10
+ module Waiters
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-billing
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Amazon Web Services
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sdk-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.210.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.210.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: aws-sigv4
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.5'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.5'
47
+ description: Official AWS Ruby gem for AWS Billing. This gem is part of the AWS SDK
48
+ for Ruby.
49
+ email:
50
+ - aws-dr-rubygems@amazon.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
58
+ - lib/aws-sdk-billing.rb
59
+ - lib/aws-sdk-billing/client.rb
60
+ - lib/aws-sdk-billing/client_api.rb
61
+ - lib/aws-sdk-billing/customizations.rb
62
+ - lib/aws-sdk-billing/endpoint_parameters.rb
63
+ - lib/aws-sdk-billing/endpoint_provider.rb
64
+ - lib/aws-sdk-billing/endpoints.rb
65
+ - lib/aws-sdk-billing/errors.rb
66
+ - lib/aws-sdk-billing/plugins/endpoints.rb
67
+ - lib/aws-sdk-billing/resource.rb
68
+ - lib/aws-sdk-billing/types.rb
69
+ - lib/aws-sdk-billing/waiters.rb
70
+ - sig/client.rbs
71
+ - sig/errors.rbs
72
+ - sig/resource.rbs
73
+ - sig/types.rbs
74
+ - sig/waiters.rbs
75
+ homepage: https://github.com/aws/aws-sdk-ruby
76
+ licenses:
77
+ - Apache-2.0
78
+ metadata:
79
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-billing
80
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-billing/CHANGELOG.md
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '2.5'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubygems_version: 3.4.10
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: AWS SDK for Ruby - AWS Billing
100
+ test_files: []