aws-sdk-guardduty 1.104.0 → 1.106.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -407,6 +407,7 @@ module Aws::GuardDuty
407
407
  PublishingStatus = Shapes::StringShape.new(name: 'PublishingStatus')
408
408
  RdsDbInstanceDetails = Shapes::StructureShape.new(name: 'RdsDbInstanceDetails')
409
409
  RdsDbUserDetails = Shapes::StructureShape.new(name: 'RdsDbUserDetails')
410
+ RdsLimitlessDbDetails = Shapes::StructureShape.new(name: 'RdsLimitlessDbDetails')
410
411
  RdsLoginAttemptAction = Shapes::StructureShape.new(name: 'RdsLoginAttemptAction')
411
412
  RemoteAccountDetails = Shapes::StructureShape.new(name: 'RemoteAccountDetails')
412
413
  RemoteIpDetails = Shapes::StructureShape.new(name: 'RemoteIpDetails')
@@ -1953,6 +1954,15 @@ module Aws::GuardDuty
1953
1954
  RdsDbUserDetails.add_member(:auth_method, Shapes::ShapeRef.new(shape: String, location_name: "authMethod"))
1954
1955
  RdsDbUserDetails.struct_class = Types::RdsDbUserDetails
1955
1956
 
1957
+ RdsLimitlessDbDetails.add_member(:db_shard_group_identifier, Shapes::ShapeRef.new(shape: String, location_name: "dbShardGroupIdentifier"))
1958
+ RdsLimitlessDbDetails.add_member(:db_shard_group_resource_id, Shapes::ShapeRef.new(shape: String, location_name: "dbShardGroupResourceId"))
1959
+ RdsLimitlessDbDetails.add_member(:db_shard_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "dbShardGroupArn"))
1960
+ RdsLimitlessDbDetails.add_member(:engine, Shapes::ShapeRef.new(shape: String, location_name: "engine"))
1961
+ RdsLimitlessDbDetails.add_member(:engine_version, Shapes::ShapeRef.new(shape: String, location_name: "engineVersion"))
1962
+ RdsLimitlessDbDetails.add_member(:db_cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "dbClusterIdentifier"))
1963
+ RdsLimitlessDbDetails.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1964
+ RdsLimitlessDbDetails.struct_class = Types::RdsLimitlessDbDetails
1965
+
1956
1966
  RdsLoginAttemptAction.add_member(:remote_ip_details, Shapes::ShapeRef.new(shape: RemoteIpDetails, location_name: "remoteIpDetails"))
1957
1967
  RdsLoginAttemptAction.add_member(:login_attributes, Shapes::ShapeRef.new(shape: LoginAttributes, location_name: "LoginAttributes"))
1958
1968
  RdsLoginAttemptAction.struct_class = Types::RdsLoginAttemptAction
@@ -1983,6 +1993,7 @@ module Aws::GuardDuty
1983
1993
  Resource.add_member(:ecs_cluster_details, Shapes::ShapeRef.new(shape: EcsClusterDetails, location_name: "ecsClusterDetails"))
1984
1994
  Resource.add_member(:container_details, Shapes::ShapeRef.new(shape: Container, location_name: "containerDetails"))
1985
1995
  Resource.add_member(:rds_db_instance_details, Shapes::ShapeRef.new(shape: RdsDbInstanceDetails, location_name: "rdsDbInstanceDetails"))
1996
+ Resource.add_member(:rds_limitless_db_details, Shapes::ShapeRef.new(shape: RdsLimitlessDbDetails, location_name: "rdsLimitlessDbDetails"))
1986
1997
  Resource.add_member(:rds_db_user_details, Shapes::ShapeRef.new(shape: RdsDbUserDetails, location_name: "rdsDbUserDetails"))
1987
1998
  Resource.add_member(:lambda_details, Shapes::ShapeRef.new(shape: LambdaDetails, location_name: "lambdaDetails"))
1988
1999
  Resource.struct_class = Types::Resource
@@ -52,15 +52,18 @@ module Aws::GuardDuty
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end