aws-sdk-forecastservice 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-forecastservice.rb +1 -1
- data/lib/aws-sdk-forecastservice/client.rb +381 -14
- data/lib/aws-sdk-forecastservice/client_api.rb +74 -0
- data/lib/aws-sdk-forecastservice/types.rb +560 -32
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7188b2b8177c8ff008876502d1cbb3be0d79c77877399db5b926aba1ee98e897
|
4
|
+
data.tar.gz: a9ce7f2ff4bd6e8ede3b693077bdeeb8a56fe406987d588678c2d99d249a1844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17ec0ab1db54e390b77d9b8691f2e5bcea17974609021b1d9c432a53a3f6e1c2bf1c5b138f37ebbe27d1ed830a4981ab851c7e4b03a988680769bb2df66f181e
|
7
|
+
data.tar.gz: 80f82e9c01392cdc5f543fae6023269122210d373447d744f9ecd0447a42e24feaaf355b528d1273c9fdcc5e3d7b970a4a5260fefa640cc46e985f8a33711d56
|
@@ -356,7 +356,7 @@ module Aws::ForecastService
|
|
356
356
|
#
|
357
357
|
#
|
358
358
|
#
|
359
|
-
# [1]: https://github.com/aws-samples/amazon-forecast-samples
|
359
|
+
# [1]: https://github.com/aws-samples/amazon-forecast-samples
|
360
360
|
#
|
361
361
|
# @option params [required, String] :dataset_name
|
362
362
|
# A name for the dataset.
|
@@ -397,6 +397,38 @@ module Aws::ForecastService
|
|
397
397
|
# Access Management (IAM) role that Amazon Forecast can assume to access
|
398
398
|
# the key.
|
399
399
|
#
|
400
|
+
# @option params [Array<Types::Tag>] :tags
|
401
|
+
# The optional metadata that you apply to the dataset to help you
|
402
|
+
# categorize and organize them. Each tag consists of a key and an
|
403
|
+
# optional value, both of which you define.
|
404
|
+
#
|
405
|
+
# The following basic restrictions apply to tags:
|
406
|
+
#
|
407
|
+
# * Maximum number of tags per resource - 50.
|
408
|
+
#
|
409
|
+
# * For each resource, each tag key must be unique, and each tag key can
|
410
|
+
# have only one value.
|
411
|
+
#
|
412
|
+
# * Maximum key length - 128 Unicode characters in UTF-8.
|
413
|
+
#
|
414
|
+
# * Maximum value length - 256 Unicode characters in UTF-8.
|
415
|
+
#
|
416
|
+
# * If your tagging schema is used across multiple services and
|
417
|
+
# resources, remember that other services may have restrictions on
|
418
|
+
# allowed characters. Generally allowed characters are: letters,
|
419
|
+
# numbers, and spaces representable in UTF-8, and the following
|
420
|
+
# characters: + - = . \_ : / @.
|
421
|
+
#
|
422
|
+
# * Tag keys and values are case sensitive.
|
423
|
+
#
|
424
|
+
# * Do not use `aws:`, `AWS:`, or any upper or lowercase combination of
|
425
|
+
# such as a prefix for keys as it is reserved for AWS use. You cannot
|
426
|
+
# edit or delete tag keys with this prefix. Values can have this
|
427
|
+
# prefix. If a tag value has `aws` as its prefix but the key does not,
|
428
|
+
# then Forecast considers it to be a user tag and will count against
|
429
|
+
# the limit of 50 tags. Tags with only the key prefix of `aws` do not
|
430
|
+
# count against your tags per resource limit.
|
431
|
+
#
|
400
432
|
# @return [Types::CreateDatasetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
401
433
|
#
|
402
434
|
# * {Types::CreateDatasetResponse#dataset_arn #dataset_arn} => String
|
@@ -420,6 +452,12 @@ module Aws::ForecastService
|
|
420
452
|
# role_arn: "Arn", # required
|
421
453
|
# kms_key_arn: "KMSKeyArn", # required
|
422
454
|
# },
|
455
|
+
# tags: [
|
456
|
+
# {
|
457
|
+
# key: "TagKey", # required
|
458
|
+
# value: "TagValue", # required
|
459
|
+
# },
|
460
|
+
# ],
|
423
461
|
# })
|
424
462
|
#
|
425
463
|
# @example Response structure
|
@@ -471,6 +509,38 @@ module Aws::ForecastService
|
|
471
509
|
# An array of Amazon Resource Names (ARNs) of the datasets that you want
|
472
510
|
# to include in the dataset group.
|
473
511
|
#
|
512
|
+
# @option params [Array<Types::Tag>] :tags
|
513
|
+
# The optional metadata that you apply to the dataset group to help you
|
514
|
+
# categorize and organize them. Each tag consists of a key and an
|
515
|
+
# optional value, both of which you define.
|
516
|
+
#
|
517
|
+
# The following basic restrictions apply to tags:
|
518
|
+
#
|
519
|
+
# * Maximum number of tags per resource - 50.
|
520
|
+
#
|
521
|
+
# * For each resource, each tag key must be unique, and each tag key can
|
522
|
+
# have only one value.
|
523
|
+
#
|
524
|
+
# * Maximum key length - 128 Unicode characters in UTF-8.
|
525
|
+
#
|
526
|
+
# * Maximum value length - 256 Unicode characters in UTF-8.
|
527
|
+
#
|
528
|
+
# * If your tagging schema is used across multiple services and
|
529
|
+
# resources, remember that other services may have restrictions on
|
530
|
+
# allowed characters. Generally allowed characters are: letters,
|
531
|
+
# numbers, and spaces representable in UTF-8, and the following
|
532
|
+
# characters: + - = . \_ : / @.
|
533
|
+
#
|
534
|
+
# * Tag keys and values are case sensitive.
|
535
|
+
#
|
536
|
+
# * Do not use `aws:`, `AWS:`, or any upper or lowercase combination of
|
537
|
+
# such as a prefix for keys as it is reserved for AWS use. You cannot
|
538
|
+
# edit or delete tag keys with this prefix. Values can have this
|
539
|
+
# prefix. If a tag value has `aws` as its prefix but the key does not,
|
540
|
+
# then Forecast considers it to be a user tag and will count against
|
541
|
+
# the limit of 50 tags. Tags with only the key prefix of `aws` do not
|
542
|
+
# count against your tags per resource limit.
|
543
|
+
#
|
474
544
|
# @return [Types::CreateDatasetGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
475
545
|
#
|
476
546
|
# * {Types::CreateDatasetGroupResponse#dataset_group_arn #dataset_group_arn} => String
|
@@ -481,6 +551,12 @@ module Aws::ForecastService
|
|
481
551
|
# dataset_group_name: "Name", # required
|
482
552
|
# domain: "RETAIL", # required, accepts RETAIL, CUSTOM, INVENTORY_PLANNING, EC2_CAPACITY, WORK_FORCE, WEB_TRAFFIC, METRICS
|
483
553
|
# dataset_arns: ["Arn"],
|
554
|
+
# tags: [
|
555
|
+
# {
|
556
|
+
# key: "TagKey", # required
|
557
|
+
# value: "TagValue", # required
|
558
|
+
# },
|
559
|
+
# ],
|
484
560
|
# })
|
485
561
|
#
|
486
562
|
# @example Response structure
|
@@ -503,7 +579,9 @@ module Aws::ForecastService
|
|
503
579
|
#
|
504
580
|
# You must specify a DataSource object that includes an AWS Identity and
|
505
581
|
# Access Management (IAM) role that Amazon Forecast can assume to access
|
506
|
-
# the data
|
582
|
+
# the data, as Amazon Forecast makes a copy of your data and processes
|
583
|
+
# it in an internal AWS system. For more information, see
|
584
|
+
# aws-forecast-iam-roles.
|
507
585
|
#
|
508
586
|
# The training data must be in CSV format. The delimiter must be a comma
|
509
587
|
# (,).
|
@@ -512,6 +590,12 @@ module Aws::ForecastService
|
|
512
590
|
# a folder in the S3 bucket. For the latter two cases, Amazon Forecast
|
513
591
|
# imports all files up to the limit of 10,000 files.
|
514
592
|
#
|
593
|
+
# Because dataset imports are not aggregated, your most recent dataset
|
594
|
+
# import is the one that is used when training a predictor or generating
|
595
|
+
# a forecast. Make sure that your most recent dataset import contains
|
596
|
+
# all of the data you want to model off of, and not just the new data
|
597
|
+
# collected since the previous import.
|
598
|
+
#
|
515
599
|
# To get a list of all your dataset import jobs, filtered by specified
|
516
600
|
# criteria, use the ListDatasetImportJobs operation.
|
517
601
|
#
|
@@ -553,6 +637,38 @@ module Aws::ForecastService
|
|
553
637
|
# If the format isn't specified, Amazon Forecast expects the format to
|
554
638
|
# be "yyyy-MM-dd HH:mm:ss".
|
555
639
|
#
|
640
|
+
# @option params [Array<Types::Tag>] :tags
|
641
|
+
# The optional metadata that you apply to the dataset import job to help
|
642
|
+
# you categorize and organize them. Each tag consists of a key and an
|
643
|
+
# optional value, both of which you define.
|
644
|
+
#
|
645
|
+
# The following basic restrictions apply to tags:
|
646
|
+
#
|
647
|
+
# * Maximum number of tags per resource - 50.
|
648
|
+
#
|
649
|
+
# * For each resource, each tag key must be unique, and each tag key can
|
650
|
+
# have only one value.
|
651
|
+
#
|
652
|
+
# * Maximum key length - 128 Unicode characters in UTF-8.
|
653
|
+
#
|
654
|
+
# * Maximum value length - 256 Unicode characters in UTF-8.
|
655
|
+
#
|
656
|
+
# * If your tagging schema is used across multiple services and
|
657
|
+
# resources, remember that other services may have restrictions on
|
658
|
+
# allowed characters. Generally allowed characters are: letters,
|
659
|
+
# numbers, and spaces representable in UTF-8, and the following
|
660
|
+
# characters: + - = . \_ : / @.
|
661
|
+
#
|
662
|
+
# * Tag keys and values are case sensitive.
|
663
|
+
#
|
664
|
+
# * Do not use `aws:`, `AWS:`, or any upper or lowercase combination of
|
665
|
+
# such as a prefix for keys as it is reserved for AWS use. You cannot
|
666
|
+
# edit or delete tag keys with this prefix. Values can have this
|
667
|
+
# prefix. If a tag value has `aws` as its prefix but the key does not,
|
668
|
+
# then Forecast considers it to be a user tag and will count against
|
669
|
+
# the limit of 50 tags. Tags with only the key prefix of `aws` do not
|
670
|
+
# count against your tags per resource limit.
|
671
|
+
#
|
556
672
|
# @return [Types::CreateDatasetImportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
557
673
|
#
|
558
674
|
# * {Types::CreateDatasetImportJobResponse#dataset_import_job_arn #dataset_import_job_arn} => String
|
@@ -570,6 +686,12 @@ module Aws::ForecastService
|
|
570
686
|
# },
|
571
687
|
# },
|
572
688
|
# timestamp_format: "TimestampFormat",
|
689
|
+
# tags: [
|
690
|
+
# {
|
691
|
+
# key: "TagKey", # required
|
692
|
+
# value: "TagValue", # required
|
693
|
+
# },
|
694
|
+
# ],
|
573
695
|
# })
|
574
696
|
#
|
575
697
|
# @example Response structure
|
@@ -593,10 +715,9 @@ module Aws::ForecastService
|
|
593
715
|
# operation.
|
594
716
|
#
|
595
717
|
# The range of the forecast is determined by the `ForecastHorizon`
|
596
|
-
# value, which you specify in the CreatePredictor request
|
597
|
-
#
|
598
|
-
#
|
599
|
-
# range within the forecast.
|
718
|
+
# value, which you specify in the CreatePredictor request. When you
|
719
|
+
# query a forecast, you can request a specific date range within the
|
720
|
+
# forecast.
|
600
721
|
#
|
601
722
|
# To get a list of all your forecasts, use the ListForecasts operation.
|
602
723
|
#
|
@@ -621,12 +742,44 @@ module Aws::ForecastService
|
|
621
742
|
# forecast.
|
622
743
|
#
|
623
744
|
# @option params [Array<String>] :forecast_types
|
624
|
-
# The quantiles at which probabilistic forecasts are generated. You
|
625
|
-
# specify up to 5 quantiles per forecast
|
626
|
-
# to 0.99` (increments of .01 only) and `mean`. The
|
627
|
-
# different from the median (0.50) when the
|
628
|
-
# symmetric (
|
629
|
-
# `["0.1", "0.5", "0.9"]`.
|
745
|
+
# The quantiles at which probabilistic forecasts are generated. **You
|
746
|
+
# can currently specify up to 5 quantiles per forecast**. Accepted
|
747
|
+
# values include `0.01 to 0.99` (increments of .01 only) and `mean`. The
|
748
|
+
# mean forecast is different from the median (0.50) when the
|
749
|
+
# distribution is not symmetric (for example, Beta and Negative
|
750
|
+
# Binomial). The default value is `["0.1", "0.5", "0.9"]`.
|
751
|
+
#
|
752
|
+
# @option params [Array<Types::Tag>] :tags
|
753
|
+
# The optional metadata that you apply to the forecast to help you
|
754
|
+
# categorize and organize them. Each tag consists of a key and an
|
755
|
+
# optional value, both of which you define.
|
756
|
+
#
|
757
|
+
# The following basic restrictions apply to tags:
|
758
|
+
#
|
759
|
+
# * Maximum number of tags per resource - 50.
|
760
|
+
#
|
761
|
+
# * For each resource, each tag key must be unique, and each tag key can
|
762
|
+
# have only one value.
|
763
|
+
#
|
764
|
+
# * Maximum key length - 128 Unicode characters in UTF-8.
|
765
|
+
#
|
766
|
+
# * Maximum value length - 256 Unicode characters in UTF-8.
|
767
|
+
#
|
768
|
+
# * If your tagging schema is used across multiple services and
|
769
|
+
# resources, remember that other services may have restrictions on
|
770
|
+
# allowed characters. Generally allowed characters are: letters,
|
771
|
+
# numbers, and spaces representable in UTF-8, and the following
|
772
|
+
# characters: + - = . \_ : / @.
|
773
|
+
#
|
774
|
+
# * Tag keys and values are case sensitive.
|
775
|
+
#
|
776
|
+
# * Do not use `aws:`, `AWS:`, or any upper or lowercase combination of
|
777
|
+
# such as a prefix for keys as it is reserved for AWS use. You cannot
|
778
|
+
# edit or delete tag keys with this prefix. Values can have this
|
779
|
+
# prefix. If a tag value has `aws` as its prefix but the key does not,
|
780
|
+
# then Forecast considers it to be a user tag and will count against
|
781
|
+
# the limit of 50 tags. Tags with only the key prefix of `aws` do not
|
782
|
+
# count against your tags per resource limit.
|
630
783
|
#
|
631
784
|
# @return [Types::CreateForecastResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
632
785
|
#
|
@@ -638,6 +791,12 @@ module Aws::ForecastService
|
|
638
791
|
# forecast_name: "Name", # required
|
639
792
|
# predictor_arn: "Arn", # required
|
640
793
|
# forecast_types: ["ForecastType"],
|
794
|
+
# tags: [
|
795
|
+
# {
|
796
|
+
# key: "TagKey", # required
|
797
|
+
# value: "TagValue", # required
|
798
|
+
# },
|
799
|
+
# ],
|
641
800
|
# })
|
642
801
|
#
|
643
802
|
# @example Response structure
|
@@ -657,7 +816,7 @@ module Aws::ForecastService
|
|
657
816
|
# Amazon Simple Storage Service (Amazon S3) bucket. The forecast file
|
658
817
|
# name will match the following conventions:
|
659
818
|
#
|
660
|
-
# <ForecastExportJobName>\_<ExportTimestamp>\_<
|
819
|
+
# <ForecastExportJobName>\_<ExportTimestamp>\_<PartNumber>
|
661
820
|
#
|
662
821
|
# where the <ExportTimestamp> component is in Java
|
663
822
|
# SimpleDateFormat (yyyy-MM-ddTHH-mm-ssZ).
|
@@ -695,6 +854,38 @@ module Aws::ForecastService
|
|
695
854
|
# Management Service (KMS) key. The IAM role must allow Amazon Forecast
|
696
855
|
# permission to access the key.
|
697
856
|
#
|
857
|
+
# @option params [Array<Types::Tag>] :tags
|
858
|
+
# The optional metadata that you apply to the forecast export job to
|
859
|
+
# help you categorize and organize them. Each tag consists of a key and
|
860
|
+
# an optional value, both of which you define.
|
861
|
+
#
|
862
|
+
# The following basic restrictions apply to tags:
|
863
|
+
#
|
864
|
+
# * Maximum number of tags per resource - 50.
|
865
|
+
#
|
866
|
+
# * For each resource, each tag key must be unique, and each tag key can
|
867
|
+
# have only one value.
|
868
|
+
#
|
869
|
+
# * Maximum key length - 128 Unicode characters in UTF-8.
|
870
|
+
#
|
871
|
+
# * Maximum value length - 256 Unicode characters in UTF-8.
|
872
|
+
#
|
873
|
+
# * If your tagging schema is used across multiple services and
|
874
|
+
# resources, remember that other services may have restrictions on
|
875
|
+
# allowed characters. Generally allowed characters are: letters,
|
876
|
+
# numbers, and spaces representable in UTF-8, and the following
|
877
|
+
# characters: + - = . \_ : / @.
|
878
|
+
#
|
879
|
+
# * Tag keys and values are case sensitive.
|
880
|
+
#
|
881
|
+
# * Do not use `aws:`, `AWS:`, or any upper or lowercase combination of
|
882
|
+
# such as a prefix for keys as it is reserved for AWS use. You cannot
|
883
|
+
# edit or delete tag keys with this prefix. Values can have this
|
884
|
+
# prefix. If a tag value has `aws` as its prefix but the key does not,
|
885
|
+
# then Forecast considers it to be a user tag and will count against
|
886
|
+
# the limit of 50 tags. Tags with only the key prefix of `aws` do not
|
887
|
+
# count against your tags per resource limit.
|
888
|
+
#
|
698
889
|
# @return [Types::CreateForecastExportJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
699
890
|
#
|
700
891
|
# * {Types::CreateForecastExportJobResponse#forecast_export_job_arn #forecast_export_job_arn} => String
|
@@ -711,6 +902,12 @@ module Aws::ForecastService
|
|
711
902
|
# kms_key_arn: "KMSKeyArn",
|
712
903
|
# },
|
713
904
|
# },
|
905
|
+
# tags: [
|
906
|
+
# {
|
907
|
+
# key: "TagKey", # required
|
908
|
+
# value: "TagValue", # required
|
909
|
+
# },
|
910
|
+
# ],
|
714
911
|
# })
|
715
912
|
#
|
716
913
|
# @example Response structure
|
@@ -880,6 +1077,38 @@ module Aws::ForecastService
|
|
880
1077
|
# Access Management (IAM) role that Amazon Forecast can assume to access
|
881
1078
|
# the key.
|
882
1079
|
#
|
1080
|
+
# @option params [Array<Types::Tag>] :tags
|
1081
|
+
# The optional metadata that you apply to the predictor to help you
|
1082
|
+
# categorize and organize them. Each tag consists of a key and an
|
1083
|
+
# optional value, both of which you define.
|
1084
|
+
#
|
1085
|
+
# The following basic restrictions apply to tags:
|
1086
|
+
#
|
1087
|
+
# * Maximum number of tags per resource - 50.
|
1088
|
+
#
|
1089
|
+
# * For each resource, each tag key must be unique, and each tag key can
|
1090
|
+
# have only one value.
|
1091
|
+
#
|
1092
|
+
# * Maximum key length - 128 Unicode characters in UTF-8.
|
1093
|
+
#
|
1094
|
+
# * Maximum value length - 256 Unicode characters in UTF-8.
|
1095
|
+
#
|
1096
|
+
# * If your tagging schema is used across multiple services and
|
1097
|
+
# resources, remember that other services may have restrictions on
|
1098
|
+
# allowed characters. Generally allowed characters are: letters,
|
1099
|
+
# numbers, and spaces representable in UTF-8, and the following
|
1100
|
+
# characters: + - = . \_ : / @.
|
1101
|
+
#
|
1102
|
+
# * Tag keys and values are case sensitive.
|
1103
|
+
#
|
1104
|
+
# * Do not use `aws:`, `AWS:`, or any upper or lowercase combination of
|
1105
|
+
# such as a prefix for keys as it is reserved for AWS use. You cannot
|
1106
|
+
# edit or delete tag keys with this prefix. Values can have this
|
1107
|
+
# prefix. If a tag value has `aws` as its prefix but the key does not,
|
1108
|
+
# then Forecast considers it to be a user tag and will count against
|
1109
|
+
# the limit of 50 tags. Tags with only the key prefix of `aws` do not
|
1110
|
+
# count against your tags per resource limit.
|
1111
|
+
#
|
883
1112
|
# @return [Types::CreatePredictorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
884
1113
|
#
|
885
1114
|
# * {Types::CreatePredictorResponse#predictor_arn #predictor_arn} => String
|
@@ -955,6 +1184,12 @@ module Aws::ForecastService
|
|
955
1184
|
# role_arn: "Arn", # required
|
956
1185
|
# kms_key_arn: "KMSKeyArn", # required
|
957
1186
|
# },
|
1187
|
+
# tags: [
|
1188
|
+
# {
|
1189
|
+
# key: "TagKey", # required
|
1190
|
+
# value: "TagValue", # required
|
1191
|
+
# },
|
1192
|
+
# ],
|
958
1193
|
# })
|
959
1194
|
#
|
960
1195
|
# @example Response structure
|
@@ -975,6 +1210,12 @@ module Aws::ForecastService
|
|
975
1210
|
# status of `ACTIVE` or `CREATE_FAILED`. To get the status use the
|
976
1211
|
# DescribeDataset operation.
|
977
1212
|
#
|
1213
|
+
# <note markdown="1"> Forecast does not automatically update any dataset groups that contain
|
1214
|
+
# the deleted dataset. In order to update the dataset group, use the
|
1215
|
+
# operation, omitting the deleted dataset's ARN.
|
1216
|
+
#
|
1217
|
+
# </note>
|
1218
|
+
#
|
978
1219
|
# @option params [required, String] :dataset_arn
|
979
1220
|
# The Amazon Resource Name (ARN) of the dataset to delete.
|
980
1221
|
#
|
@@ -2031,6 +2272,132 @@ module Aws::ForecastService
|
|
2031
2272
|
req.send_request(options)
|
2032
2273
|
end
|
2033
2274
|
|
2275
|
+
# Lists the tags for an Amazon Forecast resource.
|
2276
|
+
#
|
2277
|
+
# @option params [required, String] :resource_arn
|
2278
|
+
# The Amazon Resource Name (ARN) that identifies the resource for which
|
2279
|
+
# to list the tags. Currently, the supported resources are Forecast
|
2280
|
+
# dataset groups, datasets, dataset import jobs, predictors, forecasts,
|
2281
|
+
# and forecast export jobs.
|
2282
|
+
#
|
2283
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2284
|
+
#
|
2285
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
2286
|
+
#
|
2287
|
+
# @example Request syntax with placeholder values
|
2288
|
+
#
|
2289
|
+
# resp = client.list_tags_for_resource({
|
2290
|
+
# resource_arn: "Arn", # required
|
2291
|
+
# })
|
2292
|
+
#
|
2293
|
+
# @example Response structure
|
2294
|
+
#
|
2295
|
+
# resp.tags #=> Array
|
2296
|
+
# resp.tags[0].key #=> String
|
2297
|
+
# resp.tags[0].value #=> String
|
2298
|
+
#
|
2299
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/ListTagsForResource AWS API Documentation
|
2300
|
+
#
|
2301
|
+
# @overload list_tags_for_resource(params = {})
|
2302
|
+
# @param [Hash] params ({})
|
2303
|
+
def list_tags_for_resource(params = {}, options = {})
|
2304
|
+
req = build_request(:list_tags_for_resource, params)
|
2305
|
+
req.send_request(options)
|
2306
|
+
end
|
2307
|
+
|
2308
|
+
# Associates the specified tags to a resource with the specified
|
2309
|
+
# `resourceArn`. If existing tags on a resource are not specified in the
|
2310
|
+
# request parameters, they are not changed. When a resource is deleted,
|
2311
|
+
# the tags associated with that resource are also deleted.
|
2312
|
+
#
|
2313
|
+
# @option params [required, String] :resource_arn
|
2314
|
+
# The Amazon Resource Name (ARN) that identifies the resource for which
|
2315
|
+
# to list the tags. Currently, the supported resources are Forecast
|
2316
|
+
# dataset groups, datasets, dataset import jobs, predictors, forecasts,
|
2317
|
+
# and forecast export jobs.
|
2318
|
+
#
|
2319
|
+
# @option params [required, Array<Types::Tag>] :tags
|
2320
|
+
# The tags to add to the resource. A tag is an array of key-value pairs.
|
2321
|
+
#
|
2322
|
+
# The following basic restrictions apply to tags:
|
2323
|
+
#
|
2324
|
+
# * Maximum number of tags per resource - 50.
|
2325
|
+
#
|
2326
|
+
# * For each resource, each tag key must be unique, and each tag key can
|
2327
|
+
# have only one value.
|
2328
|
+
#
|
2329
|
+
# * Maximum key length - 128 Unicode characters in UTF-8.
|
2330
|
+
#
|
2331
|
+
# * Maximum value length - 256 Unicode characters in UTF-8.
|
2332
|
+
#
|
2333
|
+
# * If your tagging schema is used across multiple services and
|
2334
|
+
# resources, remember that other services may have restrictions on
|
2335
|
+
# allowed characters. Generally allowed characters are: letters,
|
2336
|
+
# numbers, and spaces representable in UTF-8, and the following
|
2337
|
+
# characters: + - = . \_ : / @.
|
2338
|
+
#
|
2339
|
+
# * Tag keys and values are case sensitive.
|
2340
|
+
#
|
2341
|
+
# * Do not use `aws:`, `AWS:`, or any upper or lowercase combination of
|
2342
|
+
# such as a prefix for keys as it is reserved for AWS use. You cannot
|
2343
|
+
# edit or delete tag keys with this prefix. Values can have this
|
2344
|
+
# prefix. If a tag value has `aws` as its prefix but the key does not,
|
2345
|
+
# then Forecast considers it to be a user tag and will count against
|
2346
|
+
# the limit of 50 tags. Tags with only the key prefix of `aws` do not
|
2347
|
+
# count against your tags per resource limit.
|
2348
|
+
#
|
2349
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2350
|
+
#
|
2351
|
+
# @example Request syntax with placeholder values
|
2352
|
+
#
|
2353
|
+
# resp = client.tag_resource({
|
2354
|
+
# resource_arn: "Arn", # required
|
2355
|
+
# tags: [ # required
|
2356
|
+
# {
|
2357
|
+
# key: "TagKey", # required
|
2358
|
+
# value: "TagValue", # required
|
2359
|
+
# },
|
2360
|
+
# ],
|
2361
|
+
# })
|
2362
|
+
#
|
2363
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/TagResource AWS API Documentation
|
2364
|
+
#
|
2365
|
+
# @overload tag_resource(params = {})
|
2366
|
+
# @param [Hash] params ({})
|
2367
|
+
def tag_resource(params = {}, options = {})
|
2368
|
+
req = build_request(:tag_resource, params)
|
2369
|
+
req.send_request(options)
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
# Deletes the specified tags from a resource.
|
2373
|
+
#
|
2374
|
+
# @option params [required, String] :resource_arn
|
2375
|
+
# The Amazon Resource Name (ARN) that identifies the resource for which
|
2376
|
+
# to list the tags. Currently, the supported resources are Forecast
|
2377
|
+
# dataset groups, datasets, dataset import jobs, predictors, forecasts,
|
2378
|
+
# and forecast exports.
|
2379
|
+
#
|
2380
|
+
# @option params [required, Array<String>] :tag_keys
|
2381
|
+
# The keys of the tags to be removed.
|
2382
|
+
#
|
2383
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2384
|
+
#
|
2385
|
+
# @example Request syntax with placeholder values
|
2386
|
+
#
|
2387
|
+
# resp = client.untag_resource({
|
2388
|
+
# resource_arn: "Arn", # required
|
2389
|
+
# tag_keys: ["TagKey"], # required
|
2390
|
+
# })
|
2391
|
+
#
|
2392
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/UntagResource AWS API Documentation
|
2393
|
+
#
|
2394
|
+
# @overload untag_resource(params = {})
|
2395
|
+
# @param [Hash] params ({})
|
2396
|
+
def untag_resource(params = {}, options = {})
|
2397
|
+
req = build_request(:untag_resource, params)
|
2398
|
+
req.send_request(options)
|
2399
|
+
end
|
2400
|
+
|
2034
2401
|
# Replaces the datasets in a dataset group with the specified datasets.
|
2035
2402
|
#
|
2036
2403
|
# <note markdown="1"> The `Status` of the dataset group must be `ACTIVE` before you can use
|
@@ -2077,7 +2444,7 @@ module Aws::ForecastService
|
|
2077
2444
|
params: params,
|
2078
2445
|
config: config)
|
2079
2446
|
context[:gem_name] = 'aws-sdk-forecastservice'
|
2080
|
-
context[:gem_version] = '1.
|
2447
|
+
context[:gem_version] = '1.8.0'
|
2081
2448
|
Seahorse::Client::Request.new(handlers, context)
|
2082
2449
|
end
|
2083
2450
|
|