lib/aws-sdk-guardduty/endpoints.rb in aws-sdk-guardduty-1.98.0 vs lib/aws-sdk-guardduty/endpoints.rb in aws-sdk-guardduty-1.99.0
- old
+ new
@@ -12,1039 +12,817 @@
# @api private
module Endpoints
class AcceptAdministratorInvitation
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class AcceptInvitation
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ArchiveFindings
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateDetector
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateFilter
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateIPSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateMalwareProtectionPlan
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreatePublishingDestination
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateSampleFindings
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateThreatIntelSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeclineInvitations
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteDetector
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteFilter
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteIPSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteInvitations
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteMalwareProtectionPlan
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeletePublishingDestination
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteThreatIntelSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DescribeMalwareScans
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DescribeOrganizationConfiguration
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DescribePublishingDestination
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DisableOrganizationAdminAccount
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DisassociateFromAdministratorAccount
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DisassociateFromMasterAccount
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DisassociateMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class EnableOrganizationAdminAccount
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetAdministratorAccount
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetCoverageStatistics
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetDetector
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetFilter
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetFindings
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetFindingsStatistics
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetIPSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetInvitationsCount
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetMalwareProtectionPlan
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetMalwareScanSettings
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetMasterAccount
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetMemberDetectors
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetOrganizationStatistics
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetRemainingFreeTrialDays
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetThreatIntelSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class GetUsageStatistics
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class InviteMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListCoverage
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListDetectors
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListFilters
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListFindings
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListIPSets
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListInvitations
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListMalwareProtectionPlans
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListOrganizationAdminAccounts
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListPublishingDestinations
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListTagsForResource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListThreatIntelSets
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class StartMalwareScan
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class StartMonitoringMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class StopMonitoringMembers
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class TagResource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UnarchiveFindings
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UntagResource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateDetector
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateFilter
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateFindingsFeedback
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateIPSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateMalwareProtectionPlan
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateMalwareScanSettings
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateMemberDetectors
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateOrganizationConfiguration
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdatePublishingDestination
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateThreatIntelSet
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::GuardDuty::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
end