aws-sdk-lexmodelbuildingservice 1.1.0 → 1.2.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6568fadfd8f8f7065be8fb934f4463e0ffb587f
|
4
|
+
data.tar.gz: df3e32e7e25d43d93044ccfc47e99caa0c50ec57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb2d223e5ce041d94ab4c1b5596c5ad23daf3c6a4e9f6da2038270c5f2f9f21bc478aef570bd8b05299dcd07e48560c6000945b1a689dd83648c34d83dccedc
|
7
|
+
data.tar.gz: 2c4fcb8945f8617c3ed66a4632557c098ae3ebb936adc61855b7973d662bc61af78b5565d45be1c2761454984e0b36cb1835738e0a86b75853bfb03f984e58ab
|
@@ -1409,6 +1409,58 @@ module Aws::LexModelBuildingService
|
|
1409
1409
|
req.send_request(options)
|
1410
1410
|
end
|
1411
1411
|
|
1412
|
+
# Exports the contents of a Amazon Lex resource in a specified format.
|
1413
|
+
#
|
1414
|
+
# @option params [required, String] :name
|
1415
|
+
# The name of the bot to export.
|
1416
|
+
#
|
1417
|
+
# @option params [required, String] :version
|
1418
|
+
# The version of the bot to export.
|
1419
|
+
#
|
1420
|
+
# @option params [required, String] :resource_type
|
1421
|
+
# The type of resource to export.
|
1422
|
+
#
|
1423
|
+
# @option params [required, String] :export_type
|
1424
|
+
# The format of the exported data.
|
1425
|
+
#
|
1426
|
+
# @return [Types::GetExportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1427
|
+
#
|
1428
|
+
# * {Types::GetExportResponse#name #name} => String
|
1429
|
+
# * {Types::GetExportResponse#version #version} => String
|
1430
|
+
# * {Types::GetExportResponse#resource_type #resource_type} => String
|
1431
|
+
# * {Types::GetExportResponse#export_type #export_type} => String
|
1432
|
+
# * {Types::GetExportResponse#export_status #export_status} => String
|
1433
|
+
# * {Types::GetExportResponse#failure_reason #failure_reason} => String
|
1434
|
+
# * {Types::GetExportResponse#url #url} => String
|
1435
|
+
#
|
1436
|
+
# @example Request syntax with placeholder values
|
1437
|
+
#
|
1438
|
+
# resp = client.get_export({
|
1439
|
+
# name: "Name", # required
|
1440
|
+
# version: "NumericalVersion", # required
|
1441
|
+
# resource_type: "BOT", # required, accepts BOT
|
1442
|
+
# export_type: "ALEXA_SKILLS_KIT", # required, accepts ALEXA_SKILLS_KIT
|
1443
|
+
# })
|
1444
|
+
#
|
1445
|
+
# @example Response structure
|
1446
|
+
#
|
1447
|
+
# resp.name #=> String
|
1448
|
+
# resp.version #=> String
|
1449
|
+
# resp.resource_type #=> String, one of "BOT"
|
1450
|
+
# resp.export_type #=> String, one of "ALEXA_SKILLS_KIT"
|
1451
|
+
# resp.export_status #=> String, one of "IN_PROGRESS", "READY", "FAILED"
|
1452
|
+
# resp.failure_reason #=> String
|
1453
|
+
# resp.url #=> String
|
1454
|
+
#
|
1455
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetExport AWS API Documentation
|
1456
|
+
#
|
1457
|
+
# @overload get_export(params = {})
|
1458
|
+
# @param [Hash] params ({})
|
1459
|
+
def get_export(params = {}, options = {})
|
1460
|
+
req = build_request(:get_export, params)
|
1461
|
+
req.send_request(options)
|
1462
|
+
end
|
1463
|
+
|
1412
1464
|
# Returns information about an intent. In addition to the intent name,
|
1413
1465
|
# you must specify the intent version.
|
1414
1466
|
#
|
@@ -3180,17 +3232,18 @@ module Aws::LexModelBuildingService
|
|
3180
3232
|
# exception.
|
3181
3233
|
#
|
3182
3234
|
# @option params [String] :value_selection_strategy
|
3183
|
-
# Determines the strategy that Amazon Lex uses to return
|
3184
|
-
# values. The field can be set to one of the following values:
|
3235
|
+
# Determines the slot resolution strategy that Amazon Lex uses to return
|
3236
|
+
# slot type values. The field can be set to one of the following values:
|
3185
3237
|
#
|
3186
|
-
# * `ORIGINAL_VALUE` - Returns the value entered by the user
|
3238
|
+
# * `ORIGINAL_VALUE` - Returns the value entered by the user, if the
|
3239
|
+
# user value is similar to the slot value.
|
3187
3240
|
#
|
3188
3241
|
# * `TOP_RESOLUTION` - If there is a resolution list for the slot,
|
3189
3242
|
# return the first value in the resolution list as the slot type
|
3190
3243
|
# value. If there is no resolution list, null is returned.
|
3191
3244
|
#
|
3192
|
-
# If you don't specify the `valueSelectionStrategy
|
3193
|
-
#
|
3245
|
+
# If you don't specify the `valueSelectionStrategy`, the default is
|
3246
|
+
# `ORIGINAL_VALUE`.
|
3194
3247
|
#
|
3195
3248
|
# @return [Types::PutSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3196
3249
|
#
|
@@ -3290,7 +3343,7 @@ module Aws::LexModelBuildingService
|
|
3290
3343
|
params: params,
|
3291
3344
|
config: config)
|
3292
3345
|
context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
|
3293
|
-
context[:gem_version] = '1.
|
3346
|
+
context[:gem_version] = '1.2.0'
|
3294
3347
|
Seahorse::Client::Request.new(handlers, context)
|
3295
3348
|
end
|
3296
3349
|
|
@@ -58,6 +58,8 @@ module Aws::LexModelBuildingService
|
|
58
58
|
Description = Shapes::StringShape.new(name: 'Description')
|
59
59
|
EnumerationValue = Shapes::StructureShape.new(name: 'EnumerationValue')
|
60
60
|
EnumerationValues = Shapes::ListShape.new(name: 'EnumerationValues')
|
61
|
+
ExportStatus = Shapes::StringShape.new(name: 'ExportStatus')
|
62
|
+
ExportType = Shapes::StringShape.new(name: 'ExportType')
|
61
63
|
FollowUpPrompt = Shapes::StructureShape.new(name: 'FollowUpPrompt')
|
62
64
|
FulfillmentActivity = Shapes::StructureShape.new(name: 'FulfillmentActivity')
|
63
65
|
FulfillmentActivityType = Shapes::StringShape.new(name: 'FulfillmentActivityType')
|
@@ -81,6 +83,8 @@ module Aws::LexModelBuildingService
|
|
81
83
|
GetBuiltinIntentsResponse = Shapes::StructureShape.new(name: 'GetBuiltinIntentsResponse')
|
82
84
|
GetBuiltinSlotTypesRequest = Shapes::StructureShape.new(name: 'GetBuiltinSlotTypesRequest')
|
83
85
|
GetBuiltinSlotTypesResponse = Shapes::StructureShape.new(name: 'GetBuiltinSlotTypesResponse')
|
86
|
+
GetExportRequest = Shapes::StructureShape.new(name: 'GetExportRequest')
|
87
|
+
GetExportResponse = Shapes::StructureShape.new(name: 'GetExportResponse')
|
84
88
|
GetIntentRequest = Shapes::StructureShape.new(name: 'GetIntentRequest')
|
85
89
|
GetIntentResponse = Shapes::StructureShape.new(name: 'GetIntentResponse')
|
86
90
|
GetIntentVersionsRequest = Shapes::StructureShape.new(name: 'GetIntentVersionsRequest')
|
@@ -132,6 +136,7 @@ module Aws::LexModelBuildingService
|
|
132
136
|
ReferenceType = Shapes::StringShape.new(name: 'ReferenceType')
|
133
137
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
134
138
|
ResourceReference = Shapes::StructureShape.new(name: 'ResourceReference')
|
139
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
135
140
|
ResponseCard = Shapes::StringShape.new(name: 'ResponseCard')
|
136
141
|
SessionTTL = Shapes::IntegerShape.new(name: 'SessionTTL')
|
137
142
|
Slot = Shapes::StructureShape.new(name: 'Slot')
|
@@ -434,6 +439,21 @@ module Aws::LexModelBuildingService
|
|
434
439
|
GetBuiltinSlotTypesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
435
440
|
GetBuiltinSlotTypesResponse.struct_class = Types::GetBuiltinSlotTypesResponse
|
436
441
|
|
442
|
+
GetExportRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location: "querystring", location_name: "name"))
|
443
|
+
GetExportRequest.add_member(:version, Shapes::ShapeRef.new(shape: NumericalVersion, required: true, location: "querystring", location_name: "version"))
|
444
|
+
GetExportRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location: "querystring", location_name: "resourceType"))
|
445
|
+
GetExportRequest.add_member(:export_type, Shapes::ShapeRef.new(shape: ExportType, required: true, location: "querystring", location_name: "exportType"))
|
446
|
+
GetExportRequest.struct_class = Types::GetExportRequest
|
447
|
+
|
448
|
+
GetExportResponse.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
449
|
+
GetExportResponse.add_member(:version, Shapes::ShapeRef.new(shape: NumericalVersion, location_name: "version"))
|
450
|
+
GetExportResponse.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
|
451
|
+
GetExportResponse.add_member(:export_type, Shapes::ShapeRef.new(shape: ExportType, location_name: "exportType"))
|
452
|
+
GetExportResponse.add_member(:export_status, Shapes::ShapeRef.new(shape: ExportStatus, location_name: "exportStatus"))
|
453
|
+
GetExportResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "failureReason"))
|
454
|
+
GetExportResponse.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
|
455
|
+
GetExportResponse.struct_class = Types::GetExportResponse
|
456
|
+
|
437
457
|
GetIntentRequest.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, required: true, location: "uri", location_name: "name"))
|
438
458
|
GetIntentRequest.add_member(:version, Shapes::ShapeRef.new(shape: Version, required: true, location: "uri", location_name: "version"))
|
439
459
|
GetIntentRequest.struct_class = Types::GetIntentRequest
|
@@ -1019,6 +1039,18 @@ module Aws::LexModelBuildingService
|
|
1019
1039
|
)
|
1020
1040
|
end)
|
1021
1041
|
|
1042
|
+
api.add_operation(:get_export, Seahorse::Model::Operation.new.tap do |o|
|
1043
|
+
o.name = "GetExport"
|
1044
|
+
o.http_method = "GET"
|
1045
|
+
o.http_request_uri = "/exports/"
|
1046
|
+
o.input = Shapes::ShapeRef.new(shape: GetExportRequest)
|
1047
|
+
o.output = Shapes::ShapeRef.new(shape: GetExportResponse)
|
1048
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1049
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1050
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1051
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1052
|
+
end)
|
1053
|
+
|
1022
1054
|
api.add_operation(:get_intent, Seahorse::Model::Operation.new.tap do |o|
|
1023
1055
|
o.name = "GetIntent"
|
1024
1056
|
o.http_method = "GET"
|
@@ -1638,6 +1638,93 @@ module Aws::LexModelBuildingService
|
|
1638
1638
|
include Aws::Structure
|
1639
1639
|
end
|
1640
1640
|
|
1641
|
+
# @note When making an API call, you may pass GetExportRequest
|
1642
|
+
# data as a hash:
|
1643
|
+
#
|
1644
|
+
# {
|
1645
|
+
# name: "Name", # required
|
1646
|
+
# version: "NumericalVersion", # required
|
1647
|
+
# resource_type: "BOT", # required, accepts BOT
|
1648
|
+
# export_type: "ALEXA_SKILLS_KIT", # required, accepts ALEXA_SKILLS_KIT
|
1649
|
+
# }
|
1650
|
+
#
|
1651
|
+
# @!attribute [rw] name
|
1652
|
+
# The name of the bot to export.
|
1653
|
+
# @return [String]
|
1654
|
+
#
|
1655
|
+
# @!attribute [rw] version
|
1656
|
+
# The version of the bot to export.
|
1657
|
+
# @return [String]
|
1658
|
+
#
|
1659
|
+
# @!attribute [rw] resource_type
|
1660
|
+
# The type of resource to export.
|
1661
|
+
# @return [String]
|
1662
|
+
#
|
1663
|
+
# @!attribute [rw] export_type
|
1664
|
+
# The format of the exported data.
|
1665
|
+
# @return [String]
|
1666
|
+
#
|
1667
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetExportRequest AWS API Documentation
|
1668
|
+
#
|
1669
|
+
class GetExportRequest < Struct.new(
|
1670
|
+
:name,
|
1671
|
+
:version,
|
1672
|
+
:resource_type,
|
1673
|
+
:export_type)
|
1674
|
+
include Aws::Structure
|
1675
|
+
end
|
1676
|
+
|
1677
|
+
# @!attribute [rw] name
|
1678
|
+
# The name of the bot being exported.
|
1679
|
+
# @return [String]
|
1680
|
+
#
|
1681
|
+
# @!attribute [rw] version
|
1682
|
+
# The version of the bot being exported.
|
1683
|
+
# @return [String]
|
1684
|
+
#
|
1685
|
+
# @!attribute [rw] resource_type
|
1686
|
+
# The type of the exported resource.
|
1687
|
+
# @return [String]
|
1688
|
+
#
|
1689
|
+
# @!attribute [rw] export_type
|
1690
|
+
# The format of the exported data.
|
1691
|
+
# @return [String]
|
1692
|
+
#
|
1693
|
+
# @!attribute [rw] export_status
|
1694
|
+
# The status of the export.
|
1695
|
+
#
|
1696
|
+
# * `IN_PROGRESS` - The export is in progress.
|
1697
|
+
#
|
1698
|
+
# * `READY` - The export is complete.
|
1699
|
+
#
|
1700
|
+
# * `FAILED` - The export could not be completed.
|
1701
|
+
# @return [String]
|
1702
|
+
#
|
1703
|
+
# @!attribute [rw] failure_reason
|
1704
|
+
# If `status` is `FAILED`, Amazon Lex provides the reason that it
|
1705
|
+
# failed to export the resource.
|
1706
|
+
# @return [String]
|
1707
|
+
#
|
1708
|
+
# @!attribute [rw] url
|
1709
|
+
# An S3 pre-signed URL that provides the location of the exported
|
1710
|
+
# resource. The exported resource is a ZIP archive that contains the
|
1711
|
+
# exported resource in JSON format. The structure of the archive may
|
1712
|
+
# change. Your code should not rely on the archive structure.
|
1713
|
+
# @return [String]
|
1714
|
+
#
|
1715
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetExportResponse AWS API Documentation
|
1716
|
+
#
|
1717
|
+
class GetExportResponse < Struct.new(
|
1718
|
+
:name,
|
1719
|
+
:version,
|
1720
|
+
:resource_type,
|
1721
|
+
:export_type,
|
1722
|
+
:export_status,
|
1723
|
+
:failure_reason,
|
1724
|
+
:url)
|
1725
|
+
include Aws::Structure
|
1726
|
+
end
|
1727
|
+
|
1641
1728
|
# @note When making an API call, you may pass GetIntentRequest
|
1642
1729
|
# data as a hash:
|
1643
1730
|
#
|
@@ -3060,17 +3147,19 @@ module Aws::LexModelBuildingService
|
|
3060
3147
|
# @return [String]
|
3061
3148
|
#
|
3062
3149
|
# @!attribute [rw] value_selection_strategy
|
3063
|
-
# Determines the strategy that Amazon Lex uses to
|
3064
|
-
# values. The field can be set to one of the
|
3150
|
+
# Determines the slot resolution strategy that Amazon Lex uses to
|
3151
|
+
# return slot type values. The field can be set to one of the
|
3152
|
+
# following values:
|
3065
3153
|
#
|
3066
|
-
# * `ORIGINAL_VALUE` - Returns the value entered by the user
|
3154
|
+
# * `ORIGINAL_VALUE` - Returns the value entered by the user, if the
|
3155
|
+
# user value is similar to the slot value.
|
3067
3156
|
#
|
3068
3157
|
# * `TOP_RESOLUTION` - If there is a resolution list for the slot,
|
3069
3158
|
# return the first value in the resolution list as the slot type
|
3070
3159
|
# value. If there is no resolution list, null is returned.
|
3071
3160
|
#
|
3072
|
-
# If you don't specify the `valueSelectionStrategy
|
3073
|
-
#
|
3161
|
+
# If you don't specify the `valueSelectionStrategy`, the default is
|
3162
|
+
# `ORIGINAL_VALUE`.
|
3074
3163
|
# @return [String]
|
3075
3164
|
#
|
3076
3165
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotTypeRequest AWS API Documentation
|
@@ -3116,8 +3205,8 @@ module Aws::LexModelBuildingService
|
|
3116
3205
|
# @return [String]
|
3117
3206
|
#
|
3118
3207
|
# @!attribute [rw] value_selection_strategy
|
3119
|
-
# The strategy that Amazon Lex uses to determine the
|
3120
|
-
# slot. For more information, see PutSlotType.
|
3208
|
+
# The slot resolution strategy that Amazon Lex uses to determine the
|
3209
|
+
# value of the slot. For more information, see PutSlotType.
|
3121
3210
|
# @return [String]
|
3122
3211
|
#
|
3123
3212
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotTypeResponse AWS API Documentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexmodelbuildingservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|