aws-sdk-opsworkscm 1.6.0 → 1.7.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: 7413b653ad8347d5494c42bcf32e66021a7241fb
4
- data.tar.gz: d2f38a82d1a4584f42845c0c61c165aae787321f
3
+ metadata.gz: 45779ef6a1d183bcf11333b95d906fb9d1dd21b9
4
+ data.tar.gz: 0a1cbd46553124267bad4e187bd173bd5fa116a2
5
5
  SHA512:
6
- metadata.gz: 70b1ed5266651239b0f0afdb145c35ad1e4725cc6e715d11e623a87dab5acf86deea4781917d4ea3b5a23b985905e51b6b6f2643fd214d37ee71a60f3046218a
7
- data.tar.gz: 766cd0a6e79e52867e61790766c710eecd3f49336f97b86e33ba1d2cafaee69a092f5c15a8eb2cc6a0e354c2adee4375c47b647604a036fdfdd6fa4319fd3bd8
6
+ metadata.gz: bfd6e523851b54de63ab514291e86b4474c0a17dc5122f4486f9b27f8499783f75e53469564fb595b0b738d0450abe39de49a613ff4afeb45491a3bfadd575ea
7
+ data.tar.gz: e883694796a69729152681693c60fc1bfb4960282abac24618b91749b02a4b51e160d0de799fe8bd28247cb136adae54094cc940f8363bc5d99f5300c02664d3
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-opsworkscm/customizations'
43
43
  # @service
44
44
  module Aws::OpsWorksCM
45
45
 
46
- GEM_VERSION = '1.6.0'
46
+ GEM_VERSION = '1.7.0'
47
47
 
48
48
  end
@@ -989,6 +989,74 @@ module Aws::OpsWorksCM
989
989
  req.send_request(options)
990
990
  end
991
991
 
992
+ # Exports a specified server engine attribute as a base64-encoded
993
+ # string. For example, you can export user data that you can use in EC2
994
+ # to associate nodes with a server.
995
+ #
996
+ # This operation is synchronous.
997
+ #
998
+ # A `ValidationException` is raised when parameters of the request are
999
+ # not valid. A `ResourceNotFoundException` is thrown when the server
1000
+ # does not exist. An `InvalidStateException` is thrown when the server
1001
+ # is in any of the following states: CREATING, TERMINATED, FAILED or
1002
+ # DELETING.
1003
+ #
1004
+ # @option params [required, String] :export_attribute_name
1005
+ # The name of the export attribute. Currently supported export attribute
1006
+ # is "Userdata" which exports a userdata script filled out with
1007
+ # parameters provided in the `InputAttributes` list.
1008
+ #
1009
+ # @option params [required, String] :server_name
1010
+ # The name of the Server to which the attribute is being exported from
1011
+ #
1012
+ # @option params [Array<Types::EngineAttribute>] :input_attributes
1013
+ # The list of engine attributes. The list type is `EngineAttribute`.
1014
+ # `EngineAttribute` is a pair of attribute name and value. For
1015
+ # `ExportAttributeName` "Userdata", currently supported input
1016
+ # attribute names are: - "RunList": For Chef, an ordered list of roles
1017
+ # and/or recipes that are run in the exact order. For Puppet, this
1018
+ # parameter is ignored. - "OrganizationName": For Chef, an
1019
+ # organization name. AWS OpsWorks for Chef Server always creates the
1020
+ # organization "default". For Puppet, this parameter is ignored. -
1021
+ # "NodeEnvironment": For Chef, a node environment (eg. development,
1022
+ # staging, onebox). For Puppet, this parameter is ignored. -
1023
+ # "NodeClientVersion": For Chef, version of Chef Engine (3 numbers
1024
+ # separated by dots, eg. "13.8.5"). If empty, it uses the latest one.
1025
+ # For Puppet, this parameter is ignored.
1026
+ #
1027
+ # @return [Types::ExportServerEngineAttributeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1028
+ #
1029
+ # * {Types::ExportServerEngineAttributeResponse#engine_attribute #engine_attribute} => Types::EngineAttribute
1030
+ # * {Types::ExportServerEngineAttributeResponse#server_name #server_name} => String
1031
+ #
1032
+ # @example Request syntax with placeholder values
1033
+ #
1034
+ # resp = client.export_server_engine_attribute({
1035
+ # export_attribute_name: "String", # required
1036
+ # server_name: "ServerName", # required
1037
+ # input_attributes: [
1038
+ # {
1039
+ # name: "EngineAttributeName",
1040
+ # value: "EngineAttributeValue",
1041
+ # },
1042
+ # ],
1043
+ # })
1044
+ #
1045
+ # @example Response structure
1046
+ #
1047
+ # resp.engine_attribute.name #=> String
1048
+ # resp.engine_attribute.value #=> String
1049
+ # resp.server_name #=> String
1050
+ #
1051
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ExportServerEngineAttribute AWS API Documentation
1052
+ #
1053
+ # @overload export_server_engine_attribute(params = {})
1054
+ # @param [Hash] params ({})
1055
+ def export_server_engine_attribute(params = {}, options = {})
1056
+ req = build_request(:export_server_engine_attribute, params)
1057
+ req.send_request(options)
1058
+ end
1059
+
992
1060
  # Restores a backup to a server that is in a `CONNECTION_LOST`,
993
1061
  # `HEALTHY`, `RUNNING`, `UNHEALTHY`, or `TERMINATED` state. When you run
994
1062
  # RestoreServer, the server's EC2 instance is deleted, and a new EC2
@@ -1282,7 +1350,7 @@ module Aws::OpsWorksCM
1282
1350
  params: params,
1283
1351
  config: config)
1284
1352
  context[:gem_name] = 'aws-sdk-opsworkscm'
1285
- context[:gem_version] = '1.6.0'
1353
+ context[:gem_version] = '1.7.0'
1286
1354
  Seahorse::Client::Request.new(handlers, context)
1287
1355
  end
1288
1356
 
@@ -48,6 +48,8 @@ module Aws::OpsWorksCM
48
48
  EngineAttributeName = Shapes::StringShape.new(name: 'EngineAttributeName')
49
49
  EngineAttributeValue = Shapes::StringShape.new(name: 'EngineAttributeValue')
50
50
  EngineAttributes = Shapes::ListShape.new(name: 'EngineAttributes')
51
+ ExportServerEngineAttributeRequest = Shapes::StructureShape.new(name: 'ExportServerEngineAttributeRequest')
52
+ ExportServerEngineAttributeResponse = Shapes::StructureShape.new(name: 'ExportServerEngineAttributeResponse')
51
53
  InstanceProfileArn = Shapes::StringShape.new(name: 'InstanceProfileArn')
52
54
  Integer = Shapes::IntegerShape.new(name: 'Integer')
53
55
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
@@ -220,6 +222,15 @@ module Aws::OpsWorksCM
220
222
 
221
223
  EngineAttributes.member = Shapes::ShapeRef.new(shape: EngineAttribute)
222
224
 
225
+ ExportServerEngineAttributeRequest.add_member(:export_attribute_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ExportAttributeName"))
226
+ ExportServerEngineAttributeRequest.add_member(:server_name, Shapes::ShapeRef.new(shape: ServerName, required: true, location_name: "ServerName"))
227
+ ExportServerEngineAttributeRequest.add_member(:input_attributes, Shapes::ShapeRef.new(shape: EngineAttributes, location_name: "InputAttributes"))
228
+ ExportServerEngineAttributeRequest.struct_class = Types::ExportServerEngineAttributeRequest
229
+
230
+ ExportServerEngineAttributeResponse.add_member(:engine_attribute, Shapes::ShapeRef.new(shape: EngineAttribute, location_name: "EngineAttribute"))
231
+ ExportServerEngineAttributeResponse.add_member(:server_name, Shapes::ShapeRef.new(shape: ServerName, location_name: "ServerName"))
232
+ ExportServerEngineAttributeResponse.struct_class = Types::ExportServerEngineAttributeResponse
233
+
223
234
  RestoreServerRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
224
235
  RestoreServerRequest.add_member(:server_name, Shapes::ShapeRef.new(shape: ServerName, required: true, location_name: "ServerName"))
225
236
  RestoreServerRequest.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "InstanceType"))
@@ -429,6 +440,17 @@ module Aws::OpsWorksCM
429
440
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
430
441
  end)
431
442
 
443
+ api.add_operation(:export_server_engine_attribute, Seahorse::Model::Operation.new.tap do |o|
444
+ o.name = "ExportServerEngineAttribute"
445
+ o.http_method = "POST"
446
+ o.http_request_uri = "/"
447
+ o.input = Shapes::ShapeRef.new(shape: ExportServerEngineAttributeRequest)
448
+ o.output = Shapes::ShapeRef.new(shape: ExportServerEngineAttributeResponse)
449
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
450
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
451
+ o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
452
+ end)
453
+
432
454
  api.add_operation(:restore_server, Seahorse::Model::Operation.new.tap do |o|
433
455
  o.name = "RestoreServer"
434
456
  o.http_method = "POST"
@@ -880,6 +880,71 @@ module Aws::OpsWorksCM
880
880
  include Aws::Structure
881
881
  end
882
882
 
883
+ # @note When making an API call, you may pass ExportServerEngineAttributeRequest
884
+ # data as a hash:
885
+ #
886
+ # {
887
+ # export_attribute_name: "String", # required
888
+ # server_name: "ServerName", # required
889
+ # input_attributes: [
890
+ # {
891
+ # name: "EngineAttributeName",
892
+ # value: "EngineAttributeValue",
893
+ # },
894
+ # ],
895
+ # }
896
+ #
897
+ # @!attribute [rw] export_attribute_name
898
+ # The name of the export attribute. Currently supported export
899
+ # attribute is "Userdata" which exports a userdata script filled out
900
+ # with parameters provided in the `InputAttributes` list.
901
+ # @return [String]
902
+ #
903
+ # @!attribute [rw] server_name
904
+ # The name of the Server to which the attribute is being exported from
905
+ # @return [String]
906
+ #
907
+ # @!attribute [rw] input_attributes
908
+ # The list of engine attributes. The list type is `EngineAttribute`.
909
+ # `EngineAttribute` is a pair of attribute name and value. For
910
+ # `ExportAttributeName` "Userdata", currently supported input
911
+ # attribute names are: - "RunList": For Chef, an ordered list of
912
+ # roles and/or recipes that are run in the exact order. For Puppet,
913
+ # this parameter is ignored. - "OrganizationName": For Chef, an
914
+ # organization name. AWS OpsWorks for Chef Server always creates the
915
+ # organization "default". For Puppet, this parameter is ignored. -
916
+ # "NodeEnvironment": For Chef, a node environment (eg. development,
917
+ # staging, onebox). For Puppet, this parameter is ignored. -
918
+ # "NodeClientVersion": For Chef, version of Chef Engine (3 numbers
919
+ # separated by dots, eg. "13.8.5"). If empty, it uses the latest
920
+ # one. For Puppet, this parameter is ignored.
921
+ # @return [Array<Types::EngineAttribute>]
922
+ #
923
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ExportServerEngineAttributeRequest AWS API Documentation
924
+ #
925
+ class ExportServerEngineAttributeRequest < Struct.new(
926
+ :export_attribute_name,
927
+ :server_name,
928
+ :input_attributes)
929
+ include Aws::Structure
930
+ end
931
+
932
+ # @!attribute [rw] engine_attribute
933
+ # The requested engine attribute pair with attribute name and value.
934
+ # @return [Types::EngineAttribute]
935
+ #
936
+ # @!attribute [rw] server_name
937
+ # The requested ServerName.
938
+ # @return [String]
939
+ #
940
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ExportServerEngineAttributeResponse AWS API Documentation
941
+ #
942
+ class ExportServerEngineAttributeResponse < Struct.new(
943
+ :engine_attribute,
944
+ :server_name)
945
+ include Aws::Structure
946
+ end
947
+
883
948
  # @note When making an API call, you may pass RestoreServerRequest
884
949
  # data as a hash:
885
950
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-opsworkscm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.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: 2018-09-11 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core