-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon WorkMail SDK.
--
-- Derived from API version 2017-10-01 of the AWS service
-- descriptions, licensed under Apache 2.0.
--
-- The types from this library are intended to be used with
-- amazonka, which provides mechanisms for specifying AuthN/AuthZ
-- information, sending requests, and receiving responses.
--
-- It is recommended to use generic lenses or optics from packages such
-- as generic-lens or optics to modify optional fields and
-- deconstruct responses.
--
-- Generated lenses can be found in Amazonka.WorkMail.Lens and are
-- suitable for use with a lens package such as lens or
-- lens-family-core.
--
-- See Amazonka.WorkMail and the AWS documentation to get
-- started.
@package amazonka-workmail
@version 2.0
module Amazonka.WorkMail.Types.AccessControlRuleEffect
newtype AccessControlRuleEffect
AccessControlRuleEffect' :: Text -> AccessControlRuleEffect
[fromAccessControlRuleEffect] :: AccessControlRuleEffect -> Text
pattern AccessControlRuleEffect_ALLOW :: AccessControlRuleEffect
pattern AccessControlRuleEffect_DENY :: AccessControlRuleEffect
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance GHC.Generics.Generic Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance GHC.Classes.Ord Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance GHC.Classes.Eq Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance GHC.Read.Read Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
instance GHC.Show.Show Amazonka.WorkMail.Types.AccessControlRuleEffect.AccessControlRuleEffect
module Amazonka.WorkMail.Types.AccessControlRule
-- | A rule that controls access to an WorkMail organization.
--
-- See: newAccessControlRule smart constructor.
data AccessControlRule
AccessControlRule' :: Maybe [Text] -> Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe AccessControlRuleEffect -> Maybe [Text] -> Maybe [Text] -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> AccessControlRule
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
[$sel:actions:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | The date that the rule was created.
[$sel:dateCreated:AccessControlRule'] :: AccessControlRule -> Maybe POSIX
-- | The date that the rule was modified.
[$sel:dateModified:AccessControlRule'] :: AccessControlRule -> Maybe POSIX
-- | The rule description.
[$sel:description:AccessControlRule'] :: AccessControlRule -> Maybe Text
-- | The rule effect.
[$sel:effect:AccessControlRule'] :: AccessControlRule -> Maybe AccessControlRuleEffect
-- | Impersonation role IDs to include in the rule.
[$sel:impersonationRoleIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | IPv4 CIDR ranges to include in the rule.
[$sel:ipRanges:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | The rule name.
[$sel:name:AccessControlRule'] :: AccessControlRule -> Maybe Text
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
[$sel:notActions:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | Impersonation role IDs to exclude from the rule.
[$sel:notImpersonationRoleIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | IPv4 CIDR ranges to exclude from the rule.
[$sel:notIpRanges:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | User IDs to exclude from the rule.
[$sel:notUserIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | User IDs to include in the rule.
[$sel:userIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | Create a value of AccessControlRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:actions:AccessControlRule',
-- accessControlRule_actions - Access protocol actions to include
-- in the rule. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
--
-- $sel:dateCreated:AccessControlRule',
-- accessControlRule_dateCreated - The date that the rule was
-- created.
--
-- $sel:dateModified:AccessControlRule',
-- accessControlRule_dateModified - The date that the rule was
-- modified.
--
-- $sel:description:AccessControlRule',
-- accessControlRule_description - The rule description.
--
-- $sel:effect:AccessControlRule', accessControlRule_effect
-- - The rule effect.
--
-- $sel:impersonationRoleIds:AccessControlRule',
-- accessControlRule_impersonationRoleIds - Impersonation role IDs
-- to include in the rule.
--
-- $sel:ipRanges:AccessControlRule',
-- accessControlRule_ipRanges - IPv4 CIDR ranges to include in the
-- rule.
--
-- $sel:name:AccessControlRule', accessControlRule_name -
-- The rule name.
--
-- $sel:notActions:AccessControlRule',
-- accessControlRule_notActions - Access protocol actions to
-- exclude from the rule. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
--
-- $sel:notImpersonationRoleIds:AccessControlRule',
-- accessControlRule_notImpersonationRoleIds - Impersonation role
-- IDs to exclude from the rule.
--
-- $sel:notIpRanges:AccessControlRule',
-- accessControlRule_notIpRanges - IPv4 CIDR ranges to exclude
-- from the rule.
--
-- $sel:notUserIds:AccessControlRule',
-- accessControlRule_notUserIds - User IDs to exclude from the
-- rule.
--
-- $sel:userIds:AccessControlRule',
-- accessControlRule_userIds - User IDs to include in the rule.
newAccessControlRule :: AccessControlRule
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
accessControlRule_actions :: Lens' AccessControlRule (Maybe [Text])
-- | The date that the rule was created.
accessControlRule_dateCreated :: Lens' AccessControlRule (Maybe UTCTime)
-- | The date that the rule was modified.
accessControlRule_dateModified :: Lens' AccessControlRule (Maybe UTCTime)
-- | The rule description.
accessControlRule_description :: Lens' AccessControlRule (Maybe Text)
-- | The rule effect.
accessControlRule_effect :: Lens' AccessControlRule (Maybe AccessControlRuleEffect)
-- | Impersonation role IDs to include in the rule.
accessControlRule_impersonationRoleIds :: Lens' AccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to include in the rule.
accessControlRule_ipRanges :: Lens' AccessControlRule (Maybe [Text])
-- | The rule name.
accessControlRule_name :: Lens' AccessControlRule (Maybe Text)
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
accessControlRule_notActions :: Lens' AccessControlRule (Maybe [Text])
-- | Impersonation role IDs to exclude from the rule.
accessControlRule_notImpersonationRoleIds :: Lens' AccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to exclude from the rule.
accessControlRule_notIpRanges :: Lens' AccessControlRule (Maybe [Text])
-- | User IDs to exclude from the rule.
accessControlRule_notUserIds :: Lens' AccessControlRule (Maybe [Text])
-- | User IDs to include in the rule.
accessControlRule_userIds :: Lens' AccessControlRule (Maybe [Text])
instance GHC.Generics.Generic Amazonka.WorkMail.Types.AccessControlRule.AccessControlRule
instance GHC.Show.Show Amazonka.WorkMail.Types.AccessControlRule.AccessControlRule
instance GHC.Read.Read Amazonka.WorkMail.Types.AccessControlRule.AccessControlRule
instance GHC.Classes.Eq Amazonka.WorkMail.Types.AccessControlRule.AccessControlRule
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.AccessControlRule.AccessControlRule
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.AccessControlRule.AccessControlRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.AccessControlRule.AccessControlRule
module Amazonka.WorkMail.Types.AccessEffect
newtype AccessEffect
AccessEffect' :: Text -> AccessEffect
[fromAccessEffect] :: AccessEffect -> Text
pattern AccessEffect_ALLOW :: AccessEffect
pattern AccessEffect_DENY :: AccessEffect
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance GHC.Generics.Generic Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance GHC.Classes.Ord Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance GHC.Classes.Eq Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance GHC.Read.Read Amazonka.WorkMail.Types.AccessEffect.AccessEffect
instance GHC.Show.Show Amazonka.WorkMail.Types.AccessEffect.AccessEffect
module Amazonka.WorkMail.Types.AvailabilityProviderType
newtype AvailabilityProviderType
AvailabilityProviderType' :: Text -> AvailabilityProviderType
[fromAvailabilityProviderType] :: AvailabilityProviderType -> Text
pattern AvailabilityProviderType_EWS :: AvailabilityProviderType
pattern AvailabilityProviderType_LAMBDA :: AvailabilityProviderType
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance GHC.Generics.Generic Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance GHC.Classes.Ord Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance GHC.Classes.Eq Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance GHC.Read.Read Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
instance GHC.Show.Show Amazonka.WorkMail.Types.AvailabilityProviderType.AvailabilityProviderType
module Amazonka.WorkMail.Types.BookingOptions
-- | At least one delegate must be associated to the resource to disable
-- automatic replies from the resource.
--
-- See: newBookingOptions smart constructor.
data BookingOptions
BookingOptions' :: Maybe Bool -> Maybe Bool -> Maybe Bool -> BookingOptions
-- | The resource's ability to automatically reply to requests. If
-- disabled, delegates must be associated to the resource.
[$sel:autoAcceptRequests:BookingOptions'] :: BookingOptions -> Maybe Bool
-- | The resource's ability to automatically decline any conflicting
-- requests.
[$sel:autoDeclineConflictingRequests:BookingOptions'] :: BookingOptions -> Maybe Bool
-- | The resource's ability to automatically decline any recurring
-- requests.
[$sel:autoDeclineRecurringRequests:BookingOptions'] :: BookingOptions -> Maybe Bool
-- | Create a value of BookingOptions with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:autoAcceptRequests:BookingOptions',
-- bookingOptions_autoAcceptRequests - The resource's ability to
-- automatically reply to requests. If disabled, delegates must be
-- associated to the resource.
--
-- $sel:autoDeclineConflictingRequests:BookingOptions',
-- bookingOptions_autoDeclineConflictingRequests - The resource's
-- ability to automatically decline any conflicting requests.
--
-- $sel:autoDeclineRecurringRequests:BookingOptions',
-- bookingOptions_autoDeclineRecurringRequests - The resource's
-- ability to automatically decline any recurring requests.
newBookingOptions :: BookingOptions
-- | The resource's ability to automatically reply to requests. If
-- disabled, delegates must be associated to the resource.
bookingOptions_autoAcceptRequests :: Lens' BookingOptions (Maybe Bool)
-- | The resource's ability to automatically decline any conflicting
-- requests.
bookingOptions_autoDeclineConflictingRequests :: Lens' BookingOptions (Maybe Bool)
-- | The resource's ability to automatically decline any recurring
-- requests.
bookingOptions_autoDeclineRecurringRequests :: Lens' BookingOptions (Maybe Bool)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.BookingOptions.BookingOptions
instance GHC.Show.Show Amazonka.WorkMail.Types.BookingOptions.BookingOptions
instance GHC.Read.Read Amazonka.WorkMail.Types.BookingOptions.BookingOptions
instance GHC.Classes.Eq Amazonka.WorkMail.Types.BookingOptions.BookingOptions
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.BookingOptions.BookingOptions
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.BookingOptions.BookingOptions
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.BookingOptions.BookingOptions
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.BookingOptions.BookingOptions
module Amazonka.WorkMail.Types.DnsRecord
-- | A DNS record uploaded to your DNS provider.
--
-- See: newDnsRecord smart constructor.
data DnsRecord
DnsRecord' :: Maybe Text -> Maybe Text -> Maybe Text -> DnsRecord
-- | The DNS hostname.- For example, domain.example.com.
[$sel:hostname:DnsRecord'] :: DnsRecord -> Maybe Text
-- | The RFC 1035 record type. Possible values: CNAME, A,
-- MX.
[$sel:type':DnsRecord'] :: DnsRecord -> Maybe Text
-- | The value returned by the DNS for a query to that hostname and record
-- type.
[$sel:value:DnsRecord'] :: DnsRecord -> Maybe Text
-- | Create a value of DnsRecord with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:hostname:DnsRecord', dnsRecord_hostname - The DNS
-- hostname.- For example, domain.example.com.
--
-- $sel:type':DnsRecord', dnsRecord_type - The RFC 1035
-- record type. Possible values: CNAME, A, MX.
--
-- $sel:value:DnsRecord', dnsRecord_value - The value
-- returned by the DNS for a query to that hostname and record type.
newDnsRecord :: DnsRecord
-- | The DNS hostname.- For example, domain.example.com.
dnsRecord_hostname :: Lens' DnsRecord (Maybe Text)
-- | The RFC 1035 record type. Possible values: CNAME, A,
-- MX.
dnsRecord_type :: Lens' DnsRecord (Maybe Text)
-- | The value returned by the DNS for a query to that hostname and record
-- type.
dnsRecord_value :: Lens' DnsRecord (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.DnsRecord.DnsRecord
instance GHC.Show.Show Amazonka.WorkMail.Types.DnsRecord.DnsRecord
instance GHC.Read.Read Amazonka.WorkMail.Types.DnsRecord.DnsRecord
instance GHC.Classes.Eq Amazonka.WorkMail.Types.DnsRecord.DnsRecord
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.DnsRecord.DnsRecord
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.DnsRecord.DnsRecord
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.DnsRecord.DnsRecord
module Amazonka.WorkMail.Types.DnsRecordVerificationStatus
newtype DnsRecordVerificationStatus
DnsRecordVerificationStatus' :: Text -> DnsRecordVerificationStatus
[fromDnsRecordVerificationStatus] :: DnsRecordVerificationStatus -> Text
pattern DnsRecordVerificationStatus_FAILED :: DnsRecordVerificationStatus
pattern DnsRecordVerificationStatus_PENDING :: DnsRecordVerificationStatus
pattern DnsRecordVerificationStatus_VERIFIED :: DnsRecordVerificationStatus
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance GHC.Generics.Generic Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance GHC.Classes.Ord Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance GHC.Classes.Eq Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance GHC.Read.Read Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
instance GHC.Show.Show Amazonka.WorkMail.Types.DnsRecordVerificationStatus.DnsRecordVerificationStatus
module Amazonka.WorkMail.Types.Domain
-- | The domain to associate with an WorkMail organization.
--
-- When you configure a domain hosted in Amazon Route 53 (Route 53), all
-- recommended DNS records are added to the organization when you create
-- it. For more information, see Adding a domain in the
-- WorkMail Administrator Guide.
--
-- See: newDomain smart constructor.
data Domain
Domain' :: Maybe Text -> Maybe Text -> Domain
-- | The fully qualified domain name.
[$sel:domainName:Domain'] :: Domain -> Maybe Text
-- | The hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
[$sel:hostedZoneId:Domain'] :: Domain -> Maybe Text
-- | Create a value of Domain with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:domainName:Domain', domain_domainName - The fully
-- qualified domain name.
--
-- $sel:hostedZoneId:Domain', domain_hostedZoneId - The
-- hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
newDomain :: Domain
-- | The fully qualified domain name.
domain_domainName :: Lens' Domain (Maybe Text)
-- | The hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
domain_hostedZoneId :: Lens' Domain (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.Domain.Domain
instance GHC.Show.Show Amazonka.WorkMail.Types.Domain.Domain
instance GHC.Read.Read Amazonka.WorkMail.Types.Domain.Domain
instance GHC.Classes.Eq Amazonka.WorkMail.Types.Domain.Domain
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.Domain.Domain
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.Domain.Domain
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.Domain.Domain
module Amazonka.WorkMail.Types.EntityState
newtype EntityState
EntityState' :: Text -> EntityState
[fromEntityState] :: EntityState -> Text
pattern EntityState_DELETED :: EntityState
pattern EntityState_DISABLED :: EntityState
pattern EntityState_ENABLED :: EntityState
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.EntityState.EntityState
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.EntityState.EntityState
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.EntityState.EntityState
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.EntityState.EntityState
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.EntityState.EntityState
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.EntityState.EntityState
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.EntityState.EntityState
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.EntityState.EntityState
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.EntityState.EntityState
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.EntityState.EntityState
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.EntityState.EntityState
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.EntityState.EntityState
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.EntityState.EntityState
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.EntityState.EntityState
instance GHC.Generics.Generic Amazonka.WorkMail.Types.EntityState.EntityState
instance GHC.Classes.Ord Amazonka.WorkMail.Types.EntityState.EntityState
instance GHC.Classes.Eq Amazonka.WorkMail.Types.EntityState.EntityState
instance GHC.Read.Read Amazonka.WorkMail.Types.EntityState.EntityState
instance GHC.Show.Show Amazonka.WorkMail.Types.EntityState.EntityState
module Amazonka.WorkMail.Types.EwsAvailabilityProvider
-- | Describes an EWS based availability provider. This is only used as
-- input to the service.
--
-- See: newEwsAvailabilityProvider smart constructor.
data EwsAvailabilityProvider
EwsAvailabilityProvider' :: Text -> Text -> Sensitive Text -> EwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
[$sel:ewsEndpoint:EwsAvailabilityProvider'] :: EwsAvailabilityProvider -> Text
-- | The username used to authenticate the remote EWS server.
[$sel:ewsUsername:EwsAvailabilityProvider'] :: EwsAvailabilityProvider -> Text
-- | The password used to authenticate the remote EWS server.
[$sel:ewsPassword:EwsAvailabilityProvider'] :: EwsAvailabilityProvider -> Sensitive Text
-- | Create a value of EwsAvailabilityProvider with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:ewsEndpoint:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsEndpoint - The endpoint of the
-- remote EWS server.
--
-- $sel:ewsUsername:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsUsername - The username used to
-- authenticate the remote EWS server.
--
-- $sel:ewsPassword:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsPassword - The password used to
-- authenticate the remote EWS server.
newEwsAvailabilityProvider :: Text -> Text -> Text -> EwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
ewsAvailabilityProvider_ewsEndpoint :: Lens' EwsAvailabilityProvider Text
-- | The username used to authenticate the remote EWS server.
ewsAvailabilityProvider_ewsUsername :: Lens' EwsAvailabilityProvider Text
-- | The password used to authenticate the remote EWS server.
ewsAvailabilityProvider_ewsPassword :: Lens' EwsAvailabilityProvider Text
instance GHC.Generics.Generic Amazonka.WorkMail.Types.EwsAvailabilityProvider.EwsAvailabilityProvider
instance GHC.Show.Show Amazonka.WorkMail.Types.EwsAvailabilityProvider.EwsAvailabilityProvider
instance GHC.Classes.Eq Amazonka.WorkMail.Types.EwsAvailabilityProvider.EwsAvailabilityProvider
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.EwsAvailabilityProvider.EwsAvailabilityProvider
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.EwsAvailabilityProvider.EwsAvailabilityProvider
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.EwsAvailabilityProvider.EwsAvailabilityProvider
module Amazonka.WorkMail.Types.FolderName
newtype FolderName
FolderName' :: Text -> FolderName
[fromFolderName] :: FolderName -> Text
pattern FolderName_DELETED_ITEMS :: FolderName
pattern FolderName_DRAFTS :: FolderName
pattern FolderName_INBOX :: FolderName
pattern FolderName_JUNK_EMAIL :: FolderName
pattern FolderName_SENT_ITEMS :: FolderName
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.FolderName.FolderName
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.FolderName.FolderName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.FolderName.FolderName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.FolderName.FolderName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.FolderName.FolderName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.FolderName.FolderName
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.FolderName.FolderName
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.FolderName.FolderName
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.FolderName.FolderName
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.FolderName.FolderName
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.FolderName.FolderName
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.FolderName.FolderName
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.FolderName.FolderName
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.FolderName.FolderName
instance GHC.Generics.Generic Amazonka.WorkMail.Types.FolderName.FolderName
instance GHC.Classes.Ord Amazonka.WorkMail.Types.FolderName.FolderName
instance GHC.Classes.Eq Amazonka.WorkMail.Types.FolderName.FolderName
instance GHC.Read.Read Amazonka.WorkMail.Types.FolderName.FolderName
instance GHC.Show.Show Amazonka.WorkMail.Types.FolderName.FolderName
module Amazonka.WorkMail.Types.Group
-- | The representation of an WorkMail group.
--
-- See: newGroup smart constructor.
data Group
Group' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Group
-- | The date indicating when the group was disabled from WorkMail use.
[$sel:disabledDate:Group'] :: Group -> Maybe POSIX
-- | The email of the group.
[$sel:email:Group'] :: Group -> Maybe Text
-- | The date indicating when the group was enabled for WorkMail use.
[$sel:enabledDate:Group'] :: Group -> Maybe POSIX
-- | The identifier of the group.
[$sel:id:Group'] :: Group -> Maybe Text
-- | The name of the group.
[$sel:name:Group'] :: Group -> Maybe Text
-- | The state of the group, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:Group'] :: Group -> Maybe EntityState
-- | Create a value of Group with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Group', group_disabledDate - The date
-- indicating when the group was disabled from WorkMail use.
--
-- $sel:email:Group', group_email - The email of the group.
--
-- $sel:enabledDate:Group', group_enabledDate - The date
-- indicating when the group was enabled for WorkMail use.
--
-- $sel:id:Group', group_id - The identifier of the group.
--
-- $sel:name:Group', group_name - The name of the group.
--
-- $sel:state:Group', group_state - The state of the group,
-- which can be ENABLED, DISABLED, or DELETED.
newGroup :: Group
-- | The date indicating when the group was disabled from WorkMail use.
group_disabledDate :: Lens' Group (Maybe UTCTime)
-- | The email of the group.
group_email :: Lens' Group (Maybe Text)
-- | The date indicating when the group was enabled for WorkMail use.
group_enabledDate :: Lens' Group (Maybe UTCTime)
-- | The identifier of the group.
group_id :: Lens' Group (Maybe Text)
-- | The name of the group.
group_name :: Lens' Group (Maybe Text)
-- | The state of the group, which can be ENABLED, DISABLED, or DELETED.
group_state :: Lens' Group (Maybe EntityState)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.Group.Group
instance GHC.Show.Show Amazonka.WorkMail.Types.Group.Group
instance GHC.Read.Read Amazonka.WorkMail.Types.Group.Group
instance GHC.Classes.Eq Amazonka.WorkMail.Types.Group.Group
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.Group.Group
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.Group.Group
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.Group.Group
module Amazonka.WorkMail.Types.ImpersonationMatchedRule
-- | The impersonation rule that matched the input.
--
-- See: newImpersonationMatchedRule smart constructor.
data ImpersonationMatchedRule
ImpersonationMatchedRule' :: Maybe Text -> Maybe Text -> ImpersonationMatchedRule
-- | The ID of the rule that matched the input
[$sel:impersonationRuleId:ImpersonationMatchedRule'] :: ImpersonationMatchedRule -> Maybe Text
-- | The name of the rule that matched the input.
[$sel:name:ImpersonationMatchedRule'] :: ImpersonationMatchedRule -> Maybe Text
-- | Create a value of ImpersonationMatchedRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:impersonationRuleId:ImpersonationMatchedRule',
-- impersonationMatchedRule_impersonationRuleId - The ID of the
-- rule that matched the input
--
-- $sel:name:ImpersonationMatchedRule',
-- impersonationMatchedRule_name - The name of the rule that
-- matched the input.
newImpersonationMatchedRule :: ImpersonationMatchedRule
-- | The ID of the rule that matched the input
impersonationMatchedRule_impersonationRuleId :: Lens' ImpersonationMatchedRule (Maybe Text)
-- | The name of the rule that matched the input.
impersonationMatchedRule_name :: Lens' ImpersonationMatchedRule (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.ImpersonationMatchedRule.ImpersonationMatchedRule
instance GHC.Show.Show Amazonka.WorkMail.Types.ImpersonationMatchedRule.ImpersonationMatchedRule
instance GHC.Read.Read Amazonka.WorkMail.Types.ImpersonationMatchedRule.ImpersonationMatchedRule
instance GHC.Classes.Eq Amazonka.WorkMail.Types.ImpersonationMatchedRule.ImpersonationMatchedRule
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.ImpersonationMatchedRule.ImpersonationMatchedRule
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.ImpersonationMatchedRule.ImpersonationMatchedRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.ImpersonationMatchedRule.ImpersonationMatchedRule
module Amazonka.WorkMail.Types.ImpersonationRoleType
newtype ImpersonationRoleType
ImpersonationRoleType' :: Text -> ImpersonationRoleType
[fromImpersonationRoleType] :: ImpersonationRoleType -> Text
pattern ImpersonationRoleType_FULL_ACCESS :: ImpersonationRoleType
pattern ImpersonationRoleType_READ_ONLY :: ImpersonationRoleType
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance GHC.Generics.Generic Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance GHC.Classes.Ord Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance GHC.Classes.Eq Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance GHC.Read.Read Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
instance GHC.Show.Show Amazonka.WorkMail.Types.ImpersonationRoleType.ImpersonationRoleType
module Amazonka.WorkMail.Types.ImpersonationRole
-- | An impersonation role for the given WorkMail organization.
--
-- See: newImpersonationRole smart constructor.
data ImpersonationRole
ImpersonationRole' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe ImpersonationRoleType -> ImpersonationRole
-- | The date when the impersonation role was created.
[$sel:dateCreated:ImpersonationRole'] :: ImpersonationRole -> Maybe POSIX
-- | The date when the impersonation role was last modified.
[$sel:dateModified:ImpersonationRole'] :: ImpersonationRole -> Maybe POSIX
-- | The identifier of the impersonation role.
[$sel:impersonationRoleId:ImpersonationRole'] :: ImpersonationRole -> Maybe Text
-- | The impersonation role name.
[$sel:name:ImpersonationRole'] :: ImpersonationRole -> Maybe Text
-- | The impersonation role type.
[$sel:type':ImpersonationRole'] :: ImpersonationRole -> Maybe ImpersonationRoleType
-- | Create a value of ImpersonationRole with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:ImpersonationRole',
-- impersonationRole_dateCreated - The date when the impersonation
-- role was created.
--
-- $sel:dateModified:ImpersonationRole',
-- impersonationRole_dateModified - The date when the
-- impersonation role was last modified.
--
-- $sel:impersonationRoleId:ImpersonationRole',
-- impersonationRole_impersonationRoleId - The identifier of the
-- impersonation role.
--
-- $sel:name:ImpersonationRole', impersonationRole_name -
-- The impersonation role name.
--
-- $sel:type':ImpersonationRole', impersonationRole_type -
-- The impersonation role type.
newImpersonationRole :: ImpersonationRole
-- | The date when the impersonation role was created.
impersonationRole_dateCreated :: Lens' ImpersonationRole (Maybe UTCTime)
-- | The date when the impersonation role was last modified.
impersonationRole_dateModified :: Lens' ImpersonationRole (Maybe UTCTime)
-- | The identifier of the impersonation role.
impersonationRole_impersonationRoleId :: Lens' ImpersonationRole (Maybe Text)
-- | The impersonation role name.
impersonationRole_name :: Lens' ImpersonationRole (Maybe Text)
-- | The impersonation role type.
impersonationRole_type :: Lens' ImpersonationRole (Maybe ImpersonationRoleType)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.ImpersonationRole.ImpersonationRole
instance GHC.Show.Show Amazonka.WorkMail.Types.ImpersonationRole.ImpersonationRole
instance GHC.Read.Read Amazonka.WorkMail.Types.ImpersonationRole.ImpersonationRole
instance GHC.Classes.Eq Amazonka.WorkMail.Types.ImpersonationRole.ImpersonationRole
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.ImpersonationRole.ImpersonationRole
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.ImpersonationRole.ImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.ImpersonationRole.ImpersonationRole
module Amazonka.WorkMail.Types.ImpersonationRule
-- | The rules for the given impersonation role.
--
-- See: newImpersonationRule smart constructor.
data ImpersonationRule
ImpersonationRule' :: Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> AccessEffect -> ImpersonationRule
-- | The rule description.
[$sel:description:ImpersonationRule'] :: ImpersonationRule -> Maybe Text
-- | The rule name.
[$sel:name:ImpersonationRule'] :: ImpersonationRule -> Maybe Text
-- | A list of user IDs that don't match the rule.
[$sel:notTargetUsers:ImpersonationRule'] :: ImpersonationRule -> Maybe (NonEmpty Text)
-- | A list of user IDs that match the rule.
[$sel:targetUsers:ImpersonationRule'] :: ImpersonationRule -> Maybe (NonEmpty Text)
-- | The identifier of the rule.
[$sel:impersonationRuleId:ImpersonationRule'] :: ImpersonationRule -> Text
-- | The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
[$sel:effect:ImpersonationRule'] :: ImpersonationRule -> AccessEffect
-- | Create a value of ImpersonationRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:description:ImpersonationRule',
-- impersonationRule_description - The rule description.
--
-- $sel:name:ImpersonationRule', impersonationRule_name -
-- The rule name.
--
-- $sel:notTargetUsers:ImpersonationRule',
-- impersonationRule_notTargetUsers - A list of user IDs that
-- don't match the rule.
--
-- $sel:targetUsers:ImpersonationRule',
-- impersonationRule_targetUsers - A list of user IDs that match
-- the rule.
--
-- $sel:impersonationRuleId:ImpersonationRule',
-- impersonationRule_impersonationRuleId - The identifier of the
-- rule.
--
-- $sel:effect:ImpersonationRule', impersonationRule_effect
-- - The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
newImpersonationRule :: Text -> AccessEffect -> ImpersonationRule
-- | The rule description.
impersonationRule_description :: Lens' ImpersonationRule (Maybe Text)
-- | The rule name.
impersonationRule_name :: Lens' ImpersonationRule (Maybe Text)
-- | A list of user IDs that don't match the rule.
impersonationRule_notTargetUsers :: Lens' ImpersonationRule (Maybe (NonEmpty Text))
-- | A list of user IDs that match the rule.
impersonationRule_targetUsers :: Lens' ImpersonationRule (Maybe (NonEmpty Text))
-- | The identifier of the rule.
impersonationRule_impersonationRuleId :: Lens' ImpersonationRule Text
-- | The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
impersonationRule_effect :: Lens' ImpersonationRule AccessEffect
instance GHC.Generics.Generic Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
instance GHC.Show.Show Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
instance GHC.Read.Read Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
instance GHC.Classes.Eq Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.ImpersonationRule.ImpersonationRule
module Amazonka.WorkMail.Types.LambdaAvailabilityProvider
-- | Describes a Lambda based availability provider.
--
-- See: newLambdaAvailabilityProvider smart constructor.
data LambdaAvailabilityProvider
LambdaAvailabilityProvider' :: Text -> LambdaAvailabilityProvider
-- | The Amazon Resource Name (ARN) of the Lambda that acts as the
-- availability provider.
[$sel:lambdaArn:LambdaAvailabilityProvider'] :: LambdaAvailabilityProvider -> Text
-- | Create a value of LambdaAvailabilityProvider with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lambdaArn:LambdaAvailabilityProvider',
-- lambdaAvailabilityProvider_lambdaArn - The Amazon Resource Name
-- (ARN) of the Lambda that acts as the availability provider.
newLambdaAvailabilityProvider :: Text -> LambdaAvailabilityProvider
-- | The Amazon Resource Name (ARN) of the Lambda that acts as the
-- availability provider.
lambdaAvailabilityProvider_lambdaArn :: Lens' LambdaAvailabilityProvider Text
instance GHC.Generics.Generic Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
instance GHC.Show.Show Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
instance GHC.Read.Read Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
instance GHC.Classes.Eq Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.LambdaAvailabilityProvider.LambdaAvailabilityProvider
module Amazonka.WorkMail.Types.MailDomainSummary
-- | The data for a given domain.
--
-- See: newMailDomainSummary smart constructor.
data MailDomainSummary
MailDomainSummary' :: Maybe Bool -> Maybe Text -> MailDomainSummary
-- | Whether the domain is default or not.
[$sel:defaultDomain:MailDomainSummary'] :: MailDomainSummary -> Maybe Bool
-- | The domain name.
[$sel:domainName:MailDomainSummary'] :: MailDomainSummary -> Maybe Text
-- | Create a value of MailDomainSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:defaultDomain:MailDomainSummary',
-- mailDomainSummary_defaultDomain - Whether the domain is default
-- or not.
--
-- $sel:domainName:MailDomainSummary',
-- mailDomainSummary_domainName - The domain name.
newMailDomainSummary :: MailDomainSummary
-- | Whether the domain is default or not.
mailDomainSummary_defaultDomain :: Lens' MailDomainSummary (Maybe Bool)
-- | The domain name.
mailDomainSummary_domainName :: Lens' MailDomainSummary (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MailDomainSummary.MailDomainSummary
instance GHC.Show.Show Amazonka.WorkMail.Types.MailDomainSummary.MailDomainSummary
instance GHC.Read.Read Amazonka.WorkMail.Types.MailDomainSummary.MailDomainSummary
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MailDomainSummary.MailDomainSummary
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MailDomainSummary.MailDomainSummary
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MailDomainSummary.MailDomainSummary
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MailDomainSummary.MailDomainSummary
module Amazonka.WorkMail.Types.MailboxExportJobState
newtype MailboxExportJobState
MailboxExportJobState' :: Text -> MailboxExportJobState
[fromMailboxExportJobState] :: MailboxExportJobState -> Text
pattern MailboxExportJobState_CANCELLED :: MailboxExportJobState
pattern MailboxExportJobState_COMPLETED :: MailboxExportJobState
pattern MailboxExportJobState_FAILED :: MailboxExportJobState
pattern MailboxExportJobState_RUNNING :: MailboxExportJobState
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance GHC.Classes.Ord Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance GHC.Read.Read Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
instance GHC.Show.Show Amazonka.WorkMail.Types.MailboxExportJobState.MailboxExportJobState
module Amazonka.WorkMail.Types.MailboxExportJob
-- | The details of a mailbox export job, including the user or resource ID
-- associated with the mailbox and the S3 bucket that the mailbox
-- contents are exported to.
--
-- See: newMailboxExportJob smart constructor.
data MailboxExportJob
MailboxExportJob' :: Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe MailboxExportJobState -> MailboxExportJob
-- | The mailbox export job description.
[$sel:description:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The mailbox export job end timestamp.
[$sel:endTime:MailboxExportJob'] :: MailboxExportJob -> Maybe POSIX
-- | The identifier of the user or resource associated with the mailbox.
[$sel:entityId:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The estimated progress of the mailbox export job, in percentage
-- points.
[$sel:estimatedProgress:MailboxExportJob'] :: MailboxExportJob -> Maybe Natural
-- | The identifier of the mailbox export job.
[$sel:jobId:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The name of the S3 bucket.
[$sel:s3BucketName:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The path to the S3 bucket and file that the mailbox export job exports
-- to.
[$sel:s3Path:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The mailbox export job start timestamp.
[$sel:startTime:MailboxExportJob'] :: MailboxExportJob -> Maybe POSIX
-- | The state of the mailbox export job.
[$sel:state:MailboxExportJob'] :: MailboxExportJob -> Maybe MailboxExportJobState
-- | Create a value of MailboxExportJob with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:description:MailboxExportJob',
-- mailboxExportJob_description - The mailbox export job
-- description.
--
-- $sel:endTime:MailboxExportJob', mailboxExportJob_endTime
-- - The mailbox export job end timestamp.
--
-- $sel:entityId:MailboxExportJob',
-- mailboxExportJob_entityId - The identifier of the user or
-- resource associated with the mailbox.
--
-- $sel:estimatedProgress:MailboxExportJob',
-- mailboxExportJob_estimatedProgress - The estimated progress of
-- the mailbox export job, in percentage points.
--
-- $sel:jobId:MailboxExportJob', mailboxExportJob_jobId -
-- The identifier of the mailbox export job.
--
-- $sel:s3BucketName:MailboxExportJob',
-- mailboxExportJob_s3BucketName - The name of the S3 bucket.
--
-- $sel:s3Path:MailboxExportJob', mailboxExportJob_s3Path -
-- The path to the S3 bucket and file that the mailbox export job exports
-- to.
--
-- $sel:startTime:MailboxExportJob',
-- mailboxExportJob_startTime - The mailbox export job start
-- timestamp.
--
-- $sel:state:MailboxExportJob', mailboxExportJob_state -
-- The state of the mailbox export job.
newMailboxExportJob :: MailboxExportJob
-- | The mailbox export job description.
mailboxExportJob_description :: Lens' MailboxExportJob (Maybe Text)
-- | The mailbox export job end timestamp.
mailboxExportJob_endTime :: Lens' MailboxExportJob (Maybe UTCTime)
-- | The identifier of the user or resource associated with the mailbox.
mailboxExportJob_entityId :: Lens' MailboxExportJob (Maybe Text)
-- | The estimated progress of the mailbox export job, in percentage
-- points.
mailboxExportJob_estimatedProgress :: Lens' MailboxExportJob (Maybe Natural)
-- | The identifier of the mailbox export job.
mailboxExportJob_jobId :: Lens' MailboxExportJob (Maybe Text)
-- | The name of the S3 bucket.
mailboxExportJob_s3BucketName :: Lens' MailboxExportJob (Maybe Text)
-- | The path to the S3 bucket and file that the mailbox export job exports
-- to.
mailboxExportJob_s3Path :: Lens' MailboxExportJob (Maybe Text)
-- | The mailbox export job start timestamp.
mailboxExportJob_startTime :: Lens' MailboxExportJob (Maybe UTCTime)
-- | The state of the mailbox export job.
mailboxExportJob_state :: Lens' MailboxExportJob (Maybe MailboxExportJobState)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MailboxExportJob.MailboxExportJob
instance GHC.Show.Show Amazonka.WorkMail.Types.MailboxExportJob.MailboxExportJob
instance GHC.Read.Read Amazonka.WorkMail.Types.MailboxExportJob.MailboxExportJob
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MailboxExportJob.MailboxExportJob
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MailboxExportJob.MailboxExportJob
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MailboxExportJob.MailboxExportJob
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MailboxExportJob.MailboxExportJob
module Amazonka.WorkMail.Types.MemberType
newtype MemberType
MemberType' :: Text -> MemberType
[fromMemberType] :: MemberType -> Text
pattern MemberType_GROUP :: MemberType
pattern MemberType_USER :: MemberType
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.MemberType.MemberType
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.MemberType.MemberType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.MemberType.MemberType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.MemberType.MemberType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.MemberType.MemberType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MemberType.MemberType
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.MemberType.MemberType
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.MemberType.MemberType
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.MemberType.MemberType
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.MemberType.MemberType
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.MemberType.MemberType
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.MemberType.MemberType
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MemberType.MemberType
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MemberType.MemberType
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MemberType.MemberType
instance GHC.Classes.Ord Amazonka.WorkMail.Types.MemberType.MemberType
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MemberType.MemberType
instance GHC.Read.Read Amazonka.WorkMail.Types.MemberType.MemberType
instance GHC.Show.Show Amazonka.WorkMail.Types.MemberType.MemberType
module Amazonka.WorkMail.Types.Member
-- | The representation of a user or group.
--
-- See: newMember smart constructor.
data Member
Member' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe MemberType -> Member
-- | The date indicating when the member was disabled from WorkMail use.
[$sel:disabledDate:Member'] :: Member -> Maybe POSIX
-- | The date indicating when the member was enabled for WorkMail use.
[$sel:enabledDate:Member'] :: Member -> Maybe POSIX
-- | The identifier of the member.
[$sel:id:Member'] :: Member -> Maybe Text
-- | The name of the member.
[$sel:name:Member'] :: Member -> Maybe Text
-- | The state of the member, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:Member'] :: Member -> Maybe EntityState
-- | A member can be a user or group.
[$sel:type':Member'] :: Member -> Maybe MemberType
-- | Create a value of Member with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Member', member_disabledDate - The
-- date indicating when the member was disabled from WorkMail use.
--
-- $sel:enabledDate:Member', member_enabledDate - The date
-- indicating when the member was enabled for WorkMail use.
--
-- $sel:id:Member', member_id - The identifier of the
-- member.
--
-- $sel:name:Member', member_name - The name of the member.
--
-- $sel:state:Member', member_state - The state of the
-- member, which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:type':Member', member_type - A member can be a user
-- or group.
newMember :: Member
-- | The date indicating when the member was disabled from WorkMail use.
member_disabledDate :: Lens' Member (Maybe UTCTime)
-- | The date indicating when the member was enabled for WorkMail use.
member_enabledDate :: Lens' Member (Maybe UTCTime)
-- | The identifier of the member.
member_id :: Lens' Member (Maybe Text)
-- | The name of the member.
member_name :: Lens' Member (Maybe Text)
-- | The state of the member, which can be ENABLED, DISABLED, or DELETED.
member_state :: Lens' Member (Maybe EntityState)
-- | A member can be a user or group.
member_type :: Lens' Member (Maybe MemberType)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.Member.Member
instance GHC.Show.Show Amazonka.WorkMail.Types.Member.Member
instance GHC.Read.Read Amazonka.WorkMail.Types.Member.Member
instance GHC.Classes.Eq Amazonka.WorkMail.Types.Member.Member
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.Member.Member
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.Member.Member
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.Member.Member
module Amazonka.WorkMail.Types.Delegate
-- | The name of the attribute, which is one of the values defined in the
-- UserAttribute enumeration.
--
-- See: newDelegate smart constructor.
data Delegate
Delegate' :: Text -> MemberType -> Delegate
-- | The identifier for the user or group associated as the resource's
-- delegate.
[$sel:id:Delegate'] :: Delegate -> Text
-- | The type of the delegate: user or group.
[$sel:type':Delegate'] :: Delegate -> MemberType
-- | Create a value of Delegate with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:id:Delegate', delegate_id - The identifier for the
-- user or group associated as the resource's delegate.
--
-- $sel:type':Delegate', delegate_type - The type of the
-- delegate: user or group.
newDelegate :: Text -> MemberType -> Delegate
-- | The identifier for the user or group associated as the resource's
-- delegate.
delegate_id :: Lens' Delegate Text
-- | The type of the delegate: user or group.
delegate_type :: Lens' Delegate MemberType
instance GHC.Generics.Generic Amazonka.WorkMail.Types.Delegate.Delegate
instance GHC.Show.Show Amazonka.WorkMail.Types.Delegate.Delegate
instance GHC.Read.Read Amazonka.WorkMail.Types.Delegate.Delegate
instance GHC.Classes.Eq Amazonka.WorkMail.Types.Delegate.Delegate
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.Delegate.Delegate
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.Delegate.Delegate
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.Delegate.Delegate
module Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule
-- | The rule that a simulated user matches.
--
-- See: newMobileDeviceAccessMatchedRule smart constructor.
data MobileDeviceAccessMatchedRule
MobileDeviceAccessMatchedRule' :: Maybe Text -> Maybe Text -> MobileDeviceAccessMatchedRule
-- | Identifier of the rule that a simulated user matches.
[$sel:mobileDeviceAccessRuleId:MobileDeviceAccessMatchedRule'] :: MobileDeviceAccessMatchedRule -> Maybe Text
-- | Name of a rule that a simulated user matches.
[$sel:name:MobileDeviceAccessMatchedRule'] :: MobileDeviceAccessMatchedRule -> Maybe Text
-- | Create a value of MobileDeviceAccessMatchedRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:mobileDeviceAccessRuleId:MobileDeviceAccessMatchedRule',
-- mobileDeviceAccessMatchedRule_mobileDeviceAccessRuleId -
-- Identifier of the rule that a simulated user matches.
--
-- $sel:name:MobileDeviceAccessMatchedRule',
-- mobileDeviceAccessMatchedRule_name - Name of a rule that a
-- simulated user matches.
newMobileDeviceAccessMatchedRule :: MobileDeviceAccessMatchedRule
-- | Identifier of the rule that a simulated user matches.
mobileDeviceAccessMatchedRule_mobileDeviceAccessRuleId :: Lens' MobileDeviceAccessMatchedRule (Maybe Text)
-- | Name of a rule that a simulated user matches.
mobileDeviceAccessMatchedRule_name :: Lens' MobileDeviceAccessMatchedRule (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule.MobileDeviceAccessMatchedRule
instance GHC.Show.Show Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule.MobileDeviceAccessMatchedRule
instance GHC.Read.Read Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule.MobileDeviceAccessMatchedRule
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule.MobileDeviceAccessMatchedRule
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule.MobileDeviceAccessMatchedRule
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule.MobileDeviceAccessMatchedRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MobileDeviceAccessMatchedRule.MobileDeviceAccessMatchedRule
module Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect
newtype MobileDeviceAccessRuleEffect
MobileDeviceAccessRuleEffect' :: Text -> MobileDeviceAccessRuleEffect
[fromMobileDeviceAccessRuleEffect] :: MobileDeviceAccessRuleEffect -> Text
pattern MobileDeviceAccessRuleEffect_ALLOW :: MobileDeviceAccessRuleEffect
pattern MobileDeviceAccessRuleEffect_DENY :: MobileDeviceAccessRuleEffect
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance GHC.Classes.Ord Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance GHC.Read.Read Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
instance GHC.Show.Show Amazonka.WorkMail.Types.MobileDeviceAccessRuleEffect.MobileDeviceAccessRuleEffect
module Amazonka.WorkMail.Types.MobileDeviceAccessRule
-- | A rule that controls access to mobile devices for an WorkMail group.
--
-- See: newMobileDeviceAccessRule smart constructor.
data MobileDeviceAccessRule
MobileDeviceAccessRule' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> MobileDeviceAccessRule
-- | The date and time at which an access rule was created.
[$sel:dateCreated:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe POSIX
-- | The date and time at which an access rule was modified.
[$sel:dateModified:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe POSIX
-- | The description of a mobile access rule.
[$sel:description:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe Text
-- | Device models that a rule will match.
[$sel:deviceModels:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that a rule will match.
[$sel:deviceOperatingSystems:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that a rule will match.
[$sel:deviceTypes:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device user agents that a rule will match.
[$sel:deviceUserAgents:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
[$sel:effect:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe MobileDeviceAccessRuleEffect
-- | The ID assigned to a mobile access rule.
[$sel:mobileDeviceAccessRuleId:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe Text
-- | The name of a mobile access rule.
[$sel:name:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe Text
-- | Device models that a rule will not match. All other device
-- models will match.
[$sel:notDeviceModels:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that a rule will not match. All other
-- device types will match.
[$sel:notDeviceOperatingSystems:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that a rule will not match. All other device types
-- will match.
[$sel:notDeviceTypes:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device user agents that a rule will not match. All other device
-- user agents will match.
[$sel:notDeviceUserAgents:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Create a value of MobileDeviceAccessRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_dateCreated - The date and time at which
-- an access rule was created.
--
-- $sel:dateModified:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_dateModified - The date and time at
-- which an access rule was modified.
--
-- $sel:description:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_description - The description of a
-- mobile access rule.
--
-- $sel:deviceModels:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceModels - Device models that a rule
-- will match.
--
-- $sel:deviceOperatingSystems:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceOperatingSystems - Device
-- operating systems that a rule will match.
--
-- $sel:deviceTypes:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceTypes - Device types that a rule
-- will match.
--
-- $sel:deviceUserAgents:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceUserAgents - Device user agents
-- that a rule will match.
--
-- $sel:effect:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_effect - The effect of the rule when it
-- matches. Allowed values are ALLOW or DENY.
--
-- $sel:mobileDeviceAccessRuleId:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_mobileDeviceAccessRuleId - The ID
-- assigned to a mobile access rule.
--
-- $sel:name:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_name - The name of a mobile access rule.
--
-- $sel:notDeviceModels:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceModels - Device models that a
-- rule will not match. All other device models will match.
--
-- $sel:notDeviceOperatingSystems:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceOperatingSystems - Device
-- operating systems that a rule will not match. All other device
-- types will match.
--
-- $sel:notDeviceTypes:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceTypes - Device types that a
-- rule will not match. All other device types will match.
--
-- $sel:notDeviceUserAgents:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceUserAgents - Device user agents
-- that a rule will not match. All other device user agents will
-- match.
newMobileDeviceAccessRule :: MobileDeviceAccessRule
-- | The date and time at which an access rule was created.
mobileDeviceAccessRule_dateCreated :: Lens' MobileDeviceAccessRule (Maybe UTCTime)
-- | The date and time at which an access rule was modified.
mobileDeviceAccessRule_dateModified :: Lens' MobileDeviceAccessRule (Maybe UTCTime)
-- | The description of a mobile access rule.
mobileDeviceAccessRule_description :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | Device models that a rule will match.
mobileDeviceAccessRule_deviceModels :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that a rule will match.
mobileDeviceAccessRule_deviceOperatingSystems :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that a rule will match.
mobileDeviceAccessRule_deviceTypes :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that a rule will match.
mobileDeviceAccessRule_deviceUserAgents :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
mobileDeviceAccessRule_effect :: Lens' MobileDeviceAccessRule (Maybe MobileDeviceAccessRuleEffect)
-- | The ID assigned to a mobile access rule.
mobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | The name of a mobile access rule.
mobileDeviceAccessRule_name :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | Device models that a rule will not match. All other device
-- models will match.
mobileDeviceAccessRule_notDeviceModels :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that a rule will not match. All other
-- device types will match.
mobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that a rule will not match. All other device types
-- will match.
mobileDeviceAccessRule_notDeviceTypes :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that a rule will not match. All other device
-- user agents will match.
mobileDeviceAccessRule_notDeviceUserAgents :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MobileDeviceAccessRule.MobileDeviceAccessRule
instance GHC.Show.Show Amazonka.WorkMail.Types.MobileDeviceAccessRule.MobileDeviceAccessRule
instance GHC.Read.Read Amazonka.WorkMail.Types.MobileDeviceAccessRule.MobileDeviceAccessRule
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MobileDeviceAccessRule.MobileDeviceAccessRule
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MobileDeviceAccessRule.MobileDeviceAccessRule
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MobileDeviceAccessRule.MobileDeviceAccessRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MobileDeviceAccessRule.MobileDeviceAccessRule
module Amazonka.WorkMail.Types.MobileDeviceAccessOverride
-- | The override object.
--
-- See: newMobileDeviceAccessOverride smart constructor.
data MobileDeviceAccessOverride
MobileDeviceAccessOverride' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> MobileDeviceAccessOverride
-- | The date the override was first created.
[$sel:dateCreated:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe POSIX
-- | The date the override was last modified.
[$sel:dateModified:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe POSIX
-- | A description of the override.
[$sel:description:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe Text
-- | The device to which the override applies.
[$sel:deviceId:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe Text
-- | The effect of the override, ALLOW or DENY.
[$sel:effect:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe MobileDeviceAccessRuleEffect
-- | The WorkMail user to which the access override applies.
[$sel:userId:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe Text
-- | Create a value of MobileDeviceAccessOverride with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_dateCreated - The date the override
-- was first created.
--
-- $sel:dateModified:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_dateModified - The date the override
-- was last modified.
--
-- $sel:description:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_description - A description of the
-- override.
--
-- $sel:deviceId:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_deviceId - The device to which the
-- override applies.
--
-- $sel:effect:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_effect - The effect of the override,
-- ALLOW or DENY.
--
-- $sel:userId:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_userId - The WorkMail user to which
-- the access override applies.
newMobileDeviceAccessOverride :: MobileDeviceAccessOverride
-- | The date the override was first created.
mobileDeviceAccessOverride_dateCreated :: Lens' MobileDeviceAccessOverride (Maybe UTCTime)
-- | The date the override was last modified.
mobileDeviceAccessOverride_dateModified :: Lens' MobileDeviceAccessOverride (Maybe UTCTime)
-- | A description of the override.
mobileDeviceAccessOverride_description :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | The device to which the override applies.
mobileDeviceAccessOverride_deviceId :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | The effect of the override, ALLOW or DENY.
mobileDeviceAccessOverride_effect :: Lens' MobileDeviceAccessOverride (Maybe MobileDeviceAccessRuleEffect)
-- | The WorkMail user to which the access override applies.
mobileDeviceAccessOverride_userId :: Lens' MobileDeviceAccessOverride (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.MobileDeviceAccessOverride.MobileDeviceAccessOverride
instance GHC.Show.Show Amazonka.WorkMail.Types.MobileDeviceAccessOverride.MobileDeviceAccessOverride
instance GHC.Read.Read Amazonka.WorkMail.Types.MobileDeviceAccessOverride.MobileDeviceAccessOverride
instance GHC.Classes.Eq Amazonka.WorkMail.Types.MobileDeviceAccessOverride.MobileDeviceAccessOverride
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.MobileDeviceAccessOverride.MobileDeviceAccessOverride
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.MobileDeviceAccessOverride.MobileDeviceAccessOverride
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.MobileDeviceAccessOverride.MobileDeviceAccessOverride
module Amazonka.WorkMail.Types.OrganizationSummary
-- | The representation of an organization.
--
-- See: newOrganizationSummary smart constructor.
data OrganizationSummary
OrganizationSummary' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> OrganizationSummary
-- | The alias associated with the organization.
[$sel:alias:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The default email domain associated with the organization.
[$sel:defaultMailDomain:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The error message associated with the organization. It is only present
-- if unexpected behavior has occurred with regards to the organization.
-- It provides insight or solutions regarding unexpected behavior.
[$sel:errorMessage:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The identifier associated with the organization.
[$sel:organizationId:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The state associated with the organization.
[$sel:state:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | Create a value of OrganizationSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:alias:OrganizationSummary',
-- organizationSummary_alias - The alias associated with the
-- organization.
--
-- $sel:defaultMailDomain:OrganizationSummary',
-- organizationSummary_defaultMailDomain - The default email
-- domain associated with the organization.
--
-- $sel:errorMessage:OrganizationSummary',
-- organizationSummary_errorMessage - The error message associated
-- with the organization. It is only present if unexpected behavior has
-- occurred with regards to the organization. It provides insight or
-- solutions regarding unexpected behavior.
--
-- $sel:organizationId:OrganizationSummary',
-- organizationSummary_organizationId - The identifier associated
-- with the organization.
--
-- $sel:state:OrganizationSummary',
-- organizationSummary_state - The state associated with the
-- organization.
newOrganizationSummary :: OrganizationSummary
-- | The alias associated with the organization.
organizationSummary_alias :: Lens' OrganizationSummary (Maybe Text)
-- | The default email domain associated with the organization.
organizationSummary_defaultMailDomain :: Lens' OrganizationSummary (Maybe Text)
-- | The error message associated with the organization. It is only present
-- if unexpected behavior has occurred with regards to the organization.
-- It provides insight or solutions regarding unexpected behavior.
organizationSummary_errorMessage :: Lens' OrganizationSummary (Maybe Text)
-- | The identifier associated with the organization.
organizationSummary_organizationId :: Lens' OrganizationSummary (Maybe Text)
-- | The state associated with the organization.
organizationSummary_state :: Lens' OrganizationSummary (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.OrganizationSummary.OrganizationSummary
instance GHC.Show.Show Amazonka.WorkMail.Types.OrganizationSummary.OrganizationSummary
instance GHC.Read.Read Amazonka.WorkMail.Types.OrganizationSummary.OrganizationSummary
instance GHC.Classes.Eq Amazonka.WorkMail.Types.OrganizationSummary.OrganizationSummary
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.OrganizationSummary.OrganizationSummary
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.OrganizationSummary.OrganizationSummary
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.OrganizationSummary.OrganizationSummary
module Amazonka.WorkMail.Types.PermissionType
newtype PermissionType
PermissionType' :: Text -> PermissionType
[fromPermissionType] :: PermissionType -> Text
pattern PermissionType_FULL_ACCESS :: PermissionType
pattern PermissionType_SEND_AS :: PermissionType
pattern PermissionType_SEND_ON_BEHALF :: PermissionType
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.PermissionType.PermissionType
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.PermissionType.PermissionType
instance GHC.Generics.Generic Amazonka.WorkMail.Types.PermissionType.PermissionType
instance GHC.Classes.Ord Amazonka.WorkMail.Types.PermissionType.PermissionType
instance GHC.Classes.Eq Amazonka.WorkMail.Types.PermissionType.PermissionType
instance GHC.Read.Read Amazonka.WorkMail.Types.PermissionType.PermissionType
instance GHC.Show.Show Amazonka.WorkMail.Types.PermissionType.PermissionType
module Amazonka.WorkMail.Types.Permission
-- | Permission granted to a user, group, or resource to access a certain
-- aspect of another user, group, or resource mailbox.
--
-- See: newPermission smart constructor.
data Permission
Permission' :: Text -> MemberType -> [PermissionType] -> Permission
-- | The identifier of the user, group, or resource to which the
-- permissions are granted.
[$sel:granteeId:Permission'] :: Permission -> Text
-- | The type of user, group, or resource referred to in GranteeId.
[$sel:granteeType:Permission'] :: Permission -> MemberType
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
[$sel:permissionValues:Permission'] :: Permission -> [PermissionType]
-- | Create a value of Permission with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:granteeId:Permission', permission_granteeId - The
-- identifier of the user, group, or resource to which the permissions
-- are granted.
--
-- $sel:granteeType:Permission', permission_granteeType -
-- The type of user, group, or resource referred to in GranteeId.
--
-- $sel:permissionValues:Permission',
-- permission_permissionValues - The permissions granted to the
-- grantee. SEND_AS allows the grantee to send email as the owner of the
-- mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF
-- allows the grantee to send email on behalf of the owner of the mailbox
-- (the grantee is not mentioned as the physical sender of these emails).
-- FULL_ACCESS allows the grantee full access to the mailbox,
-- irrespective of other folder-level permissions set on the mailbox.
newPermission :: Text -> MemberType -> Permission
-- | The identifier of the user, group, or resource to which the
-- permissions are granted.
permission_granteeId :: Lens' Permission Text
-- | The type of user, group, or resource referred to in GranteeId.
permission_granteeType :: Lens' Permission MemberType
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
permission_permissionValues :: Lens' Permission [PermissionType]
instance GHC.Generics.Generic Amazonka.WorkMail.Types.Permission.Permission
instance GHC.Show.Show Amazonka.WorkMail.Types.Permission.Permission
instance GHC.Read.Read Amazonka.WorkMail.Types.Permission.Permission
instance GHC.Classes.Eq Amazonka.WorkMail.Types.Permission.Permission
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.Permission.Permission
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.Permission.Permission
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.Permission.Permission
module Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider
-- | Describes an EWS based availability provider when returned from the
-- service. It does not contain the password of the endpoint.
--
-- See: newRedactedEwsAvailabilityProvider smart
-- constructor.
data RedactedEwsAvailabilityProvider
RedactedEwsAvailabilityProvider' :: Maybe Text -> Maybe Text -> RedactedEwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
[$sel:ewsEndpoint:RedactedEwsAvailabilityProvider'] :: RedactedEwsAvailabilityProvider -> Maybe Text
-- | The username used to authenticate the remote EWS server.
[$sel:ewsUsername:RedactedEwsAvailabilityProvider'] :: RedactedEwsAvailabilityProvider -> Maybe Text
-- | Create a value of RedactedEwsAvailabilityProvider with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:ewsEndpoint:RedactedEwsAvailabilityProvider',
-- redactedEwsAvailabilityProvider_ewsEndpoint - The endpoint of
-- the remote EWS server.
--
-- $sel:ewsUsername:RedactedEwsAvailabilityProvider',
-- redactedEwsAvailabilityProvider_ewsUsername - The username used
-- to authenticate the remote EWS server.
newRedactedEwsAvailabilityProvider :: RedactedEwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
redactedEwsAvailabilityProvider_ewsEndpoint :: Lens' RedactedEwsAvailabilityProvider (Maybe Text)
-- | The username used to authenticate the remote EWS server.
redactedEwsAvailabilityProvider_ewsUsername :: Lens' RedactedEwsAvailabilityProvider (Maybe Text)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider.RedactedEwsAvailabilityProvider
instance GHC.Show.Show Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider.RedactedEwsAvailabilityProvider
instance GHC.Read.Read Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider.RedactedEwsAvailabilityProvider
instance GHC.Classes.Eq Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider.RedactedEwsAvailabilityProvider
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider.RedactedEwsAvailabilityProvider
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider.RedactedEwsAvailabilityProvider
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.RedactedEwsAvailabilityProvider.RedactedEwsAvailabilityProvider
module Amazonka.WorkMail.Types.AvailabilityConfiguration
-- | List all the AvailabilityConfiguration's for the given
-- WorkMail organization.
--
-- See: newAvailabilityConfiguration smart constructor.
data AvailabilityConfiguration
AvailabilityConfiguration' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe RedactedEwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Maybe AvailabilityProviderType -> AvailabilityConfiguration
-- | The date and time at which the availability configuration was created.
[$sel:dateCreated:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe POSIX
-- | The date and time at which the availability configuration was last
-- modified.
[$sel:dateModified:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe POSIX
-- | Displays the domain to which the provider applies.
[$sel:domainName:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe Text
-- | If ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
[$sel:ewsProvider:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe RedactedEwsAvailabilityProvider
-- | If ProviderType is LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
[$sel:lambdaProvider:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe LambdaAvailabilityProvider
-- | Displays the provider type that applies to this domain.
[$sel:providerType:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe AvailabilityProviderType
-- | Create a value of AvailabilityConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:AvailabilityConfiguration',
-- availabilityConfiguration_dateCreated - The date and time at
-- which the availability configuration was created.
--
-- $sel:dateModified:AvailabilityConfiguration',
-- availabilityConfiguration_dateModified - The date and time at
-- which the availability configuration was last modified.
--
-- $sel:domainName:AvailabilityConfiguration',
-- availabilityConfiguration_domainName - Displays the domain to
-- which the provider applies.
--
-- $sel:ewsProvider:AvailabilityConfiguration',
-- availabilityConfiguration_ewsProvider - If
-- ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
--
-- $sel:lambdaProvider:AvailabilityConfiguration',
-- availabilityConfiguration_lambdaProvider - If ProviderType is
-- LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
--
-- $sel:providerType:AvailabilityConfiguration',
-- availabilityConfiguration_providerType - Displays the provider
-- type that applies to this domain.
newAvailabilityConfiguration :: AvailabilityConfiguration
-- | The date and time at which the availability configuration was created.
availabilityConfiguration_dateCreated :: Lens' AvailabilityConfiguration (Maybe UTCTime)
-- | The date and time at which the availability configuration was last
-- modified.
availabilityConfiguration_dateModified :: Lens' AvailabilityConfiguration (Maybe UTCTime)
-- | Displays the domain to which the provider applies.
availabilityConfiguration_domainName :: Lens' AvailabilityConfiguration (Maybe Text)
-- | If ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
availabilityConfiguration_ewsProvider :: Lens' AvailabilityConfiguration (Maybe RedactedEwsAvailabilityProvider)
-- | If ProviderType is LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
availabilityConfiguration_lambdaProvider :: Lens' AvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | Displays the provider type that applies to this domain.
availabilityConfiguration_providerType :: Lens' AvailabilityConfiguration (Maybe AvailabilityProviderType)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.AvailabilityConfiguration.AvailabilityConfiguration
instance GHC.Show.Show Amazonka.WorkMail.Types.AvailabilityConfiguration.AvailabilityConfiguration
instance GHC.Read.Read Amazonka.WorkMail.Types.AvailabilityConfiguration.AvailabilityConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.Types.AvailabilityConfiguration.AvailabilityConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.AvailabilityConfiguration.AvailabilityConfiguration
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.AvailabilityConfiguration.AvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.AvailabilityConfiguration.AvailabilityConfiguration
module Amazonka.WorkMail.Types.ResourceType
newtype ResourceType
ResourceType' :: Text -> ResourceType
[fromResourceType] :: ResourceType -> Text
pattern ResourceType_EQUIPMENT :: ResourceType
pattern ResourceType_ROOM :: ResourceType
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.ResourceType.ResourceType
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.ResourceType.ResourceType
instance GHC.Generics.Generic Amazonka.WorkMail.Types.ResourceType.ResourceType
instance GHC.Classes.Ord Amazonka.WorkMail.Types.ResourceType.ResourceType
instance GHC.Classes.Eq Amazonka.WorkMail.Types.ResourceType.ResourceType
instance GHC.Read.Read Amazonka.WorkMail.Types.ResourceType.ResourceType
instance GHC.Show.Show Amazonka.WorkMail.Types.ResourceType.ResourceType
module Amazonka.WorkMail.Types.Resource
-- | The representation of a resource.
--
-- See: newResource smart constructor.
data Resource
Resource' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe ResourceType -> Resource
-- | The date indicating when the resource was disabled from WorkMail use.
[$sel:disabledDate:Resource'] :: Resource -> Maybe POSIX
-- | The email of the resource.
[$sel:email:Resource'] :: Resource -> Maybe Text
-- | The date indicating when the resource was enabled for WorkMail use.
[$sel:enabledDate:Resource'] :: Resource -> Maybe POSIX
-- | The identifier of the resource.
[$sel:id:Resource'] :: Resource -> Maybe Text
-- | The name of the resource.
[$sel:name:Resource'] :: Resource -> Maybe Text
-- | The state of the resource, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:Resource'] :: Resource -> Maybe EntityState
-- | The type of the resource: equipment or room.
[$sel:type':Resource'] :: Resource -> Maybe ResourceType
-- | Create a value of Resource with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Resource', resource_disabledDate - The
-- date indicating when the resource was disabled from WorkMail use.
--
-- $sel:email:Resource', resource_email - The email of the
-- resource.
--
-- $sel:enabledDate:Resource', resource_enabledDate - The
-- date indicating when the resource was enabled for WorkMail use.
--
-- $sel:id:Resource', resource_id - The identifier of the
-- resource.
--
-- $sel:name:Resource', resource_name - The name of the
-- resource.
--
-- $sel:state:Resource', resource_state - The state of the
-- resource, which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:type':Resource', resource_type - The type of the
-- resource: equipment or room.
newResource :: Resource
-- | The date indicating when the resource was disabled from WorkMail use.
resource_disabledDate :: Lens' Resource (Maybe UTCTime)
-- | The email of the resource.
resource_email :: Lens' Resource (Maybe Text)
-- | The date indicating when the resource was enabled for WorkMail use.
resource_enabledDate :: Lens' Resource (Maybe UTCTime)
-- | The identifier of the resource.
resource_id :: Lens' Resource (Maybe Text)
-- | The name of the resource.
resource_name :: Lens' Resource (Maybe Text)
-- | The state of the resource, which can be ENABLED, DISABLED, or DELETED.
resource_state :: Lens' Resource (Maybe EntityState)
-- | The type of the resource: equipment or room.
resource_type :: Lens' Resource (Maybe ResourceType)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.Resource.Resource
instance GHC.Show.Show Amazonka.WorkMail.Types.Resource.Resource
instance GHC.Read.Read Amazonka.WorkMail.Types.Resource.Resource
instance GHC.Classes.Eq Amazonka.WorkMail.Types.Resource.Resource
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.Resource.Resource
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.Resource.Resource
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.Resource.Resource
module Amazonka.WorkMail.Types.RetentionAction
newtype RetentionAction
RetentionAction' :: Text -> RetentionAction
[fromRetentionAction] :: RetentionAction -> Text
pattern RetentionAction_DELETE :: RetentionAction
pattern RetentionAction_NONE :: RetentionAction
pattern RetentionAction_PERMANENTLY_DELETE :: RetentionAction
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance GHC.Generics.Generic Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance GHC.Classes.Ord Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance GHC.Classes.Eq Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance GHC.Read.Read Amazonka.WorkMail.Types.RetentionAction.RetentionAction
instance GHC.Show.Show Amazonka.WorkMail.Types.RetentionAction.RetentionAction
module Amazonka.WorkMail.Types.FolderConfiguration
-- | The configuration applied to an organization's folders by its
-- retention policy.
--
-- See: newFolderConfiguration smart constructor.
data FolderConfiguration
FolderConfiguration' :: Maybe Natural -> FolderName -> RetentionAction -> FolderConfiguration
-- | The number of days for which the folder-configuration action applies.
[$sel:period:FolderConfiguration'] :: FolderConfiguration -> Maybe Natural
-- | The folder name.
[$sel:name:FolderConfiguration'] :: FolderConfiguration -> FolderName
-- | The action to take on the folder contents at the end of the folder
-- configuration period.
[$sel:action:FolderConfiguration'] :: FolderConfiguration -> RetentionAction
-- | Create a value of FolderConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:period:FolderConfiguration',
-- folderConfiguration_period - The number of days for which the
-- folder-configuration action applies.
--
-- $sel:name:FolderConfiguration', folderConfiguration_name
-- - The folder name.
--
-- $sel:action:FolderConfiguration',
-- folderConfiguration_action - The action to take on the folder
-- contents at the end of the folder configuration period.
newFolderConfiguration :: FolderName -> RetentionAction -> FolderConfiguration
-- | The number of days for which the folder-configuration action applies.
folderConfiguration_period :: Lens' FolderConfiguration (Maybe Natural)
-- | The folder name.
folderConfiguration_name :: Lens' FolderConfiguration FolderName
-- | The action to take on the folder contents at the end of the folder
-- configuration period.
folderConfiguration_action :: Lens' FolderConfiguration RetentionAction
instance GHC.Generics.Generic Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
instance GHC.Show.Show Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
instance GHC.Read.Read Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.FolderConfiguration.FolderConfiguration
module Amazonka.WorkMail.Types.Tag
-- | Describes a tag applied to a resource.
--
-- See: newTag smart constructor.
data Tag
Tag' :: Text -> Text -> Tag
-- | The key of the tag.
[$sel:key:Tag'] :: Tag -> Text
-- | The value of the tag.
[$sel:value:Tag'] :: Tag -> Text
-- | Create a value of Tag with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:key:Tag', tag_key - The key of the tag.
--
-- $sel:value:Tag', tag_value - The value of the tag.
newTag :: Text -> Text -> Tag
-- | The key of the tag.
tag_key :: Lens' Tag Text
-- | The value of the tag.
tag_value :: Lens' Tag Text
instance GHC.Generics.Generic Amazonka.WorkMail.Types.Tag.Tag
instance GHC.Show.Show Amazonka.WorkMail.Types.Tag.Tag
instance GHC.Read.Read Amazonka.WorkMail.Types.Tag.Tag
instance GHC.Classes.Eq Amazonka.WorkMail.Types.Tag.Tag
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.Tag.Tag
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.Tag.Tag
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.Tag.Tag
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.Tag.Tag
module Amazonka.WorkMail.Types.UserRole
newtype UserRole
UserRole' :: Text -> UserRole
[fromUserRole] :: UserRole -> Text
pattern UserRole_RESOURCE :: UserRole
pattern UserRole_SYSTEM_USER :: UserRole
pattern UserRole_USER :: UserRole
instance Amazonka.Data.XML.ToXML Amazonka.WorkMail.Types.UserRole.UserRole
instance Amazonka.Data.XML.FromXML Amazonka.WorkMail.Types.UserRole.UserRole
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.WorkMail.Types.UserRole.UserRole
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.Types.UserRole.UserRole
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.WorkMail.Types.UserRole.UserRole
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.UserRole.UserRole
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.Types.UserRole.UserRole
instance Amazonka.Data.Headers.ToHeader Amazonka.WorkMail.Types.UserRole.UserRole
instance Amazonka.Data.Log.ToLog Amazonka.WorkMail.Types.UserRole.UserRole
instance Amazonka.Data.ByteString.ToByteString Amazonka.WorkMail.Types.UserRole.UserRole
instance Amazonka.Data.Text.ToText Amazonka.WorkMail.Types.UserRole.UserRole
instance Amazonka.Data.Text.FromText Amazonka.WorkMail.Types.UserRole.UserRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.UserRole.UserRole
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.UserRole.UserRole
instance GHC.Generics.Generic Amazonka.WorkMail.Types.UserRole.UserRole
instance GHC.Classes.Ord Amazonka.WorkMail.Types.UserRole.UserRole
instance GHC.Classes.Eq Amazonka.WorkMail.Types.UserRole.UserRole
instance GHC.Read.Read Amazonka.WorkMail.Types.UserRole.UserRole
instance GHC.Show.Show Amazonka.WorkMail.Types.UserRole.UserRole
module Amazonka.WorkMail.Types.User
-- | The representation of an WorkMail user.
--
-- See: newUser smart constructor.
data User
User' :: Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe UserRole -> User
-- | The date indicating when the user was disabled from WorkMail use.
[$sel:disabledDate:User'] :: User -> Maybe POSIX
-- | The display name of the user.
[$sel:displayName:User'] :: User -> Maybe Text
-- | The email of the user.
[$sel:email:User'] :: User -> Maybe Text
-- | The date indicating when the user was enabled for WorkMail use.
[$sel:enabledDate:User'] :: User -> Maybe POSIX
-- | The identifier of the user.
[$sel:id:User'] :: User -> Maybe Text
-- | The name of the user.
[$sel:name:User'] :: User -> Maybe Text
-- | The state of the user, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:User'] :: User -> Maybe EntityState
-- | The role of the user.
[$sel:userRole:User'] :: User -> Maybe UserRole
-- | Create a value of User with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:User', user_disabledDate - The date
-- indicating when the user was disabled from WorkMail use.
--
-- $sel:displayName:User', user_displayName - The display
-- name of the user.
--
-- $sel:email:User', user_email - The email of the user.
--
-- $sel:enabledDate:User', user_enabledDate - The date
-- indicating when the user was enabled for WorkMail use.
--
-- $sel:id:User', user_id - The identifier of the user.
--
-- $sel:name:User', user_name - The name of the user.
--
-- $sel:state:User', user_state - The state of the user,
-- which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:userRole:User', user_userRole - The role of the
-- user.
newUser :: User
-- | The date indicating when the user was disabled from WorkMail use.
user_disabledDate :: Lens' User (Maybe UTCTime)
-- | The display name of the user.
user_displayName :: Lens' User (Maybe Text)
-- | The email of the user.
user_email :: Lens' User (Maybe Text)
-- | The date indicating when the user was enabled for WorkMail use.
user_enabledDate :: Lens' User (Maybe UTCTime)
-- | The identifier of the user.
user_id :: Lens' User (Maybe Text)
-- | The name of the user.
user_name :: Lens' User (Maybe Text)
-- | The state of the user, which can be ENABLED, DISABLED, or DELETED.
user_state :: Lens' User (Maybe EntityState)
-- | The role of the user.
user_userRole :: Lens' User (Maybe UserRole)
instance GHC.Generics.Generic Amazonka.WorkMail.Types.User.User
instance GHC.Show.Show Amazonka.WorkMail.Types.User.User
instance GHC.Read.Read Amazonka.WorkMail.Types.User.User
instance GHC.Classes.Eq Amazonka.WorkMail.Types.User.User
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.WorkMail.Types.User.User
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.Types.User.User
instance Control.DeepSeq.NFData Amazonka.WorkMail.Types.User.User
module Amazonka.WorkMail.Types
-- | API version 2017-10-01 of the Amazon WorkMail SDK
-- configuration.
defaultService :: Service
-- | The directory is already in use by another WorkMail organization in
-- the same account and Region.
_DirectoryInUseException :: AsError a => Fold a ServiceError
-- | The directory service doesn't recognize the credentials supplied by
-- WorkMail.
_DirectoryServiceAuthenticationFailedException :: AsError a => Fold a ServiceError
-- | The directory is unavailable. It might be located in another Region or
-- deleted.
_DirectoryUnavailableException :: AsError a => Fold a ServiceError
-- | The email address that you're trying to assign is already created for
-- a different user, group, or resource.
_EmailAddressInUseException :: AsError a => Fold a ServiceError
-- | The user, group, or resource that you're trying to register is already
-- registered.
_EntityAlreadyRegisteredException :: AsError a => Fold a ServiceError
-- | The identifier supplied for the user, group, or resource does not
-- exist in your organization.
_EntityNotFoundException :: AsError a => Fold a ServiceError
-- | You are performing an operation on a user, group, or resource that
-- isn't in the expected state, such as trying to delete an active user.
_EntityStateException :: AsError a => Fold a ServiceError
-- | The configuration for a resource isn't valid. A resource must either
-- be able to auto-respond to requests or have at least one delegate
-- associated that can do so on its behalf.
_InvalidConfigurationException :: AsError a => Fold a ServiceError
-- | You SES configuration has customizations that WorkMail cannot save.
-- The error message lists the invalid setting. For examples of invalid
-- settings, refer to CreateReceiptRule.
_InvalidCustomSesConfigurationException :: AsError a => Fold a ServiceError
-- | One or more of the input parameters don't match the service's
-- restrictions.
_InvalidParameterException :: AsError a => Fold a ServiceError
-- | The supplied password doesn't match the minimum security constraints,
-- such as length or use of special characters.
_InvalidPasswordException :: AsError a => Fold a ServiceError
-- | The request exceeds the limit of the resource.
_LimitExceededException :: AsError a => Fold a ServiceError
-- | The domain you're trying to change is in use by another user or
-- organization in your account. See the error message for details.
_MailDomainInUseException :: AsError a => Fold a ServiceError
-- | The domain specified is not found in your organization.
_MailDomainNotFoundException :: AsError a => Fold a ServiceError
-- | After a domain has been added to the organization, it must be
-- verified. The domain is not yet verified.
_MailDomainStateException :: AsError a => Fold a ServiceError
-- | The user, group, or resource name isn't unique in WorkMail.
_NameAvailabilityException :: AsError a => Fold a ServiceError
-- | An operation received a valid organization identifier that either
-- doesn't belong or exist in the system.
_OrganizationNotFoundException :: AsError a => Fold a ServiceError
-- | The organization must have a valid state to perform certain operations
-- on the organization or its members.
_OrganizationStateException :: AsError a => Fold a ServiceError
-- | This user, group, or resource name is not allowed in WorkMail.
_ReservedNameException :: AsError a => Fold a ServiceError
-- | The resource cannot be found.
_ResourceNotFoundException :: AsError a => Fold a ServiceError
-- | The resource can have up to 50 user-applied tags.
_TooManyTagsException :: AsError a => Fold a ServiceError
-- | You can't perform a write operation against a read-only directory.
_UnsupportedOperationException :: AsError a => Fold a ServiceError
newtype AccessControlRuleEffect
AccessControlRuleEffect' :: Text -> AccessControlRuleEffect
[fromAccessControlRuleEffect] :: AccessControlRuleEffect -> Text
pattern AccessControlRuleEffect_ALLOW :: AccessControlRuleEffect
pattern AccessControlRuleEffect_DENY :: AccessControlRuleEffect
newtype AccessEffect
AccessEffect' :: Text -> AccessEffect
[fromAccessEffect] :: AccessEffect -> Text
pattern AccessEffect_ALLOW :: AccessEffect
pattern AccessEffect_DENY :: AccessEffect
newtype AvailabilityProviderType
AvailabilityProviderType' :: Text -> AvailabilityProviderType
[fromAvailabilityProviderType] :: AvailabilityProviderType -> Text
pattern AvailabilityProviderType_EWS :: AvailabilityProviderType
pattern AvailabilityProviderType_LAMBDA :: AvailabilityProviderType
newtype DnsRecordVerificationStatus
DnsRecordVerificationStatus' :: Text -> DnsRecordVerificationStatus
[fromDnsRecordVerificationStatus] :: DnsRecordVerificationStatus -> Text
pattern DnsRecordVerificationStatus_FAILED :: DnsRecordVerificationStatus
pattern DnsRecordVerificationStatus_PENDING :: DnsRecordVerificationStatus
pattern DnsRecordVerificationStatus_VERIFIED :: DnsRecordVerificationStatus
newtype EntityState
EntityState' :: Text -> EntityState
[fromEntityState] :: EntityState -> Text
pattern EntityState_DELETED :: EntityState
pattern EntityState_DISABLED :: EntityState
pattern EntityState_ENABLED :: EntityState
newtype FolderName
FolderName' :: Text -> FolderName
[fromFolderName] :: FolderName -> Text
pattern FolderName_DELETED_ITEMS :: FolderName
pattern FolderName_DRAFTS :: FolderName
pattern FolderName_INBOX :: FolderName
pattern FolderName_JUNK_EMAIL :: FolderName
pattern FolderName_SENT_ITEMS :: FolderName
newtype ImpersonationRoleType
ImpersonationRoleType' :: Text -> ImpersonationRoleType
[fromImpersonationRoleType] :: ImpersonationRoleType -> Text
pattern ImpersonationRoleType_FULL_ACCESS :: ImpersonationRoleType
pattern ImpersonationRoleType_READ_ONLY :: ImpersonationRoleType
newtype MailboxExportJobState
MailboxExportJobState' :: Text -> MailboxExportJobState
[fromMailboxExportJobState] :: MailboxExportJobState -> Text
pattern MailboxExportJobState_CANCELLED :: MailboxExportJobState
pattern MailboxExportJobState_COMPLETED :: MailboxExportJobState
pattern MailboxExportJobState_FAILED :: MailboxExportJobState
pattern MailboxExportJobState_RUNNING :: MailboxExportJobState
newtype MemberType
MemberType' :: Text -> MemberType
[fromMemberType] :: MemberType -> Text
pattern MemberType_GROUP :: MemberType
pattern MemberType_USER :: MemberType
newtype MobileDeviceAccessRuleEffect
MobileDeviceAccessRuleEffect' :: Text -> MobileDeviceAccessRuleEffect
[fromMobileDeviceAccessRuleEffect] :: MobileDeviceAccessRuleEffect -> Text
pattern MobileDeviceAccessRuleEffect_ALLOW :: MobileDeviceAccessRuleEffect
pattern MobileDeviceAccessRuleEffect_DENY :: MobileDeviceAccessRuleEffect
newtype PermissionType
PermissionType' :: Text -> PermissionType
[fromPermissionType] :: PermissionType -> Text
pattern PermissionType_FULL_ACCESS :: PermissionType
pattern PermissionType_SEND_AS :: PermissionType
pattern PermissionType_SEND_ON_BEHALF :: PermissionType
newtype ResourceType
ResourceType' :: Text -> ResourceType
[fromResourceType] :: ResourceType -> Text
pattern ResourceType_EQUIPMENT :: ResourceType
pattern ResourceType_ROOM :: ResourceType
newtype RetentionAction
RetentionAction' :: Text -> RetentionAction
[fromRetentionAction] :: RetentionAction -> Text
pattern RetentionAction_DELETE :: RetentionAction
pattern RetentionAction_NONE :: RetentionAction
pattern RetentionAction_PERMANENTLY_DELETE :: RetentionAction
newtype UserRole
UserRole' :: Text -> UserRole
[fromUserRole] :: UserRole -> Text
pattern UserRole_RESOURCE :: UserRole
pattern UserRole_SYSTEM_USER :: UserRole
pattern UserRole_USER :: UserRole
-- | A rule that controls access to an WorkMail organization.
--
-- See: newAccessControlRule smart constructor.
data AccessControlRule
AccessControlRule' :: Maybe [Text] -> Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe AccessControlRuleEffect -> Maybe [Text] -> Maybe [Text] -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> AccessControlRule
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
[$sel:actions:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | The date that the rule was created.
[$sel:dateCreated:AccessControlRule'] :: AccessControlRule -> Maybe POSIX
-- | The date that the rule was modified.
[$sel:dateModified:AccessControlRule'] :: AccessControlRule -> Maybe POSIX
-- | The rule description.
[$sel:description:AccessControlRule'] :: AccessControlRule -> Maybe Text
-- | The rule effect.
[$sel:effect:AccessControlRule'] :: AccessControlRule -> Maybe AccessControlRuleEffect
-- | Impersonation role IDs to include in the rule.
[$sel:impersonationRoleIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | IPv4 CIDR ranges to include in the rule.
[$sel:ipRanges:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | The rule name.
[$sel:name:AccessControlRule'] :: AccessControlRule -> Maybe Text
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
[$sel:notActions:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | Impersonation role IDs to exclude from the rule.
[$sel:notImpersonationRoleIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | IPv4 CIDR ranges to exclude from the rule.
[$sel:notIpRanges:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | User IDs to exclude from the rule.
[$sel:notUserIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | User IDs to include in the rule.
[$sel:userIds:AccessControlRule'] :: AccessControlRule -> Maybe [Text]
-- | Create a value of AccessControlRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:actions:AccessControlRule',
-- accessControlRule_actions - Access protocol actions to include
-- in the rule. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
--
-- $sel:dateCreated:AccessControlRule',
-- accessControlRule_dateCreated - The date that the rule was
-- created.
--
-- $sel:dateModified:AccessControlRule',
-- accessControlRule_dateModified - The date that the rule was
-- modified.
--
-- $sel:description:AccessControlRule',
-- accessControlRule_description - The rule description.
--
-- $sel:effect:AccessControlRule', accessControlRule_effect
-- - The rule effect.
--
-- $sel:impersonationRoleIds:AccessControlRule',
-- accessControlRule_impersonationRoleIds - Impersonation role IDs
-- to include in the rule.
--
-- $sel:ipRanges:AccessControlRule',
-- accessControlRule_ipRanges - IPv4 CIDR ranges to include in the
-- rule.
--
-- $sel:name:AccessControlRule', accessControlRule_name -
-- The rule name.
--
-- $sel:notActions:AccessControlRule',
-- accessControlRule_notActions - Access protocol actions to
-- exclude from the rule. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
--
-- $sel:notImpersonationRoleIds:AccessControlRule',
-- accessControlRule_notImpersonationRoleIds - Impersonation role
-- IDs to exclude from the rule.
--
-- $sel:notIpRanges:AccessControlRule',
-- accessControlRule_notIpRanges - IPv4 CIDR ranges to exclude
-- from the rule.
--
-- $sel:notUserIds:AccessControlRule',
-- accessControlRule_notUserIds - User IDs to exclude from the
-- rule.
--
-- $sel:userIds:AccessControlRule',
-- accessControlRule_userIds - User IDs to include in the rule.
newAccessControlRule :: AccessControlRule
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
accessControlRule_actions :: Lens' AccessControlRule (Maybe [Text])
-- | The date that the rule was created.
accessControlRule_dateCreated :: Lens' AccessControlRule (Maybe UTCTime)
-- | The date that the rule was modified.
accessControlRule_dateModified :: Lens' AccessControlRule (Maybe UTCTime)
-- | The rule description.
accessControlRule_description :: Lens' AccessControlRule (Maybe Text)
-- | The rule effect.
accessControlRule_effect :: Lens' AccessControlRule (Maybe AccessControlRuleEffect)
-- | Impersonation role IDs to include in the rule.
accessControlRule_impersonationRoleIds :: Lens' AccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to include in the rule.
accessControlRule_ipRanges :: Lens' AccessControlRule (Maybe [Text])
-- | The rule name.
accessControlRule_name :: Lens' AccessControlRule (Maybe Text)
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
accessControlRule_notActions :: Lens' AccessControlRule (Maybe [Text])
-- | Impersonation role IDs to exclude from the rule.
accessControlRule_notImpersonationRoleIds :: Lens' AccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to exclude from the rule.
accessControlRule_notIpRanges :: Lens' AccessControlRule (Maybe [Text])
-- | User IDs to exclude from the rule.
accessControlRule_notUserIds :: Lens' AccessControlRule (Maybe [Text])
-- | User IDs to include in the rule.
accessControlRule_userIds :: Lens' AccessControlRule (Maybe [Text])
-- | List all the AvailabilityConfiguration's for the given
-- WorkMail organization.
--
-- See: newAvailabilityConfiguration smart constructor.
data AvailabilityConfiguration
AvailabilityConfiguration' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe RedactedEwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Maybe AvailabilityProviderType -> AvailabilityConfiguration
-- | The date and time at which the availability configuration was created.
[$sel:dateCreated:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe POSIX
-- | The date and time at which the availability configuration was last
-- modified.
[$sel:dateModified:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe POSIX
-- | Displays the domain to which the provider applies.
[$sel:domainName:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe Text
-- | If ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
[$sel:ewsProvider:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe RedactedEwsAvailabilityProvider
-- | If ProviderType is LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
[$sel:lambdaProvider:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe LambdaAvailabilityProvider
-- | Displays the provider type that applies to this domain.
[$sel:providerType:AvailabilityConfiguration'] :: AvailabilityConfiguration -> Maybe AvailabilityProviderType
-- | Create a value of AvailabilityConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:AvailabilityConfiguration',
-- availabilityConfiguration_dateCreated - The date and time at
-- which the availability configuration was created.
--
-- $sel:dateModified:AvailabilityConfiguration',
-- availabilityConfiguration_dateModified - The date and time at
-- which the availability configuration was last modified.
--
-- $sel:domainName:AvailabilityConfiguration',
-- availabilityConfiguration_domainName - Displays the domain to
-- which the provider applies.
--
-- $sel:ewsProvider:AvailabilityConfiguration',
-- availabilityConfiguration_ewsProvider - If
-- ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
--
-- $sel:lambdaProvider:AvailabilityConfiguration',
-- availabilityConfiguration_lambdaProvider - If ProviderType is
-- LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
--
-- $sel:providerType:AvailabilityConfiguration',
-- availabilityConfiguration_providerType - Displays the provider
-- type that applies to this domain.
newAvailabilityConfiguration :: AvailabilityConfiguration
-- | The date and time at which the availability configuration was created.
availabilityConfiguration_dateCreated :: Lens' AvailabilityConfiguration (Maybe UTCTime)
-- | The date and time at which the availability configuration was last
-- modified.
availabilityConfiguration_dateModified :: Lens' AvailabilityConfiguration (Maybe UTCTime)
-- | Displays the domain to which the provider applies.
availabilityConfiguration_domainName :: Lens' AvailabilityConfiguration (Maybe Text)
-- | If ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
availabilityConfiguration_ewsProvider :: Lens' AvailabilityConfiguration (Maybe RedactedEwsAvailabilityProvider)
-- | If ProviderType is LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
availabilityConfiguration_lambdaProvider :: Lens' AvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | Displays the provider type that applies to this domain.
availabilityConfiguration_providerType :: Lens' AvailabilityConfiguration (Maybe AvailabilityProviderType)
-- | At least one delegate must be associated to the resource to disable
-- automatic replies from the resource.
--
-- See: newBookingOptions smart constructor.
data BookingOptions
BookingOptions' :: Maybe Bool -> Maybe Bool -> Maybe Bool -> BookingOptions
-- | The resource's ability to automatically reply to requests. If
-- disabled, delegates must be associated to the resource.
[$sel:autoAcceptRequests:BookingOptions'] :: BookingOptions -> Maybe Bool
-- | The resource's ability to automatically decline any conflicting
-- requests.
[$sel:autoDeclineConflictingRequests:BookingOptions'] :: BookingOptions -> Maybe Bool
-- | The resource's ability to automatically decline any recurring
-- requests.
[$sel:autoDeclineRecurringRequests:BookingOptions'] :: BookingOptions -> Maybe Bool
-- | Create a value of BookingOptions with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:autoAcceptRequests:BookingOptions',
-- bookingOptions_autoAcceptRequests - The resource's ability to
-- automatically reply to requests. If disabled, delegates must be
-- associated to the resource.
--
-- $sel:autoDeclineConflictingRequests:BookingOptions',
-- bookingOptions_autoDeclineConflictingRequests - The resource's
-- ability to automatically decline any conflicting requests.
--
-- $sel:autoDeclineRecurringRequests:BookingOptions',
-- bookingOptions_autoDeclineRecurringRequests - The resource's
-- ability to automatically decline any recurring requests.
newBookingOptions :: BookingOptions
-- | The resource's ability to automatically reply to requests. If
-- disabled, delegates must be associated to the resource.
bookingOptions_autoAcceptRequests :: Lens' BookingOptions (Maybe Bool)
-- | The resource's ability to automatically decline any conflicting
-- requests.
bookingOptions_autoDeclineConflictingRequests :: Lens' BookingOptions (Maybe Bool)
-- | The resource's ability to automatically decline any recurring
-- requests.
bookingOptions_autoDeclineRecurringRequests :: Lens' BookingOptions (Maybe Bool)
-- | The name of the attribute, which is one of the values defined in the
-- UserAttribute enumeration.
--
-- See: newDelegate smart constructor.
data Delegate
Delegate' :: Text -> MemberType -> Delegate
-- | The identifier for the user or group associated as the resource's
-- delegate.
[$sel:id:Delegate'] :: Delegate -> Text
-- | The type of the delegate: user or group.
[$sel:type':Delegate'] :: Delegate -> MemberType
-- | Create a value of Delegate with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:id:Delegate', delegate_id - The identifier for the
-- user or group associated as the resource's delegate.
--
-- $sel:type':Delegate', delegate_type - The type of the
-- delegate: user or group.
newDelegate :: Text -> MemberType -> Delegate
-- | The identifier for the user or group associated as the resource's
-- delegate.
delegate_id :: Lens' Delegate Text
-- | The type of the delegate: user or group.
delegate_type :: Lens' Delegate MemberType
-- | A DNS record uploaded to your DNS provider.
--
-- See: newDnsRecord smart constructor.
data DnsRecord
DnsRecord' :: Maybe Text -> Maybe Text -> Maybe Text -> DnsRecord
-- | The DNS hostname.- For example, domain.example.com.
[$sel:hostname:DnsRecord'] :: DnsRecord -> Maybe Text
-- | The RFC 1035 record type. Possible values: CNAME, A,
-- MX.
[$sel:type':DnsRecord'] :: DnsRecord -> Maybe Text
-- | The value returned by the DNS for a query to that hostname and record
-- type.
[$sel:value:DnsRecord'] :: DnsRecord -> Maybe Text
-- | Create a value of DnsRecord with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:hostname:DnsRecord', dnsRecord_hostname - The DNS
-- hostname.- For example, domain.example.com.
--
-- $sel:type':DnsRecord', dnsRecord_type - The RFC 1035
-- record type. Possible values: CNAME, A, MX.
--
-- $sel:value:DnsRecord', dnsRecord_value - The value
-- returned by the DNS for a query to that hostname and record type.
newDnsRecord :: DnsRecord
-- | The DNS hostname.- For example, domain.example.com.
dnsRecord_hostname :: Lens' DnsRecord (Maybe Text)
-- | The RFC 1035 record type. Possible values: CNAME, A,
-- MX.
dnsRecord_type :: Lens' DnsRecord (Maybe Text)
-- | The value returned by the DNS for a query to that hostname and record
-- type.
dnsRecord_value :: Lens' DnsRecord (Maybe Text)
-- | The domain to associate with an WorkMail organization.
--
-- When you configure a domain hosted in Amazon Route 53 (Route 53), all
-- recommended DNS records are added to the organization when you create
-- it. For more information, see Adding a domain in the
-- WorkMail Administrator Guide.
--
-- See: newDomain smart constructor.
data Domain
Domain' :: Maybe Text -> Maybe Text -> Domain
-- | The fully qualified domain name.
[$sel:domainName:Domain'] :: Domain -> Maybe Text
-- | The hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
[$sel:hostedZoneId:Domain'] :: Domain -> Maybe Text
-- | Create a value of Domain with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:domainName:Domain', domain_domainName - The fully
-- qualified domain name.
--
-- $sel:hostedZoneId:Domain', domain_hostedZoneId - The
-- hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
newDomain :: Domain
-- | The fully qualified domain name.
domain_domainName :: Lens' Domain (Maybe Text)
-- | The hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
domain_hostedZoneId :: Lens' Domain (Maybe Text)
-- | Describes an EWS based availability provider. This is only used as
-- input to the service.
--
-- See: newEwsAvailabilityProvider smart constructor.
data EwsAvailabilityProvider
EwsAvailabilityProvider' :: Text -> Text -> Sensitive Text -> EwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
[$sel:ewsEndpoint:EwsAvailabilityProvider'] :: EwsAvailabilityProvider -> Text
-- | The username used to authenticate the remote EWS server.
[$sel:ewsUsername:EwsAvailabilityProvider'] :: EwsAvailabilityProvider -> Text
-- | The password used to authenticate the remote EWS server.
[$sel:ewsPassword:EwsAvailabilityProvider'] :: EwsAvailabilityProvider -> Sensitive Text
-- | Create a value of EwsAvailabilityProvider with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:ewsEndpoint:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsEndpoint - The endpoint of the
-- remote EWS server.
--
-- $sel:ewsUsername:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsUsername - The username used to
-- authenticate the remote EWS server.
--
-- $sel:ewsPassword:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsPassword - The password used to
-- authenticate the remote EWS server.
newEwsAvailabilityProvider :: Text -> Text -> Text -> EwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
ewsAvailabilityProvider_ewsEndpoint :: Lens' EwsAvailabilityProvider Text
-- | The username used to authenticate the remote EWS server.
ewsAvailabilityProvider_ewsUsername :: Lens' EwsAvailabilityProvider Text
-- | The password used to authenticate the remote EWS server.
ewsAvailabilityProvider_ewsPassword :: Lens' EwsAvailabilityProvider Text
-- | The configuration applied to an organization's folders by its
-- retention policy.
--
-- See: newFolderConfiguration smart constructor.
data FolderConfiguration
FolderConfiguration' :: Maybe Natural -> FolderName -> RetentionAction -> FolderConfiguration
-- | The number of days for which the folder-configuration action applies.
[$sel:period:FolderConfiguration'] :: FolderConfiguration -> Maybe Natural
-- | The folder name.
[$sel:name:FolderConfiguration'] :: FolderConfiguration -> FolderName
-- | The action to take on the folder contents at the end of the folder
-- configuration period.
[$sel:action:FolderConfiguration'] :: FolderConfiguration -> RetentionAction
-- | Create a value of FolderConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:period:FolderConfiguration',
-- folderConfiguration_period - The number of days for which the
-- folder-configuration action applies.
--
-- $sel:name:FolderConfiguration', folderConfiguration_name
-- - The folder name.
--
-- $sel:action:FolderConfiguration',
-- folderConfiguration_action - The action to take on the folder
-- contents at the end of the folder configuration period.
newFolderConfiguration :: FolderName -> RetentionAction -> FolderConfiguration
-- | The number of days for which the folder-configuration action applies.
folderConfiguration_period :: Lens' FolderConfiguration (Maybe Natural)
-- | The folder name.
folderConfiguration_name :: Lens' FolderConfiguration FolderName
-- | The action to take on the folder contents at the end of the folder
-- configuration period.
folderConfiguration_action :: Lens' FolderConfiguration RetentionAction
-- | The representation of an WorkMail group.
--
-- See: newGroup smart constructor.
data Group
Group' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Group
-- | The date indicating when the group was disabled from WorkMail use.
[$sel:disabledDate:Group'] :: Group -> Maybe POSIX
-- | The email of the group.
[$sel:email:Group'] :: Group -> Maybe Text
-- | The date indicating when the group was enabled for WorkMail use.
[$sel:enabledDate:Group'] :: Group -> Maybe POSIX
-- | The identifier of the group.
[$sel:id:Group'] :: Group -> Maybe Text
-- | The name of the group.
[$sel:name:Group'] :: Group -> Maybe Text
-- | The state of the group, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:Group'] :: Group -> Maybe EntityState
-- | Create a value of Group with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Group', group_disabledDate - The date
-- indicating when the group was disabled from WorkMail use.
--
-- $sel:email:Group', group_email - The email of the group.
--
-- $sel:enabledDate:Group', group_enabledDate - The date
-- indicating when the group was enabled for WorkMail use.
--
-- $sel:id:Group', group_id - The identifier of the group.
--
-- $sel:name:Group', group_name - The name of the group.
--
-- $sel:state:Group', group_state - The state of the group,
-- which can be ENABLED, DISABLED, or DELETED.
newGroup :: Group
-- | The date indicating when the group was disabled from WorkMail use.
group_disabledDate :: Lens' Group (Maybe UTCTime)
-- | The email of the group.
group_email :: Lens' Group (Maybe Text)
-- | The date indicating when the group was enabled for WorkMail use.
group_enabledDate :: Lens' Group (Maybe UTCTime)
-- | The identifier of the group.
group_id :: Lens' Group (Maybe Text)
-- | The name of the group.
group_name :: Lens' Group (Maybe Text)
-- | The state of the group, which can be ENABLED, DISABLED, or DELETED.
group_state :: Lens' Group (Maybe EntityState)
-- | The impersonation rule that matched the input.
--
-- See: newImpersonationMatchedRule smart constructor.
data ImpersonationMatchedRule
ImpersonationMatchedRule' :: Maybe Text -> Maybe Text -> ImpersonationMatchedRule
-- | The ID of the rule that matched the input
[$sel:impersonationRuleId:ImpersonationMatchedRule'] :: ImpersonationMatchedRule -> Maybe Text
-- | The name of the rule that matched the input.
[$sel:name:ImpersonationMatchedRule'] :: ImpersonationMatchedRule -> Maybe Text
-- | Create a value of ImpersonationMatchedRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:impersonationRuleId:ImpersonationMatchedRule',
-- impersonationMatchedRule_impersonationRuleId - The ID of the
-- rule that matched the input
--
-- $sel:name:ImpersonationMatchedRule',
-- impersonationMatchedRule_name - The name of the rule that
-- matched the input.
newImpersonationMatchedRule :: ImpersonationMatchedRule
-- | The ID of the rule that matched the input
impersonationMatchedRule_impersonationRuleId :: Lens' ImpersonationMatchedRule (Maybe Text)
-- | The name of the rule that matched the input.
impersonationMatchedRule_name :: Lens' ImpersonationMatchedRule (Maybe Text)
-- | An impersonation role for the given WorkMail organization.
--
-- See: newImpersonationRole smart constructor.
data ImpersonationRole
ImpersonationRole' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe ImpersonationRoleType -> ImpersonationRole
-- | The date when the impersonation role was created.
[$sel:dateCreated:ImpersonationRole'] :: ImpersonationRole -> Maybe POSIX
-- | The date when the impersonation role was last modified.
[$sel:dateModified:ImpersonationRole'] :: ImpersonationRole -> Maybe POSIX
-- | The identifier of the impersonation role.
[$sel:impersonationRoleId:ImpersonationRole'] :: ImpersonationRole -> Maybe Text
-- | The impersonation role name.
[$sel:name:ImpersonationRole'] :: ImpersonationRole -> Maybe Text
-- | The impersonation role type.
[$sel:type':ImpersonationRole'] :: ImpersonationRole -> Maybe ImpersonationRoleType
-- | Create a value of ImpersonationRole with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:ImpersonationRole',
-- impersonationRole_dateCreated - The date when the impersonation
-- role was created.
--
-- $sel:dateModified:ImpersonationRole',
-- impersonationRole_dateModified - The date when the
-- impersonation role was last modified.
--
-- $sel:impersonationRoleId:ImpersonationRole',
-- impersonationRole_impersonationRoleId - The identifier of the
-- impersonation role.
--
-- $sel:name:ImpersonationRole', impersonationRole_name -
-- The impersonation role name.
--
-- $sel:type':ImpersonationRole', impersonationRole_type -
-- The impersonation role type.
newImpersonationRole :: ImpersonationRole
-- | The date when the impersonation role was created.
impersonationRole_dateCreated :: Lens' ImpersonationRole (Maybe UTCTime)
-- | The date when the impersonation role was last modified.
impersonationRole_dateModified :: Lens' ImpersonationRole (Maybe UTCTime)
-- | The identifier of the impersonation role.
impersonationRole_impersonationRoleId :: Lens' ImpersonationRole (Maybe Text)
-- | The impersonation role name.
impersonationRole_name :: Lens' ImpersonationRole (Maybe Text)
-- | The impersonation role type.
impersonationRole_type :: Lens' ImpersonationRole (Maybe ImpersonationRoleType)
-- | The rules for the given impersonation role.
--
-- See: newImpersonationRule smart constructor.
data ImpersonationRule
ImpersonationRule' :: Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> AccessEffect -> ImpersonationRule
-- | The rule description.
[$sel:description:ImpersonationRule'] :: ImpersonationRule -> Maybe Text
-- | The rule name.
[$sel:name:ImpersonationRule'] :: ImpersonationRule -> Maybe Text
-- | A list of user IDs that don't match the rule.
[$sel:notTargetUsers:ImpersonationRule'] :: ImpersonationRule -> Maybe (NonEmpty Text)
-- | A list of user IDs that match the rule.
[$sel:targetUsers:ImpersonationRule'] :: ImpersonationRule -> Maybe (NonEmpty Text)
-- | The identifier of the rule.
[$sel:impersonationRuleId:ImpersonationRule'] :: ImpersonationRule -> Text
-- | The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
[$sel:effect:ImpersonationRule'] :: ImpersonationRule -> AccessEffect
-- | Create a value of ImpersonationRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:description:ImpersonationRule',
-- impersonationRule_description - The rule description.
--
-- $sel:name:ImpersonationRule', impersonationRule_name -
-- The rule name.
--
-- $sel:notTargetUsers:ImpersonationRule',
-- impersonationRule_notTargetUsers - A list of user IDs that
-- don't match the rule.
--
-- $sel:targetUsers:ImpersonationRule',
-- impersonationRule_targetUsers - A list of user IDs that match
-- the rule.
--
-- $sel:impersonationRuleId:ImpersonationRule',
-- impersonationRule_impersonationRuleId - The identifier of the
-- rule.
--
-- $sel:effect:ImpersonationRule', impersonationRule_effect
-- - The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
newImpersonationRule :: Text -> AccessEffect -> ImpersonationRule
-- | The rule description.
impersonationRule_description :: Lens' ImpersonationRule (Maybe Text)
-- | The rule name.
impersonationRule_name :: Lens' ImpersonationRule (Maybe Text)
-- | A list of user IDs that don't match the rule.
impersonationRule_notTargetUsers :: Lens' ImpersonationRule (Maybe (NonEmpty Text))
-- | A list of user IDs that match the rule.
impersonationRule_targetUsers :: Lens' ImpersonationRule (Maybe (NonEmpty Text))
-- | The identifier of the rule.
impersonationRule_impersonationRuleId :: Lens' ImpersonationRule Text
-- | The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
impersonationRule_effect :: Lens' ImpersonationRule AccessEffect
-- | Describes a Lambda based availability provider.
--
-- See: newLambdaAvailabilityProvider smart constructor.
data LambdaAvailabilityProvider
LambdaAvailabilityProvider' :: Text -> LambdaAvailabilityProvider
-- | The Amazon Resource Name (ARN) of the Lambda that acts as the
-- availability provider.
[$sel:lambdaArn:LambdaAvailabilityProvider'] :: LambdaAvailabilityProvider -> Text
-- | Create a value of LambdaAvailabilityProvider with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lambdaArn:LambdaAvailabilityProvider',
-- lambdaAvailabilityProvider_lambdaArn - The Amazon Resource Name
-- (ARN) of the Lambda that acts as the availability provider.
newLambdaAvailabilityProvider :: Text -> LambdaAvailabilityProvider
-- | The Amazon Resource Name (ARN) of the Lambda that acts as the
-- availability provider.
lambdaAvailabilityProvider_lambdaArn :: Lens' LambdaAvailabilityProvider Text
-- | The data for a given domain.
--
-- See: newMailDomainSummary smart constructor.
data MailDomainSummary
MailDomainSummary' :: Maybe Bool -> Maybe Text -> MailDomainSummary
-- | Whether the domain is default or not.
[$sel:defaultDomain:MailDomainSummary'] :: MailDomainSummary -> Maybe Bool
-- | The domain name.
[$sel:domainName:MailDomainSummary'] :: MailDomainSummary -> Maybe Text
-- | Create a value of MailDomainSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:defaultDomain:MailDomainSummary',
-- mailDomainSummary_defaultDomain - Whether the domain is default
-- or not.
--
-- $sel:domainName:MailDomainSummary',
-- mailDomainSummary_domainName - The domain name.
newMailDomainSummary :: MailDomainSummary
-- | Whether the domain is default or not.
mailDomainSummary_defaultDomain :: Lens' MailDomainSummary (Maybe Bool)
-- | The domain name.
mailDomainSummary_domainName :: Lens' MailDomainSummary (Maybe Text)
-- | The details of a mailbox export job, including the user or resource ID
-- associated with the mailbox and the S3 bucket that the mailbox
-- contents are exported to.
--
-- See: newMailboxExportJob smart constructor.
data MailboxExportJob
MailboxExportJob' :: Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe MailboxExportJobState -> MailboxExportJob
-- | The mailbox export job description.
[$sel:description:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The mailbox export job end timestamp.
[$sel:endTime:MailboxExportJob'] :: MailboxExportJob -> Maybe POSIX
-- | The identifier of the user or resource associated with the mailbox.
[$sel:entityId:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The estimated progress of the mailbox export job, in percentage
-- points.
[$sel:estimatedProgress:MailboxExportJob'] :: MailboxExportJob -> Maybe Natural
-- | The identifier of the mailbox export job.
[$sel:jobId:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The name of the S3 bucket.
[$sel:s3BucketName:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The path to the S3 bucket and file that the mailbox export job exports
-- to.
[$sel:s3Path:MailboxExportJob'] :: MailboxExportJob -> Maybe Text
-- | The mailbox export job start timestamp.
[$sel:startTime:MailboxExportJob'] :: MailboxExportJob -> Maybe POSIX
-- | The state of the mailbox export job.
[$sel:state:MailboxExportJob'] :: MailboxExportJob -> Maybe MailboxExportJobState
-- | Create a value of MailboxExportJob with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:description:MailboxExportJob',
-- mailboxExportJob_description - The mailbox export job
-- description.
--
-- $sel:endTime:MailboxExportJob', mailboxExportJob_endTime
-- - The mailbox export job end timestamp.
--
-- $sel:entityId:MailboxExportJob',
-- mailboxExportJob_entityId - The identifier of the user or
-- resource associated with the mailbox.
--
-- $sel:estimatedProgress:MailboxExportJob',
-- mailboxExportJob_estimatedProgress - The estimated progress of
-- the mailbox export job, in percentage points.
--
-- $sel:jobId:MailboxExportJob', mailboxExportJob_jobId -
-- The identifier of the mailbox export job.
--
-- $sel:s3BucketName:MailboxExportJob',
-- mailboxExportJob_s3BucketName - The name of the S3 bucket.
--
-- $sel:s3Path:MailboxExportJob', mailboxExportJob_s3Path -
-- The path to the S3 bucket and file that the mailbox export job exports
-- to.
--
-- $sel:startTime:MailboxExportJob',
-- mailboxExportJob_startTime - The mailbox export job start
-- timestamp.
--
-- $sel:state:MailboxExportJob', mailboxExportJob_state -
-- The state of the mailbox export job.
newMailboxExportJob :: MailboxExportJob
-- | The mailbox export job description.
mailboxExportJob_description :: Lens' MailboxExportJob (Maybe Text)
-- | The mailbox export job end timestamp.
mailboxExportJob_endTime :: Lens' MailboxExportJob (Maybe UTCTime)
-- | The identifier of the user or resource associated with the mailbox.
mailboxExportJob_entityId :: Lens' MailboxExportJob (Maybe Text)
-- | The estimated progress of the mailbox export job, in percentage
-- points.
mailboxExportJob_estimatedProgress :: Lens' MailboxExportJob (Maybe Natural)
-- | The identifier of the mailbox export job.
mailboxExportJob_jobId :: Lens' MailboxExportJob (Maybe Text)
-- | The name of the S3 bucket.
mailboxExportJob_s3BucketName :: Lens' MailboxExportJob (Maybe Text)
-- | The path to the S3 bucket and file that the mailbox export job exports
-- to.
mailboxExportJob_s3Path :: Lens' MailboxExportJob (Maybe Text)
-- | The mailbox export job start timestamp.
mailboxExportJob_startTime :: Lens' MailboxExportJob (Maybe UTCTime)
-- | The state of the mailbox export job.
mailboxExportJob_state :: Lens' MailboxExportJob (Maybe MailboxExportJobState)
-- | The representation of a user or group.
--
-- See: newMember smart constructor.
data Member
Member' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe MemberType -> Member
-- | The date indicating when the member was disabled from WorkMail use.
[$sel:disabledDate:Member'] :: Member -> Maybe POSIX
-- | The date indicating when the member was enabled for WorkMail use.
[$sel:enabledDate:Member'] :: Member -> Maybe POSIX
-- | The identifier of the member.
[$sel:id:Member'] :: Member -> Maybe Text
-- | The name of the member.
[$sel:name:Member'] :: Member -> Maybe Text
-- | The state of the member, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:Member'] :: Member -> Maybe EntityState
-- | A member can be a user or group.
[$sel:type':Member'] :: Member -> Maybe MemberType
-- | Create a value of Member with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Member', member_disabledDate - The
-- date indicating when the member was disabled from WorkMail use.
--
-- $sel:enabledDate:Member', member_enabledDate - The date
-- indicating when the member was enabled for WorkMail use.
--
-- $sel:id:Member', member_id - The identifier of the
-- member.
--
-- $sel:name:Member', member_name - The name of the member.
--
-- $sel:state:Member', member_state - The state of the
-- member, which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:type':Member', member_type - A member can be a user
-- or group.
newMember :: Member
-- | The date indicating when the member was disabled from WorkMail use.
member_disabledDate :: Lens' Member (Maybe UTCTime)
-- | The date indicating when the member was enabled for WorkMail use.
member_enabledDate :: Lens' Member (Maybe UTCTime)
-- | The identifier of the member.
member_id :: Lens' Member (Maybe Text)
-- | The name of the member.
member_name :: Lens' Member (Maybe Text)
-- | The state of the member, which can be ENABLED, DISABLED, or DELETED.
member_state :: Lens' Member (Maybe EntityState)
-- | A member can be a user or group.
member_type :: Lens' Member (Maybe MemberType)
-- | The rule that a simulated user matches.
--
-- See: newMobileDeviceAccessMatchedRule smart constructor.
data MobileDeviceAccessMatchedRule
MobileDeviceAccessMatchedRule' :: Maybe Text -> Maybe Text -> MobileDeviceAccessMatchedRule
-- | Identifier of the rule that a simulated user matches.
[$sel:mobileDeviceAccessRuleId:MobileDeviceAccessMatchedRule'] :: MobileDeviceAccessMatchedRule -> Maybe Text
-- | Name of a rule that a simulated user matches.
[$sel:name:MobileDeviceAccessMatchedRule'] :: MobileDeviceAccessMatchedRule -> Maybe Text
-- | Create a value of MobileDeviceAccessMatchedRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:mobileDeviceAccessRuleId:MobileDeviceAccessMatchedRule',
-- mobileDeviceAccessMatchedRule_mobileDeviceAccessRuleId -
-- Identifier of the rule that a simulated user matches.
--
-- $sel:name:MobileDeviceAccessMatchedRule',
-- mobileDeviceAccessMatchedRule_name - Name of a rule that a
-- simulated user matches.
newMobileDeviceAccessMatchedRule :: MobileDeviceAccessMatchedRule
-- | Identifier of the rule that a simulated user matches.
mobileDeviceAccessMatchedRule_mobileDeviceAccessRuleId :: Lens' MobileDeviceAccessMatchedRule (Maybe Text)
-- | Name of a rule that a simulated user matches.
mobileDeviceAccessMatchedRule_name :: Lens' MobileDeviceAccessMatchedRule (Maybe Text)
-- | The override object.
--
-- See: newMobileDeviceAccessOverride smart constructor.
data MobileDeviceAccessOverride
MobileDeviceAccessOverride' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> MobileDeviceAccessOverride
-- | The date the override was first created.
[$sel:dateCreated:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe POSIX
-- | The date the override was last modified.
[$sel:dateModified:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe POSIX
-- | A description of the override.
[$sel:description:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe Text
-- | The device to which the override applies.
[$sel:deviceId:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe Text
-- | The effect of the override, ALLOW or DENY.
[$sel:effect:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe MobileDeviceAccessRuleEffect
-- | The WorkMail user to which the access override applies.
[$sel:userId:MobileDeviceAccessOverride'] :: MobileDeviceAccessOverride -> Maybe Text
-- | Create a value of MobileDeviceAccessOverride with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_dateCreated - The date the override
-- was first created.
--
-- $sel:dateModified:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_dateModified - The date the override
-- was last modified.
--
-- $sel:description:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_description - A description of the
-- override.
--
-- $sel:deviceId:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_deviceId - The device to which the
-- override applies.
--
-- $sel:effect:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_effect - The effect of the override,
-- ALLOW or DENY.
--
-- $sel:userId:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_userId - The WorkMail user to which
-- the access override applies.
newMobileDeviceAccessOverride :: MobileDeviceAccessOverride
-- | The date the override was first created.
mobileDeviceAccessOverride_dateCreated :: Lens' MobileDeviceAccessOverride (Maybe UTCTime)
-- | The date the override was last modified.
mobileDeviceAccessOverride_dateModified :: Lens' MobileDeviceAccessOverride (Maybe UTCTime)
-- | A description of the override.
mobileDeviceAccessOverride_description :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | The device to which the override applies.
mobileDeviceAccessOverride_deviceId :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | The effect of the override, ALLOW or DENY.
mobileDeviceAccessOverride_effect :: Lens' MobileDeviceAccessOverride (Maybe MobileDeviceAccessRuleEffect)
-- | The WorkMail user to which the access override applies.
mobileDeviceAccessOverride_userId :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | A rule that controls access to mobile devices for an WorkMail group.
--
-- See: newMobileDeviceAccessRule smart constructor.
data MobileDeviceAccessRule
MobileDeviceAccessRule' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> MobileDeviceAccessRule
-- | The date and time at which an access rule was created.
[$sel:dateCreated:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe POSIX
-- | The date and time at which an access rule was modified.
[$sel:dateModified:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe POSIX
-- | The description of a mobile access rule.
[$sel:description:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe Text
-- | Device models that a rule will match.
[$sel:deviceModels:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that a rule will match.
[$sel:deviceOperatingSystems:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that a rule will match.
[$sel:deviceTypes:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device user agents that a rule will match.
[$sel:deviceUserAgents:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
[$sel:effect:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe MobileDeviceAccessRuleEffect
-- | The ID assigned to a mobile access rule.
[$sel:mobileDeviceAccessRuleId:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe Text
-- | The name of a mobile access rule.
[$sel:name:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe Text
-- | Device models that a rule will not match. All other device
-- models will match.
[$sel:notDeviceModels:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that a rule will not match. All other
-- device types will match.
[$sel:notDeviceOperatingSystems:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that a rule will not match. All other device types
-- will match.
[$sel:notDeviceTypes:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device user agents that a rule will not match. All other device
-- user agents will match.
[$sel:notDeviceUserAgents:MobileDeviceAccessRule'] :: MobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Create a value of MobileDeviceAccessRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_dateCreated - The date and time at which
-- an access rule was created.
--
-- $sel:dateModified:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_dateModified - The date and time at
-- which an access rule was modified.
--
-- $sel:description:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_description - The description of a
-- mobile access rule.
--
-- $sel:deviceModels:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceModels - Device models that a rule
-- will match.
--
-- $sel:deviceOperatingSystems:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceOperatingSystems - Device
-- operating systems that a rule will match.
--
-- $sel:deviceTypes:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceTypes - Device types that a rule
-- will match.
--
-- $sel:deviceUserAgents:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceUserAgents - Device user agents
-- that a rule will match.
--
-- $sel:effect:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_effect - The effect of the rule when it
-- matches. Allowed values are ALLOW or DENY.
--
-- $sel:mobileDeviceAccessRuleId:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_mobileDeviceAccessRuleId - The ID
-- assigned to a mobile access rule.
--
-- $sel:name:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_name - The name of a mobile access rule.
--
-- $sel:notDeviceModels:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceModels - Device models that a
-- rule will not match. All other device models will match.
--
-- $sel:notDeviceOperatingSystems:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceOperatingSystems - Device
-- operating systems that a rule will not match. All other device
-- types will match.
--
-- $sel:notDeviceTypes:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceTypes - Device types that a
-- rule will not match. All other device types will match.
--
-- $sel:notDeviceUserAgents:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceUserAgents - Device user agents
-- that a rule will not match. All other device user agents will
-- match.
newMobileDeviceAccessRule :: MobileDeviceAccessRule
-- | The date and time at which an access rule was created.
mobileDeviceAccessRule_dateCreated :: Lens' MobileDeviceAccessRule (Maybe UTCTime)
-- | The date and time at which an access rule was modified.
mobileDeviceAccessRule_dateModified :: Lens' MobileDeviceAccessRule (Maybe UTCTime)
-- | The description of a mobile access rule.
mobileDeviceAccessRule_description :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | Device models that a rule will match.
mobileDeviceAccessRule_deviceModels :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that a rule will match.
mobileDeviceAccessRule_deviceOperatingSystems :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that a rule will match.
mobileDeviceAccessRule_deviceTypes :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that a rule will match.
mobileDeviceAccessRule_deviceUserAgents :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
mobileDeviceAccessRule_effect :: Lens' MobileDeviceAccessRule (Maybe MobileDeviceAccessRuleEffect)
-- | The ID assigned to a mobile access rule.
mobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | The name of a mobile access rule.
mobileDeviceAccessRule_name :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | Device models that a rule will not match. All other device
-- models will match.
mobileDeviceAccessRule_notDeviceModels :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that a rule will not match. All other
-- device types will match.
mobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that a rule will not match. All other device types
-- will match.
mobileDeviceAccessRule_notDeviceTypes :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that a rule will not match. All other device
-- user agents will match.
mobileDeviceAccessRule_notDeviceUserAgents :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The representation of an organization.
--
-- See: newOrganizationSummary smart constructor.
data OrganizationSummary
OrganizationSummary' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> OrganizationSummary
-- | The alias associated with the organization.
[$sel:alias:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The default email domain associated with the organization.
[$sel:defaultMailDomain:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The error message associated with the organization. It is only present
-- if unexpected behavior has occurred with regards to the organization.
-- It provides insight or solutions regarding unexpected behavior.
[$sel:errorMessage:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The identifier associated with the organization.
[$sel:organizationId:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | The state associated with the organization.
[$sel:state:OrganizationSummary'] :: OrganizationSummary -> Maybe Text
-- | Create a value of OrganizationSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:alias:OrganizationSummary',
-- organizationSummary_alias - The alias associated with the
-- organization.
--
-- $sel:defaultMailDomain:OrganizationSummary',
-- organizationSummary_defaultMailDomain - The default email
-- domain associated with the organization.
--
-- $sel:errorMessage:OrganizationSummary',
-- organizationSummary_errorMessage - The error message associated
-- with the organization. It is only present if unexpected behavior has
-- occurred with regards to the organization. It provides insight or
-- solutions regarding unexpected behavior.
--
-- $sel:organizationId:OrganizationSummary',
-- organizationSummary_organizationId - The identifier associated
-- with the organization.
--
-- $sel:state:OrganizationSummary',
-- organizationSummary_state - The state associated with the
-- organization.
newOrganizationSummary :: OrganizationSummary
-- | The alias associated with the organization.
organizationSummary_alias :: Lens' OrganizationSummary (Maybe Text)
-- | The default email domain associated with the organization.
organizationSummary_defaultMailDomain :: Lens' OrganizationSummary (Maybe Text)
-- | The error message associated with the organization. It is only present
-- if unexpected behavior has occurred with regards to the organization.
-- It provides insight or solutions regarding unexpected behavior.
organizationSummary_errorMessage :: Lens' OrganizationSummary (Maybe Text)
-- | The identifier associated with the organization.
organizationSummary_organizationId :: Lens' OrganizationSummary (Maybe Text)
-- | The state associated with the organization.
organizationSummary_state :: Lens' OrganizationSummary (Maybe Text)
-- | Permission granted to a user, group, or resource to access a certain
-- aspect of another user, group, or resource mailbox.
--
-- See: newPermission smart constructor.
data Permission
Permission' :: Text -> MemberType -> [PermissionType] -> Permission
-- | The identifier of the user, group, or resource to which the
-- permissions are granted.
[$sel:granteeId:Permission'] :: Permission -> Text
-- | The type of user, group, or resource referred to in GranteeId.
[$sel:granteeType:Permission'] :: Permission -> MemberType
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
[$sel:permissionValues:Permission'] :: Permission -> [PermissionType]
-- | Create a value of Permission with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:granteeId:Permission', permission_granteeId - The
-- identifier of the user, group, or resource to which the permissions
-- are granted.
--
-- $sel:granteeType:Permission', permission_granteeType -
-- The type of user, group, or resource referred to in GranteeId.
--
-- $sel:permissionValues:Permission',
-- permission_permissionValues - The permissions granted to the
-- grantee. SEND_AS allows the grantee to send email as the owner of the
-- mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF
-- allows the grantee to send email on behalf of the owner of the mailbox
-- (the grantee is not mentioned as the physical sender of these emails).
-- FULL_ACCESS allows the grantee full access to the mailbox,
-- irrespective of other folder-level permissions set on the mailbox.
newPermission :: Text -> MemberType -> Permission
-- | The identifier of the user, group, or resource to which the
-- permissions are granted.
permission_granteeId :: Lens' Permission Text
-- | The type of user, group, or resource referred to in GranteeId.
permission_granteeType :: Lens' Permission MemberType
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
permission_permissionValues :: Lens' Permission [PermissionType]
-- | Describes an EWS based availability provider when returned from the
-- service. It does not contain the password of the endpoint.
--
-- See: newRedactedEwsAvailabilityProvider smart
-- constructor.
data RedactedEwsAvailabilityProvider
RedactedEwsAvailabilityProvider' :: Maybe Text -> Maybe Text -> RedactedEwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
[$sel:ewsEndpoint:RedactedEwsAvailabilityProvider'] :: RedactedEwsAvailabilityProvider -> Maybe Text
-- | The username used to authenticate the remote EWS server.
[$sel:ewsUsername:RedactedEwsAvailabilityProvider'] :: RedactedEwsAvailabilityProvider -> Maybe Text
-- | Create a value of RedactedEwsAvailabilityProvider with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:ewsEndpoint:RedactedEwsAvailabilityProvider',
-- redactedEwsAvailabilityProvider_ewsEndpoint - The endpoint of
-- the remote EWS server.
--
-- $sel:ewsUsername:RedactedEwsAvailabilityProvider',
-- redactedEwsAvailabilityProvider_ewsUsername - The username used
-- to authenticate the remote EWS server.
newRedactedEwsAvailabilityProvider :: RedactedEwsAvailabilityProvider
-- | The endpoint of the remote EWS server.
redactedEwsAvailabilityProvider_ewsEndpoint :: Lens' RedactedEwsAvailabilityProvider (Maybe Text)
-- | The username used to authenticate the remote EWS server.
redactedEwsAvailabilityProvider_ewsUsername :: Lens' RedactedEwsAvailabilityProvider (Maybe Text)
-- | The representation of a resource.
--
-- See: newResource smart constructor.
data Resource
Resource' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe ResourceType -> Resource
-- | The date indicating when the resource was disabled from WorkMail use.
[$sel:disabledDate:Resource'] :: Resource -> Maybe POSIX
-- | The email of the resource.
[$sel:email:Resource'] :: Resource -> Maybe Text
-- | The date indicating when the resource was enabled for WorkMail use.
[$sel:enabledDate:Resource'] :: Resource -> Maybe POSIX
-- | The identifier of the resource.
[$sel:id:Resource'] :: Resource -> Maybe Text
-- | The name of the resource.
[$sel:name:Resource'] :: Resource -> Maybe Text
-- | The state of the resource, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:Resource'] :: Resource -> Maybe EntityState
-- | The type of the resource: equipment or room.
[$sel:type':Resource'] :: Resource -> Maybe ResourceType
-- | Create a value of Resource with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Resource', resource_disabledDate - The
-- date indicating when the resource was disabled from WorkMail use.
--
-- $sel:email:Resource', resource_email - The email of the
-- resource.
--
-- $sel:enabledDate:Resource', resource_enabledDate - The
-- date indicating when the resource was enabled for WorkMail use.
--
-- $sel:id:Resource', resource_id - The identifier of the
-- resource.
--
-- $sel:name:Resource', resource_name - The name of the
-- resource.
--
-- $sel:state:Resource', resource_state - The state of the
-- resource, which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:type':Resource', resource_type - The type of the
-- resource: equipment or room.
newResource :: Resource
-- | The date indicating when the resource was disabled from WorkMail use.
resource_disabledDate :: Lens' Resource (Maybe UTCTime)
-- | The email of the resource.
resource_email :: Lens' Resource (Maybe Text)
-- | The date indicating when the resource was enabled for WorkMail use.
resource_enabledDate :: Lens' Resource (Maybe UTCTime)
-- | The identifier of the resource.
resource_id :: Lens' Resource (Maybe Text)
-- | The name of the resource.
resource_name :: Lens' Resource (Maybe Text)
-- | The state of the resource, which can be ENABLED, DISABLED, or DELETED.
resource_state :: Lens' Resource (Maybe EntityState)
-- | The type of the resource: equipment or room.
resource_type :: Lens' Resource (Maybe ResourceType)
-- | Describes a tag applied to a resource.
--
-- See: newTag smart constructor.
data Tag
Tag' :: Text -> Text -> Tag
-- | The key of the tag.
[$sel:key:Tag'] :: Tag -> Text
-- | The value of the tag.
[$sel:value:Tag'] :: Tag -> Text
-- | Create a value of Tag with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:key:Tag', tag_key - The key of the tag.
--
-- $sel:value:Tag', tag_value - The value of the tag.
newTag :: Text -> Text -> Tag
-- | The key of the tag.
tag_key :: Lens' Tag Text
-- | The value of the tag.
tag_value :: Lens' Tag Text
-- | The representation of an WorkMail user.
--
-- See: newUser smart constructor.
data User
User' :: Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe UserRole -> User
-- | The date indicating when the user was disabled from WorkMail use.
[$sel:disabledDate:User'] :: User -> Maybe POSIX
-- | The display name of the user.
[$sel:displayName:User'] :: User -> Maybe Text
-- | The email of the user.
[$sel:email:User'] :: User -> Maybe Text
-- | The date indicating when the user was enabled for WorkMail use.
[$sel:enabledDate:User'] :: User -> Maybe POSIX
-- | The identifier of the user.
[$sel:id:User'] :: User -> Maybe Text
-- | The name of the user.
[$sel:name:User'] :: User -> Maybe Text
-- | The state of the user, which can be ENABLED, DISABLED, or DELETED.
[$sel:state:User'] :: User -> Maybe EntityState
-- | The role of the user.
[$sel:userRole:User'] :: User -> Maybe UserRole
-- | Create a value of User with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:User', user_disabledDate - The date
-- indicating when the user was disabled from WorkMail use.
--
-- $sel:displayName:User', user_displayName - The display
-- name of the user.
--
-- $sel:email:User', user_email - The email of the user.
--
-- $sel:enabledDate:User', user_enabledDate - The date
-- indicating when the user was enabled for WorkMail use.
--
-- $sel:id:User', user_id - The identifier of the user.
--
-- $sel:name:User', user_name - The name of the user.
--
-- $sel:state:User', user_state - The state of the user,
-- which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:userRole:User', user_userRole - The role of the
-- user.
newUser :: User
-- | The date indicating when the user was disabled from WorkMail use.
user_disabledDate :: Lens' User (Maybe UTCTime)
-- | The display name of the user.
user_displayName :: Lens' User (Maybe Text)
-- | The email of the user.
user_email :: Lens' User (Maybe Text)
-- | The date indicating when the user was enabled for WorkMail use.
user_enabledDate :: Lens' User (Maybe UTCTime)
-- | The identifier of the user.
user_id :: Lens' User (Maybe Text)
-- | The name of the user.
user_name :: Lens' User (Maybe Text)
-- | The state of the user, which can be ENABLED, DISABLED, or DELETED.
user_state :: Lens' User (Maybe EntityState)
-- | The role of the user.
user_userRole :: Lens' User (Maybe UserRole)
-- | Performs a test on an availability provider to ensure that access is
-- allowed. For EWS, it verifies the provided credentials can be used to
-- successfully log in. For Lambda, it verifies that the Lambda function
-- can be invoked and that the resource access policy was configured to
-- deny anonymous access. An anonymous invocation is one done without
-- providing either a SourceArn or SourceAccount
-- header.
--
-- The request must contain either one provider definition
-- (EwsProvider or LambdaProvider) or the
-- DomainName parameter. If the DomainName parameter is
-- provided, the configuration stored under the DomainName will
-- be tested.
module Amazonka.WorkMail.TestAvailabilityConfiguration
-- | See: newTestAvailabilityConfiguration smart constructor.
data TestAvailabilityConfiguration
TestAvailabilityConfiguration' :: Maybe Text -> Maybe EwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Text -> TestAvailabilityConfiguration
-- | The domain to which the provider applies. If this field is provided, a
-- stored availability provider associated to this domain name will be
-- tested.
[$sel:domainName:TestAvailabilityConfiguration'] :: TestAvailabilityConfiguration -> Maybe Text
[$sel:ewsProvider:TestAvailabilityConfiguration'] :: TestAvailabilityConfiguration -> Maybe EwsAvailabilityProvider
[$sel:lambdaProvider:TestAvailabilityConfiguration'] :: TestAvailabilityConfiguration -> Maybe LambdaAvailabilityProvider
-- | The WorkMail organization where the availability provider will be
-- tested.
[$sel:organizationId:TestAvailabilityConfiguration'] :: TestAvailabilityConfiguration -> Text
-- | Create a value of TestAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_domainName - The domain to which
-- the provider applies. If this field is provided, a stored availability
-- provider associated to this domain name will be tested.
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_ewsProvider - Undocumented
-- member.
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_lambdaProvider - Undocumented
-- member.
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_organizationId - The WorkMail
-- organization where the availability provider will be tested.
newTestAvailabilityConfiguration :: Text -> TestAvailabilityConfiguration
-- | The domain to which the provider applies. If this field is provided, a
-- stored availability provider associated to this domain name will be
-- tested.
testAvailabilityConfiguration_domainName :: Lens' TestAvailabilityConfiguration (Maybe Text)
-- | Undocumented member.
testAvailabilityConfiguration_ewsProvider :: Lens' TestAvailabilityConfiguration (Maybe EwsAvailabilityProvider)
-- | Undocumented member.
testAvailabilityConfiguration_lambdaProvider :: Lens' TestAvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | The WorkMail organization where the availability provider will be
-- tested.
testAvailabilityConfiguration_organizationId :: Lens' TestAvailabilityConfiguration Text
-- | See: newTestAvailabilityConfigurationResponse smart
-- constructor.
data TestAvailabilityConfigurationResponse
TestAvailabilityConfigurationResponse' :: Maybe Text -> Maybe Bool -> Int -> TestAvailabilityConfigurationResponse
-- | String containing the reason for a failed test if TestPassed
-- is false.
[$sel:failureReason:TestAvailabilityConfigurationResponse'] :: TestAvailabilityConfigurationResponse -> Maybe Text
-- | Boolean indicating whether the test passed or failed.
[$sel:testPassed:TestAvailabilityConfigurationResponse'] :: TestAvailabilityConfigurationResponse -> Maybe Bool
-- | The response's http status code.
[$sel:httpStatus:TestAvailabilityConfigurationResponse'] :: TestAvailabilityConfigurationResponse -> Int
-- | Create a value of TestAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:failureReason:TestAvailabilityConfigurationResponse',
-- testAvailabilityConfigurationResponse_failureReason - String
-- containing the reason for a failed test if TestPassed is
-- false.
--
-- $sel:testPassed:TestAvailabilityConfigurationResponse',
-- testAvailabilityConfigurationResponse_testPassed - Boolean
-- indicating whether the test passed or failed.
--
-- $sel:httpStatus:TestAvailabilityConfigurationResponse',
-- testAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newTestAvailabilityConfigurationResponse :: Int -> TestAvailabilityConfigurationResponse
-- | String containing the reason for a failed test if TestPassed
-- is false.
testAvailabilityConfigurationResponse_failureReason :: Lens' TestAvailabilityConfigurationResponse (Maybe Text)
-- | Boolean indicating whether the test passed or failed.
testAvailabilityConfigurationResponse_testPassed :: Lens' TestAvailabilityConfigurationResponse (Maybe Bool)
-- | The response's http status code.
testAvailabilityConfigurationResponse_httpStatus :: Lens' TestAvailabilityConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance GHC.Show.Show Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance GHC.Generics.Generic Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfigurationResponse
instance GHC.Show.Show Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfigurationResponse
instance GHC.Read.Read Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfigurationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.TestAvailabilityConfiguration.TestAvailabilityConfiguration
-- | Applies the specified tags to the specified WorkMailorganization
-- resource.
module Amazonka.WorkMail.TagResource
-- | See: newTagResource smart constructor.
data TagResource
TagResource' :: Text -> [Tag] -> TagResource
-- | The resource ARN.
[$sel:resourceARN:TagResource'] :: TagResource -> Text
-- | The tag key-value pairs.
[$sel:tags:TagResource'] :: TagResource -> [Tag]
-- | Create a value of TagResource with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceARN:TagResource', tagResource_resourceARN -
-- The resource ARN.
--
-- $sel:tags:TagResource', tagResource_tags - The tag
-- key-value pairs.
newTagResource :: Text -> TagResource
-- | The resource ARN.
tagResource_resourceARN :: Lens' TagResource Text
-- | The tag key-value pairs.
tagResource_tags :: Lens' TagResource [Tag]
-- | See: newTagResourceResponse smart constructor.
data TagResourceResponse
TagResourceResponse' :: Int -> TagResourceResponse
-- | The response's http status code.
[$sel:httpStatus:TagResourceResponse'] :: TagResourceResponse -> Int
-- | Create a value of TagResourceResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:TagResourceResponse',
-- tagResourceResponse_httpStatus - The response's http status
-- code.
newTagResourceResponse :: Int -> TagResourceResponse
-- | The response's http status code.
tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.TagResource.TagResource
instance GHC.Show.Show Amazonka.WorkMail.TagResource.TagResource
instance GHC.Read.Read Amazonka.WorkMail.TagResource.TagResource
instance GHC.Classes.Eq Amazonka.WorkMail.TagResource.TagResource
instance GHC.Generics.Generic Amazonka.WorkMail.TagResource.TagResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.TagResource.TagResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.TagResource.TagResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.TagResource.TagResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.TagResource.TagResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.TagResource.TagResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.TagResource.TagResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.TagResource.TagResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.TagResource.TagResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.TagResource.TagResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.TagResource.TagResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.TagResource.TagResource
-- | Starts a mailbox export job to export MIME-format email messages and
-- calendar items from the specified mailbox to the specified Amazon
-- Simple Storage Service (Amazon S3) bucket. For more information, see
-- Exporting mailbox content in the WorkMail Administrator
-- Guide.
module Amazonka.WorkMail.StartMailboxExportJob
-- | See: newStartMailboxExportJob smart constructor.
data StartMailboxExportJob
StartMailboxExportJob' :: Maybe Text -> Text -> Text -> Text -> Text -> Text -> Text -> Text -> StartMailboxExportJob
-- | The mailbox export job description.
[$sel:description:StartMailboxExportJob'] :: StartMailboxExportJob -> Maybe Text
-- | The idempotency token for the client request.
[$sel:clientToken:StartMailboxExportJob'] :: StartMailboxExportJob -> Text
-- | The identifier associated with the organization.
[$sel:organizationId:StartMailboxExportJob'] :: StartMailboxExportJob -> Text
-- | The identifier of the user or resource associated with the mailbox.
[$sel:entityId:StartMailboxExportJob'] :: StartMailboxExportJob -> Text
-- | The ARN of the AWS Identity and Access Management (IAM) role that
-- grants write permission to the S3 bucket.
[$sel:roleArn:StartMailboxExportJob'] :: StartMailboxExportJob -> Text
-- | The Amazon Resource Name (ARN) of the symmetric AWS Key Management
-- Service (AWS KMS) key that encrypts the exported mailbox content.
[$sel:kmsKeyArn:StartMailboxExportJob'] :: StartMailboxExportJob -> Text
-- | The name of the S3 bucket.
[$sel:s3BucketName:StartMailboxExportJob'] :: StartMailboxExportJob -> Text
-- | The S3 bucket prefix.
[$sel:s3Prefix:StartMailboxExportJob'] :: StartMailboxExportJob -> Text
-- | Create a value of StartMailboxExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- StartMailboxExportJob, startMailboxExportJob_description
-- - The mailbox export job description.
--
-- $sel:clientToken:StartMailboxExportJob',
-- startMailboxExportJob_clientToken - The idempotency token for
-- the client request.
--
-- StartMailboxExportJob,
-- startMailboxExportJob_organizationId - The identifier
-- associated with the organization.
--
-- StartMailboxExportJob, startMailboxExportJob_entityId -
-- The identifier of the user or resource associated with the mailbox.
--
-- $sel:roleArn:StartMailboxExportJob',
-- startMailboxExportJob_roleArn - The ARN of the AWS Identity and
-- Access Management (IAM) role that grants write permission to the S3
-- bucket.
--
-- $sel:kmsKeyArn:StartMailboxExportJob',
-- startMailboxExportJob_kmsKeyArn - The Amazon Resource Name
-- (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that
-- encrypts the exported mailbox content.
--
-- StartMailboxExportJob,
-- startMailboxExportJob_s3BucketName - The name of the S3 bucket.
--
-- $sel:s3Prefix:StartMailboxExportJob',
-- startMailboxExportJob_s3Prefix - The S3 bucket prefix.
newStartMailboxExportJob :: Text -> Text -> Text -> Text -> Text -> Text -> Text -> StartMailboxExportJob
-- | The mailbox export job description.
startMailboxExportJob_description :: Lens' StartMailboxExportJob (Maybe Text)
-- | The idempotency token for the client request.
startMailboxExportJob_clientToken :: Lens' StartMailboxExportJob Text
-- | The identifier associated with the organization.
startMailboxExportJob_organizationId :: Lens' StartMailboxExportJob Text
-- | The identifier of the user or resource associated with the mailbox.
startMailboxExportJob_entityId :: Lens' StartMailboxExportJob Text
-- | The ARN of the AWS Identity and Access Management (IAM) role that
-- grants write permission to the S3 bucket.
startMailboxExportJob_roleArn :: Lens' StartMailboxExportJob Text
-- | The Amazon Resource Name (ARN) of the symmetric AWS Key Management
-- Service (AWS KMS) key that encrypts the exported mailbox content.
startMailboxExportJob_kmsKeyArn :: Lens' StartMailboxExportJob Text
-- | The name of the S3 bucket.
startMailboxExportJob_s3BucketName :: Lens' StartMailboxExportJob Text
-- | The S3 bucket prefix.
startMailboxExportJob_s3Prefix :: Lens' StartMailboxExportJob Text
-- | See: newStartMailboxExportJobResponse smart constructor.
data StartMailboxExportJobResponse
StartMailboxExportJobResponse' :: Maybe Text -> Int -> StartMailboxExportJobResponse
-- | The job ID.
[$sel:jobId:StartMailboxExportJobResponse'] :: StartMailboxExportJobResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:StartMailboxExportJobResponse'] :: StartMailboxExportJobResponse -> Int
-- | Create a value of StartMailboxExportJobResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- StartMailboxExportJobResponse,
-- startMailboxExportJobResponse_jobId - The job ID.
--
-- $sel:httpStatus:StartMailboxExportJobResponse',
-- startMailboxExportJobResponse_httpStatus - The response's http
-- status code.
newStartMailboxExportJobResponse :: Int -> StartMailboxExportJobResponse
-- | The job ID.
startMailboxExportJobResponse_jobId :: Lens' StartMailboxExportJobResponse (Maybe Text)
-- | The response's http status code.
startMailboxExportJobResponse_httpStatus :: Lens' StartMailboxExportJobResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance GHC.Show.Show Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance GHC.Read.Read Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance GHC.Classes.Eq Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance GHC.Generics.Generic Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJobResponse
instance GHC.Show.Show Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJobResponse
instance GHC.Read.Read Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJobResponse
instance GHC.Classes.Eq Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJobResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance Control.DeepSeq.NFData Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJobResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance Control.DeepSeq.NFData Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.StartMailboxExportJob.StartMailboxExportJob
-- | Allows the administrator to reset the password for a user.
module Amazonka.WorkMail.ResetPassword
-- | See: newResetPassword smart constructor.
data ResetPassword
ResetPassword' :: Text -> Text -> Sensitive Text -> ResetPassword
-- | The identifier of the organization that contains the user for which
-- the password is reset.
[$sel:organizationId:ResetPassword'] :: ResetPassword -> Text
-- | The identifier of the user for whom the password is reset.
[$sel:userId:ResetPassword'] :: ResetPassword -> Text
-- | The new password for the user.
[$sel:password:ResetPassword'] :: ResetPassword -> Sensitive Text
-- | Create a value of ResetPassword with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ResetPassword, resetPassword_organizationId - The
-- identifier of the organization that contains the user for which the
-- password is reset.
--
-- ResetPassword, resetPassword_userId - The identifier of
-- the user for whom the password is reset.
--
-- $sel:password:ResetPassword', resetPassword_password -
-- The new password for the user.
newResetPassword :: Text -> Text -> Text -> ResetPassword
-- | The identifier of the organization that contains the user for which
-- the password is reset.
resetPassword_organizationId :: Lens' ResetPassword Text
-- | The identifier of the user for whom the password is reset.
resetPassword_userId :: Lens' ResetPassword Text
-- | The new password for the user.
resetPassword_password :: Lens' ResetPassword Text
-- | See: newResetPasswordResponse smart constructor.
data ResetPasswordResponse
ResetPasswordResponse' :: Int -> ResetPasswordResponse
-- | The response's http status code.
[$sel:httpStatus:ResetPasswordResponse'] :: ResetPasswordResponse -> Int
-- | Create a value of ResetPasswordResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:ResetPasswordResponse',
-- resetPasswordResponse_httpStatus - The response's http status
-- code.
newResetPasswordResponse :: Int -> ResetPasswordResponse
-- | The response's http status code.
resetPasswordResponse_httpStatus :: Lens' ResetPasswordResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ResetPassword.ResetPassword
instance GHC.Show.Show Amazonka.WorkMail.ResetPassword.ResetPassword
instance GHC.Classes.Eq Amazonka.WorkMail.ResetPassword.ResetPassword
instance GHC.Generics.Generic Amazonka.WorkMail.ResetPassword.ResetPasswordResponse
instance GHC.Show.Show Amazonka.WorkMail.ResetPassword.ResetPasswordResponse
instance GHC.Read.Read Amazonka.WorkMail.ResetPassword.ResetPasswordResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ResetPassword.ResetPasswordResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ResetPassword.ResetPassword
instance Control.DeepSeq.NFData Amazonka.WorkMail.ResetPassword.ResetPasswordResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ResetPassword.ResetPassword
instance Control.DeepSeq.NFData Amazonka.WorkMail.ResetPassword.ResetPassword
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ResetPassword.ResetPassword
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ResetPassword.ResetPassword
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ResetPassword.ResetPassword
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ResetPassword.ResetPassword
-- | Registers an existing and disabled user, group, or resource for
-- WorkMail use by associating a mailbox and calendaring capabilities. It
-- performs no change if the user, group, or resource is enabled and
-- fails if the user, group, or resource is deleted. This operation
-- results in the accumulation of costs. For more information, see
-- Pricing. The equivalent console functionality for this
-- operation is Enable.
--
-- Users can either be created by calling the CreateUser API operation or
-- they can be synchronized from your directory. For more information,
-- see DeregisterFromWorkMail.
module Amazonka.WorkMail.RegisterToWorkMail
-- | See: newRegisterToWorkMail smart constructor.
data RegisterToWorkMail
RegisterToWorkMail' :: Text -> Text -> Text -> RegisterToWorkMail
-- | The identifier for the organization under which the user, group, or
-- resource exists.
[$sel:organizationId:RegisterToWorkMail'] :: RegisterToWorkMail -> Text
-- | The identifier for the user, group, or resource to be updated.
[$sel:entityId:RegisterToWorkMail'] :: RegisterToWorkMail -> Text
-- | The email for the user, group, or resource to be updated.
[$sel:email:RegisterToWorkMail'] :: RegisterToWorkMail -> Text
-- | Create a value of RegisterToWorkMail with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- RegisterToWorkMail, registerToWorkMail_organizationId -
-- The identifier for the organization under which the user, group, or
-- resource exists.
--
-- RegisterToWorkMail, registerToWorkMail_entityId - The
-- identifier for the user, group, or resource to be updated.
--
-- RegisterToWorkMail, registerToWorkMail_email - The email
-- for the user, group, or resource to be updated.
newRegisterToWorkMail :: Text -> Text -> Text -> RegisterToWorkMail
-- | The identifier for the organization under which the user, group, or
-- resource exists.
registerToWorkMail_organizationId :: Lens' RegisterToWorkMail Text
-- | The identifier for the user, group, or resource to be updated.
registerToWorkMail_entityId :: Lens' RegisterToWorkMail Text
-- | The email for the user, group, or resource to be updated.
registerToWorkMail_email :: Lens' RegisterToWorkMail Text
-- | See: newRegisterToWorkMailResponse smart constructor.
data RegisterToWorkMailResponse
RegisterToWorkMailResponse' :: Int -> RegisterToWorkMailResponse
-- | The response's http status code.
[$sel:httpStatus:RegisterToWorkMailResponse'] :: RegisterToWorkMailResponse -> Int
-- | Create a value of RegisterToWorkMailResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:RegisterToWorkMailResponse',
-- registerToWorkMailResponse_httpStatus - The response's http
-- status code.
newRegisterToWorkMailResponse :: Int -> RegisterToWorkMailResponse
-- | The response's http status code.
registerToWorkMailResponse_httpStatus :: Lens' RegisterToWorkMailResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance GHC.Show.Show Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance GHC.Read.Read Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance GHC.Classes.Eq Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance GHC.Generics.Generic Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMailResponse
instance GHC.Show.Show Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMailResponse
instance GHC.Read.Read Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMailResponse
instance GHC.Classes.Eq Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMailResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance Control.DeepSeq.NFData Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMailResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance Control.DeepSeq.NFData Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.RegisterToWorkMail.RegisterToWorkMail
-- | Registers a new domain in WorkMail and SES, and configures it for use
-- by WorkMail. Emails received by SES for this domain are routed to the
-- specified WorkMail organization, and WorkMail has permanent permission
-- to use the specified domain for sending your users' emails.
module Amazonka.WorkMail.RegisterMailDomain
-- | See: newRegisterMailDomain smart constructor.
data RegisterMailDomain
RegisterMailDomain' :: Maybe Text -> Text -> Text -> RegisterMailDomain
-- | Idempotency token used when retrying requests.
[$sel:clientToken:RegisterMailDomain'] :: RegisterMailDomain -> Maybe Text
-- | The WorkMail organization under which you're creating the domain.
[$sel:organizationId:RegisterMailDomain'] :: RegisterMailDomain -> Text
-- | The name of the mail domain to create in WorkMail and SES.
[$sel:domainName:RegisterMailDomain'] :: RegisterMailDomain -> Text
-- | Create a value of RegisterMailDomain with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:RegisterMailDomain',
-- registerMailDomain_clientToken - Idempotency token used when
-- retrying requests.
--
-- RegisterMailDomain, registerMailDomain_organizationId -
-- The WorkMail organization under which you're creating the domain.
--
-- RegisterMailDomain, registerMailDomain_domainName - The
-- name of the mail domain to create in WorkMail and SES.
newRegisterMailDomain :: Text -> Text -> RegisterMailDomain
-- | Idempotency token used when retrying requests.
registerMailDomain_clientToken :: Lens' RegisterMailDomain (Maybe Text)
-- | The WorkMail organization under which you're creating the domain.
registerMailDomain_organizationId :: Lens' RegisterMailDomain Text
-- | The name of the mail domain to create in WorkMail and SES.
registerMailDomain_domainName :: Lens' RegisterMailDomain Text
-- | See: newRegisterMailDomainResponse smart constructor.
data RegisterMailDomainResponse
RegisterMailDomainResponse' :: Int -> RegisterMailDomainResponse
-- | The response's http status code.
[$sel:httpStatus:RegisterMailDomainResponse'] :: RegisterMailDomainResponse -> Int
-- | Create a value of RegisterMailDomainResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:RegisterMailDomainResponse',
-- registerMailDomainResponse_httpStatus - The response's http
-- status code.
newRegisterMailDomainResponse :: Int -> RegisterMailDomainResponse
-- | The response's http status code.
registerMailDomainResponse_httpStatus :: Lens' RegisterMailDomainResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance GHC.Show.Show Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance GHC.Read.Read Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance GHC.Classes.Eq Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance GHC.Generics.Generic Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomainResponse
instance GHC.Show.Show Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomainResponse
instance GHC.Read.Read Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomainResponse
instance GHC.Classes.Eq Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomainResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomainResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.RegisterMailDomain.RegisterMailDomain
-- | Puts a retention policy to the specified organization.
module Amazonka.WorkMail.PutRetentionPolicy
-- | See: newPutRetentionPolicy smart constructor.
data PutRetentionPolicy
PutRetentionPolicy' :: Maybe (Sensitive Text) -> Maybe Text -> Text -> Text -> [FolderConfiguration] -> PutRetentionPolicy
-- | The retention policy description.
[$sel:description:PutRetentionPolicy'] :: PutRetentionPolicy -> Maybe (Sensitive Text)
-- | The retention policy ID.
[$sel:id:PutRetentionPolicy'] :: PutRetentionPolicy -> Maybe Text
-- | The organization ID.
[$sel:organizationId:PutRetentionPolicy'] :: PutRetentionPolicy -> Text
-- | The retention policy name.
[$sel:name:PutRetentionPolicy'] :: PutRetentionPolicy -> Text
-- | The retention policy folder configurations.
[$sel:folderConfigurations:PutRetentionPolicy'] :: PutRetentionPolicy -> [FolderConfiguration]
-- | Create a value of PutRetentionPolicy with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutRetentionPolicy, putRetentionPolicy_description - The
-- retention policy description.
--
-- PutRetentionPolicy, putRetentionPolicy_id - The
-- retention policy ID.
--
-- PutRetentionPolicy, putRetentionPolicy_organizationId -
-- The organization ID.
--
-- PutRetentionPolicy, putRetentionPolicy_name - The
-- retention policy name.
--
-- $sel:folderConfigurations:PutRetentionPolicy',
-- putRetentionPolicy_folderConfigurations - The retention policy
-- folder configurations.
newPutRetentionPolicy :: Text -> Text -> PutRetentionPolicy
-- | The retention policy description.
putRetentionPolicy_description :: Lens' PutRetentionPolicy (Maybe Text)
-- | The retention policy ID.
putRetentionPolicy_id :: Lens' PutRetentionPolicy (Maybe Text)
-- | The organization ID.
putRetentionPolicy_organizationId :: Lens' PutRetentionPolicy Text
-- | The retention policy name.
putRetentionPolicy_name :: Lens' PutRetentionPolicy Text
-- | The retention policy folder configurations.
putRetentionPolicy_folderConfigurations :: Lens' PutRetentionPolicy [FolderConfiguration]
-- | See: newPutRetentionPolicyResponse smart constructor.
data PutRetentionPolicyResponse
PutRetentionPolicyResponse' :: Int -> PutRetentionPolicyResponse
-- | The response's http status code.
[$sel:httpStatus:PutRetentionPolicyResponse'] :: PutRetentionPolicyResponse -> Int
-- | Create a value of PutRetentionPolicyResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutRetentionPolicyResponse',
-- putRetentionPolicyResponse_httpStatus - The response's http
-- status code.
newPutRetentionPolicyResponse :: Int -> PutRetentionPolicyResponse
-- | The response's http status code.
putRetentionPolicyResponse_httpStatus :: Lens' PutRetentionPolicyResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance GHC.Show.Show Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance GHC.Classes.Eq Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance GHC.Generics.Generic Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicyResponse
instance GHC.Show.Show Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicyResponse
instance GHC.Read.Read Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicyResponse
instance GHC.Classes.Eq Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicyResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicyResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.PutRetentionPolicy.PutRetentionPolicy
-- | Creates or updates a mobile device access override for the given
-- WorkMail organization, user, and device.
module Amazonka.WorkMail.PutMobileDeviceAccessOverride
-- | See: newPutMobileDeviceAccessOverride smart constructor.
data PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride' :: Maybe Text -> Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> PutMobileDeviceAccessOverride
-- | A description of the override.
[$sel:description:PutMobileDeviceAccessOverride'] :: PutMobileDeviceAccessOverride -> Maybe Text
-- | Identifies the WorkMail organization for which you create the
-- override.
[$sel:organizationId:PutMobileDeviceAccessOverride'] :: PutMobileDeviceAccessOverride -> Text
-- | The WorkMail user for which you create the override. Accepts the
-- following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
[$sel:userId:PutMobileDeviceAccessOverride'] :: PutMobileDeviceAccessOverride -> Text
-- | The mobile device for which you create the override. DeviceId
-- is case insensitive.
[$sel:deviceId:PutMobileDeviceAccessOverride'] :: PutMobileDeviceAccessOverride -> Text
-- | The effect of the override, ALLOW or DENY.
[$sel:effect:PutMobileDeviceAccessOverride'] :: PutMobileDeviceAccessOverride -> MobileDeviceAccessRuleEffect
-- | Create a value of PutMobileDeviceAccessOverride with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_description - A description of
-- the override.
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_organizationId - Identifies the
-- WorkMail organization for which you create the override.
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_userId - The WorkMail user for
-- which you create the override. Accepts the following types of user
-- identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_deviceId - The mobile device for
-- which you create the override. DeviceId is case insensitive.
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_effect - The effect of the
-- override, ALLOW or DENY.
newPutMobileDeviceAccessOverride :: Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> PutMobileDeviceAccessOverride
-- | A description of the override.
putMobileDeviceAccessOverride_description :: Lens' PutMobileDeviceAccessOverride (Maybe Text)
-- | Identifies the WorkMail organization for which you create the
-- override.
putMobileDeviceAccessOverride_organizationId :: Lens' PutMobileDeviceAccessOverride Text
-- | The WorkMail user for which you create the override. Accepts the
-- following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
putMobileDeviceAccessOverride_userId :: Lens' PutMobileDeviceAccessOverride Text
-- | The mobile device for which you create the override. DeviceId
-- is case insensitive.
putMobileDeviceAccessOverride_deviceId :: Lens' PutMobileDeviceAccessOverride Text
-- | The effect of the override, ALLOW or DENY.
putMobileDeviceAccessOverride_effect :: Lens' PutMobileDeviceAccessOverride MobileDeviceAccessRuleEffect
-- | See: newPutMobileDeviceAccessOverrideResponse smart
-- constructor.
data PutMobileDeviceAccessOverrideResponse
PutMobileDeviceAccessOverrideResponse' :: Int -> PutMobileDeviceAccessOverrideResponse
-- | The response's http status code.
[$sel:httpStatus:PutMobileDeviceAccessOverrideResponse'] :: PutMobileDeviceAccessOverrideResponse -> Int
-- | Create a value of PutMobileDeviceAccessOverrideResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutMobileDeviceAccessOverrideResponse',
-- putMobileDeviceAccessOverrideResponse_httpStatus - The
-- response's http status code.
newPutMobileDeviceAccessOverrideResponse :: Int -> PutMobileDeviceAccessOverrideResponse
-- | The response's http status code.
putMobileDeviceAccessOverrideResponse_httpStatus :: Lens' PutMobileDeviceAccessOverrideResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance GHC.Show.Show Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance GHC.Read.Read Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance GHC.Classes.Eq Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance GHC.Generics.Generic Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverrideResponse
instance GHC.Show.Show Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverrideResponse
instance GHC.Read.Read Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverrideResponse
instance GHC.Classes.Eq Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverrideResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverrideResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.PutMobileDeviceAccessOverride.PutMobileDeviceAccessOverride
-- | Sets permissions for a user, group, or resource. This replaces any
-- pre-existing permissions.
module Amazonka.WorkMail.PutMailboxPermissions
-- | See: newPutMailboxPermissions smart constructor.
data PutMailboxPermissions
PutMailboxPermissions' :: Text -> Text -> Text -> [PermissionType] -> PutMailboxPermissions
-- | The identifier of the organization under which the user, group, or
-- resource exists.
[$sel:organizationId:PutMailboxPermissions'] :: PutMailboxPermissions -> Text
-- | The identifier of the user, group, or resource for which to update
-- mailbox permissions.
[$sel:entityId:PutMailboxPermissions'] :: PutMailboxPermissions -> Text
-- | The identifier of the user, group, or resource to which to grant the
-- permissions.
[$sel:granteeId:PutMailboxPermissions'] :: PutMailboxPermissions -> Text
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
[$sel:permissionValues:PutMailboxPermissions'] :: PutMailboxPermissions -> [PermissionType]
-- | Create a value of PutMailboxPermissions with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutMailboxPermissions,
-- putMailboxPermissions_organizationId - The identifier of the
-- organization under which the user, group, or resource exists.
--
-- PutMailboxPermissions, putMailboxPermissions_entityId -
-- The identifier of the user, group, or resource for which to update
-- mailbox permissions.
--
-- PutMailboxPermissions, putMailboxPermissions_granteeId -
-- The identifier of the user, group, or resource to which to grant the
-- permissions.
--
-- PutMailboxPermissions,
-- putMailboxPermissions_permissionValues - The permissions
-- granted to the grantee. SEND_AS allows the grantee to send email as
-- the owner of the mailbox (the grantee is not mentioned on these
-- emails). SEND_ON_BEHALF allows the grantee to send email on behalf of
-- the owner of the mailbox (the grantee is not mentioned as the physical
-- sender of these emails). FULL_ACCESS allows the grantee full access to
-- the mailbox, irrespective of other folder-level permissions set on the
-- mailbox.
newPutMailboxPermissions :: Text -> Text -> Text -> PutMailboxPermissions
-- | The identifier of the organization under which the user, group, or
-- resource exists.
putMailboxPermissions_organizationId :: Lens' PutMailboxPermissions Text
-- | The identifier of the user, group, or resource for which to update
-- mailbox permissions.
putMailboxPermissions_entityId :: Lens' PutMailboxPermissions Text
-- | The identifier of the user, group, or resource to which to grant the
-- permissions.
putMailboxPermissions_granteeId :: Lens' PutMailboxPermissions Text
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
putMailboxPermissions_permissionValues :: Lens' PutMailboxPermissions [PermissionType]
-- | See: newPutMailboxPermissionsResponse smart constructor.
data PutMailboxPermissionsResponse
PutMailboxPermissionsResponse' :: Int -> PutMailboxPermissionsResponse
-- | The response's http status code.
[$sel:httpStatus:PutMailboxPermissionsResponse'] :: PutMailboxPermissionsResponse -> Int
-- | Create a value of PutMailboxPermissionsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutMailboxPermissionsResponse',
-- putMailboxPermissionsResponse_httpStatus - The response's http
-- status code.
newPutMailboxPermissionsResponse :: Int -> PutMailboxPermissionsResponse
-- | The response's http status code.
putMailboxPermissionsResponse_httpStatus :: Lens' PutMailboxPermissionsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance GHC.Show.Show Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance GHC.Read.Read Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance GHC.Classes.Eq Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance GHC.Generics.Generic Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissionsResponse
instance GHC.Show.Show Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissionsResponse
instance GHC.Read.Read Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissionsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissionsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissionsResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.PutMailboxPermissions.PutMailboxPermissions
-- | Enables or disables a DMARC policy for a given organization.
module Amazonka.WorkMail.PutInboundDmarcSettings
-- | See: newPutInboundDmarcSettings smart constructor.
data PutInboundDmarcSettings
PutInboundDmarcSettings' :: Text -> Bool -> PutInboundDmarcSettings
-- | The ID of the organization that you are applying the DMARC policy to.
[$sel:organizationId:PutInboundDmarcSettings'] :: PutInboundDmarcSettings -> Text
-- | Enforces or suspends a policy after it's applied.
[$sel:enforced:PutInboundDmarcSettings'] :: PutInboundDmarcSettings -> Bool
-- | Create a value of PutInboundDmarcSettings with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutInboundDmarcSettings,
-- putInboundDmarcSettings_organizationId - The ID of the
-- organization that you are applying the DMARC policy to.
--
-- $sel:enforced:PutInboundDmarcSettings',
-- putInboundDmarcSettings_enforced - Enforces or suspends a
-- policy after it's applied.
newPutInboundDmarcSettings :: Text -> Bool -> PutInboundDmarcSettings
-- | The ID of the organization that you are applying the DMARC policy to.
putInboundDmarcSettings_organizationId :: Lens' PutInboundDmarcSettings Text
-- | Enforces or suspends a policy after it's applied.
putInboundDmarcSettings_enforced :: Lens' PutInboundDmarcSettings Bool
-- | See: newPutInboundDmarcSettingsResponse smart
-- constructor.
data PutInboundDmarcSettingsResponse
PutInboundDmarcSettingsResponse' :: Int -> PutInboundDmarcSettingsResponse
-- | The response's http status code.
[$sel:httpStatus:PutInboundDmarcSettingsResponse'] :: PutInboundDmarcSettingsResponse -> Int
-- | Create a value of PutInboundDmarcSettingsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutInboundDmarcSettingsResponse',
-- putInboundDmarcSettingsResponse_httpStatus - The response's
-- http status code.
newPutInboundDmarcSettingsResponse :: Int -> PutInboundDmarcSettingsResponse
-- | The response's http status code.
putInboundDmarcSettingsResponse_httpStatus :: Lens' PutInboundDmarcSettingsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance GHC.Show.Show Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance GHC.Read.Read Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance GHC.Classes.Eq Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance GHC.Generics.Generic Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettingsResponse
instance GHC.Show.Show Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettingsResponse
instance GHC.Read.Read Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettingsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettingsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettingsResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.PutInboundDmarcSettings.PutInboundDmarcSettings
-- | Creates or updates the email monitoring configuration for a specified
-- organization.
module Amazonka.WorkMail.PutEmailMonitoringConfiguration
-- | See: newPutEmailMonitoringConfiguration smart
-- constructor.
data PutEmailMonitoringConfiguration
PutEmailMonitoringConfiguration' :: Text -> Text -> Text -> PutEmailMonitoringConfiguration
-- | The ID of the organization for which the email monitoring
-- configuration is set.
[$sel:organizationId:PutEmailMonitoringConfiguration'] :: PutEmailMonitoringConfiguration -> Text
-- | The Amazon Resource Name (ARN) of the IAM Role associated with the
-- email monitoring configuration.
[$sel:roleArn:PutEmailMonitoringConfiguration'] :: PutEmailMonitoringConfiguration -> Text
-- | The Amazon Resource Name (ARN) of the CloudWatch Log group associated
-- with the email monitoring configuration.
[$sel:logGroupArn:PutEmailMonitoringConfiguration'] :: PutEmailMonitoringConfiguration -> Text
-- | Create a value of PutEmailMonitoringConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutEmailMonitoringConfiguration,
-- putEmailMonitoringConfiguration_organizationId - The ID of the
-- organization for which the email monitoring configuration is set.
--
-- $sel:roleArn:PutEmailMonitoringConfiguration',
-- putEmailMonitoringConfiguration_roleArn - The Amazon Resource
-- Name (ARN) of the IAM Role associated with the email monitoring
-- configuration.
--
-- $sel:logGroupArn:PutEmailMonitoringConfiguration',
-- putEmailMonitoringConfiguration_logGroupArn - The Amazon
-- Resource Name (ARN) of the CloudWatch Log group associated with the
-- email monitoring configuration.
newPutEmailMonitoringConfiguration :: Text -> Text -> Text -> PutEmailMonitoringConfiguration
-- | The ID of the organization for which the email monitoring
-- configuration is set.
putEmailMonitoringConfiguration_organizationId :: Lens' PutEmailMonitoringConfiguration Text
-- | The Amazon Resource Name (ARN) of the IAM Role associated with the
-- email monitoring configuration.
putEmailMonitoringConfiguration_roleArn :: Lens' PutEmailMonitoringConfiguration Text
-- | The Amazon Resource Name (ARN) of the CloudWatch Log group associated
-- with the email monitoring configuration.
putEmailMonitoringConfiguration_logGroupArn :: Lens' PutEmailMonitoringConfiguration Text
-- | See: newPutEmailMonitoringConfigurationResponse smart
-- constructor.
data PutEmailMonitoringConfigurationResponse
PutEmailMonitoringConfigurationResponse' :: Int -> PutEmailMonitoringConfigurationResponse
-- | The response's http status code.
[$sel:httpStatus:PutEmailMonitoringConfigurationResponse'] :: PutEmailMonitoringConfigurationResponse -> Int
-- | Create a value of PutEmailMonitoringConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutEmailMonitoringConfigurationResponse',
-- putEmailMonitoringConfigurationResponse_httpStatus - The
-- response's http status code.
newPutEmailMonitoringConfigurationResponse :: Int -> PutEmailMonitoringConfigurationResponse
-- | The response's http status code.
putEmailMonitoringConfigurationResponse_httpStatus :: Lens' PutEmailMonitoringConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance GHC.Show.Show Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance GHC.Read.Read Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance GHC.Generics.Generic Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfigurationResponse
instance GHC.Show.Show Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfigurationResponse
instance GHC.Read.Read Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfigurationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.PutEmailMonitoringConfiguration.PutEmailMonitoringConfiguration
-- | Adds a new access control rule for the specified organization. The
-- rule allows or denies access to the organization for the specified
-- IPv4 addresses, access protocol actions, user IDs and impersonation
-- IDs. Adding a new rule with the same name as an existing rule replaces
-- the older rule.
module Amazonka.WorkMail.PutAccessControlRule
-- | See: newPutAccessControlRule smart constructor.
data PutAccessControlRule
PutAccessControlRule' :: Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Text -> AccessControlRuleEffect -> Text -> Text -> PutAccessControlRule
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
[$sel:actions:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | Impersonation role IDs to include in the rule.
[$sel:impersonationRoleIds:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | IPv4 CIDR ranges to include in the rule.
[$sel:ipRanges:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
[$sel:notActions:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | Impersonation role IDs to exclude from the rule.
[$sel:notImpersonationRoleIds:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | IPv4 CIDR ranges to exclude from the rule.
[$sel:notIpRanges:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | User IDs to exclude from the rule.
[$sel:notUserIds:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | User IDs to include in the rule.
[$sel:userIds:PutAccessControlRule'] :: PutAccessControlRule -> Maybe [Text]
-- | The rule name.
[$sel:name:PutAccessControlRule'] :: PutAccessControlRule -> Text
-- | The rule effect.
[$sel:effect:PutAccessControlRule'] :: PutAccessControlRule -> AccessControlRuleEffect
-- | The rule description.
[$sel:description:PutAccessControlRule'] :: PutAccessControlRule -> Text
-- | The identifier of the organization.
[$sel:organizationId:PutAccessControlRule'] :: PutAccessControlRule -> Text
-- | Create a value of PutAccessControlRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutAccessControlRule, putAccessControlRule_actions -
-- Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
--
-- PutAccessControlRule,
-- putAccessControlRule_impersonationRoleIds - Impersonation role
-- IDs to include in the rule.
--
-- PutAccessControlRule, putAccessControlRule_ipRanges -
-- IPv4 CIDR ranges to include in the rule.
--
-- PutAccessControlRule, putAccessControlRule_notActions -
-- Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
--
-- PutAccessControlRule,
-- putAccessControlRule_notImpersonationRoleIds - Impersonation
-- role IDs to exclude from the rule.
--
-- PutAccessControlRule, putAccessControlRule_notIpRanges -
-- IPv4 CIDR ranges to exclude from the rule.
--
-- PutAccessControlRule, putAccessControlRule_notUserIds -
-- User IDs to exclude from the rule.
--
-- PutAccessControlRule, putAccessControlRule_userIds -
-- User IDs to include in the rule.
--
-- PutAccessControlRule, putAccessControlRule_name - The
-- rule name.
--
-- PutAccessControlRule, putAccessControlRule_effect - The
-- rule effect.
--
-- PutAccessControlRule, putAccessControlRule_description -
-- The rule description.
--
-- PutAccessControlRule,
-- putAccessControlRule_organizationId - The identifier of the
-- organization.
newPutAccessControlRule :: Text -> AccessControlRuleEffect -> Text -> Text -> PutAccessControlRule
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
putAccessControlRule_actions :: Lens' PutAccessControlRule (Maybe [Text])
-- | Impersonation role IDs to include in the rule.
putAccessControlRule_impersonationRoleIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to include in the rule.
putAccessControlRule_ipRanges :: Lens' PutAccessControlRule (Maybe [Text])
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
putAccessControlRule_notActions :: Lens' PutAccessControlRule (Maybe [Text])
-- | Impersonation role IDs to exclude from the rule.
putAccessControlRule_notImpersonationRoleIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to exclude from the rule.
putAccessControlRule_notIpRanges :: Lens' PutAccessControlRule (Maybe [Text])
-- | User IDs to exclude from the rule.
putAccessControlRule_notUserIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | User IDs to include in the rule.
putAccessControlRule_userIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | The rule name.
putAccessControlRule_name :: Lens' PutAccessControlRule Text
-- | The rule effect.
putAccessControlRule_effect :: Lens' PutAccessControlRule AccessControlRuleEffect
-- | The rule description.
putAccessControlRule_description :: Lens' PutAccessControlRule Text
-- | The identifier of the organization.
putAccessControlRule_organizationId :: Lens' PutAccessControlRule Text
-- | See: newPutAccessControlRuleResponse smart constructor.
data PutAccessControlRuleResponse
PutAccessControlRuleResponse' :: Int -> PutAccessControlRuleResponse
-- | The response's http status code.
[$sel:httpStatus:PutAccessControlRuleResponse'] :: PutAccessControlRuleResponse -> Int
-- | Create a value of PutAccessControlRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutAccessControlRuleResponse',
-- putAccessControlRuleResponse_httpStatus - The response's http
-- status code.
newPutAccessControlRuleResponse :: Int -> PutAccessControlRuleResponse
-- | The response's http status code.
putAccessControlRuleResponse_httpStatus :: Lens' PutAccessControlRuleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance GHC.Show.Show Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance GHC.Read.Read Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance GHC.Classes.Eq Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance GHC.Generics.Generic Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRuleResponse
instance GHC.Show.Show Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRuleResponse
instance GHC.Read.Read Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRuleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRuleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRuleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.PutAccessControlRule.PutAccessControlRule
-- | Returns summaries of the organization's users.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListUsers
-- | See: newListUsers smart constructor.
data ListUsers
ListUsers' :: Maybe Natural -> Maybe Text -> Text -> ListUsers
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListUsers'] :: ListUsers -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListUsers'] :: ListUsers -> Maybe Text
-- | The identifier for the organization under which the users exist.
[$sel:organizationId:ListUsers'] :: ListUsers -> Text
-- | Create a value of ListUsers with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListUsers', listUsers_maxResults - The
-- maximum number of results to return in a single call.
--
-- ListUsers, listUsers_nextToken - The token to use to
-- retrieve the next page of results. The first call does not contain any
-- tokens.
--
-- ListUsers, listUsers_organizationId - The identifier for
-- the organization under which the users exist.
newListUsers :: Text -> ListUsers
-- | The maximum number of results to return in a single call.
listUsers_maxResults :: Lens' ListUsers (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listUsers_nextToken :: Lens' ListUsers (Maybe Text)
-- | The identifier for the organization under which the users exist.
listUsers_organizationId :: Lens' ListUsers Text
-- | See: newListUsersResponse smart constructor.
data ListUsersResponse
ListUsersResponse' :: Maybe Text -> Maybe [User] -> Int -> ListUsersResponse
-- | The token to use to retrieve the next page of results. This value is
-- `null` when there are no more results to return.
[$sel:nextToken:ListUsersResponse'] :: ListUsersResponse -> Maybe Text
-- | The overview of users for an organization.
[$sel:users:ListUsersResponse'] :: ListUsersResponse -> Maybe [User]
-- | The response's http status code.
[$sel:httpStatus:ListUsersResponse'] :: ListUsersResponse -> Int
-- | Create a value of ListUsersResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListUsers, listUsersResponse_nextToken - The token to
-- use to retrieve the next page of results. This value is `null` when
-- there are no more results to return.
--
-- $sel:users:ListUsersResponse', listUsersResponse_users -
-- The overview of users for an organization.
--
-- $sel:httpStatus:ListUsersResponse',
-- listUsersResponse_httpStatus - The response's http status code.
newListUsersResponse :: Int -> ListUsersResponse
-- | The token to use to retrieve the next page of results. This value is
-- `null` when there are no more results to return.
listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text)
-- | The overview of users for an organization.
listUsersResponse_users :: Lens' ListUsersResponse (Maybe [User])
-- | The response's http status code.
listUsersResponse_httpStatus :: Lens' ListUsersResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListUsers.ListUsers
instance GHC.Show.Show Amazonka.WorkMail.ListUsers.ListUsers
instance GHC.Read.Read Amazonka.WorkMail.ListUsers.ListUsers
instance GHC.Classes.Eq Amazonka.WorkMail.ListUsers.ListUsers
instance GHC.Generics.Generic Amazonka.WorkMail.ListUsers.ListUsersResponse
instance GHC.Show.Show Amazonka.WorkMail.ListUsers.ListUsersResponse
instance GHC.Read.Read Amazonka.WorkMail.ListUsers.ListUsersResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListUsers.ListUsersResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListUsers.ListUsers
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListUsers.ListUsersResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListUsers.ListUsers
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListUsers.ListUsers
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListUsers.ListUsers
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListUsers.ListUsers
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListUsers.ListUsers
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListUsers.ListUsers
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListUsers.ListUsers
-- | Lists the tags applied to an WorkMail organization resource.
module Amazonka.WorkMail.ListTagsForResource
-- | See: newListTagsForResource smart constructor.
data ListTagsForResource
ListTagsForResource' :: Text -> ListTagsForResource
-- | The resource ARN.
[$sel:resourceARN:ListTagsForResource'] :: ListTagsForResource -> Text
-- | Create a value of ListTagsForResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceARN:ListTagsForResource',
-- listTagsForResource_resourceARN - The resource ARN.
newListTagsForResource :: Text -> ListTagsForResource
-- | The resource ARN.
listTagsForResource_resourceARN :: Lens' ListTagsForResource Text
-- | See: newListTagsForResourceResponse smart constructor.
data ListTagsForResourceResponse
ListTagsForResourceResponse' :: Maybe [Tag] -> Int -> ListTagsForResourceResponse
-- | A list of tag key-value pairs.
[$sel:tags:ListTagsForResourceResponse'] :: ListTagsForResourceResponse -> Maybe [Tag]
-- | The response's http status code.
[$sel:httpStatus:ListTagsForResourceResponse'] :: ListTagsForResourceResponse -> Int
-- | Create a value of ListTagsForResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:tags:ListTagsForResourceResponse',
-- listTagsForResourceResponse_tags - A list of tag key-value
-- pairs.
--
-- $sel:httpStatus:ListTagsForResourceResponse',
-- listTagsForResourceResponse_httpStatus - The response's http
-- status code.
newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
-- | A list of tag key-value pairs.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag])
-- | The response's http status code.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance GHC.Show.Show Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance GHC.Read.Read Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance GHC.Classes.Eq Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance GHC.Generics.Generic Amazonka.WorkMail.ListTagsForResource.ListTagsForResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.ListTagsForResource.ListTagsForResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.ListTagsForResource.ListTagsForResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListTagsForResource.ListTagsForResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListTagsForResource.ListTagsForResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListTagsForResource.ListTagsForResource
-- | Returns summaries of the organization's resources.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListResources
-- | See: newListResources smart constructor.
data ListResources
ListResources' :: Maybe Natural -> Maybe Text -> Text -> ListResources
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListResources'] :: ListResources -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListResources'] :: ListResources -> Maybe Text
-- | The identifier for the organization under which the resources exist.
[$sel:organizationId:ListResources'] :: ListResources -> Text
-- | Create a value of ListResources with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListResources', listResources_maxResults
-- - The maximum number of results to return in a single call.
--
-- ListResources, listResources_nextToken - The token to
-- use to retrieve the next page of results. The first call does not
-- contain any tokens.
--
-- ListResources, listResources_organizationId - The
-- identifier for the organization under which the resources exist.
newListResources :: Text -> ListResources
-- | The maximum number of results to return in a single call.
listResources_maxResults :: Lens' ListResources (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listResources_nextToken :: Lens' ListResources (Maybe Text)
-- | The identifier for the organization under which the resources exist.
listResources_organizationId :: Lens' ListResources Text
-- | See: newListResourcesResponse smart constructor.
data ListResourcesResponse
ListResourcesResponse' :: Maybe Text -> Maybe [Resource] -> Int -> ListResourcesResponse
-- | The token used to paginate through all the organization's resources.
-- While results are still available, it has an associated value. When
-- the last page is reached, the token is empty.
[$sel:nextToken:ListResourcesResponse'] :: ListResourcesResponse -> Maybe Text
-- | One page of the organization's resource representation.
[$sel:resources:ListResourcesResponse'] :: ListResourcesResponse -> Maybe [Resource]
-- | The response's http status code.
[$sel:httpStatus:ListResourcesResponse'] :: ListResourcesResponse -> Int
-- | Create a value of ListResourcesResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListResources, listResourcesResponse_nextToken - The
-- token used to paginate through all the organization's resources. While
-- results are still available, it has an associated value. When the last
-- page is reached, the token is empty.
--
-- $sel:resources:ListResourcesResponse',
-- listResourcesResponse_resources - One page of the
-- organization's resource representation.
--
-- $sel:httpStatus:ListResourcesResponse',
-- listResourcesResponse_httpStatus - The response's http status
-- code.
newListResourcesResponse :: Int -> ListResourcesResponse
-- | The token used to paginate through all the organization's resources.
-- While results are still available, it has an associated value. When
-- the last page is reached, the token is empty.
listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text)
-- | One page of the organization's resource representation.
listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource])
-- | The response's http status code.
listResourcesResponse_httpStatus :: Lens' ListResourcesResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListResources.ListResources
instance GHC.Show.Show Amazonka.WorkMail.ListResources.ListResources
instance GHC.Read.Read Amazonka.WorkMail.ListResources.ListResources
instance GHC.Classes.Eq Amazonka.WorkMail.ListResources.ListResources
instance GHC.Generics.Generic Amazonka.WorkMail.ListResources.ListResourcesResponse
instance GHC.Show.Show Amazonka.WorkMail.ListResources.ListResourcesResponse
instance GHC.Read.Read Amazonka.WorkMail.ListResources.ListResourcesResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListResources.ListResourcesResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListResources.ListResources
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListResources.ListResourcesResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListResources.ListResources
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListResources.ListResources
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListResources.ListResources
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListResources.ListResources
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListResources.ListResources
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListResources.ListResources
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListResources.ListResources
-- | Lists the delegates associated with a resource. Users and groups can
-- be resource delegates and answer requests on behalf of the resource.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListResourceDelegates
-- | See: newListResourceDelegates smart constructor.
data ListResourceDelegates
ListResourceDelegates' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListResourceDelegates
-- | The number of maximum results in a page.
[$sel:maxResults:ListResourceDelegates'] :: ListResourceDelegates -> Maybe Natural
-- | The token used to paginate through the delegates associated with a
-- resource.
[$sel:nextToken:ListResourceDelegates'] :: ListResourceDelegates -> Maybe Text
-- | The identifier for the organization that contains the resource for
-- which delegates are listed.
[$sel:organizationId:ListResourceDelegates'] :: ListResourceDelegates -> Text
-- | The identifier for the resource whose delegates are listed.
[$sel:resourceId:ListResourceDelegates'] :: ListResourceDelegates -> Text
-- | Create a value of ListResourceDelegates with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListResourceDelegates',
-- listResourceDelegates_maxResults - The number of maximum
-- results in a page.
--
-- ListResourceDelegates, listResourceDelegates_nextToken -
-- The token used to paginate through the delegates associated with a
-- resource.
--
-- ListResourceDelegates,
-- listResourceDelegates_organizationId - The identifier for the
-- organization that contains the resource for which delegates are
-- listed.
--
-- $sel:resourceId:ListResourceDelegates',
-- listResourceDelegates_resourceId - The identifier for the
-- resource whose delegates are listed.
newListResourceDelegates :: Text -> Text -> ListResourceDelegates
-- | The number of maximum results in a page.
listResourceDelegates_maxResults :: Lens' ListResourceDelegates (Maybe Natural)
-- | The token used to paginate through the delegates associated with a
-- resource.
listResourceDelegates_nextToken :: Lens' ListResourceDelegates (Maybe Text)
-- | The identifier for the organization that contains the resource for
-- which delegates are listed.
listResourceDelegates_organizationId :: Lens' ListResourceDelegates Text
-- | The identifier for the resource whose delegates are listed.
listResourceDelegates_resourceId :: Lens' ListResourceDelegates Text
-- | See: newListResourceDelegatesResponse smart constructor.
data ListResourceDelegatesResponse
ListResourceDelegatesResponse' :: Maybe [Delegate] -> Maybe Text -> Int -> ListResourceDelegatesResponse
-- | One page of the resource's delegates.
[$sel:delegates:ListResourceDelegatesResponse'] :: ListResourceDelegatesResponse -> Maybe [Delegate]
-- | The token used to paginate through the delegates associated with a
-- resource. While results are still available, it has an associated
-- value. When the last page is reached, the token is empty.
[$sel:nextToken:ListResourceDelegatesResponse'] :: ListResourceDelegatesResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListResourceDelegatesResponse'] :: ListResourceDelegatesResponse -> Int
-- | Create a value of ListResourceDelegatesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:delegates:ListResourceDelegatesResponse',
-- listResourceDelegatesResponse_delegates - One page of the
-- resource's delegates.
--
-- ListResourceDelegates,
-- listResourceDelegatesResponse_nextToken - The token used to
-- paginate through the delegates associated with a resource. While
-- results are still available, it has an associated value. When the last
-- page is reached, the token is empty.
--
-- $sel:httpStatus:ListResourceDelegatesResponse',
-- listResourceDelegatesResponse_httpStatus - The response's http
-- status code.
newListResourceDelegatesResponse :: Int -> ListResourceDelegatesResponse
-- | One page of the resource's delegates.
listResourceDelegatesResponse_delegates :: Lens' ListResourceDelegatesResponse (Maybe [Delegate])
-- | The token used to paginate through the delegates associated with a
-- resource. While results are still available, it has an associated
-- value. When the last page is reached, the token is empty.
listResourceDelegatesResponse_nextToken :: Lens' ListResourceDelegatesResponse (Maybe Text)
-- | The response's http status code.
listResourceDelegatesResponse_httpStatus :: Lens' ListResourceDelegatesResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance GHC.Show.Show Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance GHC.Read.Read Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance GHC.Classes.Eq Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance GHC.Generics.Generic Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegatesResponse
instance GHC.Show.Show Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegatesResponse
instance GHC.Read.Read Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegatesResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegatesResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegatesResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListResourceDelegates.ListResourceDelegates
-- | Returns summaries of the customer's organizations.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListOrganizations
-- | See: newListOrganizations smart constructor.
data ListOrganizations
ListOrganizations' :: Maybe Natural -> Maybe Text -> ListOrganizations
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListOrganizations'] :: ListOrganizations -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListOrganizations'] :: ListOrganizations -> Maybe Text
-- | Create a value of ListOrganizations with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListOrganizations',
-- listOrganizations_maxResults - The maximum number of results to
-- return in a single call.
--
-- ListOrganizations, listOrganizations_nextToken - The
-- token to use to retrieve the next page of results. The first call does
-- not contain any tokens.
newListOrganizations :: ListOrganizations
-- | The maximum number of results to return in a single call.
listOrganizations_maxResults :: Lens' ListOrganizations (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listOrganizations_nextToken :: Lens' ListOrganizations (Maybe Text)
-- | See: newListOrganizationsResponse smart constructor.
data ListOrganizationsResponse
ListOrganizationsResponse' :: Maybe Text -> Maybe [OrganizationSummary] -> Int -> ListOrganizationsResponse
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
[$sel:nextToken:ListOrganizationsResponse'] :: ListOrganizationsResponse -> Maybe Text
-- | The overview of owned organizations presented as a list of
-- organization summaries.
[$sel:organizationSummaries:ListOrganizationsResponse'] :: ListOrganizationsResponse -> Maybe [OrganizationSummary]
-- | The response's http status code.
[$sel:httpStatus:ListOrganizationsResponse'] :: ListOrganizationsResponse -> Int
-- | Create a value of ListOrganizationsResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListOrganizations, listOrganizationsResponse_nextToken -
-- The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
--
-- $sel:organizationSummaries:ListOrganizationsResponse',
-- listOrganizationsResponse_organizationSummaries - The overview
-- of owned organizations presented as a list of organization summaries.
--
-- $sel:httpStatus:ListOrganizationsResponse',
-- listOrganizationsResponse_httpStatus - The response's http
-- status code.
newListOrganizationsResponse :: Int -> ListOrganizationsResponse
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listOrganizationsResponse_nextToken :: Lens' ListOrganizationsResponse (Maybe Text)
-- | The overview of owned organizations presented as a list of
-- organization summaries.
listOrganizationsResponse_organizationSummaries :: Lens' ListOrganizationsResponse (Maybe [OrganizationSummary])
-- | The response's http status code.
listOrganizationsResponse_httpStatus :: Lens' ListOrganizationsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance GHC.Show.Show Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance GHC.Read.Read Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance GHC.Classes.Eq Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance GHC.Generics.Generic Amazonka.WorkMail.ListOrganizations.ListOrganizationsResponse
instance GHC.Show.Show Amazonka.WorkMail.ListOrganizations.ListOrganizationsResponse
instance GHC.Read.Read Amazonka.WorkMail.ListOrganizations.ListOrganizationsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListOrganizations.ListOrganizationsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListOrganizations.ListOrganizationsResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListOrganizations.ListOrganizations
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListOrganizations.ListOrganizations
-- | Lists the mobile device access rules for the specified WorkMail
-- organization.
module Amazonka.WorkMail.ListMobileDeviceAccessRules
-- | See: newListMobileDeviceAccessRules smart constructor.
data ListMobileDeviceAccessRules
ListMobileDeviceAccessRules' :: Text -> ListMobileDeviceAccessRules
-- | The WorkMail organization for which to list the rules.
[$sel:organizationId:ListMobileDeviceAccessRules'] :: ListMobileDeviceAccessRules -> Text
-- | Create a value of ListMobileDeviceAccessRules with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMobileDeviceAccessRules,
-- listMobileDeviceAccessRules_organizationId - The WorkMail
-- organization for which to list the rules.
newListMobileDeviceAccessRules :: Text -> ListMobileDeviceAccessRules
-- | The WorkMail organization for which to list the rules.
listMobileDeviceAccessRules_organizationId :: Lens' ListMobileDeviceAccessRules Text
-- | See: newListMobileDeviceAccessRulesResponse smart
-- constructor.
data ListMobileDeviceAccessRulesResponse
ListMobileDeviceAccessRulesResponse' :: Maybe [MobileDeviceAccessRule] -> Int -> ListMobileDeviceAccessRulesResponse
-- | The list of mobile device access rules that exist under the specified
-- WorkMail organization.
[$sel:rules:ListMobileDeviceAccessRulesResponse'] :: ListMobileDeviceAccessRulesResponse -> Maybe [MobileDeviceAccessRule]
-- | The response's http status code.
[$sel:httpStatus:ListMobileDeviceAccessRulesResponse'] :: ListMobileDeviceAccessRulesResponse -> Int
-- | Create a value of ListMobileDeviceAccessRulesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:rules:ListMobileDeviceAccessRulesResponse',
-- listMobileDeviceAccessRulesResponse_rules - The list of mobile
-- device access rules that exist under the specified WorkMail
-- organization.
--
-- $sel:httpStatus:ListMobileDeviceAccessRulesResponse',
-- listMobileDeviceAccessRulesResponse_httpStatus - The response's
-- http status code.
newListMobileDeviceAccessRulesResponse :: Int -> ListMobileDeviceAccessRulesResponse
-- | The list of mobile device access rules that exist under the specified
-- WorkMail organization.
listMobileDeviceAccessRulesResponse_rules :: Lens' ListMobileDeviceAccessRulesResponse (Maybe [MobileDeviceAccessRule])
-- | The response's http status code.
listMobileDeviceAccessRulesResponse_httpStatus :: Lens' ListMobileDeviceAccessRulesResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance GHC.Show.Show Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance GHC.Read.Read Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance GHC.Classes.Eq Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance GHC.Generics.Generic Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRulesResponse
instance GHC.Show.Show Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRulesResponse
instance GHC.Read.Read Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRulesResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRulesResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRulesResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListMobileDeviceAccessRules.ListMobileDeviceAccessRules
-- | Lists all the mobile device access overrides for any given combination
-- of WorkMail organization, user, or device.
module Amazonka.WorkMail.ListMobileDeviceAccessOverrides
-- | See: newListMobileDeviceAccessOverrides smart
-- constructor.
data ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides' :: Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Text -> ListMobileDeviceAccessOverrides
-- | The mobile device to which the access override applies.
[$sel:deviceId:ListMobileDeviceAccessOverrides'] :: ListMobileDeviceAccessOverrides -> Maybe Text
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListMobileDeviceAccessOverrides'] :: ListMobileDeviceAccessOverrides -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
[$sel:nextToken:ListMobileDeviceAccessOverrides'] :: ListMobileDeviceAccessOverrides -> Maybe Text
-- | The WorkMail user under which you list the mobile device access
-- overrides. Accepts the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
[$sel:userId:ListMobileDeviceAccessOverrides'] :: ListMobileDeviceAccessOverrides -> Maybe Text
-- | The WorkMail organization under which to list mobile device access
-- overrides.
[$sel:organizationId:ListMobileDeviceAccessOverrides'] :: ListMobileDeviceAccessOverrides -> Text
-- | Create a value of ListMobileDeviceAccessOverrides with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_deviceId - The mobile device to
-- which the access override applies.
--
-- $sel:maxResults:ListMobileDeviceAccessOverrides',
-- listMobileDeviceAccessOverrides_maxResults - The maximum number
-- of results to return in a single call.
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_nextToken - The token to use to
-- retrieve the next page of results. The first call does not require a
-- token.
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_userId - The WorkMail user
-- under which you list the mobile device access overrides. Accepts the
-- following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_organizationId - The WorkMail
-- organization under which to list mobile device access overrides.
newListMobileDeviceAccessOverrides :: Text -> ListMobileDeviceAccessOverrides
-- | The mobile device to which the access override applies.
listMobileDeviceAccessOverrides_deviceId :: Lens' ListMobileDeviceAccessOverrides (Maybe Text)
-- | The maximum number of results to return in a single call.
listMobileDeviceAccessOverrides_maxResults :: Lens' ListMobileDeviceAccessOverrides (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
listMobileDeviceAccessOverrides_nextToken :: Lens' ListMobileDeviceAccessOverrides (Maybe Text)
-- | The WorkMail user under which you list the mobile device access
-- overrides. Accepts the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
listMobileDeviceAccessOverrides_userId :: Lens' ListMobileDeviceAccessOverrides (Maybe Text)
-- | The WorkMail organization under which to list mobile device access
-- overrides.
listMobileDeviceAccessOverrides_organizationId :: Lens' ListMobileDeviceAccessOverrides Text
-- | See: newListMobileDeviceAccessOverridesResponse smart
-- constructor.
data ListMobileDeviceAccessOverridesResponse
ListMobileDeviceAccessOverridesResponse' :: Maybe Text -> Maybe [MobileDeviceAccessOverride] -> Int -> ListMobileDeviceAccessOverridesResponse
-- | The token to use to retrieve the next page of results. The value is
-- “null” when there are no more results to return.
[$sel:nextToken:ListMobileDeviceAccessOverridesResponse'] :: ListMobileDeviceAccessOverridesResponse -> Maybe Text
-- | The list of mobile device access overrides that exist for the
-- specified WorkMail organization and user.
[$sel:overrides:ListMobileDeviceAccessOverridesResponse'] :: ListMobileDeviceAccessOverridesResponse -> Maybe [MobileDeviceAccessOverride]
-- | The response's http status code.
[$sel:httpStatus:ListMobileDeviceAccessOverridesResponse'] :: ListMobileDeviceAccessOverridesResponse -> Int
-- | Create a value of ListMobileDeviceAccessOverridesResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverridesResponse_nextToken - The token
-- to use to retrieve the next page of results. The value is “null” when
-- there are no more results to return.
--
-- $sel:overrides:ListMobileDeviceAccessOverridesResponse',
-- listMobileDeviceAccessOverridesResponse_overrides - The list of
-- mobile device access overrides that exist for the specified WorkMail
-- organization and user.
--
-- $sel:httpStatus:ListMobileDeviceAccessOverridesResponse',
-- listMobileDeviceAccessOverridesResponse_httpStatus - The
-- response's http status code.
newListMobileDeviceAccessOverridesResponse :: Int -> ListMobileDeviceAccessOverridesResponse
-- | The token to use to retrieve the next page of results. The value is
-- “null” when there are no more results to return.
listMobileDeviceAccessOverridesResponse_nextToken :: Lens' ListMobileDeviceAccessOverridesResponse (Maybe Text)
-- | The list of mobile device access overrides that exist for the
-- specified WorkMail organization and user.
listMobileDeviceAccessOverridesResponse_overrides :: Lens' ListMobileDeviceAccessOverridesResponse (Maybe [MobileDeviceAccessOverride])
-- | The response's http status code.
listMobileDeviceAccessOverridesResponse_httpStatus :: Lens' ListMobileDeviceAccessOverridesResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance GHC.Show.Show Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance GHC.Read.Read Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance GHC.Classes.Eq Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance GHC.Generics.Generic Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverridesResponse
instance GHC.Show.Show Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverridesResponse
instance GHC.Read.Read Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverridesResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverridesResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverridesResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListMobileDeviceAccessOverrides.ListMobileDeviceAccessOverrides
-- | Lists the mailbox permissions associated with a user, group, or
-- resource mailbox.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListMailboxPermissions
-- | See: newListMailboxPermissions smart constructor.
data ListMailboxPermissions
ListMailboxPermissions' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListMailboxPermissions
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListMailboxPermissions'] :: ListMailboxPermissions -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListMailboxPermissions'] :: ListMailboxPermissions -> Maybe Text
-- | The identifier of the organization under which the user, group, or
-- resource exists.
[$sel:organizationId:ListMailboxPermissions'] :: ListMailboxPermissions -> Text
-- | The identifier of the user, group, or resource for which to list
-- mailbox permissions.
[$sel:entityId:ListMailboxPermissions'] :: ListMailboxPermissions -> Text
-- | Create a value of ListMailboxPermissions with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListMailboxPermissions',
-- listMailboxPermissions_maxResults - The maximum number of
-- results to return in a single call.
--
-- ListMailboxPermissions, listMailboxPermissions_nextToken
-- - The token to use to retrieve the next page of results. The first
-- call does not contain any tokens.
--
-- ListMailboxPermissions,
-- listMailboxPermissions_organizationId - The identifier of the
-- organization under which the user, group, or resource exists.
--
-- ListMailboxPermissions, listMailboxPermissions_entityId
-- - The identifier of the user, group, or resource for which to list
-- mailbox permissions.
newListMailboxPermissions :: Text -> Text -> ListMailboxPermissions
-- | The maximum number of results to return in a single call.
listMailboxPermissions_maxResults :: Lens' ListMailboxPermissions (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listMailboxPermissions_nextToken :: Lens' ListMailboxPermissions (Maybe Text)
-- | The identifier of the organization under which the user, group, or
-- resource exists.
listMailboxPermissions_organizationId :: Lens' ListMailboxPermissions Text
-- | The identifier of the user, group, or resource for which to list
-- mailbox permissions.
listMailboxPermissions_entityId :: Lens' ListMailboxPermissions Text
-- | See: newListMailboxPermissionsResponse smart
-- constructor.
data ListMailboxPermissionsResponse
ListMailboxPermissionsResponse' :: Maybe Text -> Maybe [Permission] -> Int -> ListMailboxPermissionsResponse
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
[$sel:nextToken:ListMailboxPermissionsResponse'] :: ListMailboxPermissionsResponse -> Maybe Text
-- | One page of the user, group, or resource mailbox permissions.
[$sel:permissions:ListMailboxPermissionsResponse'] :: ListMailboxPermissionsResponse -> Maybe [Permission]
-- | The response's http status code.
[$sel:httpStatus:ListMailboxPermissionsResponse'] :: ListMailboxPermissionsResponse -> Int
-- | Create a value of ListMailboxPermissionsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMailboxPermissions,
-- listMailboxPermissionsResponse_nextToken - The token to use to
-- retrieve the next page of results. The value is "null" when there are
-- no more results to return.
--
-- $sel:permissions:ListMailboxPermissionsResponse',
-- listMailboxPermissionsResponse_permissions - One page of the
-- user, group, or resource mailbox permissions.
--
-- $sel:httpStatus:ListMailboxPermissionsResponse',
-- listMailboxPermissionsResponse_httpStatus - The response's http
-- status code.
newListMailboxPermissionsResponse :: Int -> ListMailboxPermissionsResponse
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listMailboxPermissionsResponse_nextToken :: Lens' ListMailboxPermissionsResponse (Maybe Text)
-- | One page of the user, group, or resource mailbox permissions.
listMailboxPermissionsResponse_permissions :: Lens' ListMailboxPermissionsResponse (Maybe [Permission])
-- | The response's http status code.
listMailboxPermissionsResponse_httpStatus :: Lens' ListMailboxPermissionsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance GHC.Show.Show Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance GHC.Read.Read Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance GHC.Classes.Eq Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance GHC.Generics.Generic Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissionsResponse
instance GHC.Show.Show Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissionsResponse
instance GHC.Read.Read Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissionsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissionsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissionsResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListMailboxPermissions.ListMailboxPermissions
-- | Lists the mailbox export jobs started for the specified organization
-- within the last seven days.
module Amazonka.WorkMail.ListMailboxExportJobs
-- | See: newListMailboxExportJobs smart constructor.
data ListMailboxExportJobs
ListMailboxExportJobs' :: Maybe Natural -> Maybe Text -> Text -> ListMailboxExportJobs
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListMailboxExportJobs'] :: ListMailboxExportJobs -> Maybe Natural
-- | The token to use to retrieve the next page of results.
[$sel:nextToken:ListMailboxExportJobs'] :: ListMailboxExportJobs -> Maybe Text
-- | The organization ID.
[$sel:organizationId:ListMailboxExportJobs'] :: ListMailboxExportJobs -> Text
-- | Create a value of ListMailboxExportJobs with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListMailboxExportJobs',
-- listMailboxExportJobs_maxResults - The maximum number of
-- results to return in a single call.
--
-- ListMailboxExportJobs, listMailboxExportJobs_nextToken -
-- The token to use to retrieve the next page of results.
--
-- ListMailboxExportJobs,
-- listMailboxExportJobs_organizationId - The organization ID.
newListMailboxExportJobs :: Text -> ListMailboxExportJobs
-- | The maximum number of results to return in a single call.
listMailboxExportJobs_maxResults :: Lens' ListMailboxExportJobs (Maybe Natural)
-- | The token to use to retrieve the next page of results.
listMailboxExportJobs_nextToken :: Lens' ListMailboxExportJobs (Maybe Text)
-- | The organization ID.
listMailboxExportJobs_organizationId :: Lens' ListMailboxExportJobs Text
-- | See: newListMailboxExportJobsResponse smart constructor.
data ListMailboxExportJobsResponse
ListMailboxExportJobsResponse' :: Maybe [MailboxExportJob] -> Maybe Text -> Int -> ListMailboxExportJobsResponse
-- | The mailbox export job details.
[$sel:jobs:ListMailboxExportJobsResponse'] :: ListMailboxExportJobsResponse -> Maybe [MailboxExportJob]
-- | The token to use to retrieve the next page of results.
[$sel:nextToken:ListMailboxExportJobsResponse'] :: ListMailboxExportJobsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListMailboxExportJobsResponse'] :: ListMailboxExportJobsResponse -> Int
-- | Create a value of ListMailboxExportJobsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:jobs:ListMailboxExportJobsResponse',
-- listMailboxExportJobsResponse_jobs - The mailbox export job
-- details.
--
-- ListMailboxExportJobs,
-- listMailboxExportJobsResponse_nextToken - The token to use to
-- retrieve the next page of results.
--
-- $sel:httpStatus:ListMailboxExportJobsResponse',
-- listMailboxExportJobsResponse_httpStatus - The response's http
-- status code.
newListMailboxExportJobsResponse :: Int -> ListMailboxExportJobsResponse
-- | The mailbox export job details.
listMailboxExportJobsResponse_jobs :: Lens' ListMailboxExportJobsResponse (Maybe [MailboxExportJob])
-- | The token to use to retrieve the next page of results.
listMailboxExportJobsResponse_nextToken :: Lens' ListMailboxExportJobsResponse (Maybe Text)
-- | The response's http status code.
listMailboxExportJobsResponse_httpStatus :: Lens' ListMailboxExportJobsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance GHC.Show.Show Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance GHC.Read.Read Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance GHC.Classes.Eq Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance GHC.Generics.Generic Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobsResponse
instance GHC.Show.Show Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobsResponse
instance GHC.Read.Read Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobsResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListMailboxExportJobs.ListMailboxExportJobs
-- | Lists the mail domains in a given WorkMail organization.
module Amazonka.WorkMail.ListMailDomains
-- | See: newListMailDomains smart constructor.
data ListMailDomains
ListMailDomains' :: Maybe Natural -> Maybe Text -> Text -> ListMailDomains
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListMailDomains'] :: ListMailDomains -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
[$sel:nextToken:ListMailDomains'] :: ListMailDomains -> Maybe Text
-- | The WorkMail organization for which to list domains.
[$sel:organizationId:ListMailDomains'] :: ListMailDomains -> Text
-- | Create a value of ListMailDomains with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListMailDomains',
-- listMailDomains_maxResults - The maximum number of results to
-- return in a single call.
--
-- ListMailDomains, listMailDomains_nextToken - The token
-- to use to retrieve the next page of results. The first call does not
-- require a token.
--
-- ListMailDomains, listMailDomains_organizationId - The
-- WorkMail organization for which to list domains.
newListMailDomains :: Text -> ListMailDomains
-- | The maximum number of results to return in a single call.
listMailDomains_maxResults :: Lens' ListMailDomains (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
listMailDomains_nextToken :: Lens' ListMailDomains (Maybe Text)
-- | The WorkMail organization for which to list domains.
listMailDomains_organizationId :: Lens' ListMailDomains Text
-- | See: newListMailDomainsResponse smart constructor.
data ListMailDomainsResponse
ListMailDomainsResponse' :: Maybe [MailDomainSummary] -> Maybe Text -> Int -> ListMailDomainsResponse
-- | The list of mail domain summaries, specifying domains that exist in
-- the specified WorkMail organization, along with the information about
-- whether the domain is or isn't the default.
[$sel:mailDomains:ListMailDomainsResponse'] :: ListMailDomainsResponse -> Maybe [MailDomainSummary]
-- | The token to use to retrieve the next page of results. The value
-- becomes null when there are no more results to return.
[$sel:nextToken:ListMailDomainsResponse'] :: ListMailDomainsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListMailDomainsResponse'] :: ListMailDomainsResponse -> Int
-- | Create a value of ListMailDomainsResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:mailDomains:ListMailDomainsResponse',
-- listMailDomainsResponse_mailDomains - The list of mail domain
-- summaries, specifying domains that exist in the specified WorkMail
-- organization, along with the information about whether the domain is
-- or isn't the default.
--
-- ListMailDomains, listMailDomainsResponse_nextToken - The
-- token to use to retrieve the next page of results. The value becomes
-- null when there are no more results to return.
--
-- $sel:httpStatus:ListMailDomainsResponse',
-- listMailDomainsResponse_httpStatus - The response's http status
-- code.
newListMailDomainsResponse :: Int -> ListMailDomainsResponse
-- | The list of mail domain summaries, specifying domains that exist in
-- the specified WorkMail organization, along with the information about
-- whether the domain is or isn't the default.
listMailDomainsResponse_mailDomains :: Lens' ListMailDomainsResponse (Maybe [MailDomainSummary])
-- | The token to use to retrieve the next page of results. The value
-- becomes null when there are no more results to return.
listMailDomainsResponse_nextToken :: Lens' ListMailDomainsResponse (Maybe Text)
-- | The response's http status code.
listMailDomainsResponse_httpStatus :: Lens' ListMailDomainsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance GHC.Show.Show Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance GHC.Read.Read Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance GHC.Classes.Eq Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance GHC.Generics.Generic Amazonka.WorkMail.ListMailDomains.ListMailDomainsResponse
instance GHC.Show.Show Amazonka.WorkMail.ListMailDomains.ListMailDomainsResponse
instance GHC.Read.Read Amazonka.WorkMail.ListMailDomains.ListMailDomainsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListMailDomains.ListMailDomainsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMailDomains.ListMailDomainsResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListMailDomains.ListMailDomains
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListMailDomains.ListMailDomains
-- | Lists all the impersonation roles for the given WorkMail organization.
module Amazonka.WorkMail.ListImpersonationRoles
-- | See: newListImpersonationRoles smart constructor.
data ListImpersonationRoles
ListImpersonationRoles' :: Maybe Natural -> Maybe Text -> Text -> ListImpersonationRoles
-- | The maximum number of results returned in a single call.
[$sel:maxResults:ListImpersonationRoles'] :: ListImpersonationRoles -> Maybe Natural
-- | The token used to retrieve the next page of results. The first call
-- doesn't require a token.
[$sel:nextToken:ListImpersonationRoles'] :: ListImpersonationRoles -> Maybe Text
-- | The WorkMail organization to which the listed impersonation roles
-- belong.
[$sel:organizationId:ListImpersonationRoles'] :: ListImpersonationRoles -> Text
-- | Create a value of ListImpersonationRoles with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListImpersonationRoles',
-- listImpersonationRoles_maxResults - The maximum number of
-- results returned in a single call.
--
-- ListImpersonationRoles, listImpersonationRoles_nextToken
-- - The token used to retrieve the next page of results. The first call
-- doesn't require a token.
--
-- ListImpersonationRoles,
-- listImpersonationRoles_organizationId - The WorkMail
-- organization to which the listed impersonation roles belong.
newListImpersonationRoles :: Text -> ListImpersonationRoles
-- | The maximum number of results returned in a single call.
listImpersonationRoles_maxResults :: Lens' ListImpersonationRoles (Maybe Natural)
-- | The token used to retrieve the next page of results. The first call
-- doesn't require a token.
listImpersonationRoles_nextToken :: Lens' ListImpersonationRoles (Maybe Text)
-- | The WorkMail organization to which the listed impersonation roles
-- belong.
listImpersonationRoles_organizationId :: Lens' ListImpersonationRoles Text
-- | See: newListImpersonationRolesResponse smart
-- constructor.
data ListImpersonationRolesResponse
ListImpersonationRolesResponse' :: Maybe Text -> Maybe [ImpersonationRole] -> Int -> ListImpersonationRolesResponse
-- | The token to retrieve the next page of results. The value is
-- null when there are no results to return.
[$sel:nextToken:ListImpersonationRolesResponse'] :: ListImpersonationRolesResponse -> Maybe Text
-- | The list of impersonation roles under the given WorkMail organization.
[$sel:roles:ListImpersonationRolesResponse'] :: ListImpersonationRolesResponse -> Maybe [ImpersonationRole]
-- | The response's http status code.
[$sel:httpStatus:ListImpersonationRolesResponse'] :: ListImpersonationRolesResponse -> Int
-- | Create a value of ListImpersonationRolesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListImpersonationRoles,
-- listImpersonationRolesResponse_nextToken - The token to
-- retrieve the next page of results. The value is null when
-- there are no results to return.
--
-- $sel:roles:ListImpersonationRolesResponse',
-- listImpersonationRolesResponse_roles - The list of
-- impersonation roles under the given WorkMail organization.
--
-- $sel:httpStatus:ListImpersonationRolesResponse',
-- listImpersonationRolesResponse_httpStatus - The response's http
-- status code.
newListImpersonationRolesResponse :: Int -> ListImpersonationRolesResponse
-- | The token to retrieve the next page of results. The value is
-- null when there are no results to return.
listImpersonationRolesResponse_nextToken :: Lens' ListImpersonationRolesResponse (Maybe Text)
-- | The list of impersonation roles under the given WorkMail organization.
listImpersonationRolesResponse_roles :: Lens' ListImpersonationRolesResponse (Maybe [ImpersonationRole])
-- | The response's http status code.
listImpersonationRolesResponse_httpStatus :: Lens' ListImpersonationRolesResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance GHC.Show.Show Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance GHC.Read.Read Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance GHC.Classes.Eq Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance GHC.Generics.Generic Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRolesResponse
instance GHC.Show.Show Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRolesResponse
instance GHC.Read.Read Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRolesResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRolesResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRolesResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListImpersonationRoles.ListImpersonationRoles
-- | Returns summaries of the organization's groups.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListGroups
-- | See: newListGroups smart constructor.
data ListGroups
ListGroups' :: Maybe Natural -> Maybe Text -> Text -> ListGroups
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListGroups'] :: ListGroups -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListGroups'] :: ListGroups -> Maybe Text
-- | The identifier for the organization under which the groups exist.
[$sel:organizationId:ListGroups'] :: ListGroups -> Text
-- | Create a value of ListGroups with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListGroups', listGroups_maxResults - The
-- maximum number of results to return in a single call.
--
-- ListGroups, listGroups_nextToken - The token to use to
-- retrieve the next page of results. The first call does not contain any
-- tokens.
--
-- ListGroups, listGroups_organizationId - The identifier
-- for the organization under which the groups exist.
newListGroups :: Text -> ListGroups
-- | The maximum number of results to return in a single call.
listGroups_maxResults :: Lens' ListGroups (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listGroups_nextToken :: Lens' ListGroups (Maybe Text)
-- | The identifier for the organization under which the groups exist.
listGroups_organizationId :: Lens' ListGroups Text
-- | See: newListGroupsResponse smart constructor.
data ListGroupsResponse
ListGroupsResponse' :: Maybe [Group] -> Maybe Text -> Int -> ListGroupsResponse
-- | The overview of groups for an organization.
[$sel:groups:ListGroupsResponse'] :: ListGroupsResponse -> Maybe [Group]
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
[$sel:nextToken:ListGroupsResponse'] :: ListGroupsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListGroupsResponse'] :: ListGroupsResponse -> Int
-- | Create a value of ListGroupsResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:groups:ListGroupsResponse',
-- listGroupsResponse_groups - The overview of groups for an
-- organization.
--
-- ListGroups, listGroupsResponse_nextToken - The token to
-- use to retrieve the next page of results. The value is "null" when
-- there are no more results to return.
--
-- $sel:httpStatus:ListGroupsResponse',
-- listGroupsResponse_httpStatus - The response's http status
-- code.
newListGroupsResponse :: Int -> ListGroupsResponse
-- | The overview of groups for an organization.
listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [Group])
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listGroupsResponse_nextToken :: Lens' ListGroupsResponse (Maybe Text)
-- | The response's http status code.
listGroupsResponse_httpStatus :: Lens' ListGroupsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListGroups.ListGroups
instance GHC.Show.Show Amazonka.WorkMail.ListGroups.ListGroups
instance GHC.Read.Read Amazonka.WorkMail.ListGroups.ListGroups
instance GHC.Classes.Eq Amazonka.WorkMail.ListGroups.ListGroups
instance GHC.Generics.Generic Amazonka.WorkMail.ListGroups.ListGroupsResponse
instance GHC.Show.Show Amazonka.WorkMail.ListGroups.ListGroupsResponse
instance GHC.Read.Read Amazonka.WorkMail.ListGroups.ListGroupsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListGroups.ListGroupsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListGroups.ListGroups
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListGroups.ListGroupsResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListGroups.ListGroups
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListGroups.ListGroups
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListGroups.ListGroups
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListGroups.ListGroups
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListGroups.ListGroups
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListGroups.ListGroups
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListGroups.ListGroups
-- | Returns an overview of the members of a group. Users and groups can be
-- members of a group.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListGroupMembers
-- | See: newListGroupMembers smart constructor.
data ListGroupMembers
ListGroupMembers' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListGroupMembers
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListGroupMembers'] :: ListGroupMembers -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListGroupMembers'] :: ListGroupMembers -> Maybe Text
-- | The identifier for the organization under which the group exists.
[$sel:organizationId:ListGroupMembers'] :: ListGroupMembers -> Text
-- | The identifier for the group to which the members (users or groups)
-- are associated.
[$sel:groupId:ListGroupMembers'] :: ListGroupMembers -> Text
-- | Create a value of ListGroupMembers with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListGroupMembers',
-- listGroupMembers_maxResults - The maximum number of results to
-- return in a single call.
--
-- ListGroupMembers, listGroupMembers_nextToken - The token
-- to use to retrieve the next page of results. The first call does not
-- contain any tokens.
--
-- ListGroupMembers, listGroupMembers_organizationId - The
-- identifier for the organization under which the group exists.
--
-- $sel:groupId:ListGroupMembers', listGroupMembers_groupId
-- - The identifier for the group to which the members (users or groups)
-- are associated.
newListGroupMembers :: Text -> Text -> ListGroupMembers
-- | The maximum number of results to return in a single call.
listGroupMembers_maxResults :: Lens' ListGroupMembers (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listGroupMembers_nextToken :: Lens' ListGroupMembers (Maybe Text)
-- | The identifier for the organization under which the group exists.
listGroupMembers_organizationId :: Lens' ListGroupMembers Text
-- | The identifier for the group to which the members (users or groups)
-- are associated.
listGroupMembers_groupId :: Lens' ListGroupMembers Text
-- | See: newListGroupMembersResponse smart constructor.
data ListGroupMembersResponse
ListGroupMembersResponse' :: Maybe [Member] -> Maybe Text -> Int -> ListGroupMembersResponse
-- | The members associated to the group.
[$sel:members:ListGroupMembersResponse'] :: ListGroupMembersResponse -> Maybe [Member]
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListGroupMembersResponse'] :: ListGroupMembersResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListGroupMembersResponse'] :: ListGroupMembersResponse -> Int
-- | Create a value of ListGroupMembersResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:members:ListGroupMembersResponse',
-- listGroupMembersResponse_members - The members associated to
-- the group.
--
-- ListGroupMembers, listGroupMembersResponse_nextToken -
-- The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
--
-- $sel:httpStatus:ListGroupMembersResponse',
-- listGroupMembersResponse_httpStatus - The response's http
-- status code.
newListGroupMembersResponse :: Int -> ListGroupMembersResponse
-- | The members associated to the group.
listGroupMembersResponse_members :: Lens' ListGroupMembersResponse (Maybe [Member])
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listGroupMembersResponse_nextToken :: Lens' ListGroupMembersResponse (Maybe Text)
-- | The response's http status code.
listGroupMembersResponse_httpStatus :: Lens' ListGroupMembersResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance GHC.Show.Show Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance GHC.Read.Read Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance GHC.Classes.Eq Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance GHC.Generics.Generic Amazonka.WorkMail.ListGroupMembers.ListGroupMembersResponse
instance GHC.Show.Show Amazonka.WorkMail.ListGroupMembers.ListGroupMembersResponse
instance GHC.Read.Read Amazonka.WorkMail.ListGroupMembers.ListGroupMembersResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListGroupMembers.ListGroupMembersResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListGroupMembers.ListGroupMembersResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListGroupMembers.ListGroupMembers
-- | List all the AvailabilityConfiguration's for the given
-- WorkMail organization.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListAvailabilityConfigurations
-- | See: newListAvailabilityConfigurations smart
-- constructor.
data ListAvailabilityConfigurations
ListAvailabilityConfigurations' :: Maybe Natural -> Maybe Text -> Text -> ListAvailabilityConfigurations
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListAvailabilityConfigurations'] :: ListAvailabilityConfigurations -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
[$sel:nextToken:ListAvailabilityConfigurations'] :: ListAvailabilityConfigurations -> Maybe Text
-- | The WorkMail organization for which the
-- AvailabilityConfiguration's will be listed.
[$sel:organizationId:ListAvailabilityConfigurations'] :: ListAvailabilityConfigurations -> Text
-- | Create a value of ListAvailabilityConfigurations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListAvailabilityConfigurations',
-- listAvailabilityConfigurations_maxResults - The maximum number
-- of results to return in a single call.
--
-- ListAvailabilityConfigurations,
-- listAvailabilityConfigurations_nextToken - The token to use to
-- retrieve the next page of results. The first call does not require a
-- token.
--
-- ListAvailabilityConfigurations,
-- listAvailabilityConfigurations_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration's will
-- be listed.
newListAvailabilityConfigurations :: Text -> ListAvailabilityConfigurations
-- | The maximum number of results to return in a single call.
listAvailabilityConfigurations_maxResults :: Lens' ListAvailabilityConfigurations (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
listAvailabilityConfigurations_nextToken :: Lens' ListAvailabilityConfigurations (Maybe Text)
-- | The WorkMail organization for which the
-- AvailabilityConfiguration's will be listed.
listAvailabilityConfigurations_organizationId :: Lens' ListAvailabilityConfigurations Text
-- | See: newListAvailabilityConfigurationsResponse smart
-- constructor.
data ListAvailabilityConfigurationsResponse
ListAvailabilityConfigurationsResponse' :: Maybe [AvailabilityConfiguration] -> Maybe Text -> Int -> ListAvailabilityConfigurationsResponse
-- | The list of AvailabilityConfiguration's that exist for the
-- specified WorkMail organization.
[$sel:availabilityConfigurations:ListAvailabilityConfigurationsResponse'] :: ListAvailabilityConfigurationsResponse -> Maybe [AvailabilityConfiguration]
-- | The token to use to retrieve the next page of results. The value is
-- null when there are no further results to return.
[$sel:nextToken:ListAvailabilityConfigurationsResponse'] :: ListAvailabilityConfigurationsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListAvailabilityConfigurationsResponse'] :: ListAvailabilityConfigurationsResponse -> Int
-- | Create a value of ListAvailabilityConfigurationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:availabilityConfigurations:ListAvailabilityConfigurationsResponse',
-- listAvailabilityConfigurationsResponse_availabilityConfigurations
-- - The list of AvailabilityConfiguration's that exist for the
-- specified WorkMail organization.
--
-- ListAvailabilityConfigurations,
-- listAvailabilityConfigurationsResponse_nextToken - The token to
-- use to retrieve the next page of results. The value is null
-- when there are no further results to return.
--
-- $sel:httpStatus:ListAvailabilityConfigurationsResponse',
-- listAvailabilityConfigurationsResponse_httpStatus - The
-- response's http status code.
newListAvailabilityConfigurationsResponse :: Int -> ListAvailabilityConfigurationsResponse
-- | The list of AvailabilityConfiguration's that exist for the
-- specified WorkMail organization.
listAvailabilityConfigurationsResponse_availabilityConfigurations :: Lens' ListAvailabilityConfigurationsResponse (Maybe [AvailabilityConfiguration])
-- | The token to use to retrieve the next page of results. The value is
-- null when there are no further results to return.
listAvailabilityConfigurationsResponse_nextToken :: Lens' ListAvailabilityConfigurationsResponse (Maybe Text)
-- | The response's http status code.
listAvailabilityConfigurationsResponse_httpStatus :: Lens' ListAvailabilityConfigurationsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance GHC.Show.Show Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance GHC.Read.Read Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance GHC.Classes.Eq Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance GHC.Generics.Generic Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurationsResponse
instance GHC.Show.Show Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurationsResponse
instance GHC.Read.Read Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurationsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurationsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurationsResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListAvailabilityConfigurations.ListAvailabilityConfigurations
-- | Creates a paginated call to list the aliases associated with a given
-- entity.
--
-- This operation returns paginated results.
module Amazonka.WorkMail.ListAliases
-- | See: newListAliases smart constructor.
data ListAliases
ListAliases' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListAliases
-- | The maximum number of results to return in a single call.
[$sel:maxResults:ListAliases'] :: ListAliases -> Maybe Natural
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
[$sel:nextToken:ListAliases'] :: ListAliases -> Maybe Text
-- | The identifier for the organization under which the entity exists.
[$sel:organizationId:ListAliases'] :: ListAliases -> Text
-- | The identifier for the entity for which to list the aliases.
[$sel:entityId:ListAliases'] :: ListAliases -> Text
-- | Create a value of ListAliases with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListAliases', listAliases_maxResults -
-- The maximum number of results to return in a single call.
--
-- ListAliases, listAliases_nextToken - The token to use to
-- retrieve the next page of results. The first call does not contain any
-- tokens.
--
-- ListAliases, listAliases_organizationId - The identifier
-- for the organization under which the entity exists.
--
-- ListAliases, listAliases_entityId - The identifier for
-- the entity for which to list the aliases.
newListAliases :: Text -> Text -> ListAliases
-- | The maximum number of results to return in a single call.
listAliases_maxResults :: Lens' ListAliases (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listAliases_nextToken :: Lens' ListAliases (Maybe Text)
-- | The identifier for the organization under which the entity exists.
listAliases_organizationId :: Lens' ListAliases Text
-- | The identifier for the entity for which to list the aliases.
listAliases_entityId :: Lens' ListAliases Text
-- | See: newListAliasesResponse smart constructor.
data ListAliasesResponse
ListAliasesResponse' :: Maybe [Text] -> Maybe Text -> Int -> ListAliasesResponse
-- | The entity's paginated aliases.
[$sel:aliases:ListAliasesResponse'] :: ListAliasesResponse -> Maybe [Text]
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
[$sel:nextToken:ListAliasesResponse'] :: ListAliasesResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListAliasesResponse'] :: ListAliasesResponse -> Int
-- | Create a value of ListAliasesResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:aliases:ListAliasesResponse',
-- listAliasesResponse_aliases - The entity's paginated aliases.
--
-- ListAliases, listAliasesResponse_nextToken - The token
-- to use to retrieve the next page of results. The value is "null" when
-- there are no more results to return.
--
-- $sel:httpStatus:ListAliasesResponse',
-- listAliasesResponse_httpStatus - The response's http status
-- code.
newListAliasesResponse :: Int -> ListAliasesResponse
-- | The entity's paginated aliases.
listAliasesResponse_aliases :: Lens' ListAliasesResponse (Maybe [Text])
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listAliasesResponse_nextToken :: Lens' ListAliasesResponse (Maybe Text)
-- | The response's http status code.
listAliasesResponse_httpStatus :: Lens' ListAliasesResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListAliases.ListAliases
instance GHC.Show.Show Amazonka.WorkMail.ListAliases.ListAliases
instance GHC.Read.Read Amazonka.WorkMail.ListAliases.ListAliases
instance GHC.Classes.Eq Amazonka.WorkMail.ListAliases.ListAliases
instance GHC.Generics.Generic Amazonka.WorkMail.ListAliases.ListAliasesResponse
instance GHC.Show.Show Amazonka.WorkMail.ListAliases.ListAliasesResponse
instance GHC.Read.Read Amazonka.WorkMail.ListAliases.ListAliasesResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListAliases.ListAliasesResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListAliases.ListAliases
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListAliases.ListAliasesResponse
instance Amazonka.Pager.AWSPager Amazonka.WorkMail.ListAliases.ListAliases
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListAliases.ListAliases
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListAliases.ListAliases
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListAliases.ListAliases
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListAliases.ListAliases
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListAliases.ListAliases
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListAliases.ListAliases
-- | Lists the access control rules for the specified organization.
module Amazonka.WorkMail.ListAccessControlRules
-- | See: newListAccessControlRules smart constructor.
data ListAccessControlRules
ListAccessControlRules' :: Text -> ListAccessControlRules
-- | The identifier for the organization.
[$sel:organizationId:ListAccessControlRules'] :: ListAccessControlRules -> Text
-- | Create a value of ListAccessControlRules with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListAccessControlRules,
-- listAccessControlRules_organizationId - The identifier for the
-- organization.
newListAccessControlRules :: Text -> ListAccessControlRules
-- | The identifier for the organization.
listAccessControlRules_organizationId :: Lens' ListAccessControlRules Text
-- | See: newListAccessControlRulesResponse smart
-- constructor.
data ListAccessControlRulesResponse
ListAccessControlRulesResponse' :: Maybe [AccessControlRule] -> Int -> ListAccessControlRulesResponse
-- | The access control rules.
[$sel:rules:ListAccessControlRulesResponse'] :: ListAccessControlRulesResponse -> Maybe [AccessControlRule]
-- | The response's http status code.
[$sel:httpStatus:ListAccessControlRulesResponse'] :: ListAccessControlRulesResponse -> Int
-- | Create a value of ListAccessControlRulesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:rules:ListAccessControlRulesResponse',
-- listAccessControlRulesResponse_rules - The access control
-- rules.
--
-- $sel:httpStatus:ListAccessControlRulesResponse',
-- listAccessControlRulesResponse_httpStatus - The response's http
-- status code.
newListAccessControlRulesResponse :: Int -> ListAccessControlRulesResponse
-- | The access control rules.
listAccessControlRulesResponse_rules :: Lens' ListAccessControlRulesResponse (Maybe [AccessControlRule])
-- | The response's http status code.
listAccessControlRulesResponse_httpStatus :: Lens' ListAccessControlRulesResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance GHC.Show.Show Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance GHC.Read.Read Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance GHC.Classes.Eq Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance GHC.Generics.Generic Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRulesResponse
instance GHC.Show.Show Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRulesResponse
instance GHC.Read.Read Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRulesResponse
instance GHC.Classes.Eq Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRulesResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRulesResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance Control.DeepSeq.NFData Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.ListAccessControlRules.ListAccessControlRules
-- | Gets the mobile device access override for the given WorkMail
-- organization, user, and device.
module Amazonka.WorkMail.GetMobileDeviceAccessOverride
-- | See: newGetMobileDeviceAccessOverride smart constructor.
data GetMobileDeviceAccessOverride
GetMobileDeviceAccessOverride' :: Text -> Text -> Text -> GetMobileDeviceAccessOverride
-- | The WorkMail organization to which you want to apply the override.
[$sel:organizationId:GetMobileDeviceAccessOverride'] :: GetMobileDeviceAccessOverride -> Text
-- | Identifies the WorkMail user for the override. Accepts the following
-- types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
[$sel:userId:GetMobileDeviceAccessOverride'] :: GetMobileDeviceAccessOverride -> Text
-- | The mobile device to which the override applies. DeviceId is
-- case insensitive.
[$sel:deviceId:GetMobileDeviceAccessOverride'] :: GetMobileDeviceAccessOverride -> Text
-- | Create a value of GetMobileDeviceAccessOverride with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverride_organizationId - The WorkMail
-- organization to which you want to apply the override.
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverride_userId - Identifies the WorkMail
-- user for the override. Accepts the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverride_deviceId - The mobile device to
-- which the override applies. DeviceId is case insensitive.
newGetMobileDeviceAccessOverride :: Text -> Text -> Text -> GetMobileDeviceAccessOverride
-- | The WorkMail organization to which you want to apply the override.
getMobileDeviceAccessOverride_organizationId :: Lens' GetMobileDeviceAccessOverride Text
-- | Identifies the WorkMail user for the override. Accepts the following
-- types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
getMobileDeviceAccessOverride_userId :: Lens' GetMobileDeviceAccessOverride Text
-- | The mobile device to which the override applies. DeviceId is
-- case insensitive.
getMobileDeviceAccessOverride_deviceId :: Lens' GetMobileDeviceAccessOverride Text
-- | See: newGetMobileDeviceAccessOverrideResponse smart
-- constructor.
data GetMobileDeviceAccessOverrideResponse
GetMobileDeviceAccessOverrideResponse' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> Int -> GetMobileDeviceAccessOverrideResponse
-- | The date the override was first created.
[$sel:dateCreated:GetMobileDeviceAccessOverrideResponse'] :: GetMobileDeviceAccessOverrideResponse -> Maybe POSIX
-- | The date the description was last modified.
[$sel:dateModified:GetMobileDeviceAccessOverrideResponse'] :: GetMobileDeviceAccessOverrideResponse -> Maybe POSIX
-- | A description of the override.
[$sel:description:GetMobileDeviceAccessOverrideResponse'] :: GetMobileDeviceAccessOverrideResponse -> Maybe Text
-- | The device to which the access override applies.
[$sel:deviceId:GetMobileDeviceAccessOverrideResponse'] :: GetMobileDeviceAccessOverrideResponse -> Maybe Text
-- | The effect of the override, ALLOW or DENY.
[$sel:effect:GetMobileDeviceAccessOverrideResponse'] :: GetMobileDeviceAccessOverrideResponse -> Maybe MobileDeviceAccessRuleEffect
-- | The WorkMail user to which the access override applies.
[$sel:userId:GetMobileDeviceAccessOverrideResponse'] :: GetMobileDeviceAccessOverrideResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetMobileDeviceAccessOverrideResponse'] :: GetMobileDeviceAccessOverrideResponse -> Int
-- | Create a value of GetMobileDeviceAccessOverrideResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_dateCreated - The date
-- the override was first created.
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_dateModified - The date
-- the description was last modified.
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_description - A
-- description of the override.
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverrideResponse_deviceId - The device to
-- which the access override applies.
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_effect - The effect of
-- the override, ALLOW or DENY.
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverrideResponse_userId - The WorkMail
-- user to which the access override applies.
--
-- $sel:httpStatus:GetMobileDeviceAccessOverrideResponse',
-- getMobileDeviceAccessOverrideResponse_httpStatus - The
-- response's http status code.
newGetMobileDeviceAccessOverrideResponse :: Int -> GetMobileDeviceAccessOverrideResponse
-- | The date the override was first created.
getMobileDeviceAccessOverrideResponse_dateCreated :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe UTCTime)
-- | The date the description was last modified.
getMobileDeviceAccessOverrideResponse_dateModified :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe UTCTime)
-- | A description of the override.
getMobileDeviceAccessOverrideResponse_description :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe Text)
-- | The device to which the access override applies.
getMobileDeviceAccessOverrideResponse_deviceId :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe Text)
-- | The effect of the override, ALLOW or DENY.
getMobileDeviceAccessOverrideResponse_effect :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe MobileDeviceAccessRuleEffect)
-- | The WorkMail user to which the access override applies.
getMobileDeviceAccessOverrideResponse_userId :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe Text)
-- | The response's http status code.
getMobileDeviceAccessOverrideResponse_httpStatus :: Lens' GetMobileDeviceAccessOverrideResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance GHC.Show.Show Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance GHC.Read.Read Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance GHC.Classes.Eq Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance GHC.Generics.Generic Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverrideResponse
instance GHC.Show.Show Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverrideResponse
instance GHC.Read.Read Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverrideResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverrideResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverrideResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetMobileDeviceAccessOverride.GetMobileDeviceAccessOverride
-- | Simulates the effect of the mobile device access rules for the given
-- attributes of a sample access event. Use this method to test the
-- effects of the current set of mobile device access rules for the
-- WorkMail organization for a particular user's attributes.
module Amazonka.WorkMail.GetMobileDeviceAccessEffect
-- | See: newGetMobileDeviceAccessEffect smart constructor.
data GetMobileDeviceAccessEffect
GetMobileDeviceAccessEffect' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Text -> GetMobileDeviceAccessEffect
-- | Device model the simulated user will report.
[$sel:deviceModel:GetMobileDeviceAccessEffect'] :: GetMobileDeviceAccessEffect -> Maybe Text
-- | Device operating system the simulated user will report.
[$sel:deviceOperatingSystem:GetMobileDeviceAccessEffect'] :: GetMobileDeviceAccessEffect -> Maybe Text
-- | Device type the simulated user will report.
[$sel:deviceType:GetMobileDeviceAccessEffect'] :: GetMobileDeviceAccessEffect -> Maybe Text
-- | Device user agent the simulated user will report.
[$sel:deviceUserAgent:GetMobileDeviceAccessEffect'] :: GetMobileDeviceAccessEffect -> Maybe Text
-- | The WorkMail organization to simulate the access effect for.
[$sel:organizationId:GetMobileDeviceAccessEffect'] :: GetMobileDeviceAccessEffect -> Text
-- | Create a value of GetMobileDeviceAccessEffect with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:deviceModel:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceModel - Device model the
-- simulated user will report.
--
-- $sel:deviceOperatingSystem:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceOperatingSystem - Device
-- operating system the simulated user will report.
--
-- $sel:deviceType:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceType - Device type the
-- simulated user will report.
--
-- $sel:deviceUserAgent:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceUserAgent - Device user agent
-- the simulated user will report.
--
-- GetMobileDeviceAccessEffect,
-- getMobileDeviceAccessEffect_organizationId - The WorkMail
-- organization to simulate the access effect for.
newGetMobileDeviceAccessEffect :: Text -> GetMobileDeviceAccessEffect
-- | Device model the simulated user will report.
getMobileDeviceAccessEffect_deviceModel :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | Device operating system the simulated user will report.
getMobileDeviceAccessEffect_deviceOperatingSystem :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | Device type the simulated user will report.
getMobileDeviceAccessEffect_deviceType :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | Device user agent the simulated user will report.
getMobileDeviceAccessEffect_deviceUserAgent :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | The WorkMail organization to simulate the access effect for.
getMobileDeviceAccessEffect_organizationId :: Lens' GetMobileDeviceAccessEffect Text
-- | See: newGetMobileDeviceAccessEffectResponse smart
-- constructor.
data GetMobileDeviceAccessEffectResponse
GetMobileDeviceAccessEffectResponse' :: Maybe MobileDeviceAccessRuleEffect -> Maybe [MobileDeviceAccessMatchedRule] -> Int -> GetMobileDeviceAccessEffectResponse
-- | The effect of the simulated access, ALLOW or DENY,
-- after evaluating mobile device access rules in the WorkMail
-- organization for the simulated user parameters.
[$sel:effect:GetMobileDeviceAccessEffectResponse'] :: GetMobileDeviceAccessEffectResponse -> Maybe MobileDeviceAccessRuleEffect
-- | A list of the rules which matched the simulated user input and
-- produced the effect.
[$sel:matchedRules:GetMobileDeviceAccessEffectResponse'] :: GetMobileDeviceAccessEffectResponse -> Maybe [MobileDeviceAccessMatchedRule]
-- | The response's http status code.
[$sel:httpStatus:GetMobileDeviceAccessEffectResponse'] :: GetMobileDeviceAccessEffectResponse -> Int
-- | Create a value of GetMobileDeviceAccessEffectResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMobileDeviceAccessEffectResponse,
-- getMobileDeviceAccessEffectResponse_effect - The effect of the
-- simulated access, ALLOW or DENY, after evaluating
-- mobile device access rules in the WorkMail organization for the
-- simulated user parameters.
--
-- $sel:matchedRules:GetMobileDeviceAccessEffectResponse',
-- getMobileDeviceAccessEffectResponse_matchedRules - A list of
-- the rules which matched the simulated user input and produced the
-- effect.
--
-- $sel:httpStatus:GetMobileDeviceAccessEffectResponse',
-- getMobileDeviceAccessEffectResponse_httpStatus - The response's
-- http status code.
newGetMobileDeviceAccessEffectResponse :: Int -> GetMobileDeviceAccessEffectResponse
-- | The effect of the simulated access, ALLOW or DENY,
-- after evaluating mobile device access rules in the WorkMail
-- organization for the simulated user parameters.
getMobileDeviceAccessEffectResponse_effect :: Lens' GetMobileDeviceAccessEffectResponse (Maybe MobileDeviceAccessRuleEffect)
-- | A list of the rules which matched the simulated user input and
-- produced the effect.
getMobileDeviceAccessEffectResponse_matchedRules :: Lens' GetMobileDeviceAccessEffectResponse (Maybe [MobileDeviceAccessMatchedRule])
-- | The response's http status code.
getMobileDeviceAccessEffectResponse_httpStatus :: Lens' GetMobileDeviceAccessEffectResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance GHC.Show.Show Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance GHC.Read.Read Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance GHC.Classes.Eq Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance GHC.Generics.Generic Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffectResponse
instance GHC.Show.Show Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffectResponse
instance GHC.Read.Read Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffectResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffectResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffectResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetMobileDeviceAccessEffect.GetMobileDeviceAccessEffect
-- | Requests a user's mailbox details for a specified organization and
-- user.
module Amazonka.WorkMail.GetMailboxDetails
-- | See: newGetMailboxDetails smart constructor.
data GetMailboxDetails
GetMailboxDetails' :: Text -> Text -> GetMailboxDetails
-- | The identifier for the organization that contains the user whose
-- mailbox details are being requested.
[$sel:organizationId:GetMailboxDetails'] :: GetMailboxDetails -> Text
-- | The identifier for the user whose mailbox details are being requested.
[$sel:userId:GetMailboxDetails'] :: GetMailboxDetails -> Text
-- | Create a value of GetMailboxDetails with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMailboxDetails, getMailboxDetails_organizationId -
-- The identifier for the organization that contains the user whose
-- mailbox details are being requested.
--
-- GetMailboxDetails, getMailboxDetails_userId - The
-- identifier for the user whose mailbox details are being requested.
newGetMailboxDetails :: Text -> Text -> GetMailboxDetails
-- | The identifier for the organization that contains the user whose
-- mailbox details are being requested.
getMailboxDetails_organizationId :: Lens' GetMailboxDetails Text
-- | The identifier for the user whose mailbox details are being requested.
getMailboxDetails_userId :: Lens' GetMailboxDetails Text
-- | See: newGetMailboxDetailsResponse smart constructor.
data GetMailboxDetailsResponse
GetMailboxDetailsResponse' :: Maybe Natural -> Maybe Double -> Int -> GetMailboxDetailsResponse
-- | The maximum allowed mailbox size, in MB, for the specified user.
[$sel:mailboxQuota:GetMailboxDetailsResponse'] :: GetMailboxDetailsResponse -> Maybe Natural
-- | The current mailbox size, in MB, for the specified user.
[$sel:mailboxSize:GetMailboxDetailsResponse'] :: GetMailboxDetailsResponse -> Maybe Double
-- | The response's http status code.
[$sel:httpStatus:GetMailboxDetailsResponse'] :: GetMailboxDetailsResponse -> Int
-- | Create a value of GetMailboxDetailsResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:mailboxQuota:GetMailboxDetailsResponse',
-- getMailboxDetailsResponse_mailboxQuota - The maximum allowed
-- mailbox size, in MB, for the specified user.
--
-- $sel:mailboxSize:GetMailboxDetailsResponse',
-- getMailboxDetailsResponse_mailboxSize - The current mailbox
-- size, in MB, for the specified user.
--
-- $sel:httpStatus:GetMailboxDetailsResponse',
-- getMailboxDetailsResponse_httpStatus - The response's http
-- status code.
newGetMailboxDetailsResponse :: Int -> GetMailboxDetailsResponse
-- | The maximum allowed mailbox size, in MB, for the specified user.
getMailboxDetailsResponse_mailboxQuota :: Lens' GetMailboxDetailsResponse (Maybe Natural)
-- | The current mailbox size, in MB, for the specified user.
getMailboxDetailsResponse_mailboxSize :: Lens' GetMailboxDetailsResponse (Maybe Double)
-- | The response's http status code.
getMailboxDetailsResponse_httpStatus :: Lens' GetMailboxDetailsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance GHC.Show.Show Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance GHC.Read.Read Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance GHC.Classes.Eq Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance GHC.Generics.Generic Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetailsResponse
instance GHC.Show.Show Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetailsResponse
instance GHC.Read.Read Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetailsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetailsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetailsResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetMailboxDetails.GetMailboxDetails
-- | Gets details for a mail domain, including domain records required to
-- configure your domain with recommended security.
module Amazonka.WorkMail.GetMailDomain
-- | See: newGetMailDomain smart constructor.
data GetMailDomain
GetMailDomain' :: Text -> Text -> GetMailDomain
-- | The WorkMail organization for which the domain is retrieved.
[$sel:organizationId:GetMailDomain'] :: GetMailDomain -> Text
-- | The domain from which you want to retrieve details.
[$sel:domainName:GetMailDomain'] :: GetMailDomain -> Text
-- | Create a value of GetMailDomain with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMailDomain, getMailDomain_organizationId - The
-- WorkMail organization for which the domain is retrieved.
--
-- GetMailDomain, getMailDomain_domainName - The domain
-- from which you want to retrieve details.
newGetMailDomain :: Text -> Text -> GetMailDomain
-- | The WorkMail organization for which the domain is retrieved.
getMailDomain_organizationId :: Lens' GetMailDomain Text
-- | The domain from which you want to retrieve details.
getMailDomain_domainName :: Lens' GetMailDomain Text
-- | See: newGetMailDomainResponse smart constructor.
data GetMailDomainResponse
GetMailDomainResponse' :: Maybe DnsRecordVerificationStatus -> Maybe Bool -> Maybe Bool -> Maybe DnsRecordVerificationStatus -> Maybe [DnsRecord] -> Int -> GetMailDomainResponse
-- | Indicates the status of a DKIM verification.
[$sel:dkimVerificationStatus:GetMailDomainResponse'] :: GetMailDomainResponse -> Maybe DnsRecordVerificationStatus
-- | Specifies whether the domain is the default domain for your
-- organization.
[$sel:isDefault:GetMailDomainResponse'] :: GetMailDomainResponse -> Maybe Bool
-- | Specifies whether the domain is a test domain provided by WorkMail, or
-- a custom domain.
[$sel:isTestDomain:GetMailDomainResponse'] :: GetMailDomainResponse -> Maybe Bool
-- | Indicates the status of the domain ownership verification.
[$sel:ownershipVerificationStatus:GetMailDomainResponse'] :: GetMailDomainResponse -> Maybe DnsRecordVerificationStatus
-- | A list of the DNS records that WorkMail recommends adding in your DNS
-- provider for the best user experience. The records configure your
-- domain with DMARC, SPF, DKIM, and direct incoming email traffic to
-- SES. See admin guide for more details.
[$sel:records:GetMailDomainResponse'] :: GetMailDomainResponse -> Maybe [DnsRecord]
-- | The response's http status code.
[$sel:httpStatus:GetMailDomainResponse'] :: GetMailDomainResponse -> Int
-- | Create a value of GetMailDomainResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dkimVerificationStatus:GetMailDomainResponse',
-- getMailDomainResponse_dkimVerificationStatus - Indicates the
-- status of a DKIM verification.
--
-- $sel:isDefault:GetMailDomainResponse',
-- getMailDomainResponse_isDefault - Specifies whether the domain
-- is the default domain for your organization.
--
-- $sel:isTestDomain:GetMailDomainResponse',
-- getMailDomainResponse_isTestDomain - Specifies whether the
-- domain is a test domain provided by WorkMail, or a custom domain.
--
-- $sel:ownershipVerificationStatus:GetMailDomainResponse',
-- getMailDomainResponse_ownershipVerificationStatus - Indicates
-- the status of the domain ownership verification.
--
-- $sel:records:GetMailDomainResponse',
-- getMailDomainResponse_records - A list of the DNS records that
-- WorkMail recommends adding in your DNS provider for the best user
-- experience. The records configure your domain with DMARC, SPF, DKIM,
-- and direct incoming email traffic to SES. See admin guide for more
-- details.
--
-- $sel:httpStatus:GetMailDomainResponse',
-- getMailDomainResponse_httpStatus - The response's http status
-- code.
newGetMailDomainResponse :: Int -> GetMailDomainResponse
-- | Indicates the status of a DKIM verification.
getMailDomainResponse_dkimVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
-- | Specifies whether the domain is the default domain for your
-- organization.
getMailDomainResponse_isDefault :: Lens' GetMailDomainResponse (Maybe Bool)
-- | Specifies whether the domain is a test domain provided by WorkMail, or
-- a custom domain.
getMailDomainResponse_isTestDomain :: Lens' GetMailDomainResponse (Maybe Bool)
-- | Indicates the status of the domain ownership verification.
getMailDomainResponse_ownershipVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
-- | A list of the DNS records that WorkMail recommends adding in your DNS
-- provider for the best user experience. The records configure your
-- domain with DMARC, SPF, DKIM, and direct incoming email traffic to
-- SES. See admin guide for more details.
getMailDomainResponse_records :: Lens' GetMailDomainResponse (Maybe [DnsRecord])
-- | The response's http status code.
getMailDomainResponse_httpStatus :: Lens' GetMailDomainResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance GHC.Show.Show Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance GHC.Read.Read Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance GHC.Classes.Eq Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance GHC.Generics.Generic Amazonka.WorkMail.GetMailDomain.GetMailDomainResponse
instance GHC.Show.Show Amazonka.WorkMail.GetMailDomain.GetMailDomainResponse
instance GHC.Read.Read Amazonka.WorkMail.GetMailDomain.GetMailDomainResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetMailDomain.GetMailDomainResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMailDomain.GetMailDomainResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetMailDomain.GetMailDomain
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetMailDomain.GetMailDomain
-- | Tests whether the given impersonation role can impersonate a target
-- user.
module Amazonka.WorkMail.GetImpersonationRoleEffect
-- | See: newGetImpersonationRoleEffect smart constructor.
data GetImpersonationRoleEffect
GetImpersonationRoleEffect' :: Text -> Text -> Text -> GetImpersonationRoleEffect
-- | The WorkMail organization where the impersonation role is defined.
[$sel:organizationId:GetImpersonationRoleEffect'] :: GetImpersonationRoleEffect -> Text
-- | The impersonation role ID to test.
[$sel:impersonationRoleId:GetImpersonationRoleEffect'] :: GetImpersonationRoleEffect -> Text
-- | The WorkMail organization user chosen to test the impersonation role.
-- The following identity formats are available:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
[$sel:targetUser:GetImpersonationRoleEffect'] :: GetImpersonationRoleEffect -> Text
-- | Create a value of GetImpersonationRoleEffect with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRoleEffect,
-- getImpersonationRoleEffect_organizationId - The WorkMail
-- organization where the impersonation role is defined.
--
-- GetImpersonationRoleEffect,
-- getImpersonationRoleEffect_impersonationRoleId - The
-- impersonation role ID to test.
--
-- $sel:targetUser:GetImpersonationRoleEffect',
-- getImpersonationRoleEffect_targetUser - The WorkMail
-- organization user chosen to test the impersonation role. The following
-- identity formats are available:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
newGetImpersonationRoleEffect :: Text -> Text -> Text -> GetImpersonationRoleEffect
-- | The WorkMail organization where the impersonation role is defined.
getImpersonationRoleEffect_organizationId :: Lens' GetImpersonationRoleEffect Text
-- | The impersonation role ID to test.
getImpersonationRoleEffect_impersonationRoleId :: Lens' GetImpersonationRoleEffect Text
-- | The WorkMail organization user chosen to test the impersonation role.
-- The following identity formats are available:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
getImpersonationRoleEffect_targetUser :: Lens' GetImpersonationRoleEffect Text
-- | See: newGetImpersonationRoleEffectResponse smart
-- constructor.
data GetImpersonationRoleEffectResponse
GetImpersonationRoleEffectResponse' :: Maybe AccessEffect -> Maybe [ImpersonationMatchedRule] -> Maybe ImpersonationRoleType -> Int -> GetImpersonationRoleEffectResponse
-- | Effect of the impersonation role on the target user based on its
-- rules. Available effects are ALLOW or DENY.
[$sel:effect:GetImpersonationRoleEffectResponse'] :: GetImpersonationRoleEffectResponse -> Maybe AccessEffect
-- | A list of the rules that match the input and produce the configured
-- effect.
[$sel:matchedRules:GetImpersonationRoleEffectResponse'] :: GetImpersonationRoleEffectResponse -> Maybe [ImpersonationMatchedRule]
-- | The impersonation role type.
[$sel:type':GetImpersonationRoleEffectResponse'] :: GetImpersonationRoleEffectResponse -> Maybe ImpersonationRoleType
-- | The response's http status code.
[$sel:httpStatus:GetImpersonationRoleEffectResponse'] :: GetImpersonationRoleEffectResponse -> Int
-- | Create a value of GetImpersonationRoleEffectResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRoleEffectResponse,
-- getImpersonationRoleEffectResponse_effect - Effect of the
-- impersonation role on the target user based on its rules. Available
-- effects are ALLOW or DENY.
--
-- $sel:matchedRules:GetImpersonationRoleEffectResponse',
-- getImpersonationRoleEffectResponse_matchedRules - A list of the
-- rules that match the input and produce the configured effect.
--
-- GetImpersonationRoleEffectResponse,
-- getImpersonationRoleEffectResponse_type - The impersonation
-- role type.
--
-- $sel:httpStatus:GetImpersonationRoleEffectResponse',
-- getImpersonationRoleEffectResponse_httpStatus - The response's
-- http status code.
newGetImpersonationRoleEffectResponse :: Int -> GetImpersonationRoleEffectResponse
-- | Effect of the impersonation role on the target user based on its
-- rules. Available effects are ALLOW or DENY.
getImpersonationRoleEffectResponse_effect :: Lens' GetImpersonationRoleEffectResponse (Maybe AccessEffect)
-- | A list of the rules that match the input and produce the configured
-- effect.
getImpersonationRoleEffectResponse_matchedRules :: Lens' GetImpersonationRoleEffectResponse (Maybe [ImpersonationMatchedRule])
-- | The impersonation role type.
getImpersonationRoleEffectResponse_type :: Lens' GetImpersonationRoleEffectResponse (Maybe ImpersonationRoleType)
-- | The response's http status code.
getImpersonationRoleEffectResponse_httpStatus :: Lens' GetImpersonationRoleEffectResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance GHC.Show.Show Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance GHC.Read.Read Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance GHC.Classes.Eq Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance GHC.Generics.Generic Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffectResponse
instance GHC.Show.Show Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffectResponse
instance GHC.Read.Read Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffectResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffectResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffectResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetImpersonationRoleEffect.GetImpersonationRoleEffect
-- | Gets the impersonation role details for the given WorkMail
-- organization.
module Amazonka.WorkMail.GetImpersonationRole
-- | See: newGetImpersonationRole smart constructor.
data GetImpersonationRole
GetImpersonationRole' :: Text -> Text -> GetImpersonationRole
-- | The WorkMail organization from which to retrieve the impersonation
-- role.
[$sel:organizationId:GetImpersonationRole'] :: GetImpersonationRole -> Text
-- | The impersonation role ID to retrieve.
[$sel:impersonationRoleId:GetImpersonationRole'] :: GetImpersonationRole -> Text
-- | Create a value of GetImpersonationRole with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRole,
-- getImpersonationRole_organizationId - The WorkMail organization
-- from which to retrieve the impersonation role.
--
-- GetImpersonationRole,
-- getImpersonationRole_impersonationRoleId - The impersonation
-- role ID to retrieve.
newGetImpersonationRole :: Text -> Text -> GetImpersonationRole
-- | The WorkMail organization from which to retrieve the impersonation
-- role.
getImpersonationRole_organizationId :: Lens' GetImpersonationRole Text
-- | The impersonation role ID to retrieve.
getImpersonationRole_impersonationRoleId :: Lens' GetImpersonationRole Text
-- | See: newGetImpersonationRoleResponse smart constructor.
data GetImpersonationRoleResponse
GetImpersonationRoleResponse' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe [ImpersonationRule] -> Maybe ImpersonationRoleType -> Int -> GetImpersonationRoleResponse
-- | The date when the impersonation role was created.
[$sel:dateCreated:GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Maybe POSIX
-- | The date when the impersonation role was last modified.
[$sel:dateModified:GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Maybe POSIX
-- | The impersonation role description.
[$sel:description:GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Maybe Text
-- | The impersonation role ID.
[$sel:impersonationRoleId:GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Maybe Text
-- | The impersonation role name.
[$sel:name:GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Maybe Text
-- | The list of rules for the given impersonation role.
[$sel:rules:GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Maybe [ImpersonationRule]
-- | The impersonation role type.
[$sel:type':GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Maybe ImpersonationRoleType
-- | The response's http status code.
[$sel:httpStatus:GetImpersonationRoleResponse'] :: GetImpersonationRoleResponse -> Int
-- | Create a value of GetImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_dateCreated - The date when the
-- impersonation role was created.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_dateModified - The date when the
-- impersonation role was last modified.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_description - The impersonation
-- role description.
--
-- GetImpersonationRole,
-- getImpersonationRoleResponse_impersonationRoleId - The
-- impersonation role ID.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_name - The impersonation role
-- name.
--
-- $sel:rules:GetImpersonationRoleResponse',
-- getImpersonationRoleResponse_rules - The list of rules for the
-- given impersonation role.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_type - The impersonation role
-- type.
--
-- $sel:httpStatus:GetImpersonationRoleResponse',
-- getImpersonationRoleResponse_httpStatus - The response's http
-- status code.
newGetImpersonationRoleResponse :: Int -> GetImpersonationRoleResponse
-- | The date when the impersonation role was created.
getImpersonationRoleResponse_dateCreated :: Lens' GetImpersonationRoleResponse (Maybe UTCTime)
-- | The date when the impersonation role was last modified.
getImpersonationRoleResponse_dateModified :: Lens' GetImpersonationRoleResponse (Maybe UTCTime)
-- | The impersonation role description.
getImpersonationRoleResponse_description :: Lens' GetImpersonationRoleResponse (Maybe Text)
-- | The impersonation role ID.
getImpersonationRoleResponse_impersonationRoleId :: Lens' GetImpersonationRoleResponse (Maybe Text)
-- | The impersonation role name.
getImpersonationRoleResponse_name :: Lens' GetImpersonationRoleResponse (Maybe Text)
-- | The list of rules for the given impersonation role.
getImpersonationRoleResponse_rules :: Lens' GetImpersonationRoleResponse (Maybe [ImpersonationRule])
-- | The impersonation role type.
getImpersonationRoleResponse_type :: Lens' GetImpersonationRoleResponse (Maybe ImpersonationRoleType)
-- | The response's http status code.
getImpersonationRoleResponse_httpStatus :: Lens' GetImpersonationRoleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance GHC.Show.Show Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance GHC.Read.Read Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance GHC.Classes.Eq Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance GHC.Generics.Generic Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRoleResponse
instance GHC.Show.Show Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRoleResponse
instance GHC.Read.Read Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRoleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRoleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRoleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetImpersonationRole.GetImpersonationRole
-- | Gets the default retention policy details for the specified
-- organization.
module Amazonka.WorkMail.GetDefaultRetentionPolicy
-- | See: newGetDefaultRetentionPolicy smart constructor.
data GetDefaultRetentionPolicy
GetDefaultRetentionPolicy' :: Text -> GetDefaultRetentionPolicy
-- | The organization ID.
[$sel:organizationId:GetDefaultRetentionPolicy'] :: GetDefaultRetentionPolicy -> Text
-- | Create a value of GetDefaultRetentionPolicy with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetDefaultRetentionPolicy,
-- getDefaultRetentionPolicy_organizationId - The organization ID.
newGetDefaultRetentionPolicy :: Text -> GetDefaultRetentionPolicy
-- | The organization ID.
getDefaultRetentionPolicy_organizationId :: Lens' GetDefaultRetentionPolicy Text
-- | See: newGetDefaultRetentionPolicyResponse smart
-- constructor.
data GetDefaultRetentionPolicyResponse
GetDefaultRetentionPolicyResponse' :: Maybe Text -> Maybe [FolderConfiguration] -> Maybe Text -> Maybe Text -> Int -> GetDefaultRetentionPolicyResponse
-- | The retention policy description.
[$sel:description:GetDefaultRetentionPolicyResponse'] :: GetDefaultRetentionPolicyResponse -> Maybe Text
-- | The retention policy folder configurations.
[$sel:folderConfigurations:GetDefaultRetentionPolicyResponse'] :: GetDefaultRetentionPolicyResponse -> Maybe [FolderConfiguration]
-- | The retention policy ID.
[$sel:id:GetDefaultRetentionPolicyResponse'] :: GetDefaultRetentionPolicyResponse -> Maybe Text
-- | The retention policy name.
[$sel:name:GetDefaultRetentionPolicyResponse'] :: GetDefaultRetentionPolicyResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetDefaultRetentionPolicyResponse'] :: GetDefaultRetentionPolicyResponse -> Int
-- | Create a value of GetDefaultRetentionPolicyResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetDefaultRetentionPolicyResponse,
-- getDefaultRetentionPolicyResponse_description - The retention
-- policy description.
--
-- $sel:folderConfigurations:GetDefaultRetentionPolicyResponse',
-- getDefaultRetentionPolicyResponse_folderConfigurations - The
-- retention policy folder configurations.
--
-- GetDefaultRetentionPolicyResponse,
-- getDefaultRetentionPolicyResponse_id - The retention policy ID.
--
-- GetDefaultRetentionPolicyResponse,
-- getDefaultRetentionPolicyResponse_name - The retention policy
-- name.
--
-- $sel:httpStatus:GetDefaultRetentionPolicyResponse',
-- getDefaultRetentionPolicyResponse_httpStatus - The response's
-- http status code.
newGetDefaultRetentionPolicyResponse :: Int -> GetDefaultRetentionPolicyResponse
-- | The retention policy description.
getDefaultRetentionPolicyResponse_description :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
-- | The retention policy folder configurations.
getDefaultRetentionPolicyResponse_folderConfigurations :: Lens' GetDefaultRetentionPolicyResponse (Maybe [FolderConfiguration])
-- | The retention policy ID.
getDefaultRetentionPolicyResponse_id :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
-- | The retention policy name.
getDefaultRetentionPolicyResponse_name :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
-- | The response's http status code.
getDefaultRetentionPolicyResponse_httpStatus :: Lens' GetDefaultRetentionPolicyResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance GHC.Show.Show Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance GHC.Read.Read Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance GHC.Classes.Eq Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance GHC.Generics.Generic Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicyResponse
instance GHC.Show.Show Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicyResponse
instance GHC.Read.Read Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicyResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicyResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicyResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetDefaultRetentionPolicy.GetDefaultRetentionPolicy
-- | Gets the effects of an organization's access control rules as they
-- apply to a specified IPv4 address, access protocol action, and user ID
-- or impersonation role ID. You must provide either the user ID or
-- impersonation role ID. Impersonation role ID can only be used with
-- Action EWS.
module Amazonka.WorkMail.GetAccessControlEffect
-- | See: newGetAccessControlEffect smart constructor.
data GetAccessControlEffect
GetAccessControlEffect' :: Maybe Text -> Maybe Text -> Text -> Text -> Text -> GetAccessControlEffect
-- | The impersonation role ID.
[$sel:impersonationRoleId:GetAccessControlEffect'] :: GetAccessControlEffect -> Maybe Text
-- | The user ID.
[$sel:userId:GetAccessControlEffect'] :: GetAccessControlEffect -> Maybe Text
-- | The identifier for the organization.
[$sel:organizationId:GetAccessControlEffect'] :: GetAccessControlEffect -> Text
-- | The IPv4 address.
[$sel:ipAddress:GetAccessControlEffect'] :: GetAccessControlEffect -> Text
-- | The access protocol action. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
[$sel:action:GetAccessControlEffect'] :: GetAccessControlEffect -> Text
-- | Create a value of GetAccessControlEffect with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetAccessControlEffect,
-- getAccessControlEffect_impersonationRoleId - The impersonation
-- role ID.
--
-- GetAccessControlEffect, getAccessControlEffect_userId -
-- The user ID.
--
-- GetAccessControlEffect,
-- getAccessControlEffect_organizationId - The identifier for the
-- organization.
--
-- $sel:ipAddress:GetAccessControlEffect',
-- getAccessControlEffect_ipAddress - The IPv4 address.
--
-- GetAccessControlEffect, getAccessControlEffect_action -
-- The access protocol action. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
newGetAccessControlEffect :: Text -> Text -> Text -> GetAccessControlEffect
-- | The impersonation role ID.
getAccessControlEffect_impersonationRoleId :: Lens' GetAccessControlEffect (Maybe Text)
-- | The user ID.
getAccessControlEffect_userId :: Lens' GetAccessControlEffect (Maybe Text)
-- | The identifier for the organization.
getAccessControlEffect_organizationId :: Lens' GetAccessControlEffect Text
-- | The IPv4 address.
getAccessControlEffect_ipAddress :: Lens' GetAccessControlEffect Text
-- | The access protocol action. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
getAccessControlEffect_action :: Lens' GetAccessControlEffect Text
-- | See: newGetAccessControlEffectResponse smart
-- constructor.
data GetAccessControlEffectResponse
GetAccessControlEffectResponse' :: Maybe AccessControlRuleEffect -> Maybe [Text] -> Int -> GetAccessControlEffectResponse
-- | The rule effect.
[$sel:effect:GetAccessControlEffectResponse'] :: GetAccessControlEffectResponse -> Maybe AccessControlRuleEffect
-- | The rules that match the given parameters, resulting in an effect.
[$sel:matchedRules:GetAccessControlEffectResponse'] :: GetAccessControlEffectResponse -> Maybe [Text]
-- | The response's http status code.
[$sel:httpStatus:GetAccessControlEffectResponse'] :: GetAccessControlEffectResponse -> Int
-- | Create a value of GetAccessControlEffectResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetAccessControlEffectResponse,
-- getAccessControlEffectResponse_effect - The rule effect.
--
-- $sel:matchedRules:GetAccessControlEffectResponse',
-- getAccessControlEffectResponse_matchedRules - The rules that
-- match the given parameters, resulting in an effect.
--
-- $sel:httpStatus:GetAccessControlEffectResponse',
-- getAccessControlEffectResponse_httpStatus - The response's http
-- status code.
newGetAccessControlEffectResponse :: Int -> GetAccessControlEffectResponse
-- | The rule effect.
getAccessControlEffectResponse_effect :: Lens' GetAccessControlEffectResponse (Maybe AccessControlRuleEffect)
-- | The rules that match the given parameters, resulting in an effect.
getAccessControlEffectResponse_matchedRules :: Lens' GetAccessControlEffectResponse (Maybe [Text])
-- | The response's http status code.
getAccessControlEffectResponse_httpStatus :: Lens' GetAccessControlEffectResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance GHC.Show.Show Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance GHC.Read.Read Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance GHC.Classes.Eq Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance GHC.Generics.Generic Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffectResponse
instance GHC.Show.Show Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffectResponse
instance GHC.Read.Read Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffectResponse
instance GHC.Classes.Eq Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffectResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffectResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance Control.DeepSeq.NFData Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.GetAccessControlEffect.GetAccessControlEffect
-- | Removes a member from a group.
module Amazonka.WorkMail.DisassociateMemberFromGroup
-- | See: newDisassociateMemberFromGroup smart constructor.
data DisassociateMemberFromGroup
DisassociateMemberFromGroup' :: Text -> Text -> Text -> DisassociateMemberFromGroup
-- | The identifier for the organization under which the group exists.
[$sel:organizationId:DisassociateMemberFromGroup'] :: DisassociateMemberFromGroup -> Text
-- | The identifier for the group from which members are removed.
[$sel:groupId:DisassociateMemberFromGroup'] :: DisassociateMemberFromGroup -> Text
-- | The identifier for the member to be removed to the group.
[$sel:memberId:DisassociateMemberFromGroup'] :: DisassociateMemberFromGroup -> Text
-- | Create a value of DisassociateMemberFromGroup with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DisassociateMemberFromGroup,
-- disassociateMemberFromGroup_organizationId - The identifier for
-- the organization under which the group exists.
--
-- $sel:groupId:DisassociateMemberFromGroup',
-- disassociateMemberFromGroup_groupId - The identifier for the
-- group from which members are removed.
--
-- $sel:memberId:DisassociateMemberFromGroup',
-- disassociateMemberFromGroup_memberId - The identifier for the
-- member to be removed to the group.
newDisassociateMemberFromGroup :: Text -> Text -> Text -> DisassociateMemberFromGroup
-- | The identifier for the organization under which the group exists.
disassociateMemberFromGroup_organizationId :: Lens' DisassociateMemberFromGroup Text
-- | The identifier for the group from which members are removed.
disassociateMemberFromGroup_groupId :: Lens' DisassociateMemberFromGroup Text
-- | The identifier for the member to be removed to the group.
disassociateMemberFromGroup_memberId :: Lens' DisassociateMemberFromGroup Text
-- | See: newDisassociateMemberFromGroupResponse smart
-- constructor.
data DisassociateMemberFromGroupResponse
DisassociateMemberFromGroupResponse' :: Int -> DisassociateMemberFromGroupResponse
-- | The response's http status code.
[$sel:httpStatus:DisassociateMemberFromGroupResponse'] :: DisassociateMemberFromGroupResponse -> Int
-- | Create a value of DisassociateMemberFromGroupResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DisassociateMemberFromGroupResponse',
-- disassociateMemberFromGroupResponse_httpStatus - The response's
-- http status code.
newDisassociateMemberFromGroupResponse :: Int -> DisassociateMemberFromGroupResponse
-- | The response's http status code.
disassociateMemberFromGroupResponse_httpStatus :: Lens' DisassociateMemberFromGroupResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance GHC.Show.Show Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance GHC.Read.Read Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance GHC.Classes.Eq Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance GHC.Generics.Generic Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroupResponse
instance GHC.Show.Show Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroupResponse
instance GHC.Read.Read Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroupResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DisassociateMemberFromGroup.DisassociateMemberFromGroup
-- | Removes a member from the resource's set of delegates.
module Amazonka.WorkMail.DisassociateDelegateFromResource
-- | See: newDisassociateDelegateFromResource smart
-- constructor.
data DisassociateDelegateFromResource
DisassociateDelegateFromResource' :: Text -> Text -> Text -> DisassociateDelegateFromResource
-- | The identifier for the organization under which the resource exists.
[$sel:organizationId:DisassociateDelegateFromResource'] :: DisassociateDelegateFromResource -> Text
-- | The identifier of the resource from which delegates' set members are
-- removed.
[$sel:resourceId:DisassociateDelegateFromResource'] :: DisassociateDelegateFromResource -> Text
-- | The identifier for the member (user, group) to be removed from the
-- resource's delegates.
[$sel:entityId:DisassociateDelegateFromResource'] :: DisassociateDelegateFromResource -> Text
-- | Create a value of DisassociateDelegateFromResource with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DisassociateDelegateFromResource,
-- disassociateDelegateFromResource_organizationId - The
-- identifier for the organization under which the resource exists.
--
-- $sel:resourceId:DisassociateDelegateFromResource',
-- disassociateDelegateFromResource_resourceId - The identifier of
-- the resource from which delegates' set members are removed.
--
-- DisassociateDelegateFromResource,
-- disassociateDelegateFromResource_entityId - The identifier for
-- the member (user, group) to be removed from the resource's delegates.
newDisassociateDelegateFromResource :: Text -> Text -> Text -> DisassociateDelegateFromResource
-- | The identifier for the organization under which the resource exists.
disassociateDelegateFromResource_organizationId :: Lens' DisassociateDelegateFromResource Text
-- | The identifier of the resource from which delegates' set members are
-- removed.
disassociateDelegateFromResource_resourceId :: Lens' DisassociateDelegateFromResource Text
-- | The identifier for the member (user, group) to be removed from the
-- resource's delegates.
disassociateDelegateFromResource_entityId :: Lens' DisassociateDelegateFromResource Text
-- | See: newDisassociateDelegateFromResourceResponse smart
-- constructor.
data DisassociateDelegateFromResourceResponse
DisassociateDelegateFromResourceResponse' :: Int -> DisassociateDelegateFromResourceResponse
-- | The response's http status code.
[$sel:httpStatus:DisassociateDelegateFromResourceResponse'] :: DisassociateDelegateFromResourceResponse -> Int
-- | Create a value of DisassociateDelegateFromResourceResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DisassociateDelegateFromResourceResponse',
-- disassociateDelegateFromResourceResponse_httpStatus - The
-- response's http status code.
newDisassociateDelegateFromResourceResponse :: Int -> DisassociateDelegateFromResourceResponse
-- | The response's http status code.
disassociateDelegateFromResourceResponse_httpStatus :: Lens' DisassociateDelegateFromResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance GHC.Show.Show Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance GHC.Read.Read Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance GHC.Classes.Eq Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance GHC.Generics.Generic Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DisassociateDelegateFromResource.DisassociateDelegateFromResource
-- | Provides information regarding the user.
module Amazonka.WorkMail.DescribeUser
-- | See: newDescribeUser smart constructor.
data DescribeUser
DescribeUser' :: Text -> Text -> DescribeUser
-- | The identifier for the organization under which the user exists.
[$sel:organizationId:DescribeUser'] :: DescribeUser -> Text
-- | The identifier for the user to be described.
[$sel:userId:DescribeUser'] :: DescribeUser -> Text
-- | Create a value of DescribeUser with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeUser, describeUser_organizationId - The
-- identifier for the organization under which the user exists.
--
-- DescribeUser, describeUser_userId - The identifier for
-- the user to be described.
newDescribeUser :: Text -> Text -> DescribeUser
-- | The identifier for the organization under which the user exists.
describeUser_organizationId :: Lens' DescribeUser Text
-- | The identifier for the user to be described.
describeUser_userId :: Lens' DescribeUser Text
-- | See: newDescribeUserResponse smart constructor.
data DescribeUserResponse
DescribeUserResponse' :: Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe EntityState -> Maybe Text -> Maybe UserRole -> Int -> DescribeUserResponse
-- | The date and time at which the user was disabled for WorkMail usage,
-- in UNIX epoch time format.
[$sel:disabledDate:DescribeUserResponse'] :: DescribeUserResponse -> Maybe POSIX
-- | The display name of the user.
[$sel:displayName:DescribeUserResponse'] :: DescribeUserResponse -> Maybe Text
-- | The email of the user.
[$sel:email:DescribeUserResponse'] :: DescribeUserResponse -> Maybe Text
-- | The date and time at which the user was enabled for WorkMailusage, in
-- UNIX epoch time format.
[$sel:enabledDate:DescribeUserResponse'] :: DescribeUserResponse -> Maybe POSIX
-- | The name for the user.
[$sel:name:DescribeUserResponse'] :: DescribeUserResponse -> Maybe Text
-- | The state of a user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
[$sel:state:DescribeUserResponse'] :: DescribeUserResponse -> Maybe EntityState
-- | The identifier for the described user.
[$sel:userId:DescribeUserResponse'] :: DescribeUserResponse -> Maybe Text
-- | In certain cases, other entities are modeled as users. If
-- interoperability is enabled, resources are imported into WorkMail as
-- users. Because different WorkMail organizations rely on different
-- directory types, administrators can distinguish between an
-- unregistered user (account is disabled and has a user role) and the
-- directory administrators. The values are USER, RESOURCE, and
-- SYSTEM_USER.
[$sel:userRole:DescribeUserResponse'] :: DescribeUserResponse -> Maybe UserRole
-- | The response's http status code.
[$sel:httpStatus:DescribeUserResponse'] :: DescribeUserResponse -> Int
-- | Create a value of DescribeUserResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeUserResponse, describeUserResponse_disabledDate
-- - The date and time at which the user was disabled for WorkMail usage,
-- in UNIX epoch time format.
--
-- DescribeUserResponse, describeUserResponse_displayName -
-- The display name of the user.
--
-- DescribeUserResponse, describeUserResponse_email - The
-- email of the user.
--
-- DescribeUserResponse, describeUserResponse_enabledDate -
-- The date and time at which the user was enabled for WorkMailusage, in
-- UNIX epoch time format.
--
-- DescribeUserResponse, describeUserResponse_name - The
-- name for the user.
--
-- DescribeUserResponse, describeUserResponse_state - The
-- state of a user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
--
-- DescribeUser, describeUserResponse_userId - The
-- identifier for the described user.
--
-- DescribeUserResponse, describeUserResponse_userRole - In
-- certain cases, other entities are modeled as users. If
-- interoperability is enabled, resources are imported into WorkMail as
-- users. Because different WorkMail organizations rely on different
-- directory types, administrators can distinguish between an
-- unregistered user (account is disabled and has a user role) and the
-- directory administrators. The values are USER, RESOURCE, and
-- SYSTEM_USER.
--
-- $sel:httpStatus:DescribeUserResponse',
-- describeUserResponse_httpStatus - The response's http status
-- code.
newDescribeUserResponse :: Int -> DescribeUserResponse
-- | The date and time at which the user was disabled for WorkMail usage,
-- in UNIX epoch time format.
describeUserResponse_disabledDate :: Lens' DescribeUserResponse (Maybe UTCTime)
-- | The display name of the user.
describeUserResponse_displayName :: Lens' DescribeUserResponse (Maybe Text)
-- | The email of the user.
describeUserResponse_email :: Lens' DescribeUserResponse (Maybe Text)
-- | The date and time at which the user was enabled for WorkMailusage, in
-- UNIX epoch time format.
describeUserResponse_enabledDate :: Lens' DescribeUserResponse (Maybe UTCTime)
-- | The name for the user.
describeUserResponse_name :: Lens' DescribeUserResponse (Maybe Text)
-- | The state of a user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
describeUserResponse_state :: Lens' DescribeUserResponse (Maybe EntityState)
-- | The identifier for the described user.
describeUserResponse_userId :: Lens' DescribeUserResponse (Maybe Text)
-- | In certain cases, other entities are modeled as users. If
-- interoperability is enabled, resources are imported into WorkMail as
-- users. Because different WorkMail organizations rely on different
-- directory types, administrators can distinguish between an
-- unregistered user (account is disabled and has a user role) and the
-- directory administrators. The values are USER, RESOURCE, and
-- SYSTEM_USER.
describeUserResponse_userRole :: Lens' DescribeUserResponse (Maybe UserRole)
-- | The response's http status code.
describeUserResponse_httpStatus :: Lens' DescribeUserResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeUser.DescribeUser
instance GHC.Show.Show Amazonka.WorkMail.DescribeUser.DescribeUser
instance GHC.Read.Read Amazonka.WorkMail.DescribeUser.DescribeUser
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeUser.DescribeUser
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeUser.DescribeUserResponse
instance GHC.Show.Show Amazonka.WorkMail.DescribeUser.DescribeUserResponse
instance GHC.Read.Read Amazonka.WorkMail.DescribeUser.DescribeUserResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeUser.DescribeUserResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DescribeUser.DescribeUser
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeUser.DescribeUserResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DescribeUser.DescribeUser
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeUser.DescribeUser
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DescribeUser.DescribeUser
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DescribeUser.DescribeUser
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DescribeUser.DescribeUser
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DescribeUser.DescribeUser
-- | Returns the data available for the resource.
module Amazonka.WorkMail.DescribeResource
-- | See: newDescribeResource smart constructor.
data DescribeResource
DescribeResource' :: Text -> Text -> DescribeResource
-- | The identifier associated with the organization for which the resource
-- is described.
[$sel:organizationId:DescribeResource'] :: DescribeResource -> Text
-- | The identifier of the resource to be described.
[$sel:resourceId:DescribeResource'] :: DescribeResource -> Text
-- | Create a value of DescribeResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeResource, describeResource_organizationId - The
-- identifier associated with the organization for which the resource is
-- described.
--
-- DescribeResource, describeResource_resourceId - The
-- identifier of the resource to be described.
newDescribeResource :: Text -> Text -> DescribeResource
-- | The identifier associated with the organization for which the resource
-- is described.
describeResource_organizationId :: Lens' DescribeResource Text
-- | The identifier of the resource to be described.
describeResource_resourceId :: Lens' DescribeResource Text
-- | See: newDescribeResourceResponse smart constructor.
data DescribeResourceResponse
DescribeResourceResponse' :: Maybe BookingOptions -> Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe ResourceType -> Int -> DescribeResourceResponse
-- | The booking options for the described resource.
[$sel:bookingOptions:DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe BookingOptions
-- | The date and time when a resource was disabled from WorkMail, in UNIX
-- epoch time format.
[$sel:disabledDate:DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe POSIX
-- | The email of the described resource.
[$sel:email:DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe Text
-- | The date and time when a resource was enabled for WorkMail, in UNIX
-- epoch time format.
[$sel:enabledDate:DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe POSIX
-- | The name of the described resource.
[$sel:name:DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe Text
-- | The identifier of the described resource.
[$sel:resourceId:DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe Text
-- | The state of the resource: enabled (registered to WorkMail), disabled
-- (deregistered or never registered to WorkMail), or deleted.
[$sel:state:DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe EntityState
-- | The type of the described resource.
[$sel:type':DescribeResourceResponse'] :: DescribeResourceResponse -> Maybe ResourceType
-- | The response's http status code.
[$sel:httpStatus:DescribeResourceResponse'] :: DescribeResourceResponse -> Int
-- | Create a value of DescribeResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bookingOptions:DescribeResourceResponse',
-- describeResourceResponse_bookingOptions - The booking options
-- for the described resource.
--
-- DescribeResourceResponse,
-- describeResourceResponse_disabledDate - The date and time when
-- a resource was disabled from WorkMail, in UNIX epoch time format.
--
-- DescribeResourceResponse, describeResourceResponse_email
-- - The email of the described resource.
--
-- DescribeResourceResponse,
-- describeResourceResponse_enabledDate - The date and time when a
-- resource was enabled for WorkMail, in UNIX epoch time format.
--
-- DescribeResourceResponse, describeResourceResponse_name
-- - The name of the described resource.
--
-- DescribeResource, describeResourceResponse_resourceId -
-- The identifier of the described resource.
--
-- DescribeResourceResponse, describeResourceResponse_state
-- - The state of the resource: enabled (registered to WorkMail),
-- disabled (deregistered or never registered to WorkMail), or deleted.
--
-- DescribeResourceResponse, describeResourceResponse_type
-- - The type of the described resource.
--
-- $sel:httpStatus:DescribeResourceResponse',
-- describeResourceResponse_httpStatus - The response's http
-- status code.
newDescribeResourceResponse :: Int -> DescribeResourceResponse
-- | The booking options for the described resource.
describeResourceResponse_bookingOptions :: Lens' DescribeResourceResponse (Maybe BookingOptions)
-- | The date and time when a resource was disabled from WorkMail, in UNIX
-- epoch time format.
describeResourceResponse_disabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
-- | The email of the described resource.
describeResourceResponse_email :: Lens' DescribeResourceResponse (Maybe Text)
-- | The date and time when a resource was enabled for WorkMail, in UNIX
-- epoch time format.
describeResourceResponse_enabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
-- | The name of the described resource.
describeResourceResponse_name :: Lens' DescribeResourceResponse (Maybe Text)
-- | The identifier of the described resource.
describeResourceResponse_resourceId :: Lens' DescribeResourceResponse (Maybe Text)
-- | The state of the resource: enabled (registered to WorkMail), disabled
-- (deregistered or never registered to WorkMail), or deleted.
describeResourceResponse_state :: Lens' DescribeResourceResponse (Maybe EntityState)
-- | The type of the described resource.
describeResourceResponse_type :: Lens' DescribeResourceResponse (Maybe ResourceType)
-- | The response's http status code.
describeResourceResponse_httpStatus :: Lens' DescribeResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeResource.DescribeResource
instance GHC.Show.Show Amazonka.WorkMail.DescribeResource.DescribeResource
instance GHC.Read.Read Amazonka.WorkMail.DescribeResource.DescribeResource
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeResource.DescribeResource
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeResource.DescribeResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.DescribeResource.DescribeResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.DescribeResource.DescribeResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeResource.DescribeResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DescribeResource.DescribeResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeResource.DescribeResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DescribeResource.DescribeResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeResource.DescribeResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DescribeResource.DescribeResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DescribeResource.DescribeResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DescribeResource.DescribeResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DescribeResource.DescribeResource
-- | Provides more information regarding a given organization based on its
-- identifier.
module Amazonka.WorkMail.DescribeOrganization
-- | See: newDescribeOrganization smart constructor.
data DescribeOrganization
DescribeOrganization' :: Text -> DescribeOrganization
-- | The identifier for the organization to be described.
[$sel:organizationId:DescribeOrganization'] :: DescribeOrganization -> Text
-- | Create a value of DescribeOrganization with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeOrganization,
-- describeOrganization_organizationId - The identifier for the
-- organization to be described.
newDescribeOrganization :: Text -> DescribeOrganization
-- | The identifier for the organization to be described.
describeOrganization_organizationId :: Lens' DescribeOrganization Text
-- | See: newDescribeOrganizationResponse smart constructor.
data DescribeOrganizationResponse
DescribeOrganizationResponse' :: Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Int -> DescribeOrganizationResponse
-- | The Amazon Resource Name (ARN) of the organization.
[$sel:arn:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | The alias for an organization.
[$sel:alias:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | The date at which the organization became usable in the WorkMail
-- context, in UNIX epoch time format.
[$sel:completedDate:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe POSIX
-- | The default mail domain associated with the organization.
[$sel:defaultMailDomain:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | The identifier for the directory associated with an WorkMail
-- organization.
[$sel:directoryId:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | The type of directory associated with the WorkMail organization.
[$sel:directoryType:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | (Optional) The error message indicating if unexpected behavior was
-- encountered with regards to the organization.
[$sel:errorMessage:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | The identifier of an organization.
[$sel:organizationId:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | The state of an organization.
[$sel:state:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:DescribeOrganizationResponse'] :: DescribeOrganizationResponse -> Int
-- | Create a value of DescribeOrganizationResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:arn:DescribeOrganizationResponse',
-- describeOrganizationResponse_arn - The Amazon Resource Name
-- (ARN) of the organization.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_alias - The alias for an
-- organization.
--
-- $sel:completedDate:DescribeOrganizationResponse',
-- describeOrganizationResponse_completedDate - The date at which
-- the organization became usable in the WorkMail context, in UNIX epoch
-- time format.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_defaultMailDomain - The default
-- mail domain associated with the organization.
--
-- $sel:directoryId:DescribeOrganizationResponse',
-- describeOrganizationResponse_directoryId - The identifier for
-- the directory associated with an WorkMail organization.
--
-- $sel:directoryType:DescribeOrganizationResponse',
-- describeOrganizationResponse_directoryType - The type of
-- directory associated with the WorkMail organization.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_errorMessage - (Optional) The
-- error message indicating if unexpected behavior was encountered with
-- regards to the organization.
--
-- DescribeOrganization,
-- describeOrganizationResponse_organizationId - The identifier of
-- an organization.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_state - The state of an
-- organization.
--
-- $sel:httpStatus:DescribeOrganizationResponse',
-- describeOrganizationResponse_httpStatus - The response's http
-- status code.
newDescribeOrganizationResponse :: Int -> DescribeOrganizationResponse
-- | The Amazon Resource Name (ARN) of the organization.
describeOrganizationResponse_arn :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The alias for an organization.
describeOrganizationResponse_alias :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The date at which the organization became usable in the WorkMail
-- context, in UNIX epoch time format.
describeOrganizationResponse_completedDate :: Lens' DescribeOrganizationResponse (Maybe UTCTime)
-- | The default mail domain associated with the organization.
describeOrganizationResponse_defaultMailDomain :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The identifier for the directory associated with an WorkMail
-- organization.
describeOrganizationResponse_directoryId :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The type of directory associated with the WorkMail organization.
describeOrganizationResponse_directoryType :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | (Optional) The error message indicating if unexpected behavior was
-- encountered with regards to the organization.
describeOrganizationResponse_errorMessage :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The identifier of an organization.
describeOrganizationResponse_organizationId :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The state of an organization.
describeOrganizationResponse_state :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The response's http status code.
describeOrganizationResponse_httpStatus :: Lens' DescribeOrganizationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance GHC.Show.Show Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance GHC.Read.Read Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeOrganization.DescribeOrganizationResponse
instance GHC.Show.Show Amazonka.WorkMail.DescribeOrganization.DescribeOrganizationResponse
instance GHC.Read.Read Amazonka.WorkMail.DescribeOrganization.DescribeOrganizationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeOrganization.DescribeOrganizationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeOrganization.DescribeOrganizationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DescribeOrganization.DescribeOrganization
-- | Describes the current status of a mailbox export job.
module Amazonka.WorkMail.DescribeMailboxExportJob
-- | See: newDescribeMailboxExportJob smart constructor.
data DescribeMailboxExportJob
DescribeMailboxExportJob' :: Text -> Text -> DescribeMailboxExportJob
-- | The mailbox export job ID.
[$sel:jobId:DescribeMailboxExportJob'] :: DescribeMailboxExportJob -> Text
-- | The organization ID.
[$sel:organizationId:DescribeMailboxExportJob'] :: DescribeMailboxExportJob -> Text
-- | Create a value of DescribeMailboxExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeMailboxExportJob, describeMailboxExportJob_jobId
-- - The mailbox export job ID.
--
-- DescribeMailboxExportJob,
-- describeMailboxExportJob_organizationId - The organization ID.
newDescribeMailboxExportJob :: Text -> Text -> DescribeMailboxExportJob
-- | The mailbox export job ID.
describeMailboxExportJob_jobId :: Lens' DescribeMailboxExportJob Text
-- | The organization ID.
describeMailboxExportJob_organizationId :: Lens' DescribeMailboxExportJob Text
-- | See: newDescribeMailboxExportJobResponse smart
-- constructor.
data DescribeMailboxExportJobResponse
DescribeMailboxExportJobResponse' :: Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe MailboxExportJobState -> Int -> DescribeMailboxExportJobResponse
-- | The mailbox export job description.
[$sel:description:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | The mailbox export job end timestamp.
[$sel:endTime:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe POSIX
-- | The identifier of the user or resource associated with the mailbox.
[$sel:entityId:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | Error information for failed mailbox export jobs.
[$sel:errorInfo:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | The estimated progress of the mailbox export job, in percentage
-- points.
[$sel:estimatedProgress:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Natural
-- | The Amazon Resource Name (ARN) of the symmetric AWS Key Management
-- Service (AWS KMS) key that encrypts the exported mailbox content.
[$sel:kmsKeyArn:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | The ARN of the AWS Identity and Access Management (IAM) role that
-- grants write permission to the Amazon Simple Storage Service (Amazon
-- S3) bucket.
[$sel:roleArn:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | The name of the S3 bucket.
[$sel:s3BucketName:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | The path to the S3 bucket and file that the mailbox export job is
-- exporting to.
[$sel:s3Path:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | The S3 bucket prefix.
[$sel:s3Prefix:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe Text
-- | The mailbox export job start timestamp.
[$sel:startTime:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe POSIX
-- | The state of the mailbox export job.
[$sel:state:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Maybe MailboxExportJobState
-- | The response's http status code.
[$sel:httpStatus:DescribeMailboxExportJobResponse'] :: DescribeMailboxExportJobResponse -> Int
-- | Create a value of DescribeMailboxExportJobResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_description - The mailbox
-- export job description.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_endTime - The mailbox export
-- job end timestamp.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_entityId - The identifier of
-- the user or resource associated with the mailbox.
--
-- $sel:errorInfo:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_errorInfo - Error information
-- for failed mailbox export jobs.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_estimatedProgress - The
-- estimated progress of the mailbox export job, in percentage points.
--
-- $sel:kmsKeyArn:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_kmsKeyArn - The Amazon
-- Resource Name (ARN) of the symmetric AWS Key Management Service (AWS
-- KMS) key that encrypts the exported mailbox content.
--
-- $sel:roleArn:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_roleArn - The ARN of the AWS
-- Identity and Access Management (IAM) role that grants write permission
-- to the Amazon Simple Storage Service (Amazon S3) bucket.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_s3BucketName - The name of the
-- S3 bucket.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_s3Path - The path to the S3
-- bucket and file that the mailbox export job is exporting to.
--
-- $sel:s3Prefix:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_s3Prefix - The S3 bucket
-- prefix.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_startTime - The mailbox export
-- job start timestamp.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_state - The state of the
-- mailbox export job.
--
-- $sel:httpStatus:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_httpStatus - The response's
-- http status code.
newDescribeMailboxExportJobResponse :: Int -> DescribeMailboxExportJobResponse
-- | The mailbox export job description.
describeMailboxExportJobResponse_description :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The mailbox export job end timestamp.
describeMailboxExportJobResponse_endTime :: Lens' DescribeMailboxExportJobResponse (Maybe UTCTime)
-- | The identifier of the user or resource associated with the mailbox.
describeMailboxExportJobResponse_entityId :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | Error information for failed mailbox export jobs.
describeMailboxExportJobResponse_errorInfo :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The estimated progress of the mailbox export job, in percentage
-- points.
describeMailboxExportJobResponse_estimatedProgress :: Lens' DescribeMailboxExportJobResponse (Maybe Natural)
-- | The Amazon Resource Name (ARN) of the symmetric AWS Key Management
-- Service (AWS KMS) key that encrypts the exported mailbox content.
describeMailboxExportJobResponse_kmsKeyArn :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The ARN of the AWS Identity and Access Management (IAM) role that
-- grants write permission to the Amazon Simple Storage Service (Amazon
-- S3) bucket.
describeMailboxExportJobResponse_roleArn :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The name of the S3 bucket.
describeMailboxExportJobResponse_s3BucketName :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The path to the S3 bucket and file that the mailbox export job is
-- exporting to.
describeMailboxExportJobResponse_s3Path :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The S3 bucket prefix.
describeMailboxExportJobResponse_s3Prefix :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The mailbox export job start timestamp.
describeMailboxExportJobResponse_startTime :: Lens' DescribeMailboxExportJobResponse (Maybe UTCTime)
-- | The state of the mailbox export job.
describeMailboxExportJobResponse_state :: Lens' DescribeMailboxExportJobResponse (Maybe MailboxExportJobState)
-- | The response's http status code.
describeMailboxExportJobResponse_httpStatus :: Lens' DescribeMailboxExportJobResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance GHC.Show.Show Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance GHC.Read.Read Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJobResponse
instance GHC.Show.Show Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJobResponse
instance GHC.Read.Read Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJobResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJobResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJobResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DescribeMailboxExportJob.DescribeMailboxExportJob
-- | Lists the settings in a DMARC policy for a specified organization.
module Amazonka.WorkMail.DescribeInboundDmarcSettings
-- | See: newDescribeInboundDmarcSettings smart constructor.
data DescribeInboundDmarcSettings
DescribeInboundDmarcSettings' :: Text -> DescribeInboundDmarcSettings
-- | Lists the ID of the given organization.
[$sel:organizationId:DescribeInboundDmarcSettings'] :: DescribeInboundDmarcSettings -> Text
-- | Create a value of DescribeInboundDmarcSettings with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeInboundDmarcSettings,
-- describeInboundDmarcSettings_organizationId - Lists the ID of
-- the given organization.
newDescribeInboundDmarcSettings :: Text -> DescribeInboundDmarcSettings
-- | Lists the ID of the given organization.
describeInboundDmarcSettings_organizationId :: Lens' DescribeInboundDmarcSettings Text
-- | See: newDescribeInboundDmarcSettingsResponse smart
-- constructor.
data DescribeInboundDmarcSettingsResponse
DescribeInboundDmarcSettingsResponse' :: Maybe Bool -> Int -> DescribeInboundDmarcSettingsResponse
-- | Lists the enforcement setting of the applied policy.
[$sel:enforced:DescribeInboundDmarcSettingsResponse'] :: DescribeInboundDmarcSettingsResponse -> Maybe Bool
-- | The response's http status code.
[$sel:httpStatus:DescribeInboundDmarcSettingsResponse'] :: DescribeInboundDmarcSettingsResponse -> Int
-- | Create a value of DescribeInboundDmarcSettingsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:enforced:DescribeInboundDmarcSettingsResponse',
-- describeInboundDmarcSettingsResponse_enforced - Lists the
-- enforcement setting of the applied policy.
--
-- $sel:httpStatus:DescribeInboundDmarcSettingsResponse',
-- describeInboundDmarcSettingsResponse_httpStatus - The
-- response's http status code.
newDescribeInboundDmarcSettingsResponse :: Int -> DescribeInboundDmarcSettingsResponse
-- | Lists the enforcement setting of the applied policy.
describeInboundDmarcSettingsResponse_enforced :: Lens' DescribeInboundDmarcSettingsResponse (Maybe Bool)
-- | The response's http status code.
describeInboundDmarcSettingsResponse_httpStatus :: Lens' DescribeInboundDmarcSettingsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance GHC.Show.Show Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance GHC.Read.Read Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettingsResponse
instance GHC.Show.Show Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettingsResponse
instance GHC.Read.Read Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettingsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettingsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettingsResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DescribeInboundDmarcSettings.DescribeInboundDmarcSettings
-- | Returns the data available for the group.
module Amazonka.WorkMail.DescribeGroup
-- | See: newDescribeGroup smart constructor.
data DescribeGroup
DescribeGroup' :: Text -> Text -> DescribeGroup
-- | The identifier for the organization under which the group exists.
[$sel:organizationId:DescribeGroup'] :: DescribeGroup -> Text
-- | The identifier for the group to be described.
[$sel:groupId:DescribeGroup'] :: DescribeGroup -> Text
-- | Create a value of DescribeGroup with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeGroup, describeGroup_organizationId - The
-- identifier for the organization under which the group exists.
--
-- DescribeGroup, describeGroup_groupId - The identifier
-- for the group to be described.
newDescribeGroup :: Text -> Text -> DescribeGroup
-- | The identifier for the organization under which the group exists.
describeGroup_organizationId :: Lens' DescribeGroup Text
-- | The identifier for the group to be described.
describeGroup_groupId :: Lens' DescribeGroup Text
-- | See: newDescribeGroupResponse smart constructor.
data DescribeGroupResponse
DescribeGroupResponse' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Int -> DescribeGroupResponse
-- | The date and time when a user was deregistered from WorkMail, in UNIX
-- epoch time format.
[$sel:disabledDate:DescribeGroupResponse'] :: DescribeGroupResponse -> Maybe POSIX
-- | The email of the described group.
[$sel:email:DescribeGroupResponse'] :: DescribeGroupResponse -> Maybe Text
-- | The date and time when a user was registered to WorkMail, in UNIX
-- epoch time format.
[$sel:enabledDate:DescribeGroupResponse'] :: DescribeGroupResponse -> Maybe POSIX
-- | The identifier of the described group.
[$sel:groupId:DescribeGroupResponse'] :: DescribeGroupResponse -> Maybe Text
-- | The name of the described group.
[$sel:name:DescribeGroupResponse'] :: DescribeGroupResponse -> Maybe Text
-- | The state of the user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
[$sel:state:DescribeGroupResponse'] :: DescribeGroupResponse -> Maybe EntityState
-- | The response's http status code.
[$sel:httpStatus:DescribeGroupResponse'] :: DescribeGroupResponse -> Int
-- | Create a value of DescribeGroupResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeGroupResponse,
-- describeGroupResponse_disabledDate - The date and time when a
-- user was deregistered from WorkMail, in UNIX epoch time format.
--
-- DescribeGroupResponse, describeGroupResponse_email - The
-- email of the described group.
--
-- DescribeGroupResponse, describeGroupResponse_enabledDate
-- - The date and time when a user was registered to WorkMail, in UNIX
-- epoch time format.
--
-- DescribeGroup, describeGroupResponse_groupId - The
-- identifier of the described group.
--
-- DescribeGroupResponse, describeGroupResponse_name - The
-- name of the described group.
--
-- DescribeGroupResponse, describeGroupResponse_state - The
-- state of the user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
--
-- $sel:httpStatus:DescribeGroupResponse',
-- describeGroupResponse_httpStatus - The response's http status
-- code.
newDescribeGroupResponse :: Int -> DescribeGroupResponse
-- | The date and time when a user was deregistered from WorkMail, in UNIX
-- epoch time format.
describeGroupResponse_disabledDate :: Lens' DescribeGroupResponse (Maybe UTCTime)
-- | The email of the described group.
describeGroupResponse_email :: Lens' DescribeGroupResponse (Maybe Text)
-- | The date and time when a user was registered to WorkMail, in UNIX
-- epoch time format.
describeGroupResponse_enabledDate :: Lens' DescribeGroupResponse (Maybe UTCTime)
-- | The identifier of the described group.
describeGroupResponse_groupId :: Lens' DescribeGroupResponse (Maybe Text)
-- | The name of the described group.
describeGroupResponse_name :: Lens' DescribeGroupResponse (Maybe Text)
-- | The state of the user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
describeGroupResponse_state :: Lens' DescribeGroupResponse (Maybe EntityState)
-- | The response's http status code.
describeGroupResponse_httpStatus :: Lens' DescribeGroupResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance GHC.Show.Show Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance GHC.Read.Read Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeGroup.DescribeGroupResponse
instance GHC.Show.Show Amazonka.WorkMail.DescribeGroup.DescribeGroupResponse
instance GHC.Read.Read Amazonka.WorkMail.DescribeGroup.DescribeGroupResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeGroup.DescribeGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeGroup.DescribeGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DescribeGroup.DescribeGroup
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DescribeGroup.DescribeGroup
-- | Describes the current email monitoring configuration for a specified
-- organization.
module Amazonka.WorkMail.DescribeEmailMonitoringConfiguration
-- | See: newDescribeEmailMonitoringConfiguration smart
-- constructor.
data DescribeEmailMonitoringConfiguration
DescribeEmailMonitoringConfiguration' :: Text -> DescribeEmailMonitoringConfiguration
-- | The ID of the organization for which the email monitoring
-- configuration is described.
[$sel:organizationId:DescribeEmailMonitoringConfiguration'] :: DescribeEmailMonitoringConfiguration -> Text
-- | Create a value of DescribeEmailMonitoringConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeEmailMonitoringConfiguration,
-- describeEmailMonitoringConfiguration_organizationId - The ID of
-- the organization for which the email monitoring configuration is
-- described.
newDescribeEmailMonitoringConfiguration :: Text -> DescribeEmailMonitoringConfiguration
-- | The ID of the organization for which the email monitoring
-- configuration is described.
describeEmailMonitoringConfiguration_organizationId :: Lens' DescribeEmailMonitoringConfiguration Text
-- | See: newDescribeEmailMonitoringConfigurationResponse
-- smart constructor.
data DescribeEmailMonitoringConfigurationResponse
DescribeEmailMonitoringConfigurationResponse' :: Maybe Text -> Maybe Text -> Int -> DescribeEmailMonitoringConfigurationResponse
-- | The Amazon Resource Name (ARN) of the CloudWatch Log group associated
-- with the email monitoring configuration.
[$sel:logGroupArn:DescribeEmailMonitoringConfigurationResponse'] :: DescribeEmailMonitoringConfigurationResponse -> Maybe Text
-- | The Amazon Resource Name (ARN) of the IAM Role associated with the
-- email monitoring configuration.
[$sel:roleArn:DescribeEmailMonitoringConfigurationResponse'] :: DescribeEmailMonitoringConfigurationResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:DescribeEmailMonitoringConfigurationResponse'] :: DescribeEmailMonitoringConfigurationResponse -> Int
-- | Create a value of DescribeEmailMonitoringConfigurationResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:logGroupArn:DescribeEmailMonitoringConfigurationResponse',
-- describeEmailMonitoringConfigurationResponse_logGroupArn - The
-- Amazon Resource Name (ARN) of the CloudWatch Log group associated with
-- the email monitoring configuration.
--
-- $sel:roleArn:DescribeEmailMonitoringConfigurationResponse',
-- describeEmailMonitoringConfigurationResponse_roleArn - The
-- Amazon Resource Name (ARN) of the IAM Role associated with the email
-- monitoring configuration.
--
-- $sel:httpStatus:DescribeEmailMonitoringConfigurationResponse',
-- describeEmailMonitoringConfigurationResponse_httpStatus - The
-- response's http status code.
newDescribeEmailMonitoringConfigurationResponse :: Int -> DescribeEmailMonitoringConfigurationResponse
-- | The Amazon Resource Name (ARN) of the CloudWatch Log group associated
-- with the email monitoring configuration.
describeEmailMonitoringConfigurationResponse_logGroupArn :: Lens' DescribeEmailMonitoringConfigurationResponse (Maybe Text)
-- | The Amazon Resource Name (ARN) of the IAM Role associated with the
-- email monitoring configuration.
describeEmailMonitoringConfigurationResponse_roleArn :: Lens' DescribeEmailMonitoringConfigurationResponse (Maybe Text)
-- | The response's http status code.
describeEmailMonitoringConfigurationResponse_httpStatus :: Lens' DescribeEmailMonitoringConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance GHC.Show.Show Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance GHC.Read.Read Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance GHC.Generics.Generic Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfigurationResponse
instance GHC.Show.Show Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfigurationResponse
instance GHC.Read.Read Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfigurationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DescribeEmailMonitoringConfiguration.DescribeEmailMonitoringConfiguration
-- | Removes a domain from WorkMail, stops email routing to WorkMail, and
-- removes the authorization allowing WorkMail use. SES keeps the domain
-- because other applications may use it. You must first remove any email
-- address used by WorkMail entities before you remove the domain.
module Amazonka.WorkMail.DeregisterMailDomain
-- | See: newDeregisterMailDomain smart constructor.
data DeregisterMailDomain
DeregisterMailDomain' :: Text -> Text -> DeregisterMailDomain
-- | The WorkMail organization for which the domain will be deregistered.
[$sel:organizationId:DeregisterMailDomain'] :: DeregisterMailDomain -> Text
-- | The domain to deregister in WorkMail and SES.
[$sel:domainName:DeregisterMailDomain'] :: DeregisterMailDomain -> Text
-- | Create a value of DeregisterMailDomain with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeregisterMailDomain,
-- deregisterMailDomain_organizationId - The WorkMail organization
-- for which the domain will be deregistered.
--
-- DeregisterMailDomain, deregisterMailDomain_domainName -
-- The domain to deregister in WorkMail and SES.
newDeregisterMailDomain :: Text -> Text -> DeregisterMailDomain
-- | The WorkMail organization for which the domain will be deregistered.
deregisterMailDomain_organizationId :: Lens' DeregisterMailDomain Text
-- | The domain to deregister in WorkMail and SES.
deregisterMailDomain_domainName :: Lens' DeregisterMailDomain Text
-- | See: newDeregisterMailDomainResponse smart constructor.
data DeregisterMailDomainResponse
DeregisterMailDomainResponse' :: Int -> DeregisterMailDomainResponse
-- | The response's http status code.
[$sel:httpStatus:DeregisterMailDomainResponse'] :: DeregisterMailDomainResponse -> Int
-- | Create a value of DeregisterMailDomainResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeregisterMailDomainResponse',
-- deregisterMailDomainResponse_httpStatus - The response's http
-- status code.
newDeregisterMailDomainResponse :: Int -> DeregisterMailDomainResponse
-- | The response's http status code.
deregisterMailDomainResponse_httpStatus :: Lens' DeregisterMailDomainResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance GHC.Show.Show Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance GHC.Read.Read Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance GHC.Classes.Eq Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance GHC.Generics.Generic Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomainResponse
instance GHC.Show.Show Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomainResponse
instance GHC.Read.Read Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomainResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomainResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomainResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeregisterMailDomain.DeregisterMailDomain
-- | Mark a user, group, or resource as no longer used in WorkMail. This
-- action disassociates the mailbox and schedules it for clean-up.
-- WorkMail keeps mailboxes for 30 days before they are permanently
-- removed. The functionality in the console is Disable.
module Amazonka.WorkMail.DeregisterFromWorkMail
-- | See: newDeregisterFromWorkMail smart constructor.
data DeregisterFromWorkMail
DeregisterFromWorkMail' :: Text -> Text -> DeregisterFromWorkMail
-- | The identifier for the organization under which the WorkMail entity
-- exists.
[$sel:organizationId:DeregisterFromWorkMail'] :: DeregisterFromWorkMail -> Text
-- | The identifier for the member (user or group) to be updated.
[$sel:entityId:DeregisterFromWorkMail'] :: DeregisterFromWorkMail -> Text
-- | Create a value of DeregisterFromWorkMail with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeregisterFromWorkMail,
-- deregisterFromWorkMail_organizationId - The identifier for the
-- organization under which the WorkMail entity exists.
--
-- DeregisterFromWorkMail, deregisterFromWorkMail_entityId
-- - The identifier for the member (user or group) to be updated.
newDeregisterFromWorkMail :: Text -> Text -> DeregisterFromWorkMail
-- | The identifier for the organization under which the WorkMail entity
-- exists.
deregisterFromWorkMail_organizationId :: Lens' DeregisterFromWorkMail Text
-- | The identifier for the member (user or group) to be updated.
deregisterFromWorkMail_entityId :: Lens' DeregisterFromWorkMail Text
-- | See: newDeregisterFromWorkMailResponse smart
-- constructor.
data DeregisterFromWorkMailResponse
DeregisterFromWorkMailResponse' :: Int -> DeregisterFromWorkMailResponse
-- | The response's http status code.
[$sel:httpStatus:DeregisterFromWorkMailResponse'] :: DeregisterFromWorkMailResponse -> Int
-- | Create a value of DeregisterFromWorkMailResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeregisterFromWorkMailResponse',
-- deregisterFromWorkMailResponse_httpStatus - The response's http
-- status code.
newDeregisterFromWorkMailResponse :: Int -> DeregisterFromWorkMailResponse
-- | The response's http status code.
deregisterFromWorkMailResponse_httpStatus :: Lens' DeregisterFromWorkMailResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance GHC.Show.Show Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance GHC.Read.Read Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance GHC.Classes.Eq Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance GHC.Generics.Generic Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMailResponse
instance GHC.Show.Show Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMailResponse
instance GHC.Read.Read Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMailResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMailResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMailResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeregisterFromWorkMail.DeregisterFromWorkMail
-- | Deletes a user from WorkMail and all subsequent systems. Before you
-- can delete a user, the user state must be DISABLED. Use the
-- DescribeUser action to confirm the user state.
--
-- Deleting a user is permanent and cannot be undone. WorkMail archives
-- user mailboxes for 30 days before they are permanently removed.
module Amazonka.WorkMail.DeleteUser
-- | See: newDeleteUser smart constructor.
data DeleteUser
DeleteUser' :: Text -> Text -> DeleteUser
-- | The organization that contains the user to be deleted.
[$sel:organizationId:DeleteUser'] :: DeleteUser -> Text
-- | The identifier of the user to be deleted.
[$sel:userId:DeleteUser'] :: DeleteUser -> Text
-- | Create a value of DeleteUser with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteUser, deleteUser_organizationId - The organization
-- that contains the user to be deleted.
--
-- DeleteUser, deleteUser_userId - The identifier of the
-- user to be deleted.
newDeleteUser :: Text -> Text -> DeleteUser
-- | The organization that contains the user to be deleted.
deleteUser_organizationId :: Lens' DeleteUser Text
-- | The identifier of the user to be deleted.
deleteUser_userId :: Lens' DeleteUser Text
-- | See: newDeleteUserResponse smart constructor.
data DeleteUserResponse
DeleteUserResponse' :: Int -> DeleteUserResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteUserResponse'] :: DeleteUserResponse -> Int
-- | Create a value of DeleteUserResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteUserResponse',
-- deleteUserResponse_httpStatus - The response's http status
-- code.
newDeleteUserResponse :: Int -> DeleteUserResponse
-- | The response's http status code.
deleteUserResponse_httpStatus :: Lens' DeleteUserResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteUser.DeleteUser
instance GHC.Show.Show Amazonka.WorkMail.DeleteUser.DeleteUser
instance GHC.Read.Read Amazonka.WorkMail.DeleteUser.DeleteUser
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteUser.DeleteUser
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteUser.DeleteUserResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteUser.DeleteUserResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteUser.DeleteUserResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteUser.DeleteUserResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteUser.DeleteUser
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteUser.DeleteUserResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteUser.DeleteUser
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteUser.DeleteUser
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteUser.DeleteUser
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteUser.DeleteUser
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteUser.DeleteUser
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteUser.DeleteUser
-- | Deletes the specified retention policy from the specified
-- organization.
module Amazonka.WorkMail.DeleteRetentionPolicy
-- | See: newDeleteRetentionPolicy smart constructor.
data DeleteRetentionPolicy
DeleteRetentionPolicy' :: Text -> Text -> DeleteRetentionPolicy
-- | The organization ID.
[$sel:organizationId:DeleteRetentionPolicy'] :: DeleteRetentionPolicy -> Text
-- | The retention policy ID.
[$sel:id:DeleteRetentionPolicy'] :: DeleteRetentionPolicy -> Text
-- | Create a value of DeleteRetentionPolicy with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteRetentionPolicy,
-- deleteRetentionPolicy_organizationId - The organization ID.
--
-- DeleteRetentionPolicy, deleteRetentionPolicy_id - The
-- retention policy ID.
newDeleteRetentionPolicy :: Text -> Text -> DeleteRetentionPolicy
-- | The organization ID.
deleteRetentionPolicy_organizationId :: Lens' DeleteRetentionPolicy Text
-- | The retention policy ID.
deleteRetentionPolicy_id :: Lens' DeleteRetentionPolicy Text
-- | See: newDeleteRetentionPolicyResponse smart constructor.
data DeleteRetentionPolicyResponse
DeleteRetentionPolicyResponse' :: Int -> DeleteRetentionPolicyResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteRetentionPolicyResponse'] :: DeleteRetentionPolicyResponse -> Int
-- | Create a value of DeleteRetentionPolicyResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteRetentionPolicyResponse',
-- deleteRetentionPolicyResponse_httpStatus - The response's http
-- status code.
newDeleteRetentionPolicyResponse :: Int -> DeleteRetentionPolicyResponse
-- | The response's http status code.
deleteRetentionPolicyResponse_httpStatus :: Lens' DeleteRetentionPolicyResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance GHC.Show.Show Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance GHC.Read.Read Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicyResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicyResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicyResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicyResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicyResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteRetentionPolicy.DeleteRetentionPolicy
-- | Deletes the specified resource.
module Amazonka.WorkMail.DeleteResource
-- | See: newDeleteResource smart constructor.
data DeleteResource
DeleteResource' :: Text -> Text -> DeleteResource
-- | The identifier associated with the organization from which the
-- resource is deleted.
[$sel:organizationId:DeleteResource'] :: DeleteResource -> Text
-- | The identifier of the resource to be deleted.
[$sel:resourceId:DeleteResource'] :: DeleteResource -> Text
-- | Create a value of DeleteResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteResource, deleteResource_organizationId - The
-- identifier associated with the organization from which the resource is
-- deleted.
--
-- $sel:resourceId:DeleteResource',
-- deleteResource_resourceId - The identifier of the resource to
-- be deleted.
newDeleteResource :: Text -> Text -> DeleteResource
-- | The identifier associated with the organization from which the
-- resource is deleted.
deleteResource_organizationId :: Lens' DeleteResource Text
-- | The identifier of the resource to be deleted.
deleteResource_resourceId :: Lens' DeleteResource Text
-- | See: newDeleteResourceResponse smart constructor.
data DeleteResourceResponse
DeleteResourceResponse' :: Int -> DeleteResourceResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteResourceResponse'] :: DeleteResourceResponse -> Int
-- | Create a value of DeleteResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteResourceResponse',
-- deleteResourceResponse_httpStatus - The response's http status
-- code.
newDeleteResourceResponse :: Int -> DeleteResourceResponse
-- | The response's http status code.
deleteResourceResponse_httpStatus :: Lens' DeleteResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteResource.DeleteResource
instance GHC.Show.Show Amazonka.WorkMail.DeleteResource.DeleteResource
instance GHC.Read.Read Amazonka.WorkMail.DeleteResource.DeleteResource
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteResource.DeleteResource
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteResource.DeleteResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteResource.DeleteResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteResource.DeleteResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteResource.DeleteResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteResource.DeleteResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteResource.DeleteResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteResource.DeleteResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteResource.DeleteResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteResource.DeleteResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteResource.DeleteResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteResource.DeleteResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteResource.DeleteResource
-- | Deletes an WorkMail organization and all underlying AWS resources
-- managed by WorkMail as part of the organization. You can choose
-- whether to delete the associated directory. For more information, see
-- Removing an organization in the WorkMail Administrator
-- Guide.
module Amazonka.WorkMail.DeleteOrganization
-- | See: newDeleteOrganization smart constructor.
data DeleteOrganization
DeleteOrganization' :: Maybe Text -> Text -> Bool -> DeleteOrganization
-- | The idempotency token associated with the request.
[$sel:clientToken:DeleteOrganization'] :: DeleteOrganization -> Maybe Text
-- | The organization ID.
[$sel:organizationId:DeleteOrganization'] :: DeleteOrganization -> Text
-- | If true, deletes the AWS Directory Service directory associated with
-- the organization.
[$sel:deleteDirectory:DeleteOrganization'] :: DeleteOrganization -> Bool
-- | Create a value of DeleteOrganization with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:DeleteOrganization',
-- deleteOrganization_clientToken - The idempotency token
-- associated with the request.
--
-- DeleteOrganization, deleteOrganization_organizationId -
-- The organization ID.
--
-- $sel:deleteDirectory:DeleteOrganization',
-- deleteOrganization_deleteDirectory - If true, deletes the AWS
-- Directory Service directory associated with the organization.
newDeleteOrganization :: Text -> Bool -> DeleteOrganization
-- | The idempotency token associated with the request.
deleteOrganization_clientToken :: Lens' DeleteOrganization (Maybe Text)
-- | The organization ID.
deleteOrganization_organizationId :: Lens' DeleteOrganization Text
-- | If true, deletes the AWS Directory Service directory associated with
-- the organization.
deleteOrganization_deleteDirectory :: Lens' DeleteOrganization Bool
-- | See: newDeleteOrganizationResponse smart constructor.
data DeleteOrganizationResponse
DeleteOrganizationResponse' :: Maybe Text -> Maybe Text -> Int -> DeleteOrganizationResponse
-- | The organization ID.
[$sel:organizationId:DeleteOrganizationResponse'] :: DeleteOrganizationResponse -> Maybe Text
-- | The state of the organization.
[$sel:state:DeleteOrganizationResponse'] :: DeleteOrganizationResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:DeleteOrganizationResponse'] :: DeleteOrganizationResponse -> Int
-- | Create a value of DeleteOrganizationResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteOrganization,
-- deleteOrganizationResponse_organizationId - The organization
-- ID.
--
-- DeleteOrganizationResponse,
-- deleteOrganizationResponse_state - The state of the
-- organization.
--
-- $sel:httpStatus:DeleteOrganizationResponse',
-- deleteOrganizationResponse_httpStatus - The response's http
-- status code.
newDeleteOrganizationResponse :: Int -> DeleteOrganizationResponse
-- | The organization ID.
deleteOrganizationResponse_organizationId :: Lens' DeleteOrganizationResponse (Maybe Text)
-- | The state of the organization.
deleteOrganizationResponse_state :: Lens' DeleteOrganizationResponse (Maybe Text)
-- | The response's http status code.
deleteOrganizationResponse_httpStatus :: Lens' DeleteOrganizationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance GHC.Show.Show Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance GHC.Read.Read Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteOrganization.DeleteOrganizationResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteOrganization.DeleteOrganizationResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteOrganization.DeleteOrganizationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteOrganization.DeleteOrganizationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteOrganization.DeleteOrganizationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteOrganization.DeleteOrganization
-- | Deletes a mobile device access rule for the specified WorkMail
-- organization.
--
-- Deleting already deleted and non-existing rules does not produce an
-- error. In those cases, the service sends back an HTTP 200 response
-- with an empty HTTP body.
module Amazonka.WorkMail.DeleteMobileDeviceAccessRule
-- | See: newDeleteMobileDeviceAccessRule smart constructor.
data DeleteMobileDeviceAccessRule
DeleteMobileDeviceAccessRule' :: Text -> Text -> DeleteMobileDeviceAccessRule
-- | The WorkMail organization under which the rule will be deleted.
[$sel:organizationId:DeleteMobileDeviceAccessRule'] :: DeleteMobileDeviceAccessRule -> Text
-- | The identifier of the rule to be deleted.
[$sel:mobileDeviceAccessRuleId:DeleteMobileDeviceAccessRule'] :: DeleteMobileDeviceAccessRule -> Text
-- | Create a value of DeleteMobileDeviceAccessRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteMobileDeviceAccessRule,
-- deleteMobileDeviceAccessRule_organizationId - The WorkMail
-- organization under which the rule will be deleted.
--
-- DeleteMobileDeviceAccessRule,
-- deleteMobileDeviceAccessRule_mobileDeviceAccessRuleId - The
-- identifier of the rule to be deleted.
newDeleteMobileDeviceAccessRule :: Text -> Text -> DeleteMobileDeviceAccessRule
-- | The WorkMail organization under which the rule will be deleted.
deleteMobileDeviceAccessRule_organizationId :: Lens' DeleteMobileDeviceAccessRule Text
-- | The identifier of the rule to be deleted.
deleteMobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' DeleteMobileDeviceAccessRule Text
-- | See: newDeleteMobileDeviceAccessRuleResponse smart
-- constructor.
data DeleteMobileDeviceAccessRuleResponse
DeleteMobileDeviceAccessRuleResponse' :: Int -> DeleteMobileDeviceAccessRuleResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteMobileDeviceAccessRuleResponse'] :: DeleteMobileDeviceAccessRuleResponse -> Int
-- | Create a value of DeleteMobileDeviceAccessRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteMobileDeviceAccessRuleResponse',
-- deleteMobileDeviceAccessRuleResponse_httpStatus - The
-- response's http status code.
newDeleteMobileDeviceAccessRuleResponse :: Int -> DeleteMobileDeviceAccessRuleResponse
-- | The response's http status code.
deleteMobileDeviceAccessRuleResponse_httpStatus :: Lens' DeleteMobileDeviceAccessRuleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance GHC.Show.Show Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance GHC.Read.Read Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRuleResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRuleResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRuleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRuleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRuleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteMobileDeviceAccessRule.DeleteMobileDeviceAccessRule
-- | Deletes the mobile device access override for the given WorkMail
-- organization, user, and device.
--
-- Deleting already deleted and non-existing overrides does not produce
-- an error. In those cases, the service sends back an HTTP 200 response
-- with an empty HTTP body.
module Amazonka.WorkMail.DeleteMobileDeviceAccessOverride
-- | See: newDeleteMobileDeviceAccessOverride smart
-- constructor.
data DeleteMobileDeviceAccessOverride
DeleteMobileDeviceAccessOverride' :: Text -> Text -> Text -> DeleteMobileDeviceAccessOverride
-- | The WorkMail organization for which the access override will be
-- deleted.
[$sel:organizationId:DeleteMobileDeviceAccessOverride'] :: DeleteMobileDeviceAccessOverride -> Text
-- | The WorkMail user for which you want to delete the override. Accepts
-- the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
[$sel:userId:DeleteMobileDeviceAccessOverride'] :: DeleteMobileDeviceAccessOverride -> Text
-- | The mobile device for which you delete the override. DeviceId
-- is case insensitive.
[$sel:deviceId:DeleteMobileDeviceAccessOverride'] :: DeleteMobileDeviceAccessOverride -> Text
-- | Create a value of DeleteMobileDeviceAccessOverride with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteMobileDeviceAccessOverride,
-- deleteMobileDeviceAccessOverride_organizationId - The WorkMail
-- organization for which the access override will be deleted.
--
-- DeleteMobileDeviceAccessOverride,
-- deleteMobileDeviceAccessOverride_userId - The WorkMail user for
-- which you want to delete the override. Accepts the following types of
-- user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- DeleteMobileDeviceAccessOverride,
-- deleteMobileDeviceAccessOverride_deviceId - The mobile device
-- for which you delete the override. DeviceId is case
-- insensitive.
newDeleteMobileDeviceAccessOverride :: Text -> Text -> Text -> DeleteMobileDeviceAccessOverride
-- | The WorkMail organization for which the access override will be
-- deleted.
deleteMobileDeviceAccessOverride_organizationId :: Lens' DeleteMobileDeviceAccessOverride Text
-- | The WorkMail user for which you want to delete the override. Accepts
-- the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
deleteMobileDeviceAccessOverride_userId :: Lens' DeleteMobileDeviceAccessOverride Text
-- | The mobile device for which you delete the override. DeviceId
-- is case insensitive.
deleteMobileDeviceAccessOverride_deviceId :: Lens' DeleteMobileDeviceAccessOverride Text
-- | See: newDeleteMobileDeviceAccessOverrideResponse smart
-- constructor.
data DeleteMobileDeviceAccessOverrideResponse
DeleteMobileDeviceAccessOverrideResponse' :: Int -> DeleteMobileDeviceAccessOverrideResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteMobileDeviceAccessOverrideResponse'] :: DeleteMobileDeviceAccessOverrideResponse -> Int
-- | Create a value of DeleteMobileDeviceAccessOverrideResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteMobileDeviceAccessOverrideResponse',
-- deleteMobileDeviceAccessOverrideResponse_httpStatus - The
-- response's http status code.
newDeleteMobileDeviceAccessOverrideResponse :: Int -> DeleteMobileDeviceAccessOverrideResponse
-- | The response's http status code.
deleteMobileDeviceAccessOverrideResponse_httpStatus :: Lens' DeleteMobileDeviceAccessOverrideResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance GHC.Show.Show Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance GHC.Read.Read Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverrideResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverrideResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverrideResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverrideResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverrideResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteMobileDeviceAccessOverride.DeleteMobileDeviceAccessOverride
-- | Deletes permissions granted to a member (user or group).
module Amazonka.WorkMail.DeleteMailboxPermissions
-- | See: newDeleteMailboxPermissions smart constructor.
data DeleteMailboxPermissions
DeleteMailboxPermissions' :: Text -> Text -> Text -> DeleteMailboxPermissions
-- | The identifier of the organization under which the member (user or
-- group) exists.
[$sel:organizationId:DeleteMailboxPermissions'] :: DeleteMailboxPermissions -> Text
-- | The identifier of the member (user or group) that owns the mailbox.
[$sel:entityId:DeleteMailboxPermissions'] :: DeleteMailboxPermissions -> Text
-- | The identifier of the member (user or group) for which to delete
-- granted permissions.
[$sel:granteeId:DeleteMailboxPermissions'] :: DeleteMailboxPermissions -> Text
-- | Create a value of DeleteMailboxPermissions with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteMailboxPermissions,
-- deleteMailboxPermissions_organizationId - The identifier of the
-- organization under which the member (user or group) exists.
--
-- DeleteMailboxPermissions,
-- deleteMailboxPermissions_entityId - The identifier of the
-- member (user or group) that owns the mailbox.
--
-- DeleteMailboxPermissions,
-- deleteMailboxPermissions_granteeId - The identifier of the
-- member (user or group) for which to delete granted permissions.
newDeleteMailboxPermissions :: Text -> Text -> Text -> DeleteMailboxPermissions
-- | The identifier of the organization under which the member (user or
-- group) exists.
deleteMailboxPermissions_organizationId :: Lens' DeleteMailboxPermissions Text
-- | The identifier of the member (user or group) that owns the mailbox.
deleteMailboxPermissions_entityId :: Lens' DeleteMailboxPermissions Text
-- | The identifier of the member (user or group) for which to delete
-- granted permissions.
deleteMailboxPermissions_granteeId :: Lens' DeleteMailboxPermissions Text
-- | See: newDeleteMailboxPermissionsResponse smart
-- constructor.
data DeleteMailboxPermissionsResponse
DeleteMailboxPermissionsResponse' :: Int -> DeleteMailboxPermissionsResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteMailboxPermissionsResponse'] :: DeleteMailboxPermissionsResponse -> Int
-- | Create a value of DeleteMailboxPermissionsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteMailboxPermissionsResponse',
-- deleteMailboxPermissionsResponse_httpStatus - The response's
-- http status code.
newDeleteMailboxPermissionsResponse :: Int -> DeleteMailboxPermissionsResponse
-- | The response's http status code.
deleteMailboxPermissionsResponse_httpStatus :: Lens' DeleteMailboxPermissionsResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance GHC.Show.Show Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance GHC.Read.Read Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissionsResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissionsResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissionsResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissionsResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissionsResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteMailboxPermissions.DeleteMailboxPermissions
-- | Deletes an impersonation role for the given WorkMail organization.
module Amazonka.WorkMail.DeleteImpersonationRole
-- | See: newDeleteImpersonationRole smart constructor.
data DeleteImpersonationRole
DeleteImpersonationRole' :: Text -> Text -> DeleteImpersonationRole
-- | The WorkMail organization from which to delete the impersonation role.
[$sel:organizationId:DeleteImpersonationRole'] :: DeleteImpersonationRole -> Text
-- | The ID of the impersonation role to delete.
[$sel:impersonationRoleId:DeleteImpersonationRole'] :: DeleteImpersonationRole -> Text
-- | Create a value of DeleteImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteImpersonationRole,
-- deleteImpersonationRole_organizationId - The WorkMail
-- organization from which to delete the impersonation role.
--
-- DeleteImpersonationRole,
-- deleteImpersonationRole_impersonationRoleId - The ID of the
-- impersonation role to delete.
newDeleteImpersonationRole :: Text -> Text -> DeleteImpersonationRole
-- | The WorkMail organization from which to delete the impersonation role.
deleteImpersonationRole_organizationId :: Lens' DeleteImpersonationRole Text
-- | The ID of the impersonation role to delete.
deleteImpersonationRole_impersonationRoleId :: Lens' DeleteImpersonationRole Text
-- | See: newDeleteImpersonationRoleResponse smart
-- constructor.
data DeleteImpersonationRoleResponse
DeleteImpersonationRoleResponse' :: Int -> DeleteImpersonationRoleResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteImpersonationRoleResponse'] :: DeleteImpersonationRoleResponse -> Int
-- | Create a value of DeleteImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteImpersonationRoleResponse',
-- deleteImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newDeleteImpersonationRoleResponse :: Int -> DeleteImpersonationRoleResponse
-- | The response's http status code.
deleteImpersonationRoleResponse_httpStatus :: Lens' DeleteImpersonationRoleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance GHC.Show.Show Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance GHC.Read.Read Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRoleResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRoleResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRoleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRoleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRoleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteImpersonationRole.DeleteImpersonationRole
-- | Deletes a group from WorkMail.
module Amazonka.WorkMail.DeleteGroup
-- | See: newDeleteGroup smart constructor.
data DeleteGroup
DeleteGroup' :: Text -> Text -> DeleteGroup
-- | The organization that contains the group.
[$sel:organizationId:DeleteGroup'] :: DeleteGroup -> Text
-- | The identifier of the group to be deleted.
[$sel:groupId:DeleteGroup'] :: DeleteGroup -> Text
-- | Create a value of DeleteGroup with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteGroup, deleteGroup_organizationId - The
-- organization that contains the group.
--
-- $sel:groupId:DeleteGroup', deleteGroup_groupId - The
-- identifier of the group to be deleted.
newDeleteGroup :: Text -> Text -> DeleteGroup
-- | The organization that contains the group.
deleteGroup_organizationId :: Lens' DeleteGroup Text
-- | The identifier of the group to be deleted.
deleteGroup_groupId :: Lens' DeleteGroup Text
-- | See: newDeleteGroupResponse smart constructor.
data DeleteGroupResponse
DeleteGroupResponse' :: Int -> DeleteGroupResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteGroupResponse'] :: DeleteGroupResponse -> Int
-- | Create a value of DeleteGroupResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteGroupResponse',
-- deleteGroupResponse_httpStatus - The response's http status
-- code.
newDeleteGroupResponse :: Int -> DeleteGroupResponse
-- | The response's http status code.
deleteGroupResponse_httpStatus :: Lens' DeleteGroupResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance GHC.Show.Show Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance GHC.Read.Read Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteGroup.DeleteGroupResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteGroup.DeleteGroupResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteGroup.DeleteGroupResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteGroup.DeleteGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteGroup.DeleteGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteGroup.DeleteGroup
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteGroup.DeleteGroup
-- | Deletes the email monitoring configuration for a specified
-- organization.
module Amazonka.WorkMail.DeleteEmailMonitoringConfiguration
-- | See: newDeleteEmailMonitoringConfiguration smart
-- constructor.
data DeleteEmailMonitoringConfiguration
DeleteEmailMonitoringConfiguration' :: Text -> DeleteEmailMonitoringConfiguration
-- | The ID of the organization from which the email monitoring
-- configuration is deleted.
[$sel:organizationId:DeleteEmailMonitoringConfiguration'] :: DeleteEmailMonitoringConfiguration -> Text
-- | Create a value of DeleteEmailMonitoringConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteEmailMonitoringConfiguration,
-- deleteEmailMonitoringConfiguration_organizationId - The ID of
-- the organization from which the email monitoring configuration is
-- deleted.
newDeleteEmailMonitoringConfiguration :: Text -> DeleteEmailMonitoringConfiguration
-- | The ID of the organization from which the email monitoring
-- configuration is deleted.
deleteEmailMonitoringConfiguration_organizationId :: Lens' DeleteEmailMonitoringConfiguration Text
-- | See: newDeleteEmailMonitoringConfigurationResponse smart
-- constructor.
data DeleteEmailMonitoringConfigurationResponse
DeleteEmailMonitoringConfigurationResponse' :: Int -> DeleteEmailMonitoringConfigurationResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteEmailMonitoringConfigurationResponse'] :: DeleteEmailMonitoringConfigurationResponse -> Int
-- | Create a value of DeleteEmailMonitoringConfigurationResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteEmailMonitoringConfigurationResponse',
-- deleteEmailMonitoringConfigurationResponse_httpStatus - The
-- response's http status code.
newDeleteEmailMonitoringConfigurationResponse :: Int -> DeleteEmailMonitoringConfigurationResponse
-- | The response's http status code.
deleteEmailMonitoringConfigurationResponse_httpStatus :: Lens' DeleteEmailMonitoringConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance GHC.Show.Show Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance GHC.Read.Read Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfigurationResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfigurationResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfigurationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteEmailMonitoringConfiguration.DeleteEmailMonitoringConfiguration
-- | Deletes the AvailabilityConfiguration for the given WorkMail
-- organization and domain.
module Amazonka.WorkMail.DeleteAvailabilityConfiguration
-- | See: newDeleteAvailabilityConfiguration smart
-- constructor.
data DeleteAvailabilityConfiguration
DeleteAvailabilityConfiguration' :: Text -> Text -> DeleteAvailabilityConfiguration
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be deleted.
[$sel:organizationId:DeleteAvailabilityConfiguration'] :: DeleteAvailabilityConfiguration -> Text
-- | The domain for which the AvailabilityConfiguration will be
-- deleted.
[$sel:domainName:DeleteAvailabilityConfiguration'] :: DeleteAvailabilityConfiguration -> Text
-- | Create a value of DeleteAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteAvailabilityConfiguration,
-- deleteAvailabilityConfiguration_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration will be
-- deleted.
--
-- DeleteAvailabilityConfiguration,
-- deleteAvailabilityConfiguration_domainName - The domain for
-- which the AvailabilityConfiguration will be deleted.
newDeleteAvailabilityConfiguration :: Text -> Text -> DeleteAvailabilityConfiguration
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be deleted.
deleteAvailabilityConfiguration_organizationId :: Lens' DeleteAvailabilityConfiguration Text
-- | The domain for which the AvailabilityConfiguration will be
-- deleted.
deleteAvailabilityConfiguration_domainName :: Lens' DeleteAvailabilityConfiguration Text
-- | See: newDeleteAvailabilityConfigurationResponse smart
-- constructor.
data DeleteAvailabilityConfigurationResponse
DeleteAvailabilityConfigurationResponse' :: Int -> DeleteAvailabilityConfigurationResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteAvailabilityConfigurationResponse'] :: DeleteAvailabilityConfigurationResponse -> Int
-- | Create a value of DeleteAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteAvailabilityConfigurationResponse',
-- deleteAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newDeleteAvailabilityConfigurationResponse :: Int -> DeleteAvailabilityConfigurationResponse
-- | The response's http status code.
deleteAvailabilityConfigurationResponse_httpStatus :: Lens' DeleteAvailabilityConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance GHC.Show.Show Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance GHC.Read.Read Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfigurationResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfigurationResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfigurationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteAvailabilityConfiguration.DeleteAvailabilityConfiguration
-- | Remove one or more specified aliases from a set of aliases for a given
-- user.
module Amazonka.WorkMail.DeleteAlias
-- | See: newDeleteAlias smart constructor.
data DeleteAlias
DeleteAlias' :: Text -> Text -> Text -> DeleteAlias
-- | The identifier for the organization under which the user exists.
[$sel:organizationId:DeleteAlias'] :: DeleteAlias -> Text
-- | The identifier for the member (user or group) from which to have the
-- aliases removed.
[$sel:entityId:DeleteAlias'] :: DeleteAlias -> Text
-- | The aliases to be removed from the user's set of aliases. Duplicate
-- entries in the list are collapsed into single entries (the list is
-- transformed into a set).
[$sel:alias:DeleteAlias'] :: DeleteAlias -> Text
-- | Create a value of DeleteAlias with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteAlias, deleteAlias_organizationId - The identifier
-- for the organization under which the user exists.
--
-- DeleteAlias, deleteAlias_entityId - The identifier for
-- the member (user or group) from which to have the aliases removed.
--
-- DeleteAlias, deleteAlias_alias - The aliases to be
-- removed from the user's set of aliases. Duplicate entries in the list
-- are collapsed into single entries (the list is transformed into a
-- set).
newDeleteAlias :: Text -> Text -> Text -> DeleteAlias
-- | The identifier for the organization under which the user exists.
deleteAlias_organizationId :: Lens' DeleteAlias Text
-- | The identifier for the member (user or group) from which to have the
-- aliases removed.
deleteAlias_entityId :: Lens' DeleteAlias Text
-- | The aliases to be removed from the user's set of aliases. Duplicate
-- entries in the list are collapsed into single entries (the list is
-- transformed into a set).
deleteAlias_alias :: Lens' DeleteAlias Text
-- | See: newDeleteAliasResponse smart constructor.
data DeleteAliasResponse
DeleteAliasResponse' :: Int -> DeleteAliasResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteAliasResponse'] :: DeleteAliasResponse -> Int
-- | Create a value of DeleteAliasResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteAliasResponse',
-- deleteAliasResponse_httpStatus - The response's http status
-- code.
newDeleteAliasResponse :: Int -> DeleteAliasResponse
-- | The response's http status code.
deleteAliasResponse_httpStatus :: Lens' DeleteAliasResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance GHC.Show.Show Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance GHC.Read.Read Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteAlias.DeleteAliasResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteAlias.DeleteAliasResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteAlias.DeleteAliasResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteAlias.DeleteAliasResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteAlias.DeleteAliasResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteAlias.DeleteAlias
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteAlias.DeleteAlias
-- | Deletes an access control rule for the specified WorkMail
-- organization.
--
-- Deleting already deleted and non-existing rules does not produce an
-- error. In those cases, the service sends back an HTTP 200 response
-- with an empty HTTP body.
module Amazonka.WorkMail.DeleteAccessControlRule
-- | See: newDeleteAccessControlRule smart constructor.
data DeleteAccessControlRule
DeleteAccessControlRule' :: Text -> Text -> DeleteAccessControlRule
-- | The identifier for the organization.
[$sel:organizationId:DeleteAccessControlRule'] :: DeleteAccessControlRule -> Text
-- | The name of the access control rule.
[$sel:name:DeleteAccessControlRule'] :: DeleteAccessControlRule -> Text
-- | Create a value of DeleteAccessControlRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteAccessControlRule,
-- deleteAccessControlRule_organizationId - The identifier for the
-- organization.
--
-- DeleteAccessControlRule, deleteAccessControlRule_name -
-- The name of the access control rule.
newDeleteAccessControlRule :: Text -> Text -> DeleteAccessControlRule
-- | The identifier for the organization.
deleteAccessControlRule_organizationId :: Lens' DeleteAccessControlRule Text
-- | The name of the access control rule.
deleteAccessControlRule_name :: Lens' DeleteAccessControlRule Text
-- | See: newDeleteAccessControlRuleResponse smart
-- constructor.
data DeleteAccessControlRuleResponse
DeleteAccessControlRuleResponse' :: Int -> DeleteAccessControlRuleResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteAccessControlRuleResponse'] :: DeleteAccessControlRuleResponse -> Int
-- | Create a value of DeleteAccessControlRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteAccessControlRuleResponse',
-- deleteAccessControlRuleResponse_httpStatus - The response's
-- http status code.
newDeleteAccessControlRuleResponse :: Int -> DeleteAccessControlRuleResponse
-- | The response's http status code.
deleteAccessControlRuleResponse_httpStatus :: Lens' DeleteAccessControlRuleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance GHC.Show.Show Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance GHC.Read.Read Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance GHC.Generics.Generic Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRuleResponse
instance GHC.Show.Show Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRuleResponse
instance GHC.Read.Read Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRuleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRuleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRuleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.DeleteAccessControlRule.DeleteAccessControlRule
-- | Creates a user who can be used in WorkMail by calling the
-- RegisterToWorkMail operation.
module Amazonka.WorkMail.CreateUser
-- | See: newCreateUser smart constructor.
data CreateUser
CreateUser' :: Text -> Text -> Text -> Sensitive Text -> CreateUser
-- | The identifier of the organization for which the user is created.
[$sel:organizationId:CreateUser'] :: CreateUser -> Text
-- | The name for the new user. WorkMail directory user names have a
-- maximum length of 64. All others have a maximum length of 20.
[$sel:name:CreateUser'] :: CreateUser -> Text
-- | The display name for the new user.
[$sel:displayName:CreateUser'] :: CreateUser -> Text
-- | The password for the new user.
[$sel:password:CreateUser'] :: CreateUser -> Sensitive Text
-- | Create a value of CreateUser with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateUser, createUser_organizationId - The identifier
-- of the organization for which the user is created.
--
-- CreateUser, createUser_name - The name for the new user.
-- WorkMail directory user names have a maximum length of 64. All others
-- have a maximum length of 20.
--
-- CreateUser, createUser_displayName - The display name
-- for the new user.
--
-- $sel:password:CreateUser', createUser_password - The
-- password for the new user.
newCreateUser :: Text -> Text -> Text -> Text -> CreateUser
-- | The identifier of the organization for which the user is created.
createUser_organizationId :: Lens' CreateUser Text
-- | The name for the new user. WorkMail directory user names have a
-- maximum length of 64. All others have a maximum length of 20.
createUser_name :: Lens' CreateUser Text
-- | The display name for the new user.
createUser_displayName :: Lens' CreateUser Text
-- | The password for the new user.
createUser_password :: Lens' CreateUser Text
-- | See: newCreateUserResponse smart constructor.
data CreateUserResponse
CreateUserResponse' :: Maybe Text -> Int -> CreateUserResponse
-- | The identifier for the new user.
[$sel:userId:CreateUserResponse'] :: CreateUserResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:CreateUserResponse'] :: CreateUserResponse -> Int
-- | Create a value of CreateUserResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateUserResponse, createUserResponse_userId - The
-- identifier for the new user.
--
-- $sel:httpStatus:CreateUserResponse',
-- createUserResponse_httpStatus - The response's http status
-- code.
newCreateUserResponse :: Int -> CreateUserResponse
-- | The identifier for the new user.
createUserResponse_userId :: Lens' CreateUserResponse (Maybe Text)
-- | The response's http status code.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateUser.CreateUser
instance GHC.Show.Show Amazonka.WorkMail.CreateUser.CreateUser
instance GHC.Classes.Eq Amazonka.WorkMail.CreateUser.CreateUser
instance GHC.Generics.Generic Amazonka.WorkMail.CreateUser.CreateUserResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateUser.CreateUserResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateUser.CreateUserResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateUser.CreateUserResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateUser.CreateUser
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateUser.CreateUserResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateUser.CreateUser
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateUser.CreateUser
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateUser.CreateUser
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateUser.CreateUser
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateUser.CreateUser
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateUser.CreateUser
-- | Creates a new WorkMail resource.
module Amazonka.WorkMail.CreateResource
-- | See: newCreateResource smart constructor.
data CreateResource
CreateResource' :: Text -> Text -> ResourceType -> CreateResource
-- | The identifier associated with the organization for which the resource
-- is created.
[$sel:organizationId:CreateResource'] :: CreateResource -> Text
-- | The name of the new resource.
[$sel:name:CreateResource'] :: CreateResource -> Text
-- | The type of the new resource. The available types are
-- equipment and room.
[$sel:type':CreateResource'] :: CreateResource -> ResourceType
-- | Create a value of CreateResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateResource, createResource_organizationId - The
-- identifier associated with the organization for which the resource is
-- created.
--
-- CreateResource, createResource_name - The name of the
-- new resource.
--
-- CreateResource, createResource_type - The type of the
-- new resource. The available types are equipment and
-- room.
newCreateResource :: Text -> Text -> ResourceType -> CreateResource
-- | The identifier associated with the organization for which the resource
-- is created.
createResource_organizationId :: Lens' CreateResource Text
-- | The name of the new resource.
createResource_name :: Lens' CreateResource Text
-- | The type of the new resource. The available types are
-- equipment and room.
createResource_type :: Lens' CreateResource ResourceType
-- | See: newCreateResourceResponse smart constructor.
data CreateResourceResponse
CreateResourceResponse' :: Maybe Text -> Int -> CreateResourceResponse
-- | The identifier of the new resource.
[$sel:resourceId:CreateResourceResponse'] :: CreateResourceResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:CreateResourceResponse'] :: CreateResourceResponse -> Int
-- | Create a value of CreateResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceId:CreateResourceResponse',
-- createResourceResponse_resourceId - The identifier of the new
-- resource.
--
-- $sel:httpStatus:CreateResourceResponse',
-- createResourceResponse_httpStatus - The response's http status
-- code.
newCreateResourceResponse :: Int -> CreateResourceResponse
-- | The identifier of the new resource.
createResourceResponse_resourceId :: Lens' CreateResourceResponse (Maybe Text)
-- | The response's http status code.
createResourceResponse_httpStatus :: Lens' CreateResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateResource.CreateResource
instance GHC.Show.Show Amazonka.WorkMail.CreateResource.CreateResource
instance GHC.Read.Read Amazonka.WorkMail.CreateResource.CreateResource
instance GHC.Classes.Eq Amazonka.WorkMail.CreateResource.CreateResource
instance GHC.Generics.Generic Amazonka.WorkMail.CreateResource.CreateResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateResource.CreateResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateResource.CreateResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateResource.CreateResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateResource.CreateResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateResource.CreateResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateResource.CreateResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateResource.CreateResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateResource.CreateResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateResource.CreateResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateResource.CreateResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateResource.CreateResource
-- | Creates a new WorkMail organization. Optionally, you can choose to
-- associate an existing AWS Directory Service directory with your
-- organization. If an AWS Directory Service directory ID is specified,
-- the organization alias must match the directory alias. If you choose
-- not to associate an existing directory with your organization, then we
-- create a new WorkMail directory for you. For more information, see
-- Adding an organization in the WorkMail Administrator
-- Guide.
--
-- You can associate multiple email domains with an organization, then
-- choose your default email domain from the WorkMail console. You can
-- also associate a domain that is managed in an Amazon Route 53 public
-- hosted zone. For more information, see Adding a domain and
-- Choosing the default domain in the WorkMail Administrator
-- Guide.
--
-- Optionally, you can use a customer managed key from AWS Key Management
-- Service (AWS KMS) to encrypt email for your organization. If you don't
-- associate an AWS KMS key, WorkMail creates a default, AWS managed key
-- for you.
module Amazonka.WorkMail.CreateOrganization
-- | See: newCreateOrganization smart constructor.
data CreateOrganization
CreateOrganization' :: Maybe Text -> Maybe Text -> Maybe [Domain] -> Maybe Bool -> Maybe Text -> Text -> CreateOrganization
-- | The idempotency token associated with the request.
[$sel:clientToken:CreateOrganization'] :: CreateOrganization -> Maybe Text
-- | The AWS Directory Service directory ID.
[$sel:directoryId:CreateOrganization'] :: CreateOrganization -> Maybe Text
-- | The email domains to associate with the organization.
[$sel:domains:CreateOrganization'] :: CreateOrganization -> Maybe [Domain]
-- | When true, allows organization interoperability between
-- WorkMail and Microsoft Exchange. If true, you must include a
-- AD Connector directory ID in the request.
[$sel:enableInteroperability:CreateOrganization'] :: CreateOrganization -> Maybe Bool
-- | The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.
[$sel:kmsKeyArn:CreateOrganization'] :: CreateOrganization -> Maybe Text
-- | The organization alias.
[$sel:alias:CreateOrganization'] :: CreateOrganization -> Text
-- | Create a value of CreateOrganization with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateOrganization',
-- createOrganization_clientToken - The idempotency token
-- associated with the request.
--
-- $sel:directoryId:CreateOrganization',
-- createOrganization_directoryId - The AWS Directory Service
-- directory ID.
--
-- $sel:domains:CreateOrganization',
-- createOrganization_domains - The email domains to associate
-- with the organization.
--
-- $sel:enableInteroperability:CreateOrganization',
-- createOrganization_enableInteroperability - When true,
-- allows organization interoperability between WorkMail and Microsoft
-- Exchange. If true, you must include a AD Connector directory
-- ID in the request.
--
-- $sel:kmsKeyArn:CreateOrganization',
-- createOrganization_kmsKeyArn - The Amazon Resource Name (ARN)
-- of a customer managed key from AWS KMS.
--
-- CreateOrganization, createOrganization_alias - The
-- organization alias.
newCreateOrganization :: Text -> CreateOrganization
-- | The idempotency token associated with the request.
createOrganization_clientToken :: Lens' CreateOrganization (Maybe Text)
-- | The AWS Directory Service directory ID.
createOrganization_directoryId :: Lens' CreateOrganization (Maybe Text)
-- | The email domains to associate with the organization.
createOrganization_domains :: Lens' CreateOrganization (Maybe [Domain])
-- | When true, allows organization interoperability between
-- WorkMail and Microsoft Exchange. If true, you must include a
-- AD Connector directory ID in the request.
createOrganization_enableInteroperability :: Lens' CreateOrganization (Maybe Bool)
-- | The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.
createOrganization_kmsKeyArn :: Lens' CreateOrganization (Maybe Text)
-- | The organization alias.
createOrganization_alias :: Lens' CreateOrganization Text
-- | See: newCreateOrganizationResponse smart constructor.
data CreateOrganizationResponse
CreateOrganizationResponse' :: Maybe Text -> Int -> CreateOrganizationResponse
-- | The organization ID.
[$sel:organizationId:CreateOrganizationResponse'] :: CreateOrganizationResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:CreateOrganizationResponse'] :: CreateOrganizationResponse -> Int
-- | Create a value of CreateOrganizationResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateOrganizationResponse,
-- createOrganizationResponse_organizationId - The organization
-- ID.
--
-- $sel:httpStatus:CreateOrganizationResponse',
-- createOrganizationResponse_httpStatus - The response's http
-- status code.
newCreateOrganizationResponse :: Int -> CreateOrganizationResponse
-- | The organization ID.
createOrganizationResponse_organizationId :: Lens' CreateOrganizationResponse (Maybe Text)
-- | The response's http status code.
createOrganizationResponse_httpStatus :: Lens' CreateOrganizationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance GHC.Show.Show Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance GHC.Read.Read Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance GHC.Classes.Eq Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance GHC.Generics.Generic Amazonka.WorkMail.CreateOrganization.CreateOrganizationResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateOrganization.CreateOrganizationResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateOrganization.CreateOrganizationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateOrganization.CreateOrganizationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateOrganization.CreateOrganizationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateOrganization.CreateOrganization
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateOrganization.CreateOrganization
-- | Creates a new mobile device access rule for the specified WorkMail
-- organization.
module Amazonka.WorkMail.CreateMobileDeviceAccessRule
-- | See: newCreateMobileDeviceAccessRule smart constructor.
data CreateMobileDeviceAccessRule
CreateMobileDeviceAccessRule' :: Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> Text -> MobileDeviceAccessRuleEffect -> CreateMobileDeviceAccessRule
-- | The idempotency token for the client request.
[$sel:clientToken:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe Text
-- | The rule description.
[$sel:description:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe Text
-- | Device models that the rule will match.
[$sel:deviceModels:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that the rule will match.
[$sel:deviceOperatingSystems:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that the rule will match.
[$sel:deviceTypes:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device user agents that the rule will match.
[$sel:deviceUserAgents:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device models that the rule will not match. All other device
-- models will match.
[$sel:notDeviceModels:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that the rule will not match. All
-- other device operating systems will match.
[$sel:notDeviceOperatingSystems:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that the rule will not match. All other device
-- types will match.
[$sel:notDeviceTypes:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device user agents that the rule will not match. All other
-- device user agents will match.
[$sel:notDeviceUserAgents:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | The WorkMail organization under which the rule will be created.
[$sel:organizationId:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Text
-- | The rule name.
[$sel:name:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> Text
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
[$sel:effect:CreateMobileDeviceAccessRule'] :: CreateMobileDeviceAccessRule -> MobileDeviceAccessRuleEffect
-- | Create a value of CreateMobileDeviceAccessRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateMobileDeviceAccessRule',
-- createMobileDeviceAccessRule_clientToken - The idempotency
-- token for the client request.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_description - The rule
-- description.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceModels - Device models that
-- the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceOperatingSystems - Device
-- operating systems that the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceTypes - Device types that
-- the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceUserAgents - Device user
-- agents that the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceModels - Device models
-- that the rule will not match. All other device models will
-- match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceOperatingSystems - Device
-- operating systems that the rule will not match. All other
-- device operating systems will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceTypes - Device types that
-- the rule will not match. All other device types will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceUserAgents - Device user
-- agents that the rule will not match. All other device user
-- agents will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_organizationId - The WorkMail
-- organization under which the rule will be created.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_name - The rule name.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_effect - The effect of the rule
-- when it matches. Allowed values are ALLOW or DENY.
newCreateMobileDeviceAccessRule :: Text -> Text -> MobileDeviceAccessRuleEffect -> CreateMobileDeviceAccessRule
-- | The idempotency token for the client request.
createMobileDeviceAccessRule_clientToken :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
-- | The rule description.
createMobileDeviceAccessRule_description :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
-- | Device models that the rule will match.
createMobileDeviceAccessRule_deviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the rule will match.
createMobileDeviceAccessRule_deviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the rule will match.
createMobileDeviceAccessRule_deviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that the rule will match.
createMobileDeviceAccessRule_deviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device models that the rule will not match. All other device
-- models will match.
createMobileDeviceAccessRule_notDeviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the rule will not match. All
-- other device operating systems will match.
createMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the rule will not match. All other device
-- types will match.
createMobileDeviceAccessRule_notDeviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that the rule will not match. All other
-- device user agents will match.
createMobileDeviceAccessRule_notDeviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The WorkMail organization under which the rule will be created.
createMobileDeviceAccessRule_organizationId :: Lens' CreateMobileDeviceAccessRule Text
-- | The rule name.
createMobileDeviceAccessRule_name :: Lens' CreateMobileDeviceAccessRule Text
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
createMobileDeviceAccessRule_effect :: Lens' CreateMobileDeviceAccessRule MobileDeviceAccessRuleEffect
-- | See: newCreateMobileDeviceAccessRuleResponse smart
-- constructor.
data CreateMobileDeviceAccessRuleResponse
CreateMobileDeviceAccessRuleResponse' :: Maybe Text -> Int -> CreateMobileDeviceAccessRuleResponse
-- | The identifier for the newly created mobile device access rule.
[$sel:mobileDeviceAccessRuleId:CreateMobileDeviceAccessRuleResponse'] :: CreateMobileDeviceAccessRuleResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:CreateMobileDeviceAccessRuleResponse'] :: CreateMobileDeviceAccessRuleResponse -> Int
-- | Create a value of CreateMobileDeviceAccessRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateMobileDeviceAccessRuleResponse,
-- createMobileDeviceAccessRuleResponse_mobileDeviceAccessRuleId -
-- The identifier for the newly created mobile device access rule.
--
-- $sel:httpStatus:CreateMobileDeviceAccessRuleResponse',
-- createMobileDeviceAccessRuleResponse_httpStatus - The
-- response's http status code.
newCreateMobileDeviceAccessRuleResponse :: Int -> CreateMobileDeviceAccessRuleResponse
-- | The identifier for the newly created mobile device access rule.
createMobileDeviceAccessRuleResponse_mobileDeviceAccessRuleId :: Lens' CreateMobileDeviceAccessRuleResponse (Maybe Text)
-- | The response's http status code.
createMobileDeviceAccessRuleResponse_httpStatus :: Lens' CreateMobileDeviceAccessRuleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance GHC.Show.Show Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance GHC.Read.Read Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance GHC.Classes.Eq Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance GHC.Generics.Generic Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRuleResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRuleResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRuleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRuleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRuleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateMobileDeviceAccessRule.CreateMobileDeviceAccessRule
-- | Creates an impersonation role for the given WorkMail organization.
--
-- Idempotency ensures that an API request completes no more than
-- one time. With an idempotent request, if the original request
-- completes successfully, any subsequent retries also complete
-- successfully without performing any further actions.
module Amazonka.WorkMail.CreateImpersonationRole
-- | See: newCreateImpersonationRole smart constructor.
data CreateImpersonationRole
CreateImpersonationRole' :: Maybe Text -> Maybe Text -> Text -> Text -> ImpersonationRoleType -> [ImpersonationRule] -> CreateImpersonationRole
-- | The idempotency token for the client request.
[$sel:clientToken:CreateImpersonationRole'] :: CreateImpersonationRole -> Maybe Text
-- | The description of the new impersonation role.
[$sel:description:CreateImpersonationRole'] :: CreateImpersonationRole -> Maybe Text
-- | The WorkMail organization to create the new impersonation role within.
[$sel:organizationId:CreateImpersonationRole'] :: CreateImpersonationRole -> Text
-- | The name of the new impersonation role.
[$sel:name:CreateImpersonationRole'] :: CreateImpersonationRole -> Text
-- | The impersonation role's type. The available impersonation role types
-- are READ_ONLY or FULL_ACCESS.
[$sel:type':CreateImpersonationRole'] :: CreateImpersonationRole -> ImpersonationRoleType
-- | The list of rules for the impersonation role.
[$sel:rules:CreateImpersonationRole'] :: CreateImpersonationRole -> [ImpersonationRule]
-- | Create a value of CreateImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateImpersonationRole',
-- createImpersonationRole_clientToken - The idempotency token for
-- the client request.
--
-- CreateImpersonationRole,
-- createImpersonationRole_description - The description of the
-- new impersonation role.
--
-- CreateImpersonationRole,
-- createImpersonationRole_organizationId - The WorkMail
-- organization to create the new impersonation role within.
--
-- CreateImpersonationRole, createImpersonationRole_name -
-- The name of the new impersonation role.
--
-- CreateImpersonationRole, createImpersonationRole_type -
-- The impersonation role's type. The available impersonation role types
-- are READ_ONLY or FULL_ACCESS.
--
-- $sel:rules:CreateImpersonationRole',
-- createImpersonationRole_rules - The list of rules for the
-- impersonation role.
newCreateImpersonationRole :: Text -> Text -> ImpersonationRoleType -> CreateImpersonationRole
-- | The idempotency token for the client request.
createImpersonationRole_clientToken :: Lens' CreateImpersonationRole (Maybe Text)
-- | The description of the new impersonation role.
createImpersonationRole_description :: Lens' CreateImpersonationRole (Maybe Text)
-- | The WorkMail organization to create the new impersonation role within.
createImpersonationRole_organizationId :: Lens' CreateImpersonationRole Text
-- | The name of the new impersonation role.
createImpersonationRole_name :: Lens' CreateImpersonationRole Text
-- | The impersonation role's type. The available impersonation role types
-- are READ_ONLY or FULL_ACCESS.
createImpersonationRole_type :: Lens' CreateImpersonationRole ImpersonationRoleType
-- | The list of rules for the impersonation role.
createImpersonationRole_rules :: Lens' CreateImpersonationRole [ImpersonationRule]
-- | See: newCreateImpersonationRoleResponse smart
-- constructor.
data CreateImpersonationRoleResponse
CreateImpersonationRoleResponse' :: Maybe Text -> Int -> CreateImpersonationRoleResponse
-- | The new impersonation role ID.
[$sel:impersonationRoleId:CreateImpersonationRoleResponse'] :: CreateImpersonationRoleResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:CreateImpersonationRoleResponse'] :: CreateImpersonationRoleResponse -> Int
-- | Create a value of CreateImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateImpersonationRoleResponse,
-- createImpersonationRoleResponse_impersonationRoleId - The new
-- impersonation role ID.
--
-- $sel:httpStatus:CreateImpersonationRoleResponse',
-- createImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newCreateImpersonationRoleResponse :: Int -> CreateImpersonationRoleResponse
-- | The new impersonation role ID.
createImpersonationRoleResponse_impersonationRoleId :: Lens' CreateImpersonationRoleResponse (Maybe Text)
-- | The response's http status code.
createImpersonationRoleResponse_httpStatus :: Lens' CreateImpersonationRoleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance GHC.Show.Show Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance GHC.Read.Read Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance GHC.Classes.Eq Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance GHC.Generics.Generic Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRoleResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRoleResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRoleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRoleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRoleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateImpersonationRole.CreateImpersonationRole
-- | Creates a group that can be used in WorkMail by calling the
-- RegisterToWorkMail operation.
module Amazonka.WorkMail.CreateGroup
-- | See: newCreateGroup smart constructor.
data CreateGroup
CreateGroup' :: Text -> Text -> CreateGroup
-- | The organization under which the group is to be created.
[$sel:organizationId:CreateGroup'] :: CreateGroup -> Text
-- | The name of the group.
[$sel:name:CreateGroup'] :: CreateGroup -> Text
-- | Create a value of CreateGroup with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateGroup, createGroup_organizationId - The
-- organization under which the group is to be created.
--
-- CreateGroup, createGroup_name - The name of the group.
newCreateGroup :: Text -> Text -> CreateGroup
-- | The organization under which the group is to be created.
createGroup_organizationId :: Lens' CreateGroup Text
-- | The name of the group.
createGroup_name :: Lens' CreateGroup Text
-- | See: newCreateGroupResponse smart constructor.
data CreateGroupResponse
CreateGroupResponse' :: Maybe Text -> Int -> CreateGroupResponse
-- | The identifier of the group.
[$sel:groupId:CreateGroupResponse'] :: CreateGroupResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:CreateGroupResponse'] :: CreateGroupResponse -> Int
-- | Create a value of CreateGroupResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:groupId:CreateGroupResponse',
-- createGroupResponse_groupId - The identifier of the group.
--
-- $sel:httpStatus:CreateGroupResponse',
-- createGroupResponse_httpStatus - The response's http status
-- code.
newCreateGroupResponse :: Int -> CreateGroupResponse
-- | The identifier of the group.
createGroupResponse_groupId :: Lens' CreateGroupResponse (Maybe Text)
-- | The response's http status code.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateGroup.CreateGroup
instance GHC.Show.Show Amazonka.WorkMail.CreateGroup.CreateGroup
instance GHC.Read.Read Amazonka.WorkMail.CreateGroup.CreateGroup
instance GHC.Classes.Eq Amazonka.WorkMail.CreateGroup.CreateGroup
instance GHC.Generics.Generic Amazonka.WorkMail.CreateGroup.CreateGroupResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateGroup.CreateGroupResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateGroup.CreateGroupResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateGroup.CreateGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateGroup.CreateGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateGroup.CreateGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateGroup.CreateGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateGroup.CreateGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateGroup.CreateGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateGroup.CreateGroup
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateGroup.CreateGroup
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateGroup.CreateGroup
-- | Creates an AvailabilityConfiguration for the given WorkMail
-- organization and domain.
module Amazonka.WorkMail.CreateAvailabilityConfiguration
-- | See: newCreateAvailabilityConfiguration smart
-- constructor.
data CreateAvailabilityConfiguration
CreateAvailabilityConfiguration' :: Maybe Text -> Maybe EwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Text -> Text -> CreateAvailabilityConfiguration
-- | An idempotent token that ensures that an API request is executed only
-- once.
[$sel:clientToken:CreateAvailabilityConfiguration'] :: CreateAvailabilityConfiguration -> Maybe Text
-- | Exchange Web Services (EWS) availability provider definition. The
-- request must contain exactly one provider definition, either
-- EwsProvider or LambdaProvider.
[$sel:ewsProvider:CreateAvailabilityConfiguration'] :: CreateAvailabilityConfiguration -> Maybe EwsAvailabilityProvider
-- | Lambda availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider.
[$sel:lambdaProvider:CreateAvailabilityConfiguration'] :: CreateAvailabilityConfiguration -> Maybe LambdaAvailabilityProvider
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be created.
[$sel:organizationId:CreateAvailabilityConfiguration'] :: CreateAvailabilityConfiguration -> Text
-- | The domain to which the provider applies.
[$sel:domainName:CreateAvailabilityConfiguration'] :: CreateAvailabilityConfiguration -> Text
-- | Create a value of CreateAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateAvailabilityConfiguration',
-- createAvailabilityConfiguration_clientToken - An idempotent
-- token that ensures that an API request is executed only once.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_ewsProvider - Exchange Web
-- Services (EWS) availability provider definition. The request must
-- contain exactly one provider definition, either EwsProvider
-- or LambdaProvider.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_lambdaProvider - Lambda
-- availability provider definition. The request must contain exactly one
-- provider definition, either EwsProvider or
-- LambdaProvider.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration will be
-- created.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_domainName - The domain to
-- which the provider applies.
newCreateAvailabilityConfiguration :: Text -> Text -> CreateAvailabilityConfiguration
-- | An idempotent token that ensures that an API request is executed only
-- once.
createAvailabilityConfiguration_clientToken :: Lens' CreateAvailabilityConfiguration (Maybe Text)
-- | Exchange Web Services (EWS) availability provider definition. The
-- request must contain exactly one provider definition, either
-- EwsProvider or LambdaProvider.
createAvailabilityConfiguration_ewsProvider :: Lens' CreateAvailabilityConfiguration (Maybe EwsAvailabilityProvider)
-- | Lambda availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider.
createAvailabilityConfiguration_lambdaProvider :: Lens' CreateAvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be created.
createAvailabilityConfiguration_organizationId :: Lens' CreateAvailabilityConfiguration Text
-- | The domain to which the provider applies.
createAvailabilityConfiguration_domainName :: Lens' CreateAvailabilityConfiguration Text
-- | See: newCreateAvailabilityConfigurationResponse smart
-- constructor.
data CreateAvailabilityConfigurationResponse
CreateAvailabilityConfigurationResponse' :: Int -> CreateAvailabilityConfigurationResponse
-- | The response's http status code.
[$sel:httpStatus:CreateAvailabilityConfigurationResponse'] :: CreateAvailabilityConfigurationResponse -> Int
-- | Create a value of CreateAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:CreateAvailabilityConfigurationResponse',
-- createAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newCreateAvailabilityConfigurationResponse :: Int -> CreateAvailabilityConfigurationResponse
-- | The response's http status code.
createAvailabilityConfigurationResponse_httpStatus :: Lens' CreateAvailabilityConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance GHC.Show.Show Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance GHC.Generics.Generic Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfigurationResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfigurationResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfigurationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateAvailabilityConfiguration.CreateAvailabilityConfiguration
-- | Adds an alias to the set of a given member (user or group) of
-- WorkMail.
module Amazonka.WorkMail.CreateAlias
-- | See: newCreateAlias smart constructor.
data CreateAlias
CreateAlias' :: Text -> Text -> Text -> CreateAlias
-- | The organization under which the member (user or group) exists.
[$sel:organizationId:CreateAlias'] :: CreateAlias -> Text
-- | The member (user or group) to which this alias is added.
[$sel:entityId:CreateAlias'] :: CreateAlias -> Text
-- | The alias to add to the member set.
[$sel:alias:CreateAlias'] :: CreateAlias -> Text
-- | Create a value of CreateAlias with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateAlias, createAlias_organizationId - The
-- organization under which the member (user or group) exists.
--
-- CreateAlias, createAlias_entityId - The member (user or
-- group) to which this alias is added.
--
-- CreateAlias, createAlias_alias - The alias to add to the
-- member set.
newCreateAlias :: Text -> Text -> Text -> CreateAlias
-- | The organization under which the member (user or group) exists.
createAlias_organizationId :: Lens' CreateAlias Text
-- | The member (user or group) to which this alias is added.
createAlias_entityId :: Lens' CreateAlias Text
-- | The alias to add to the member set.
createAlias_alias :: Lens' CreateAlias Text
-- | See: newCreateAliasResponse smart constructor.
data CreateAliasResponse
CreateAliasResponse' :: Int -> CreateAliasResponse
-- | The response's http status code.
[$sel:httpStatus:CreateAliasResponse'] :: CreateAliasResponse -> Int
-- | Create a value of CreateAliasResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:CreateAliasResponse',
-- createAliasResponse_httpStatus - The response's http status
-- code.
newCreateAliasResponse :: Int -> CreateAliasResponse
-- | The response's http status code.
createAliasResponse_httpStatus :: Lens' CreateAliasResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CreateAlias.CreateAlias
instance GHC.Show.Show Amazonka.WorkMail.CreateAlias.CreateAlias
instance GHC.Read.Read Amazonka.WorkMail.CreateAlias.CreateAlias
instance GHC.Classes.Eq Amazonka.WorkMail.CreateAlias.CreateAlias
instance GHC.Generics.Generic Amazonka.WorkMail.CreateAlias.CreateAliasResponse
instance GHC.Show.Show Amazonka.WorkMail.CreateAlias.CreateAliasResponse
instance GHC.Read.Read Amazonka.WorkMail.CreateAlias.CreateAliasResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CreateAlias.CreateAliasResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CreateAlias.CreateAlias
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateAlias.CreateAliasResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CreateAlias.CreateAlias
instance Control.DeepSeq.NFData Amazonka.WorkMail.CreateAlias.CreateAlias
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CreateAlias.CreateAlias
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CreateAlias.CreateAlias
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CreateAlias.CreateAlias
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CreateAlias.CreateAlias
-- | Cancels a mailbox export job.
--
-- If the mailbox export job is near completion, it might not be possible
-- to cancel it.
module Amazonka.WorkMail.CancelMailboxExportJob
-- | See: newCancelMailboxExportJob smart constructor.
data CancelMailboxExportJob
CancelMailboxExportJob' :: Text -> Text -> Text -> CancelMailboxExportJob
-- | The idempotency token for the client request.
[$sel:clientToken:CancelMailboxExportJob'] :: CancelMailboxExportJob -> Text
-- | The job ID.
[$sel:jobId:CancelMailboxExportJob'] :: CancelMailboxExportJob -> Text
-- | The organization ID.
[$sel:organizationId:CancelMailboxExportJob'] :: CancelMailboxExportJob -> Text
-- | Create a value of CancelMailboxExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CancelMailboxExportJob',
-- cancelMailboxExportJob_clientToken - The idempotency token for
-- the client request.
--
-- CancelMailboxExportJob, cancelMailboxExportJob_jobId -
-- The job ID.
--
-- CancelMailboxExportJob,
-- cancelMailboxExportJob_organizationId - The organization ID.
newCancelMailboxExportJob :: Text -> Text -> Text -> CancelMailboxExportJob
-- | The idempotency token for the client request.
cancelMailboxExportJob_clientToken :: Lens' CancelMailboxExportJob Text
-- | The job ID.
cancelMailboxExportJob_jobId :: Lens' CancelMailboxExportJob Text
-- | The organization ID.
cancelMailboxExportJob_organizationId :: Lens' CancelMailboxExportJob Text
-- | See: newCancelMailboxExportJobResponse smart
-- constructor.
data CancelMailboxExportJobResponse
CancelMailboxExportJobResponse' :: Int -> CancelMailboxExportJobResponse
-- | The response's http status code.
[$sel:httpStatus:CancelMailboxExportJobResponse'] :: CancelMailboxExportJobResponse -> Int
-- | Create a value of CancelMailboxExportJobResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:CancelMailboxExportJobResponse',
-- cancelMailboxExportJobResponse_httpStatus - The response's http
-- status code.
newCancelMailboxExportJobResponse :: Int -> CancelMailboxExportJobResponse
-- | The response's http status code.
cancelMailboxExportJobResponse_httpStatus :: Lens' CancelMailboxExportJobResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance GHC.Show.Show Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance GHC.Read.Read Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance GHC.Classes.Eq Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance GHC.Generics.Generic Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJobResponse
instance GHC.Show.Show Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJobResponse
instance GHC.Read.Read Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJobResponse
instance GHC.Classes.Eq Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJobResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance Control.DeepSeq.NFData Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJobResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance Control.DeepSeq.NFData Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.CancelMailboxExportJob.CancelMailboxExportJob
-- | Assumes an impersonation role for the given WorkMail organization.
-- This method returns an authentication token you can use to make
-- impersonated calls.
module Amazonka.WorkMail.AssumeImpersonationRole
-- | See: newAssumeImpersonationRole smart constructor.
data AssumeImpersonationRole
AssumeImpersonationRole' :: Text -> Text -> AssumeImpersonationRole
-- | The WorkMail organization under which the impersonation role will be
-- assumed.
[$sel:organizationId:AssumeImpersonationRole'] :: AssumeImpersonationRole -> Text
-- | The impersonation role ID to assume.
[$sel:impersonationRoleId:AssumeImpersonationRole'] :: AssumeImpersonationRole -> Text
-- | Create a value of AssumeImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- AssumeImpersonationRole,
-- assumeImpersonationRole_organizationId - The WorkMail
-- organization under which the impersonation role will be assumed.
--
-- AssumeImpersonationRole,
-- assumeImpersonationRole_impersonationRoleId - The impersonation
-- role ID to assume.
newAssumeImpersonationRole :: Text -> Text -> AssumeImpersonationRole
-- | The WorkMail organization under which the impersonation role will be
-- assumed.
assumeImpersonationRole_organizationId :: Lens' AssumeImpersonationRole Text
-- | The impersonation role ID to assume.
assumeImpersonationRole_impersonationRoleId :: Lens' AssumeImpersonationRole Text
-- | See: newAssumeImpersonationRoleResponse smart
-- constructor.
data AssumeImpersonationRoleResponse
AssumeImpersonationRoleResponse' :: Maybe Integer -> Maybe Text -> Int -> AssumeImpersonationRoleResponse
-- | The authentication token's validity, in seconds.
[$sel:expiresIn:AssumeImpersonationRoleResponse'] :: AssumeImpersonationRoleResponse -> Maybe Integer
-- | The authentication token for the impersonation role.
[$sel:token:AssumeImpersonationRoleResponse'] :: AssumeImpersonationRoleResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:AssumeImpersonationRoleResponse'] :: AssumeImpersonationRoleResponse -> Int
-- | Create a value of AssumeImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:expiresIn:AssumeImpersonationRoleResponse',
-- assumeImpersonationRoleResponse_expiresIn - The authentication
-- token's validity, in seconds.
--
-- $sel:token:AssumeImpersonationRoleResponse',
-- assumeImpersonationRoleResponse_token - The authentication
-- token for the impersonation role.
--
-- $sel:httpStatus:AssumeImpersonationRoleResponse',
-- assumeImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newAssumeImpersonationRoleResponse :: Int -> AssumeImpersonationRoleResponse
-- | The authentication token's validity, in seconds.
assumeImpersonationRoleResponse_expiresIn :: Lens' AssumeImpersonationRoleResponse (Maybe Integer)
-- | The authentication token for the impersonation role.
assumeImpersonationRoleResponse_token :: Lens' AssumeImpersonationRoleResponse (Maybe Text)
-- | The response's http status code.
assumeImpersonationRoleResponse_httpStatus :: Lens' AssumeImpersonationRoleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance GHC.Show.Show Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance GHC.Read.Read Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance GHC.Classes.Eq Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance GHC.Generics.Generic Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRoleResponse
instance GHC.Show.Show Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRoleResponse
instance GHC.Read.Read Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRoleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRoleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRoleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.AssumeImpersonationRole.AssumeImpersonationRole
-- | Adds a member (user or group) to the group's set.
module Amazonka.WorkMail.AssociateMemberToGroup
-- | See: newAssociateMemberToGroup smart constructor.
data AssociateMemberToGroup
AssociateMemberToGroup' :: Text -> Text -> Text -> AssociateMemberToGroup
-- | The organization under which the group exists.
[$sel:organizationId:AssociateMemberToGroup'] :: AssociateMemberToGroup -> Text
-- | The group to which the member (user or group) is associated.
[$sel:groupId:AssociateMemberToGroup'] :: AssociateMemberToGroup -> Text
-- | The member (user or group) to associate to the group.
[$sel:memberId:AssociateMemberToGroup'] :: AssociateMemberToGroup -> Text
-- | Create a value of AssociateMemberToGroup with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- AssociateMemberToGroup,
-- associateMemberToGroup_organizationId - The organization under
-- which the group exists.
--
-- $sel:groupId:AssociateMemberToGroup',
-- associateMemberToGroup_groupId - The group to which the member
-- (user or group) is associated.
--
-- $sel:memberId:AssociateMemberToGroup',
-- associateMemberToGroup_memberId - The member (user or group) to
-- associate to the group.
newAssociateMemberToGroup :: Text -> Text -> Text -> AssociateMemberToGroup
-- | The organization under which the group exists.
associateMemberToGroup_organizationId :: Lens' AssociateMemberToGroup Text
-- | The group to which the member (user or group) is associated.
associateMemberToGroup_groupId :: Lens' AssociateMemberToGroup Text
-- | The member (user or group) to associate to the group.
associateMemberToGroup_memberId :: Lens' AssociateMemberToGroup Text
-- | See: newAssociateMemberToGroupResponse smart
-- constructor.
data AssociateMemberToGroupResponse
AssociateMemberToGroupResponse' :: Int -> AssociateMemberToGroupResponse
-- | The response's http status code.
[$sel:httpStatus:AssociateMemberToGroupResponse'] :: AssociateMemberToGroupResponse -> Int
-- | Create a value of AssociateMemberToGroupResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:AssociateMemberToGroupResponse',
-- associateMemberToGroupResponse_httpStatus - The response's http
-- status code.
newAssociateMemberToGroupResponse :: Int -> AssociateMemberToGroupResponse
-- | The response's http status code.
associateMemberToGroupResponse_httpStatus :: Lens' AssociateMemberToGroupResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance GHC.Show.Show Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance GHC.Read.Read Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance GHC.Classes.Eq Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance GHC.Generics.Generic Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroupResponse
instance GHC.Show.Show Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroupResponse
instance GHC.Read.Read Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroupResponse
instance GHC.Classes.Eq Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance Control.DeepSeq.NFData Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.AssociateMemberToGroup.AssociateMemberToGroup
-- | Adds a member (user or group) to the resource's set of delegates.
module Amazonka.WorkMail.AssociateDelegateToResource
-- | See: newAssociateDelegateToResource smart constructor.
data AssociateDelegateToResource
AssociateDelegateToResource' :: Text -> Text -> Text -> AssociateDelegateToResource
-- | The organization under which the resource exists.
[$sel:organizationId:AssociateDelegateToResource'] :: AssociateDelegateToResource -> Text
-- | The resource for which members (users or groups) are associated.
[$sel:resourceId:AssociateDelegateToResource'] :: AssociateDelegateToResource -> Text
-- | The member (user or group) to associate to the resource.
[$sel:entityId:AssociateDelegateToResource'] :: AssociateDelegateToResource -> Text
-- | Create a value of AssociateDelegateToResource with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- AssociateDelegateToResource,
-- associateDelegateToResource_organizationId - The organization
-- under which the resource exists.
--
-- $sel:resourceId:AssociateDelegateToResource',
-- associateDelegateToResource_resourceId - The resource for which
-- members (users or groups) are associated.
--
-- AssociateDelegateToResource,
-- associateDelegateToResource_entityId - The member (user or
-- group) to associate to the resource.
newAssociateDelegateToResource :: Text -> Text -> Text -> AssociateDelegateToResource
-- | The organization under which the resource exists.
associateDelegateToResource_organizationId :: Lens' AssociateDelegateToResource Text
-- | The resource for which members (users or groups) are associated.
associateDelegateToResource_resourceId :: Lens' AssociateDelegateToResource Text
-- | The member (user or group) to associate to the resource.
associateDelegateToResource_entityId :: Lens' AssociateDelegateToResource Text
-- | See: newAssociateDelegateToResourceResponse smart
-- constructor.
data AssociateDelegateToResourceResponse
AssociateDelegateToResourceResponse' :: Int -> AssociateDelegateToResourceResponse
-- | The response's http status code.
[$sel:httpStatus:AssociateDelegateToResourceResponse'] :: AssociateDelegateToResourceResponse -> Int
-- | Create a value of AssociateDelegateToResourceResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:AssociateDelegateToResourceResponse',
-- associateDelegateToResourceResponse_httpStatus - The response's
-- http status code.
newAssociateDelegateToResourceResponse :: Int -> AssociateDelegateToResourceResponse
-- | The response's http status code.
associateDelegateToResourceResponse_httpStatus :: Lens' AssociateDelegateToResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance GHC.Show.Show Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance GHC.Read.Read Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance GHC.Classes.Eq Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance GHC.Generics.Generic Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.AssociateDelegateToResource.AssociateDelegateToResource
-- | Untags the specified tags from the specified WorkMail organization
-- resource.
module Amazonka.WorkMail.UntagResource
-- | See: newUntagResource smart constructor.
data UntagResource
UntagResource' :: Text -> [Text] -> UntagResource
-- | The resource ARN.
[$sel:resourceARN:UntagResource'] :: UntagResource -> Text
-- | The tag keys.
[$sel:tagKeys:UntagResource'] :: UntagResource -> [Text]
-- | Create a value of UntagResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceARN:UntagResource',
-- untagResource_resourceARN - The resource ARN.
--
-- $sel:tagKeys:UntagResource', untagResource_tagKeys - The
-- tag keys.
newUntagResource :: Text -> UntagResource
-- | The resource ARN.
untagResource_resourceARN :: Lens' UntagResource Text
-- | The tag keys.
untagResource_tagKeys :: Lens' UntagResource [Text]
-- | See: newUntagResourceResponse smart constructor.
data UntagResourceResponse
UntagResourceResponse' :: Int -> UntagResourceResponse
-- | The response's http status code.
[$sel:httpStatus:UntagResourceResponse'] :: UntagResourceResponse -> Int
-- | Create a value of UntagResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UntagResourceResponse',
-- untagResourceResponse_httpStatus - The response's http status
-- code.
newUntagResourceResponse :: Int -> UntagResourceResponse
-- | The response's http status code.
untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UntagResource.UntagResource
instance GHC.Show.Show Amazonka.WorkMail.UntagResource.UntagResource
instance GHC.Read.Read Amazonka.WorkMail.UntagResource.UntagResource
instance GHC.Classes.Eq Amazonka.WorkMail.UntagResource.UntagResource
instance GHC.Generics.Generic Amazonka.WorkMail.UntagResource.UntagResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.UntagResource.UntagResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.UntagResource.UntagResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UntagResource.UntagResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UntagResource.UntagResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.UntagResource.UntagResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UntagResource.UntagResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.UntagResource.UntagResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UntagResource.UntagResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UntagResource.UntagResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UntagResource.UntagResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UntagResource.UntagResource
-- | Updates an existing AvailabilityConfiguration for the given
-- WorkMail organization and domain.
module Amazonka.WorkMail.UpdateAvailabilityConfiguration
-- | See: newUpdateAvailabilityConfiguration smart
-- constructor.
data UpdateAvailabilityConfiguration
UpdateAvailabilityConfiguration' :: Maybe EwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Text -> Text -> UpdateAvailabilityConfiguration
-- | The EWS availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
[$sel:ewsProvider:UpdateAvailabilityConfiguration'] :: UpdateAvailabilityConfiguration -> Maybe EwsAvailabilityProvider
-- | The Lambda availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
[$sel:lambdaProvider:UpdateAvailabilityConfiguration'] :: UpdateAvailabilityConfiguration -> Maybe LambdaAvailabilityProvider
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be updated.
[$sel:organizationId:UpdateAvailabilityConfiguration'] :: UpdateAvailabilityConfiguration -> Text
-- | The domain to which the provider applies the availability
-- configuration.
[$sel:domainName:UpdateAvailabilityConfiguration'] :: UpdateAvailabilityConfiguration -> Text
-- | Create a value of UpdateAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_ewsProvider - The EWS
-- availability provider definition. The request must contain exactly one
-- provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_lambdaProvider - The Lambda
-- availability provider definition. The request must contain exactly one
-- provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration will be
-- updated.
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_domainName - The domain to
-- which the provider applies the availability configuration.
newUpdateAvailabilityConfiguration :: Text -> Text -> UpdateAvailabilityConfiguration
-- | The EWS availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
updateAvailabilityConfiguration_ewsProvider :: Lens' UpdateAvailabilityConfiguration (Maybe EwsAvailabilityProvider)
-- | The Lambda availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
updateAvailabilityConfiguration_lambdaProvider :: Lens' UpdateAvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be updated.
updateAvailabilityConfiguration_organizationId :: Lens' UpdateAvailabilityConfiguration Text
-- | The domain to which the provider applies the availability
-- configuration.
updateAvailabilityConfiguration_domainName :: Lens' UpdateAvailabilityConfiguration Text
-- | See: newUpdateAvailabilityConfigurationResponse smart
-- constructor.
data UpdateAvailabilityConfigurationResponse
UpdateAvailabilityConfigurationResponse' :: Int -> UpdateAvailabilityConfigurationResponse
-- | The response's http status code.
[$sel:httpStatus:UpdateAvailabilityConfigurationResponse'] :: UpdateAvailabilityConfigurationResponse -> Int
-- | Create a value of UpdateAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateAvailabilityConfigurationResponse',
-- updateAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newUpdateAvailabilityConfigurationResponse :: Int -> UpdateAvailabilityConfigurationResponse
-- | The response's http status code.
updateAvailabilityConfigurationResponse_httpStatus :: Lens' UpdateAvailabilityConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance GHC.Show.Show Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfigurationResponse
instance GHC.Show.Show Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfigurationResponse
instance GHC.Read.Read Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfigurationResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UpdateAvailabilityConfiguration.UpdateAvailabilityConfiguration
-- | Updates the default mail domain for an organization. The default mail
-- domain is used by the WorkMail AWS Console to suggest an email address
-- when enabling a mail user. You can only have one default domain.
module Amazonka.WorkMail.UpdateDefaultMailDomain
-- | See: newUpdateDefaultMailDomain smart constructor.
data UpdateDefaultMailDomain
UpdateDefaultMailDomain' :: Text -> Text -> UpdateDefaultMailDomain
-- | The WorkMail organization for which to list domains.
[$sel:organizationId:UpdateDefaultMailDomain'] :: UpdateDefaultMailDomain -> Text
-- | The domain name that will become the default domain.
[$sel:domainName:UpdateDefaultMailDomain'] :: UpdateDefaultMailDomain -> Text
-- | Create a value of UpdateDefaultMailDomain with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateDefaultMailDomain,
-- updateDefaultMailDomain_organizationId - The WorkMail
-- organization for which to list domains.
--
-- UpdateDefaultMailDomain,
-- updateDefaultMailDomain_domainName - The domain name that will
-- become the default domain.
newUpdateDefaultMailDomain :: Text -> Text -> UpdateDefaultMailDomain
-- | The WorkMail organization for which to list domains.
updateDefaultMailDomain_organizationId :: Lens' UpdateDefaultMailDomain Text
-- | The domain name that will become the default domain.
updateDefaultMailDomain_domainName :: Lens' UpdateDefaultMailDomain Text
-- | See: newUpdateDefaultMailDomainResponse smart
-- constructor.
data UpdateDefaultMailDomainResponse
UpdateDefaultMailDomainResponse' :: Int -> UpdateDefaultMailDomainResponse
-- | The response's http status code.
[$sel:httpStatus:UpdateDefaultMailDomainResponse'] :: UpdateDefaultMailDomainResponse -> Int
-- | Create a value of UpdateDefaultMailDomainResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateDefaultMailDomainResponse',
-- updateDefaultMailDomainResponse_httpStatus - The response's
-- http status code.
newUpdateDefaultMailDomainResponse :: Int -> UpdateDefaultMailDomainResponse
-- | The response's http status code.
updateDefaultMailDomainResponse_httpStatus :: Lens' UpdateDefaultMailDomainResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance GHC.Show.Show Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance GHC.Read.Read Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomainResponse
instance GHC.Show.Show Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomainResponse
instance GHC.Read.Read Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomainResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomainResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomainResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UpdateDefaultMailDomain.UpdateDefaultMailDomain
-- | Updates an impersonation role for the given WorkMail organization.
module Amazonka.WorkMail.UpdateImpersonationRole
-- | See: newUpdateImpersonationRole smart constructor.
data UpdateImpersonationRole
UpdateImpersonationRole' :: Maybe Text -> Text -> Text -> Text -> ImpersonationRoleType -> [ImpersonationRule] -> UpdateImpersonationRole
-- | The updated impersonation role description.
[$sel:description:UpdateImpersonationRole'] :: UpdateImpersonationRole -> Maybe Text
-- | The WorkMail organization that contains the impersonation role to
-- update.
[$sel:organizationId:UpdateImpersonationRole'] :: UpdateImpersonationRole -> Text
-- | The ID of the impersonation role to update.
[$sel:impersonationRoleId:UpdateImpersonationRole'] :: UpdateImpersonationRole -> Text
-- | The updated impersonation role name.
[$sel:name:UpdateImpersonationRole'] :: UpdateImpersonationRole -> Text
-- | The updated impersonation role type.
[$sel:type':UpdateImpersonationRole'] :: UpdateImpersonationRole -> ImpersonationRoleType
-- | The updated list of rules.
[$sel:rules:UpdateImpersonationRole'] :: UpdateImpersonationRole -> [ImpersonationRule]
-- | Create a value of UpdateImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateImpersonationRole,
-- updateImpersonationRole_description - The updated impersonation
-- role description.
--
-- UpdateImpersonationRole,
-- updateImpersonationRole_organizationId - The WorkMail
-- organization that contains the impersonation role to update.
--
-- UpdateImpersonationRole,
-- updateImpersonationRole_impersonationRoleId - The ID of the
-- impersonation role to update.
--
-- UpdateImpersonationRole, updateImpersonationRole_name -
-- The updated impersonation role name.
--
-- UpdateImpersonationRole, updateImpersonationRole_type -
-- The updated impersonation role type.
--
-- $sel:rules:UpdateImpersonationRole',
-- updateImpersonationRole_rules - The updated list of rules.
newUpdateImpersonationRole :: Text -> Text -> Text -> ImpersonationRoleType -> UpdateImpersonationRole
-- | The updated impersonation role description.
updateImpersonationRole_description :: Lens' UpdateImpersonationRole (Maybe Text)
-- | The WorkMail organization that contains the impersonation role to
-- update.
updateImpersonationRole_organizationId :: Lens' UpdateImpersonationRole Text
-- | The ID of the impersonation role to update.
updateImpersonationRole_impersonationRoleId :: Lens' UpdateImpersonationRole Text
-- | The updated impersonation role name.
updateImpersonationRole_name :: Lens' UpdateImpersonationRole Text
-- | The updated impersonation role type.
updateImpersonationRole_type :: Lens' UpdateImpersonationRole ImpersonationRoleType
-- | The updated list of rules.
updateImpersonationRole_rules :: Lens' UpdateImpersonationRole [ImpersonationRule]
-- | See: newUpdateImpersonationRoleResponse smart
-- constructor.
data UpdateImpersonationRoleResponse
UpdateImpersonationRoleResponse' :: Int -> UpdateImpersonationRoleResponse
-- | The response's http status code.
[$sel:httpStatus:UpdateImpersonationRoleResponse'] :: UpdateImpersonationRoleResponse -> Int
-- | Create a value of UpdateImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateImpersonationRoleResponse',
-- updateImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newUpdateImpersonationRoleResponse :: Int -> UpdateImpersonationRoleResponse
-- | The response's http status code.
updateImpersonationRoleResponse_httpStatus :: Lens' UpdateImpersonationRoleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance GHC.Show.Show Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance GHC.Read.Read Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRoleResponse
instance GHC.Show.Show Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRoleResponse
instance GHC.Read.Read Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRoleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRoleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRoleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UpdateImpersonationRole.UpdateImpersonationRole
-- | Updates a user's current mailbox quota for a specified organization
-- and user.
module Amazonka.WorkMail.UpdateMailboxQuota
-- | See: newUpdateMailboxQuota smart constructor.
data UpdateMailboxQuota
UpdateMailboxQuota' :: Text -> Text -> Natural -> UpdateMailboxQuota
-- | The identifier for the organization that contains the user for whom to
-- update the mailbox quota.
[$sel:organizationId:UpdateMailboxQuota'] :: UpdateMailboxQuota -> Text
-- | The identifer for the user for whom to update the mailbox quota.
[$sel:userId:UpdateMailboxQuota'] :: UpdateMailboxQuota -> Text
-- | The updated mailbox quota, in MB, for the specified user.
[$sel:mailboxQuota:UpdateMailboxQuota'] :: UpdateMailboxQuota -> Natural
-- | Create a value of UpdateMailboxQuota with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateMailboxQuota, updateMailboxQuota_organizationId -
-- The identifier for the organization that contains the user for whom to
-- update the mailbox quota.
--
-- UpdateMailboxQuota, updateMailboxQuota_userId - The
-- identifer for the user for whom to update the mailbox quota.
--
-- $sel:mailboxQuota:UpdateMailboxQuota',
-- updateMailboxQuota_mailboxQuota - The updated mailbox quota, in
-- MB, for the specified user.
newUpdateMailboxQuota :: Text -> Text -> Natural -> UpdateMailboxQuota
-- | The identifier for the organization that contains the user for whom to
-- update the mailbox quota.
updateMailboxQuota_organizationId :: Lens' UpdateMailboxQuota Text
-- | The identifer for the user for whom to update the mailbox quota.
updateMailboxQuota_userId :: Lens' UpdateMailboxQuota Text
-- | The updated mailbox quota, in MB, for the specified user.
updateMailboxQuota_mailboxQuota :: Lens' UpdateMailboxQuota Natural
-- | See: newUpdateMailboxQuotaResponse smart constructor.
data UpdateMailboxQuotaResponse
UpdateMailboxQuotaResponse' :: Int -> UpdateMailboxQuotaResponse
-- | The response's http status code.
[$sel:httpStatus:UpdateMailboxQuotaResponse'] :: UpdateMailboxQuotaResponse -> Int
-- | Create a value of UpdateMailboxQuotaResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateMailboxQuotaResponse',
-- updateMailboxQuotaResponse_httpStatus - The response's http
-- status code.
newUpdateMailboxQuotaResponse :: Int -> UpdateMailboxQuotaResponse
-- | The response's http status code.
updateMailboxQuotaResponse_httpStatus :: Lens' UpdateMailboxQuotaResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance GHC.Show.Show Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance GHC.Read.Read Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuotaResponse
instance GHC.Show.Show Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuotaResponse
instance GHC.Read.Read Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuotaResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuotaResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuotaResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UpdateMailboxQuota.UpdateMailboxQuota
-- | Updates a mobile device access rule for the specified WorkMail
-- organization.
module Amazonka.WorkMail.UpdateMobileDeviceAccessRule
-- | See: newUpdateMobileDeviceAccessRule smart constructor.
data UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule' :: Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> UpdateMobileDeviceAccessRule
-- | The updated rule description.
[$sel:description:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe Text
-- | Device models that the updated rule will match.
[$sel:deviceModels:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that the updated rule will match.
[$sel:deviceOperatingSystems:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that the updated rule will match.
[$sel:deviceTypes:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | User agents that the updated rule will match.
[$sel:deviceUserAgents:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device models that the updated rule will not match. All other
-- device models will match.
[$sel:notDeviceModels:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device operating systems that the updated rule will not match.
-- All other device operating systems will match.
[$sel:notDeviceOperatingSystems:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | Device types that the updated rule will not match. All other
-- device types will match.
[$sel:notDeviceTypes:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | User agents that the updated rule will not match. All other
-- user agents will match.
[$sel:notDeviceUserAgents:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
-- | The WorkMail organization under which the rule will be updated.
[$sel:organizationId:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Text
-- | The identifier of the rule to be updated.
[$sel:mobileDeviceAccessRuleId:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Text
-- | The updated rule name.
[$sel:name:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> Text
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
[$sel:effect:UpdateMobileDeviceAccessRule'] :: UpdateMobileDeviceAccessRule -> MobileDeviceAccessRuleEffect
-- | Create a value of UpdateMobileDeviceAccessRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_description - The updated rule
-- description.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceModels - Device models that
-- the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceOperatingSystems - Device
-- operating systems that the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceTypes - Device types that
-- the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceUserAgents - User agents
-- that the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceModels - Device models
-- that the updated rule will not match. All other device models
-- will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceOperatingSystems - Device
-- operating systems that the updated rule will not match. All
-- other device operating systems will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceTypes - Device types that
-- the updated rule will not match. All other device types will
-- match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceUserAgents - User agents
-- that the updated rule will not match. All other user agents
-- will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_organizationId - The WorkMail
-- organization under which the rule will be updated.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_mobileDeviceAccessRuleId - The
-- identifier of the rule to be updated.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_name - The updated rule name.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_effect - The effect of the rule
-- when it matches. Allowed values are ALLOW or DENY.
newUpdateMobileDeviceAccessRule :: Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> UpdateMobileDeviceAccessRule
-- | The updated rule description.
updateMobileDeviceAccessRule_description :: Lens' UpdateMobileDeviceAccessRule (Maybe Text)
-- | Device models that the updated rule will match.
updateMobileDeviceAccessRule_deviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the updated rule will match.
updateMobileDeviceAccessRule_deviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the updated rule will match.
updateMobileDeviceAccessRule_deviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | User agents that the updated rule will match.
updateMobileDeviceAccessRule_deviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device models that the updated rule will not match. All other
-- device models will match.
updateMobileDeviceAccessRule_notDeviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the updated rule will not match.
-- All other device operating systems will match.
updateMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the updated rule will not match. All other
-- device types will match.
updateMobileDeviceAccessRule_notDeviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | User agents that the updated rule will not match. All other
-- user agents will match.
updateMobileDeviceAccessRule_notDeviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The WorkMail organization under which the rule will be updated.
updateMobileDeviceAccessRule_organizationId :: Lens' UpdateMobileDeviceAccessRule Text
-- | The identifier of the rule to be updated.
updateMobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' UpdateMobileDeviceAccessRule Text
-- | The updated rule name.
updateMobileDeviceAccessRule_name :: Lens' UpdateMobileDeviceAccessRule Text
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
updateMobileDeviceAccessRule_effect :: Lens' UpdateMobileDeviceAccessRule MobileDeviceAccessRuleEffect
-- | See: newUpdateMobileDeviceAccessRuleResponse smart
-- constructor.
data UpdateMobileDeviceAccessRuleResponse
UpdateMobileDeviceAccessRuleResponse' :: Int -> UpdateMobileDeviceAccessRuleResponse
-- | The response's http status code.
[$sel:httpStatus:UpdateMobileDeviceAccessRuleResponse'] :: UpdateMobileDeviceAccessRuleResponse -> Int
-- | Create a value of UpdateMobileDeviceAccessRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateMobileDeviceAccessRuleResponse',
-- updateMobileDeviceAccessRuleResponse_httpStatus - The
-- response's http status code.
newUpdateMobileDeviceAccessRuleResponse :: Int -> UpdateMobileDeviceAccessRuleResponse
-- | The response's http status code.
updateMobileDeviceAccessRuleResponse_httpStatus :: Lens' UpdateMobileDeviceAccessRuleResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance GHC.Show.Show Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance GHC.Read.Read Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRuleResponse
instance GHC.Show.Show Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRuleResponse
instance GHC.Read.Read Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRuleResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRuleResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRuleResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UpdateMobileDeviceAccessRule.UpdateMobileDeviceAccessRule
-- | Updates the primary email for a user, group, or resource. The current
-- email is moved into the list of aliases (or swapped between an
-- existing alias and the current primary email), and the email provided
-- in the input is promoted as the primary.
module Amazonka.WorkMail.UpdatePrimaryEmailAddress
-- | See: newUpdatePrimaryEmailAddress smart constructor.
data UpdatePrimaryEmailAddress
UpdatePrimaryEmailAddress' :: Text -> Text -> Text -> UpdatePrimaryEmailAddress
-- | The organization that contains the user, group, or resource to update.
[$sel:organizationId:UpdatePrimaryEmailAddress'] :: UpdatePrimaryEmailAddress -> Text
-- | The user, group, or resource to update.
[$sel:entityId:UpdatePrimaryEmailAddress'] :: UpdatePrimaryEmailAddress -> Text
-- | The value of the email to be updated as primary.
[$sel:email:UpdatePrimaryEmailAddress'] :: UpdatePrimaryEmailAddress -> Text
-- | Create a value of UpdatePrimaryEmailAddress with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdatePrimaryEmailAddress,
-- updatePrimaryEmailAddress_organizationId - The organization
-- that contains the user, group, or resource to update.
--
-- UpdatePrimaryEmailAddress,
-- updatePrimaryEmailAddress_entityId - The user, group, or
-- resource to update.
--
-- UpdatePrimaryEmailAddress,
-- updatePrimaryEmailAddress_email - The value of the email to be
-- updated as primary.
newUpdatePrimaryEmailAddress :: Text -> Text -> Text -> UpdatePrimaryEmailAddress
-- | The organization that contains the user, group, or resource to update.
updatePrimaryEmailAddress_organizationId :: Lens' UpdatePrimaryEmailAddress Text
-- | The user, group, or resource to update.
updatePrimaryEmailAddress_entityId :: Lens' UpdatePrimaryEmailAddress Text
-- | The value of the email to be updated as primary.
updatePrimaryEmailAddress_email :: Lens' UpdatePrimaryEmailAddress Text
-- | See: newUpdatePrimaryEmailAddressResponse smart
-- constructor.
data UpdatePrimaryEmailAddressResponse
UpdatePrimaryEmailAddressResponse' :: Int -> UpdatePrimaryEmailAddressResponse
-- | The response's http status code.
[$sel:httpStatus:UpdatePrimaryEmailAddressResponse'] :: UpdatePrimaryEmailAddressResponse -> Int
-- | Create a value of UpdatePrimaryEmailAddressResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdatePrimaryEmailAddressResponse',
-- updatePrimaryEmailAddressResponse_httpStatus - The response's
-- http status code.
newUpdatePrimaryEmailAddressResponse :: Int -> UpdatePrimaryEmailAddressResponse
-- | The response's http status code.
updatePrimaryEmailAddressResponse_httpStatus :: Lens' UpdatePrimaryEmailAddressResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance GHC.Show.Show Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance GHC.Read.Read Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance GHC.Classes.Eq Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance GHC.Generics.Generic Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddressResponse
instance GHC.Show.Show Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddressResponse
instance GHC.Read.Read Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddressResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddressResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddressResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UpdatePrimaryEmailAddress.UpdatePrimaryEmailAddress
-- | Updates data for the resource. To have the latest information, it must
-- be preceded by a DescribeResource call. The dataset in the request
-- should be the one expected when performing another
-- DescribeResource call.
module Amazonka.WorkMail.UpdateResource
-- | See: newUpdateResource smart constructor.
data UpdateResource
UpdateResource' :: Maybe BookingOptions -> Maybe Text -> Text -> Text -> UpdateResource
-- | The resource's booking options to be updated.
[$sel:bookingOptions:UpdateResource'] :: UpdateResource -> Maybe BookingOptions
-- | The name of the resource to be updated.
[$sel:name:UpdateResource'] :: UpdateResource -> Maybe Text
-- | The identifier associated with the organization for which the resource
-- is updated.
[$sel:organizationId:UpdateResource'] :: UpdateResource -> Text
-- | The identifier of the resource to be updated.
[$sel:resourceId:UpdateResource'] :: UpdateResource -> Text
-- | Create a value of UpdateResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bookingOptions:UpdateResource',
-- updateResource_bookingOptions - The resource's booking options
-- to be updated.
--
-- UpdateResource, updateResource_name - The name of the
-- resource to be updated.
--
-- UpdateResource, updateResource_organizationId - The
-- identifier associated with the organization for which the resource is
-- updated.
--
-- $sel:resourceId:UpdateResource',
-- updateResource_resourceId - The identifier of the resource to
-- be updated.
newUpdateResource :: Text -> Text -> UpdateResource
-- | The resource's booking options to be updated.
updateResource_bookingOptions :: Lens' UpdateResource (Maybe BookingOptions)
-- | The name of the resource to be updated.
updateResource_name :: Lens' UpdateResource (Maybe Text)
-- | The identifier associated with the organization for which the resource
-- is updated.
updateResource_organizationId :: Lens' UpdateResource Text
-- | The identifier of the resource to be updated.
updateResource_resourceId :: Lens' UpdateResource Text
-- | See: newUpdateResourceResponse smart constructor.
data UpdateResourceResponse
UpdateResourceResponse' :: Int -> UpdateResourceResponse
-- | The response's http status code.
[$sel:httpStatus:UpdateResourceResponse'] :: UpdateResourceResponse -> Int
-- | Create a value of UpdateResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateResourceResponse',
-- updateResourceResponse_httpStatus - The response's http status
-- code.
newUpdateResourceResponse :: Int -> UpdateResourceResponse
-- | The response's http status code.
updateResourceResponse_httpStatus :: Lens' UpdateResourceResponse Int
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateResource.UpdateResource
instance GHC.Show.Show Amazonka.WorkMail.UpdateResource.UpdateResource
instance GHC.Read.Read Amazonka.WorkMail.UpdateResource.UpdateResource
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateResource.UpdateResource
instance GHC.Generics.Generic Amazonka.WorkMail.UpdateResource.UpdateResourceResponse
instance GHC.Show.Show Amazonka.WorkMail.UpdateResource.UpdateResourceResponse
instance GHC.Read.Read Amazonka.WorkMail.UpdateResource.UpdateResourceResponse
instance GHC.Classes.Eq Amazonka.WorkMail.UpdateResource.UpdateResourceResponse
instance Amazonka.Types.AWSRequest Amazonka.WorkMail.UpdateResource.UpdateResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateResource.UpdateResourceResponse
instance Data.Hashable.Class.Hashable Amazonka.WorkMail.UpdateResource.UpdateResource
instance Control.DeepSeq.NFData Amazonka.WorkMail.UpdateResource.UpdateResource
instance Amazonka.Data.Headers.ToHeaders Amazonka.WorkMail.UpdateResource.UpdateResource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.WorkMail.UpdateResource.UpdateResource
instance Amazonka.Data.Path.ToPath Amazonka.WorkMail.UpdateResource.UpdateResource
instance Amazonka.Data.Query.ToQuery Amazonka.WorkMail.UpdateResource.UpdateResource
module Amazonka.WorkMail.Lens
-- | The organization under which the resource exists.
associateDelegateToResource_organizationId :: Lens' AssociateDelegateToResource Text
-- | The resource for which members (users or groups) are associated.
associateDelegateToResource_resourceId :: Lens' AssociateDelegateToResource Text
-- | The member (user or group) to associate to the resource.
associateDelegateToResource_entityId :: Lens' AssociateDelegateToResource Text
-- | The response's http status code.
associateDelegateToResourceResponse_httpStatus :: Lens' AssociateDelegateToResourceResponse Int
-- | The organization under which the group exists.
associateMemberToGroup_organizationId :: Lens' AssociateMemberToGroup Text
-- | The group to which the member (user or group) is associated.
associateMemberToGroup_groupId :: Lens' AssociateMemberToGroup Text
-- | The member (user or group) to associate to the group.
associateMemberToGroup_memberId :: Lens' AssociateMemberToGroup Text
-- | The response's http status code.
associateMemberToGroupResponse_httpStatus :: Lens' AssociateMemberToGroupResponse Int
-- | The WorkMail organization under which the impersonation role will be
-- assumed.
assumeImpersonationRole_organizationId :: Lens' AssumeImpersonationRole Text
-- | The impersonation role ID to assume.
assumeImpersonationRole_impersonationRoleId :: Lens' AssumeImpersonationRole Text
-- | The authentication token's validity, in seconds.
assumeImpersonationRoleResponse_expiresIn :: Lens' AssumeImpersonationRoleResponse (Maybe Integer)
-- | The authentication token for the impersonation role.
assumeImpersonationRoleResponse_token :: Lens' AssumeImpersonationRoleResponse (Maybe Text)
-- | The response's http status code.
assumeImpersonationRoleResponse_httpStatus :: Lens' AssumeImpersonationRoleResponse Int
-- | The idempotency token for the client request.
cancelMailboxExportJob_clientToken :: Lens' CancelMailboxExportJob Text
-- | The job ID.
cancelMailboxExportJob_jobId :: Lens' CancelMailboxExportJob Text
-- | The organization ID.
cancelMailboxExportJob_organizationId :: Lens' CancelMailboxExportJob Text
-- | The response's http status code.
cancelMailboxExportJobResponse_httpStatus :: Lens' CancelMailboxExportJobResponse Int
-- | The organization under which the member (user or group) exists.
createAlias_organizationId :: Lens' CreateAlias Text
-- | The member (user or group) to which this alias is added.
createAlias_entityId :: Lens' CreateAlias Text
-- | The alias to add to the member set.
createAlias_alias :: Lens' CreateAlias Text
-- | The response's http status code.
createAliasResponse_httpStatus :: Lens' CreateAliasResponse Int
-- | An idempotent token that ensures that an API request is executed only
-- once.
createAvailabilityConfiguration_clientToken :: Lens' CreateAvailabilityConfiguration (Maybe Text)
-- | Exchange Web Services (EWS) availability provider definition. The
-- request must contain exactly one provider definition, either
-- EwsProvider or LambdaProvider.
createAvailabilityConfiguration_ewsProvider :: Lens' CreateAvailabilityConfiguration (Maybe EwsAvailabilityProvider)
-- | Lambda availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider.
createAvailabilityConfiguration_lambdaProvider :: Lens' CreateAvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be created.
createAvailabilityConfiguration_organizationId :: Lens' CreateAvailabilityConfiguration Text
-- | The domain to which the provider applies.
createAvailabilityConfiguration_domainName :: Lens' CreateAvailabilityConfiguration Text
-- | The response's http status code.
createAvailabilityConfigurationResponse_httpStatus :: Lens' CreateAvailabilityConfigurationResponse Int
-- | The organization under which the group is to be created.
createGroup_organizationId :: Lens' CreateGroup Text
-- | The name of the group.
createGroup_name :: Lens' CreateGroup Text
-- | The identifier of the group.
createGroupResponse_groupId :: Lens' CreateGroupResponse (Maybe Text)
-- | The response's http status code.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
-- | The idempotency token for the client request.
createImpersonationRole_clientToken :: Lens' CreateImpersonationRole (Maybe Text)
-- | The description of the new impersonation role.
createImpersonationRole_description :: Lens' CreateImpersonationRole (Maybe Text)
-- | The WorkMail organization to create the new impersonation role within.
createImpersonationRole_organizationId :: Lens' CreateImpersonationRole Text
-- | The name of the new impersonation role.
createImpersonationRole_name :: Lens' CreateImpersonationRole Text
-- | The impersonation role's type. The available impersonation role types
-- are READ_ONLY or FULL_ACCESS.
createImpersonationRole_type :: Lens' CreateImpersonationRole ImpersonationRoleType
-- | The list of rules for the impersonation role.
createImpersonationRole_rules :: Lens' CreateImpersonationRole [ImpersonationRule]
-- | The new impersonation role ID.
createImpersonationRoleResponse_impersonationRoleId :: Lens' CreateImpersonationRoleResponse (Maybe Text)
-- | The response's http status code.
createImpersonationRoleResponse_httpStatus :: Lens' CreateImpersonationRoleResponse Int
-- | The idempotency token for the client request.
createMobileDeviceAccessRule_clientToken :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
-- | The rule description.
createMobileDeviceAccessRule_description :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
-- | Device models that the rule will match.
createMobileDeviceAccessRule_deviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the rule will match.
createMobileDeviceAccessRule_deviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the rule will match.
createMobileDeviceAccessRule_deviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that the rule will match.
createMobileDeviceAccessRule_deviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device models that the rule will not match. All other device
-- models will match.
createMobileDeviceAccessRule_notDeviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the rule will not match. All
-- other device operating systems will match.
createMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the rule will not match. All other device
-- types will match.
createMobileDeviceAccessRule_notDeviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that the rule will not match. All other
-- device user agents will match.
createMobileDeviceAccessRule_notDeviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The WorkMail organization under which the rule will be created.
createMobileDeviceAccessRule_organizationId :: Lens' CreateMobileDeviceAccessRule Text
-- | The rule name.
createMobileDeviceAccessRule_name :: Lens' CreateMobileDeviceAccessRule Text
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
createMobileDeviceAccessRule_effect :: Lens' CreateMobileDeviceAccessRule MobileDeviceAccessRuleEffect
-- | The identifier for the newly created mobile device access rule.
createMobileDeviceAccessRuleResponse_mobileDeviceAccessRuleId :: Lens' CreateMobileDeviceAccessRuleResponse (Maybe Text)
-- | The response's http status code.
createMobileDeviceAccessRuleResponse_httpStatus :: Lens' CreateMobileDeviceAccessRuleResponse Int
-- | The idempotency token associated with the request.
createOrganization_clientToken :: Lens' CreateOrganization (Maybe Text)
-- | The AWS Directory Service directory ID.
createOrganization_directoryId :: Lens' CreateOrganization (Maybe Text)
-- | The email domains to associate with the organization.
createOrganization_domains :: Lens' CreateOrganization (Maybe [Domain])
-- | When true, allows organization interoperability between
-- WorkMail and Microsoft Exchange. If true, you must include a
-- AD Connector directory ID in the request.
createOrganization_enableInteroperability :: Lens' CreateOrganization (Maybe Bool)
-- | The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.
createOrganization_kmsKeyArn :: Lens' CreateOrganization (Maybe Text)
-- | The organization alias.
createOrganization_alias :: Lens' CreateOrganization Text
-- | The organization ID.
createOrganizationResponse_organizationId :: Lens' CreateOrganizationResponse (Maybe Text)
-- | The response's http status code.
createOrganizationResponse_httpStatus :: Lens' CreateOrganizationResponse Int
-- | The identifier associated with the organization for which the resource
-- is created.
createResource_organizationId :: Lens' CreateResource Text
-- | The name of the new resource.
createResource_name :: Lens' CreateResource Text
-- | The type of the new resource. The available types are
-- equipment and room.
createResource_type :: Lens' CreateResource ResourceType
-- | The identifier of the new resource.
createResourceResponse_resourceId :: Lens' CreateResourceResponse (Maybe Text)
-- | The response's http status code.
createResourceResponse_httpStatus :: Lens' CreateResourceResponse Int
-- | The identifier of the organization for which the user is created.
createUser_organizationId :: Lens' CreateUser Text
-- | The name for the new user. WorkMail directory user names have a
-- maximum length of 64. All others have a maximum length of 20.
createUser_name :: Lens' CreateUser Text
-- | The display name for the new user.
createUser_displayName :: Lens' CreateUser Text
-- | The password for the new user.
createUser_password :: Lens' CreateUser Text
-- | The identifier for the new user.
createUserResponse_userId :: Lens' CreateUserResponse (Maybe Text)
-- | The response's http status code.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int
-- | The identifier for the organization.
deleteAccessControlRule_organizationId :: Lens' DeleteAccessControlRule Text
-- | The name of the access control rule.
deleteAccessControlRule_name :: Lens' DeleteAccessControlRule Text
-- | The response's http status code.
deleteAccessControlRuleResponse_httpStatus :: Lens' DeleteAccessControlRuleResponse Int
-- | The identifier for the organization under which the user exists.
deleteAlias_organizationId :: Lens' DeleteAlias Text
-- | The identifier for the member (user or group) from which to have the
-- aliases removed.
deleteAlias_entityId :: Lens' DeleteAlias Text
-- | The aliases to be removed from the user's set of aliases. Duplicate
-- entries in the list are collapsed into single entries (the list is
-- transformed into a set).
deleteAlias_alias :: Lens' DeleteAlias Text
-- | The response's http status code.
deleteAliasResponse_httpStatus :: Lens' DeleteAliasResponse Int
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be deleted.
deleteAvailabilityConfiguration_organizationId :: Lens' DeleteAvailabilityConfiguration Text
-- | The domain for which the AvailabilityConfiguration will be
-- deleted.
deleteAvailabilityConfiguration_domainName :: Lens' DeleteAvailabilityConfiguration Text
-- | The response's http status code.
deleteAvailabilityConfigurationResponse_httpStatus :: Lens' DeleteAvailabilityConfigurationResponse Int
-- | The ID of the organization from which the email monitoring
-- configuration is deleted.
deleteEmailMonitoringConfiguration_organizationId :: Lens' DeleteEmailMonitoringConfiguration Text
-- | The response's http status code.
deleteEmailMonitoringConfigurationResponse_httpStatus :: Lens' DeleteEmailMonitoringConfigurationResponse Int
-- | The organization that contains the group.
deleteGroup_organizationId :: Lens' DeleteGroup Text
-- | The identifier of the group to be deleted.
deleteGroup_groupId :: Lens' DeleteGroup Text
-- | The response's http status code.
deleteGroupResponse_httpStatus :: Lens' DeleteGroupResponse Int
-- | The WorkMail organization from which to delete the impersonation role.
deleteImpersonationRole_organizationId :: Lens' DeleteImpersonationRole Text
-- | The ID of the impersonation role to delete.
deleteImpersonationRole_impersonationRoleId :: Lens' DeleteImpersonationRole Text
-- | The response's http status code.
deleteImpersonationRoleResponse_httpStatus :: Lens' DeleteImpersonationRoleResponse Int
-- | The identifier of the organization under which the member (user or
-- group) exists.
deleteMailboxPermissions_organizationId :: Lens' DeleteMailboxPermissions Text
-- | The identifier of the member (user or group) that owns the mailbox.
deleteMailboxPermissions_entityId :: Lens' DeleteMailboxPermissions Text
-- | The identifier of the member (user or group) for which to delete
-- granted permissions.
deleteMailboxPermissions_granteeId :: Lens' DeleteMailboxPermissions Text
-- | The response's http status code.
deleteMailboxPermissionsResponse_httpStatus :: Lens' DeleteMailboxPermissionsResponse Int
-- | The WorkMail organization for which the access override will be
-- deleted.
deleteMobileDeviceAccessOverride_organizationId :: Lens' DeleteMobileDeviceAccessOverride Text
-- | The WorkMail user for which you want to delete the override. Accepts
-- the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
deleteMobileDeviceAccessOverride_userId :: Lens' DeleteMobileDeviceAccessOverride Text
-- | The mobile device for which you delete the override. DeviceId
-- is case insensitive.
deleteMobileDeviceAccessOverride_deviceId :: Lens' DeleteMobileDeviceAccessOverride Text
-- | The response's http status code.
deleteMobileDeviceAccessOverrideResponse_httpStatus :: Lens' DeleteMobileDeviceAccessOverrideResponse Int
-- | The WorkMail organization under which the rule will be deleted.
deleteMobileDeviceAccessRule_organizationId :: Lens' DeleteMobileDeviceAccessRule Text
-- | The identifier of the rule to be deleted.
deleteMobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' DeleteMobileDeviceAccessRule Text
-- | The response's http status code.
deleteMobileDeviceAccessRuleResponse_httpStatus :: Lens' DeleteMobileDeviceAccessRuleResponse Int
-- | The idempotency token associated with the request.
deleteOrganization_clientToken :: Lens' DeleteOrganization (Maybe Text)
-- | The organization ID.
deleteOrganization_organizationId :: Lens' DeleteOrganization Text
-- | If true, deletes the AWS Directory Service directory associated with
-- the organization.
deleteOrganization_deleteDirectory :: Lens' DeleteOrganization Bool
-- | The organization ID.
deleteOrganizationResponse_organizationId :: Lens' DeleteOrganizationResponse (Maybe Text)
-- | The state of the organization.
deleteOrganizationResponse_state :: Lens' DeleteOrganizationResponse (Maybe Text)
-- | The response's http status code.
deleteOrganizationResponse_httpStatus :: Lens' DeleteOrganizationResponse Int
-- | The identifier associated with the organization from which the
-- resource is deleted.
deleteResource_organizationId :: Lens' DeleteResource Text
-- | The identifier of the resource to be deleted.
deleteResource_resourceId :: Lens' DeleteResource Text
-- | The response's http status code.
deleteResourceResponse_httpStatus :: Lens' DeleteResourceResponse Int
-- | The organization ID.
deleteRetentionPolicy_organizationId :: Lens' DeleteRetentionPolicy Text
-- | The retention policy ID.
deleteRetentionPolicy_id :: Lens' DeleteRetentionPolicy Text
-- | The response's http status code.
deleteRetentionPolicyResponse_httpStatus :: Lens' DeleteRetentionPolicyResponse Int
-- | The organization that contains the user to be deleted.
deleteUser_organizationId :: Lens' DeleteUser Text
-- | The identifier of the user to be deleted.
deleteUser_userId :: Lens' DeleteUser Text
-- | The response's http status code.
deleteUserResponse_httpStatus :: Lens' DeleteUserResponse Int
-- | The identifier for the organization under which the WorkMail entity
-- exists.
deregisterFromWorkMail_organizationId :: Lens' DeregisterFromWorkMail Text
-- | The identifier for the member (user or group) to be updated.
deregisterFromWorkMail_entityId :: Lens' DeregisterFromWorkMail Text
-- | The response's http status code.
deregisterFromWorkMailResponse_httpStatus :: Lens' DeregisterFromWorkMailResponse Int
-- | The WorkMail organization for which the domain will be deregistered.
deregisterMailDomain_organizationId :: Lens' DeregisterMailDomain Text
-- | The domain to deregister in WorkMail and SES.
deregisterMailDomain_domainName :: Lens' DeregisterMailDomain Text
-- | The response's http status code.
deregisterMailDomainResponse_httpStatus :: Lens' DeregisterMailDomainResponse Int
-- | The ID of the organization for which the email monitoring
-- configuration is described.
describeEmailMonitoringConfiguration_organizationId :: Lens' DescribeEmailMonitoringConfiguration Text
-- | The Amazon Resource Name (ARN) of the CloudWatch Log group associated
-- with the email monitoring configuration.
describeEmailMonitoringConfigurationResponse_logGroupArn :: Lens' DescribeEmailMonitoringConfigurationResponse (Maybe Text)
-- | The Amazon Resource Name (ARN) of the IAM Role associated with the
-- email monitoring configuration.
describeEmailMonitoringConfigurationResponse_roleArn :: Lens' DescribeEmailMonitoringConfigurationResponse (Maybe Text)
-- | The response's http status code.
describeEmailMonitoringConfigurationResponse_httpStatus :: Lens' DescribeEmailMonitoringConfigurationResponse Int
-- | The identifier for the organization under which the group exists.
describeGroup_organizationId :: Lens' DescribeGroup Text
-- | The identifier for the group to be described.
describeGroup_groupId :: Lens' DescribeGroup Text
-- | The date and time when a user was deregistered from WorkMail, in UNIX
-- epoch time format.
describeGroupResponse_disabledDate :: Lens' DescribeGroupResponse (Maybe UTCTime)
-- | The email of the described group.
describeGroupResponse_email :: Lens' DescribeGroupResponse (Maybe Text)
-- | The date and time when a user was registered to WorkMail, in UNIX
-- epoch time format.
describeGroupResponse_enabledDate :: Lens' DescribeGroupResponse (Maybe UTCTime)
-- | The identifier of the described group.
describeGroupResponse_groupId :: Lens' DescribeGroupResponse (Maybe Text)
-- | The name of the described group.
describeGroupResponse_name :: Lens' DescribeGroupResponse (Maybe Text)
-- | The state of the user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
describeGroupResponse_state :: Lens' DescribeGroupResponse (Maybe EntityState)
-- | The response's http status code.
describeGroupResponse_httpStatus :: Lens' DescribeGroupResponse Int
-- | Lists the ID of the given organization.
describeInboundDmarcSettings_organizationId :: Lens' DescribeInboundDmarcSettings Text
-- | Lists the enforcement setting of the applied policy.
describeInboundDmarcSettingsResponse_enforced :: Lens' DescribeInboundDmarcSettingsResponse (Maybe Bool)
-- | The response's http status code.
describeInboundDmarcSettingsResponse_httpStatus :: Lens' DescribeInboundDmarcSettingsResponse Int
-- | The mailbox export job ID.
describeMailboxExportJob_jobId :: Lens' DescribeMailboxExportJob Text
-- | The organization ID.
describeMailboxExportJob_organizationId :: Lens' DescribeMailboxExportJob Text
-- | The mailbox export job description.
describeMailboxExportJobResponse_description :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The mailbox export job end timestamp.
describeMailboxExportJobResponse_endTime :: Lens' DescribeMailboxExportJobResponse (Maybe UTCTime)
-- | The identifier of the user or resource associated with the mailbox.
describeMailboxExportJobResponse_entityId :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | Error information for failed mailbox export jobs.
describeMailboxExportJobResponse_errorInfo :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The estimated progress of the mailbox export job, in percentage
-- points.
describeMailboxExportJobResponse_estimatedProgress :: Lens' DescribeMailboxExportJobResponse (Maybe Natural)
-- | The Amazon Resource Name (ARN) of the symmetric AWS Key Management
-- Service (AWS KMS) key that encrypts the exported mailbox content.
describeMailboxExportJobResponse_kmsKeyArn :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The ARN of the AWS Identity and Access Management (IAM) role that
-- grants write permission to the Amazon Simple Storage Service (Amazon
-- S3) bucket.
describeMailboxExportJobResponse_roleArn :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The name of the S3 bucket.
describeMailboxExportJobResponse_s3BucketName :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The path to the S3 bucket and file that the mailbox export job is
-- exporting to.
describeMailboxExportJobResponse_s3Path :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The S3 bucket prefix.
describeMailboxExportJobResponse_s3Prefix :: Lens' DescribeMailboxExportJobResponse (Maybe Text)
-- | The mailbox export job start timestamp.
describeMailboxExportJobResponse_startTime :: Lens' DescribeMailboxExportJobResponse (Maybe UTCTime)
-- | The state of the mailbox export job.
describeMailboxExportJobResponse_state :: Lens' DescribeMailboxExportJobResponse (Maybe MailboxExportJobState)
-- | The response's http status code.
describeMailboxExportJobResponse_httpStatus :: Lens' DescribeMailboxExportJobResponse Int
-- | The identifier for the organization to be described.
describeOrganization_organizationId :: Lens' DescribeOrganization Text
-- | The Amazon Resource Name (ARN) of the organization.
describeOrganizationResponse_arn :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The alias for an organization.
describeOrganizationResponse_alias :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The date at which the organization became usable in the WorkMail
-- context, in UNIX epoch time format.
describeOrganizationResponse_completedDate :: Lens' DescribeOrganizationResponse (Maybe UTCTime)
-- | The default mail domain associated with the organization.
describeOrganizationResponse_defaultMailDomain :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The identifier for the directory associated with an WorkMail
-- organization.
describeOrganizationResponse_directoryId :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The type of directory associated with the WorkMail organization.
describeOrganizationResponse_directoryType :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | (Optional) The error message indicating if unexpected behavior was
-- encountered with regards to the organization.
describeOrganizationResponse_errorMessage :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The identifier of an organization.
describeOrganizationResponse_organizationId :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The state of an organization.
describeOrganizationResponse_state :: Lens' DescribeOrganizationResponse (Maybe Text)
-- | The response's http status code.
describeOrganizationResponse_httpStatus :: Lens' DescribeOrganizationResponse Int
-- | The identifier associated with the organization for which the resource
-- is described.
describeResource_organizationId :: Lens' DescribeResource Text
-- | The identifier of the resource to be described.
describeResource_resourceId :: Lens' DescribeResource Text
-- | The booking options for the described resource.
describeResourceResponse_bookingOptions :: Lens' DescribeResourceResponse (Maybe BookingOptions)
-- | The date and time when a resource was disabled from WorkMail, in UNIX
-- epoch time format.
describeResourceResponse_disabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
-- | The email of the described resource.
describeResourceResponse_email :: Lens' DescribeResourceResponse (Maybe Text)
-- | The date and time when a resource was enabled for WorkMail, in UNIX
-- epoch time format.
describeResourceResponse_enabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
-- | The name of the described resource.
describeResourceResponse_name :: Lens' DescribeResourceResponse (Maybe Text)
-- | The identifier of the described resource.
describeResourceResponse_resourceId :: Lens' DescribeResourceResponse (Maybe Text)
-- | The state of the resource: enabled (registered to WorkMail), disabled
-- (deregistered or never registered to WorkMail), or deleted.
describeResourceResponse_state :: Lens' DescribeResourceResponse (Maybe EntityState)
-- | The type of the described resource.
describeResourceResponse_type :: Lens' DescribeResourceResponse (Maybe ResourceType)
-- | The response's http status code.
describeResourceResponse_httpStatus :: Lens' DescribeResourceResponse Int
-- | The identifier for the organization under which the user exists.
describeUser_organizationId :: Lens' DescribeUser Text
-- | The identifier for the user to be described.
describeUser_userId :: Lens' DescribeUser Text
-- | The date and time at which the user was disabled for WorkMail usage,
-- in UNIX epoch time format.
describeUserResponse_disabledDate :: Lens' DescribeUserResponse (Maybe UTCTime)
-- | The display name of the user.
describeUserResponse_displayName :: Lens' DescribeUserResponse (Maybe Text)
-- | The email of the user.
describeUserResponse_email :: Lens' DescribeUserResponse (Maybe Text)
-- | The date and time at which the user was enabled for WorkMailusage, in
-- UNIX epoch time format.
describeUserResponse_enabledDate :: Lens' DescribeUserResponse (Maybe UTCTime)
-- | The name for the user.
describeUserResponse_name :: Lens' DescribeUserResponse (Maybe Text)
-- | The state of a user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
describeUserResponse_state :: Lens' DescribeUserResponse (Maybe EntityState)
-- | The identifier for the described user.
describeUserResponse_userId :: Lens' DescribeUserResponse (Maybe Text)
-- | In certain cases, other entities are modeled as users. If
-- interoperability is enabled, resources are imported into WorkMail as
-- users. Because different WorkMail organizations rely on different
-- directory types, administrators can distinguish between an
-- unregistered user (account is disabled and has a user role) and the
-- directory administrators. The values are USER, RESOURCE, and
-- SYSTEM_USER.
describeUserResponse_userRole :: Lens' DescribeUserResponse (Maybe UserRole)
-- | The response's http status code.
describeUserResponse_httpStatus :: Lens' DescribeUserResponse Int
-- | The identifier for the organization under which the resource exists.
disassociateDelegateFromResource_organizationId :: Lens' DisassociateDelegateFromResource Text
-- | The identifier of the resource from which delegates' set members are
-- removed.
disassociateDelegateFromResource_resourceId :: Lens' DisassociateDelegateFromResource Text
-- | The identifier for the member (user, group) to be removed from the
-- resource's delegates.
disassociateDelegateFromResource_entityId :: Lens' DisassociateDelegateFromResource Text
-- | The response's http status code.
disassociateDelegateFromResourceResponse_httpStatus :: Lens' DisassociateDelegateFromResourceResponse Int
-- | The identifier for the organization under which the group exists.
disassociateMemberFromGroup_organizationId :: Lens' DisassociateMemberFromGroup Text
-- | The identifier for the group from which members are removed.
disassociateMemberFromGroup_groupId :: Lens' DisassociateMemberFromGroup Text
-- | The identifier for the member to be removed to the group.
disassociateMemberFromGroup_memberId :: Lens' DisassociateMemberFromGroup Text
-- | The response's http status code.
disassociateMemberFromGroupResponse_httpStatus :: Lens' DisassociateMemberFromGroupResponse Int
-- | The impersonation role ID.
getAccessControlEffect_impersonationRoleId :: Lens' GetAccessControlEffect (Maybe Text)
-- | The user ID.
getAccessControlEffect_userId :: Lens' GetAccessControlEffect (Maybe Text)
-- | The identifier for the organization.
getAccessControlEffect_organizationId :: Lens' GetAccessControlEffect Text
-- | The IPv4 address.
getAccessControlEffect_ipAddress :: Lens' GetAccessControlEffect Text
-- | The access protocol action. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
getAccessControlEffect_action :: Lens' GetAccessControlEffect Text
-- | The rule effect.
getAccessControlEffectResponse_effect :: Lens' GetAccessControlEffectResponse (Maybe AccessControlRuleEffect)
-- | The rules that match the given parameters, resulting in an effect.
getAccessControlEffectResponse_matchedRules :: Lens' GetAccessControlEffectResponse (Maybe [Text])
-- | The response's http status code.
getAccessControlEffectResponse_httpStatus :: Lens' GetAccessControlEffectResponse Int
-- | The organization ID.
getDefaultRetentionPolicy_organizationId :: Lens' GetDefaultRetentionPolicy Text
-- | The retention policy description.
getDefaultRetentionPolicyResponse_description :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
-- | The retention policy folder configurations.
getDefaultRetentionPolicyResponse_folderConfigurations :: Lens' GetDefaultRetentionPolicyResponse (Maybe [FolderConfiguration])
-- | The retention policy ID.
getDefaultRetentionPolicyResponse_id :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
-- | The retention policy name.
getDefaultRetentionPolicyResponse_name :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
-- | The response's http status code.
getDefaultRetentionPolicyResponse_httpStatus :: Lens' GetDefaultRetentionPolicyResponse Int
-- | The WorkMail organization from which to retrieve the impersonation
-- role.
getImpersonationRole_organizationId :: Lens' GetImpersonationRole Text
-- | The impersonation role ID to retrieve.
getImpersonationRole_impersonationRoleId :: Lens' GetImpersonationRole Text
-- | The date when the impersonation role was created.
getImpersonationRoleResponse_dateCreated :: Lens' GetImpersonationRoleResponse (Maybe UTCTime)
-- | The date when the impersonation role was last modified.
getImpersonationRoleResponse_dateModified :: Lens' GetImpersonationRoleResponse (Maybe UTCTime)
-- | The impersonation role description.
getImpersonationRoleResponse_description :: Lens' GetImpersonationRoleResponse (Maybe Text)
-- | The impersonation role ID.
getImpersonationRoleResponse_impersonationRoleId :: Lens' GetImpersonationRoleResponse (Maybe Text)
-- | The impersonation role name.
getImpersonationRoleResponse_name :: Lens' GetImpersonationRoleResponse (Maybe Text)
-- | The list of rules for the given impersonation role.
getImpersonationRoleResponse_rules :: Lens' GetImpersonationRoleResponse (Maybe [ImpersonationRule])
-- | The impersonation role type.
getImpersonationRoleResponse_type :: Lens' GetImpersonationRoleResponse (Maybe ImpersonationRoleType)
-- | The response's http status code.
getImpersonationRoleResponse_httpStatus :: Lens' GetImpersonationRoleResponse Int
-- | The WorkMail organization where the impersonation role is defined.
getImpersonationRoleEffect_organizationId :: Lens' GetImpersonationRoleEffect Text
-- | The impersonation role ID to test.
getImpersonationRoleEffect_impersonationRoleId :: Lens' GetImpersonationRoleEffect Text
-- | The WorkMail organization user chosen to test the impersonation role.
-- The following identity formats are available:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
getImpersonationRoleEffect_targetUser :: Lens' GetImpersonationRoleEffect Text
-- | Effect of the impersonation role on the target user based on its
-- rules. Available effects are ALLOW or DENY.
getImpersonationRoleEffectResponse_effect :: Lens' GetImpersonationRoleEffectResponse (Maybe AccessEffect)
-- | A list of the rules that match the input and produce the configured
-- effect.
getImpersonationRoleEffectResponse_matchedRules :: Lens' GetImpersonationRoleEffectResponse (Maybe [ImpersonationMatchedRule])
-- | The impersonation role type.
getImpersonationRoleEffectResponse_type :: Lens' GetImpersonationRoleEffectResponse (Maybe ImpersonationRoleType)
-- | The response's http status code.
getImpersonationRoleEffectResponse_httpStatus :: Lens' GetImpersonationRoleEffectResponse Int
-- | The WorkMail organization for which the domain is retrieved.
getMailDomain_organizationId :: Lens' GetMailDomain Text
-- | The domain from which you want to retrieve details.
getMailDomain_domainName :: Lens' GetMailDomain Text
-- | Indicates the status of a DKIM verification.
getMailDomainResponse_dkimVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
-- | Specifies whether the domain is the default domain for your
-- organization.
getMailDomainResponse_isDefault :: Lens' GetMailDomainResponse (Maybe Bool)
-- | Specifies whether the domain is a test domain provided by WorkMail, or
-- a custom domain.
getMailDomainResponse_isTestDomain :: Lens' GetMailDomainResponse (Maybe Bool)
-- | Indicates the status of the domain ownership verification.
getMailDomainResponse_ownershipVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
-- | A list of the DNS records that WorkMail recommends adding in your DNS
-- provider for the best user experience. The records configure your
-- domain with DMARC, SPF, DKIM, and direct incoming email traffic to
-- SES. See admin guide for more details.
getMailDomainResponse_records :: Lens' GetMailDomainResponse (Maybe [DnsRecord])
-- | The response's http status code.
getMailDomainResponse_httpStatus :: Lens' GetMailDomainResponse Int
-- | The identifier for the organization that contains the user whose
-- mailbox details are being requested.
getMailboxDetails_organizationId :: Lens' GetMailboxDetails Text
-- | The identifier for the user whose mailbox details are being requested.
getMailboxDetails_userId :: Lens' GetMailboxDetails Text
-- | The maximum allowed mailbox size, in MB, for the specified user.
getMailboxDetailsResponse_mailboxQuota :: Lens' GetMailboxDetailsResponse (Maybe Natural)
-- | The current mailbox size, in MB, for the specified user.
getMailboxDetailsResponse_mailboxSize :: Lens' GetMailboxDetailsResponse (Maybe Double)
-- | The response's http status code.
getMailboxDetailsResponse_httpStatus :: Lens' GetMailboxDetailsResponse Int
-- | Device model the simulated user will report.
getMobileDeviceAccessEffect_deviceModel :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | Device operating system the simulated user will report.
getMobileDeviceAccessEffect_deviceOperatingSystem :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | Device type the simulated user will report.
getMobileDeviceAccessEffect_deviceType :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | Device user agent the simulated user will report.
getMobileDeviceAccessEffect_deviceUserAgent :: Lens' GetMobileDeviceAccessEffect (Maybe Text)
-- | The WorkMail organization to simulate the access effect for.
getMobileDeviceAccessEffect_organizationId :: Lens' GetMobileDeviceAccessEffect Text
-- | The effect of the simulated access, ALLOW or DENY,
-- after evaluating mobile device access rules in the WorkMail
-- organization for the simulated user parameters.
getMobileDeviceAccessEffectResponse_effect :: Lens' GetMobileDeviceAccessEffectResponse (Maybe MobileDeviceAccessRuleEffect)
-- | A list of the rules which matched the simulated user input and
-- produced the effect.
getMobileDeviceAccessEffectResponse_matchedRules :: Lens' GetMobileDeviceAccessEffectResponse (Maybe [MobileDeviceAccessMatchedRule])
-- | The response's http status code.
getMobileDeviceAccessEffectResponse_httpStatus :: Lens' GetMobileDeviceAccessEffectResponse Int
-- | The WorkMail organization to which you want to apply the override.
getMobileDeviceAccessOverride_organizationId :: Lens' GetMobileDeviceAccessOverride Text
-- | Identifies the WorkMail user for the override. Accepts the following
-- types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
getMobileDeviceAccessOverride_userId :: Lens' GetMobileDeviceAccessOverride Text
-- | The mobile device to which the override applies. DeviceId is
-- case insensitive.
getMobileDeviceAccessOverride_deviceId :: Lens' GetMobileDeviceAccessOverride Text
-- | The date the override was first created.
getMobileDeviceAccessOverrideResponse_dateCreated :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe UTCTime)
-- | The date the description was last modified.
getMobileDeviceAccessOverrideResponse_dateModified :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe UTCTime)
-- | A description of the override.
getMobileDeviceAccessOverrideResponse_description :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe Text)
-- | The device to which the access override applies.
getMobileDeviceAccessOverrideResponse_deviceId :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe Text)
-- | The effect of the override, ALLOW or DENY.
getMobileDeviceAccessOverrideResponse_effect :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe MobileDeviceAccessRuleEffect)
-- | The WorkMail user to which the access override applies.
getMobileDeviceAccessOverrideResponse_userId :: Lens' GetMobileDeviceAccessOverrideResponse (Maybe Text)
-- | The response's http status code.
getMobileDeviceAccessOverrideResponse_httpStatus :: Lens' GetMobileDeviceAccessOverrideResponse Int
-- | The identifier for the organization.
listAccessControlRules_organizationId :: Lens' ListAccessControlRules Text
-- | The access control rules.
listAccessControlRulesResponse_rules :: Lens' ListAccessControlRulesResponse (Maybe [AccessControlRule])
-- | The response's http status code.
listAccessControlRulesResponse_httpStatus :: Lens' ListAccessControlRulesResponse Int
-- | The maximum number of results to return in a single call.
listAliases_maxResults :: Lens' ListAliases (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listAliases_nextToken :: Lens' ListAliases (Maybe Text)
-- | The identifier for the organization under which the entity exists.
listAliases_organizationId :: Lens' ListAliases Text
-- | The identifier for the entity for which to list the aliases.
listAliases_entityId :: Lens' ListAliases Text
-- | The entity's paginated aliases.
listAliasesResponse_aliases :: Lens' ListAliasesResponse (Maybe [Text])
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listAliasesResponse_nextToken :: Lens' ListAliasesResponse (Maybe Text)
-- | The response's http status code.
listAliasesResponse_httpStatus :: Lens' ListAliasesResponse Int
-- | The maximum number of results to return in a single call.
listAvailabilityConfigurations_maxResults :: Lens' ListAvailabilityConfigurations (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
listAvailabilityConfigurations_nextToken :: Lens' ListAvailabilityConfigurations (Maybe Text)
-- | The WorkMail organization for which the
-- AvailabilityConfiguration's will be listed.
listAvailabilityConfigurations_organizationId :: Lens' ListAvailabilityConfigurations Text
-- | The list of AvailabilityConfiguration's that exist for the
-- specified WorkMail organization.
listAvailabilityConfigurationsResponse_availabilityConfigurations :: Lens' ListAvailabilityConfigurationsResponse (Maybe [AvailabilityConfiguration])
-- | The token to use to retrieve the next page of results. The value is
-- null when there are no further results to return.
listAvailabilityConfigurationsResponse_nextToken :: Lens' ListAvailabilityConfigurationsResponse (Maybe Text)
-- | The response's http status code.
listAvailabilityConfigurationsResponse_httpStatus :: Lens' ListAvailabilityConfigurationsResponse Int
-- | The maximum number of results to return in a single call.
listGroupMembers_maxResults :: Lens' ListGroupMembers (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listGroupMembers_nextToken :: Lens' ListGroupMembers (Maybe Text)
-- | The identifier for the organization under which the group exists.
listGroupMembers_organizationId :: Lens' ListGroupMembers Text
-- | The identifier for the group to which the members (users or groups)
-- are associated.
listGroupMembers_groupId :: Lens' ListGroupMembers Text
-- | The members associated to the group.
listGroupMembersResponse_members :: Lens' ListGroupMembersResponse (Maybe [Member])
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listGroupMembersResponse_nextToken :: Lens' ListGroupMembersResponse (Maybe Text)
-- | The response's http status code.
listGroupMembersResponse_httpStatus :: Lens' ListGroupMembersResponse Int
-- | The maximum number of results to return in a single call.
listGroups_maxResults :: Lens' ListGroups (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listGroups_nextToken :: Lens' ListGroups (Maybe Text)
-- | The identifier for the organization under which the groups exist.
listGroups_organizationId :: Lens' ListGroups Text
-- | The overview of groups for an organization.
listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [Group])
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listGroupsResponse_nextToken :: Lens' ListGroupsResponse (Maybe Text)
-- | The response's http status code.
listGroupsResponse_httpStatus :: Lens' ListGroupsResponse Int
-- | The maximum number of results returned in a single call.
listImpersonationRoles_maxResults :: Lens' ListImpersonationRoles (Maybe Natural)
-- | The token used to retrieve the next page of results. The first call
-- doesn't require a token.
listImpersonationRoles_nextToken :: Lens' ListImpersonationRoles (Maybe Text)
-- | The WorkMail organization to which the listed impersonation roles
-- belong.
listImpersonationRoles_organizationId :: Lens' ListImpersonationRoles Text
-- | The token to retrieve the next page of results. The value is
-- null when there are no results to return.
listImpersonationRolesResponse_nextToken :: Lens' ListImpersonationRolesResponse (Maybe Text)
-- | The list of impersonation roles under the given WorkMail organization.
listImpersonationRolesResponse_roles :: Lens' ListImpersonationRolesResponse (Maybe [ImpersonationRole])
-- | The response's http status code.
listImpersonationRolesResponse_httpStatus :: Lens' ListImpersonationRolesResponse Int
-- | The maximum number of results to return in a single call.
listMailDomains_maxResults :: Lens' ListMailDomains (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
listMailDomains_nextToken :: Lens' ListMailDomains (Maybe Text)
-- | The WorkMail organization for which to list domains.
listMailDomains_organizationId :: Lens' ListMailDomains Text
-- | The list of mail domain summaries, specifying domains that exist in
-- the specified WorkMail organization, along with the information about
-- whether the domain is or isn't the default.
listMailDomainsResponse_mailDomains :: Lens' ListMailDomainsResponse (Maybe [MailDomainSummary])
-- | The token to use to retrieve the next page of results. The value
-- becomes null when there are no more results to return.
listMailDomainsResponse_nextToken :: Lens' ListMailDomainsResponse (Maybe Text)
-- | The response's http status code.
listMailDomainsResponse_httpStatus :: Lens' ListMailDomainsResponse Int
-- | The maximum number of results to return in a single call.
listMailboxExportJobs_maxResults :: Lens' ListMailboxExportJobs (Maybe Natural)
-- | The token to use to retrieve the next page of results.
listMailboxExportJobs_nextToken :: Lens' ListMailboxExportJobs (Maybe Text)
-- | The organization ID.
listMailboxExportJobs_organizationId :: Lens' ListMailboxExportJobs Text
-- | The mailbox export job details.
listMailboxExportJobsResponse_jobs :: Lens' ListMailboxExportJobsResponse (Maybe [MailboxExportJob])
-- | The token to use to retrieve the next page of results.
listMailboxExportJobsResponse_nextToken :: Lens' ListMailboxExportJobsResponse (Maybe Text)
-- | The response's http status code.
listMailboxExportJobsResponse_httpStatus :: Lens' ListMailboxExportJobsResponse Int
-- | The maximum number of results to return in a single call.
listMailboxPermissions_maxResults :: Lens' ListMailboxPermissions (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listMailboxPermissions_nextToken :: Lens' ListMailboxPermissions (Maybe Text)
-- | The identifier of the organization under which the user, group, or
-- resource exists.
listMailboxPermissions_organizationId :: Lens' ListMailboxPermissions Text
-- | The identifier of the user, group, or resource for which to list
-- mailbox permissions.
listMailboxPermissions_entityId :: Lens' ListMailboxPermissions Text
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listMailboxPermissionsResponse_nextToken :: Lens' ListMailboxPermissionsResponse (Maybe Text)
-- | One page of the user, group, or resource mailbox permissions.
listMailboxPermissionsResponse_permissions :: Lens' ListMailboxPermissionsResponse (Maybe [Permission])
-- | The response's http status code.
listMailboxPermissionsResponse_httpStatus :: Lens' ListMailboxPermissionsResponse Int
-- | The mobile device to which the access override applies.
listMobileDeviceAccessOverrides_deviceId :: Lens' ListMobileDeviceAccessOverrides (Maybe Text)
-- | The maximum number of results to return in a single call.
listMobileDeviceAccessOverrides_maxResults :: Lens' ListMobileDeviceAccessOverrides (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not require a token.
listMobileDeviceAccessOverrides_nextToken :: Lens' ListMobileDeviceAccessOverrides (Maybe Text)
-- | The WorkMail user under which you list the mobile device access
-- overrides. Accepts the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
listMobileDeviceAccessOverrides_userId :: Lens' ListMobileDeviceAccessOverrides (Maybe Text)
-- | The WorkMail organization under which to list mobile device access
-- overrides.
listMobileDeviceAccessOverrides_organizationId :: Lens' ListMobileDeviceAccessOverrides Text
-- | The token to use to retrieve the next page of results. The value is
-- “null” when there are no more results to return.
listMobileDeviceAccessOverridesResponse_nextToken :: Lens' ListMobileDeviceAccessOverridesResponse (Maybe Text)
-- | The list of mobile device access overrides that exist for the
-- specified WorkMail organization and user.
listMobileDeviceAccessOverridesResponse_overrides :: Lens' ListMobileDeviceAccessOverridesResponse (Maybe [MobileDeviceAccessOverride])
-- | The response's http status code.
listMobileDeviceAccessOverridesResponse_httpStatus :: Lens' ListMobileDeviceAccessOverridesResponse Int
-- | The WorkMail organization for which to list the rules.
listMobileDeviceAccessRules_organizationId :: Lens' ListMobileDeviceAccessRules Text
-- | The list of mobile device access rules that exist under the specified
-- WorkMail organization.
listMobileDeviceAccessRulesResponse_rules :: Lens' ListMobileDeviceAccessRulesResponse (Maybe [MobileDeviceAccessRule])
-- | The response's http status code.
listMobileDeviceAccessRulesResponse_httpStatus :: Lens' ListMobileDeviceAccessRulesResponse Int
-- | The maximum number of results to return in a single call.
listOrganizations_maxResults :: Lens' ListOrganizations (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listOrganizations_nextToken :: Lens' ListOrganizations (Maybe Text)
-- | The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
listOrganizationsResponse_nextToken :: Lens' ListOrganizationsResponse (Maybe Text)
-- | The overview of owned organizations presented as a list of
-- organization summaries.
listOrganizationsResponse_organizationSummaries :: Lens' ListOrganizationsResponse (Maybe [OrganizationSummary])
-- | The response's http status code.
listOrganizationsResponse_httpStatus :: Lens' ListOrganizationsResponse Int
-- | The number of maximum results in a page.
listResourceDelegates_maxResults :: Lens' ListResourceDelegates (Maybe Natural)
-- | The token used to paginate through the delegates associated with a
-- resource.
listResourceDelegates_nextToken :: Lens' ListResourceDelegates (Maybe Text)
-- | The identifier for the organization that contains the resource for
-- which delegates are listed.
listResourceDelegates_organizationId :: Lens' ListResourceDelegates Text
-- | The identifier for the resource whose delegates are listed.
listResourceDelegates_resourceId :: Lens' ListResourceDelegates Text
-- | One page of the resource's delegates.
listResourceDelegatesResponse_delegates :: Lens' ListResourceDelegatesResponse (Maybe [Delegate])
-- | The token used to paginate through the delegates associated with a
-- resource. While results are still available, it has an associated
-- value. When the last page is reached, the token is empty.
listResourceDelegatesResponse_nextToken :: Lens' ListResourceDelegatesResponse (Maybe Text)
-- | The response's http status code.
listResourceDelegatesResponse_httpStatus :: Lens' ListResourceDelegatesResponse Int
-- | The maximum number of results to return in a single call.
listResources_maxResults :: Lens' ListResources (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listResources_nextToken :: Lens' ListResources (Maybe Text)
-- | The identifier for the organization under which the resources exist.
listResources_organizationId :: Lens' ListResources Text
-- | The token used to paginate through all the organization's resources.
-- While results are still available, it has an associated value. When
-- the last page is reached, the token is empty.
listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text)
-- | One page of the organization's resource representation.
listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource])
-- | The response's http status code.
listResourcesResponse_httpStatus :: Lens' ListResourcesResponse Int
-- | The resource ARN.
listTagsForResource_resourceARN :: Lens' ListTagsForResource Text
-- | A list of tag key-value pairs.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag])
-- | The response's http status code.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
-- | The maximum number of results to return in a single call.
listUsers_maxResults :: Lens' ListUsers (Maybe Natural)
-- | The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
listUsers_nextToken :: Lens' ListUsers (Maybe Text)
-- | The identifier for the organization under which the users exist.
listUsers_organizationId :: Lens' ListUsers Text
-- | The token to use to retrieve the next page of results. This value is
-- `null` when there are no more results to return.
listUsersResponse_nextToken :: Lens' ListUsersResponse (Maybe Text)
-- | The overview of users for an organization.
listUsersResponse_users :: Lens' ListUsersResponse (Maybe [User])
-- | The response's http status code.
listUsersResponse_httpStatus :: Lens' ListUsersResponse Int
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
putAccessControlRule_actions :: Lens' PutAccessControlRule (Maybe [Text])
-- | Impersonation role IDs to include in the rule.
putAccessControlRule_impersonationRoleIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to include in the rule.
putAccessControlRule_ipRanges :: Lens' PutAccessControlRule (Maybe [Text])
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
putAccessControlRule_notActions :: Lens' PutAccessControlRule (Maybe [Text])
-- | Impersonation role IDs to exclude from the rule.
putAccessControlRule_notImpersonationRoleIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to exclude from the rule.
putAccessControlRule_notIpRanges :: Lens' PutAccessControlRule (Maybe [Text])
-- | User IDs to exclude from the rule.
putAccessControlRule_notUserIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | User IDs to include in the rule.
putAccessControlRule_userIds :: Lens' PutAccessControlRule (Maybe [Text])
-- | The rule name.
putAccessControlRule_name :: Lens' PutAccessControlRule Text
-- | The rule effect.
putAccessControlRule_effect :: Lens' PutAccessControlRule AccessControlRuleEffect
-- | The rule description.
putAccessControlRule_description :: Lens' PutAccessControlRule Text
-- | The identifier of the organization.
putAccessControlRule_organizationId :: Lens' PutAccessControlRule Text
-- | The response's http status code.
putAccessControlRuleResponse_httpStatus :: Lens' PutAccessControlRuleResponse Int
-- | The ID of the organization for which the email monitoring
-- configuration is set.
putEmailMonitoringConfiguration_organizationId :: Lens' PutEmailMonitoringConfiguration Text
-- | The Amazon Resource Name (ARN) of the IAM Role associated with the
-- email monitoring configuration.
putEmailMonitoringConfiguration_roleArn :: Lens' PutEmailMonitoringConfiguration Text
-- | The Amazon Resource Name (ARN) of the CloudWatch Log group associated
-- with the email monitoring configuration.
putEmailMonitoringConfiguration_logGroupArn :: Lens' PutEmailMonitoringConfiguration Text
-- | The response's http status code.
putEmailMonitoringConfigurationResponse_httpStatus :: Lens' PutEmailMonitoringConfigurationResponse Int
-- | The ID of the organization that you are applying the DMARC policy to.
putInboundDmarcSettings_organizationId :: Lens' PutInboundDmarcSettings Text
-- | Enforces or suspends a policy after it's applied.
putInboundDmarcSettings_enforced :: Lens' PutInboundDmarcSettings Bool
-- | The response's http status code.
putInboundDmarcSettingsResponse_httpStatus :: Lens' PutInboundDmarcSettingsResponse Int
-- | The identifier of the organization under which the user, group, or
-- resource exists.
putMailboxPermissions_organizationId :: Lens' PutMailboxPermissions Text
-- | The identifier of the user, group, or resource for which to update
-- mailbox permissions.
putMailboxPermissions_entityId :: Lens' PutMailboxPermissions Text
-- | The identifier of the user, group, or resource to which to grant the
-- permissions.
putMailboxPermissions_granteeId :: Lens' PutMailboxPermissions Text
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
putMailboxPermissions_permissionValues :: Lens' PutMailboxPermissions [PermissionType]
-- | The response's http status code.
putMailboxPermissionsResponse_httpStatus :: Lens' PutMailboxPermissionsResponse Int
-- | A description of the override.
putMobileDeviceAccessOverride_description :: Lens' PutMobileDeviceAccessOverride (Maybe Text)
-- | Identifies the WorkMail organization for which you create the
-- override.
putMobileDeviceAccessOverride_organizationId :: Lens' PutMobileDeviceAccessOverride Text
-- | The WorkMail user for which you create the override. Accepts the
-- following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
putMobileDeviceAccessOverride_userId :: Lens' PutMobileDeviceAccessOverride Text
-- | The mobile device for which you create the override. DeviceId
-- is case insensitive.
putMobileDeviceAccessOverride_deviceId :: Lens' PutMobileDeviceAccessOverride Text
-- | The effect of the override, ALLOW or DENY.
putMobileDeviceAccessOverride_effect :: Lens' PutMobileDeviceAccessOverride MobileDeviceAccessRuleEffect
-- | The response's http status code.
putMobileDeviceAccessOverrideResponse_httpStatus :: Lens' PutMobileDeviceAccessOverrideResponse Int
-- | The retention policy description.
putRetentionPolicy_description :: Lens' PutRetentionPolicy (Maybe Text)
-- | The retention policy ID.
putRetentionPolicy_id :: Lens' PutRetentionPolicy (Maybe Text)
-- | The organization ID.
putRetentionPolicy_organizationId :: Lens' PutRetentionPolicy Text
-- | The retention policy name.
putRetentionPolicy_name :: Lens' PutRetentionPolicy Text
-- | The retention policy folder configurations.
putRetentionPolicy_folderConfigurations :: Lens' PutRetentionPolicy [FolderConfiguration]
-- | The response's http status code.
putRetentionPolicyResponse_httpStatus :: Lens' PutRetentionPolicyResponse Int
-- | Idempotency token used when retrying requests.
registerMailDomain_clientToken :: Lens' RegisterMailDomain (Maybe Text)
-- | The WorkMail organization under which you're creating the domain.
registerMailDomain_organizationId :: Lens' RegisterMailDomain Text
-- | The name of the mail domain to create in WorkMail and SES.
registerMailDomain_domainName :: Lens' RegisterMailDomain Text
-- | The response's http status code.
registerMailDomainResponse_httpStatus :: Lens' RegisterMailDomainResponse Int
-- | The identifier for the organization under which the user, group, or
-- resource exists.
registerToWorkMail_organizationId :: Lens' RegisterToWorkMail Text
-- | The identifier for the user, group, or resource to be updated.
registerToWorkMail_entityId :: Lens' RegisterToWorkMail Text
-- | The email for the user, group, or resource to be updated.
registerToWorkMail_email :: Lens' RegisterToWorkMail Text
-- | The response's http status code.
registerToWorkMailResponse_httpStatus :: Lens' RegisterToWorkMailResponse Int
-- | The identifier of the organization that contains the user for which
-- the password is reset.
resetPassword_organizationId :: Lens' ResetPassword Text
-- | The identifier of the user for whom the password is reset.
resetPassword_userId :: Lens' ResetPassword Text
-- | The new password for the user.
resetPassword_password :: Lens' ResetPassword Text
-- | The response's http status code.
resetPasswordResponse_httpStatus :: Lens' ResetPasswordResponse Int
-- | The mailbox export job description.
startMailboxExportJob_description :: Lens' StartMailboxExportJob (Maybe Text)
-- | The idempotency token for the client request.
startMailboxExportJob_clientToken :: Lens' StartMailboxExportJob Text
-- | The identifier associated with the organization.
startMailboxExportJob_organizationId :: Lens' StartMailboxExportJob Text
-- | The identifier of the user or resource associated with the mailbox.
startMailboxExportJob_entityId :: Lens' StartMailboxExportJob Text
-- | The ARN of the AWS Identity and Access Management (IAM) role that
-- grants write permission to the S3 bucket.
startMailboxExportJob_roleArn :: Lens' StartMailboxExportJob Text
-- | The Amazon Resource Name (ARN) of the symmetric AWS Key Management
-- Service (AWS KMS) key that encrypts the exported mailbox content.
startMailboxExportJob_kmsKeyArn :: Lens' StartMailboxExportJob Text
-- | The name of the S3 bucket.
startMailboxExportJob_s3BucketName :: Lens' StartMailboxExportJob Text
-- | The S3 bucket prefix.
startMailboxExportJob_s3Prefix :: Lens' StartMailboxExportJob Text
-- | The job ID.
startMailboxExportJobResponse_jobId :: Lens' StartMailboxExportJobResponse (Maybe Text)
-- | The response's http status code.
startMailboxExportJobResponse_httpStatus :: Lens' StartMailboxExportJobResponse Int
-- | The resource ARN.
tagResource_resourceARN :: Lens' TagResource Text
-- | The tag key-value pairs.
tagResource_tags :: Lens' TagResource [Tag]
-- | The response's http status code.
tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
-- | The domain to which the provider applies. If this field is provided, a
-- stored availability provider associated to this domain name will be
-- tested.
testAvailabilityConfiguration_domainName :: Lens' TestAvailabilityConfiguration (Maybe Text)
-- | Undocumented member.
testAvailabilityConfiguration_ewsProvider :: Lens' TestAvailabilityConfiguration (Maybe EwsAvailabilityProvider)
-- | Undocumented member.
testAvailabilityConfiguration_lambdaProvider :: Lens' TestAvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | The WorkMail organization where the availability provider will be
-- tested.
testAvailabilityConfiguration_organizationId :: Lens' TestAvailabilityConfiguration Text
-- | String containing the reason for a failed test if TestPassed
-- is false.
testAvailabilityConfigurationResponse_failureReason :: Lens' TestAvailabilityConfigurationResponse (Maybe Text)
-- | Boolean indicating whether the test passed or failed.
testAvailabilityConfigurationResponse_testPassed :: Lens' TestAvailabilityConfigurationResponse (Maybe Bool)
-- | The response's http status code.
testAvailabilityConfigurationResponse_httpStatus :: Lens' TestAvailabilityConfigurationResponse Int
-- | The resource ARN.
untagResource_resourceARN :: Lens' UntagResource Text
-- | The tag keys.
untagResource_tagKeys :: Lens' UntagResource [Text]
-- | The response's http status code.
untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int
-- | The EWS availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
updateAvailabilityConfiguration_ewsProvider :: Lens' UpdateAvailabilityConfiguration (Maybe EwsAvailabilityProvider)
-- | The Lambda availability provider definition. The request must contain
-- exactly one provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
updateAvailabilityConfiguration_lambdaProvider :: Lens' UpdateAvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | The WorkMail organization for which the
-- AvailabilityConfiguration will be updated.
updateAvailabilityConfiguration_organizationId :: Lens' UpdateAvailabilityConfiguration Text
-- | The domain to which the provider applies the availability
-- configuration.
updateAvailabilityConfiguration_domainName :: Lens' UpdateAvailabilityConfiguration Text
-- | The response's http status code.
updateAvailabilityConfigurationResponse_httpStatus :: Lens' UpdateAvailabilityConfigurationResponse Int
-- | The WorkMail organization for which to list domains.
updateDefaultMailDomain_organizationId :: Lens' UpdateDefaultMailDomain Text
-- | The domain name that will become the default domain.
updateDefaultMailDomain_domainName :: Lens' UpdateDefaultMailDomain Text
-- | The response's http status code.
updateDefaultMailDomainResponse_httpStatus :: Lens' UpdateDefaultMailDomainResponse Int
-- | The updated impersonation role description.
updateImpersonationRole_description :: Lens' UpdateImpersonationRole (Maybe Text)
-- | The WorkMail organization that contains the impersonation role to
-- update.
updateImpersonationRole_organizationId :: Lens' UpdateImpersonationRole Text
-- | The ID of the impersonation role to update.
updateImpersonationRole_impersonationRoleId :: Lens' UpdateImpersonationRole Text
-- | The updated impersonation role name.
updateImpersonationRole_name :: Lens' UpdateImpersonationRole Text
-- | The updated impersonation role type.
updateImpersonationRole_type :: Lens' UpdateImpersonationRole ImpersonationRoleType
-- | The updated list of rules.
updateImpersonationRole_rules :: Lens' UpdateImpersonationRole [ImpersonationRule]
-- | The response's http status code.
updateImpersonationRoleResponse_httpStatus :: Lens' UpdateImpersonationRoleResponse Int
-- | The identifier for the organization that contains the user for whom to
-- update the mailbox quota.
updateMailboxQuota_organizationId :: Lens' UpdateMailboxQuota Text
-- | The identifer for the user for whom to update the mailbox quota.
updateMailboxQuota_userId :: Lens' UpdateMailboxQuota Text
-- | The updated mailbox quota, in MB, for the specified user.
updateMailboxQuota_mailboxQuota :: Lens' UpdateMailboxQuota Natural
-- | The response's http status code.
updateMailboxQuotaResponse_httpStatus :: Lens' UpdateMailboxQuotaResponse Int
-- | The updated rule description.
updateMobileDeviceAccessRule_description :: Lens' UpdateMobileDeviceAccessRule (Maybe Text)
-- | Device models that the updated rule will match.
updateMobileDeviceAccessRule_deviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the updated rule will match.
updateMobileDeviceAccessRule_deviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the updated rule will match.
updateMobileDeviceAccessRule_deviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | User agents that the updated rule will match.
updateMobileDeviceAccessRule_deviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device models that the updated rule will not match. All other
-- device models will match.
updateMobileDeviceAccessRule_notDeviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that the updated rule will not match.
-- All other device operating systems will match.
updateMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that the updated rule will not match. All other
-- device types will match.
updateMobileDeviceAccessRule_notDeviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | User agents that the updated rule will not match. All other
-- user agents will match.
updateMobileDeviceAccessRule_notDeviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The WorkMail organization under which the rule will be updated.
updateMobileDeviceAccessRule_organizationId :: Lens' UpdateMobileDeviceAccessRule Text
-- | The identifier of the rule to be updated.
updateMobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' UpdateMobileDeviceAccessRule Text
-- | The updated rule name.
updateMobileDeviceAccessRule_name :: Lens' UpdateMobileDeviceAccessRule Text
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
updateMobileDeviceAccessRule_effect :: Lens' UpdateMobileDeviceAccessRule MobileDeviceAccessRuleEffect
-- | The response's http status code.
updateMobileDeviceAccessRuleResponse_httpStatus :: Lens' UpdateMobileDeviceAccessRuleResponse Int
-- | The organization that contains the user, group, or resource to update.
updatePrimaryEmailAddress_organizationId :: Lens' UpdatePrimaryEmailAddress Text
-- | The user, group, or resource to update.
updatePrimaryEmailAddress_entityId :: Lens' UpdatePrimaryEmailAddress Text
-- | The value of the email to be updated as primary.
updatePrimaryEmailAddress_email :: Lens' UpdatePrimaryEmailAddress Text
-- | The response's http status code.
updatePrimaryEmailAddressResponse_httpStatus :: Lens' UpdatePrimaryEmailAddressResponse Int
-- | The resource's booking options to be updated.
updateResource_bookingOptions :: Lens' UpdateResource (Maybe BookingOptions)
-- | The name of the resource to be updated.
updateResource_name :: Lens' UpdateResource (Maybe Text)
-- | The identifier associated with the organization for which the resource
-- is updated.
updateResource_organizationId :: Lens' UpdateResource Text
-- | The identifier of the resource to be updated.
updateResource_resourceId :: Lens' UpdateResource Text
-- | The response's http status code.
updateResourceResponse_httpStatus :: Lens' UpdateResourceResponse Int
-- | Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
accessControlRule_actions :: Lens' AccessControlRule (Maybe [Text])
-- | The date that the rule was created.
accessControlRule_dateCreated :: Lens' AccessControlRule (Maybe UTCTime)
-- | The date that the rule was modified.
accessControlRule_dateModified :: Lens' AccessControlRule (Maybe UTCTime)
-- | The rule description.
accessControlRule_description :: Lens' AccessControlRule (Maybe Text)
-- | The rule effect.
accessControlRule_effect :: Lens' AccessControlRule (Maybe AccessControlRuleEffect)
-- | Impersonation role IDs to include in the rule.
accessControlRule_impersonationRoleIds :: Lens' AccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to include in the rule.
accessControlRule_ipRanges :: Lens' AccessControlRule (Maybe [Text])
-- | The rule name.
accessControlRule_name :: Lens' AccessControlRule (Maybe Text)
-- | Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
accessControlRule_notActions :: Lens' AccessControlRule (Maybe [Text])
-- | Impersonation role IDs to exclude from the rule.
accessControlRule_notImpersonationRoleIds :: Lens' AccessControlRule (Maybe [Text])
-- | IPv4 CIDR ranges to exclude from the rule.
accessControlRule_notIpRanges :: Lens' AccessControlRule (Maybe [Text])
-- | User IDs to exclude from the rule.
accessControlRule_notUserIds :: Lens' AccessControlRule (Maybe [Text])
-- | User IDs to include in the rule.
accessControlRule_userIds :: Lens' AccessControlRule (Maybe [Text])
-- | The date and time at which the availability configuration was created.
availabilityConfiguration_dateCreated :: Lens' AvailabilityConfiguration (Maybe UTCTime)
-- | The date and time at which the availability configuration was last
-- modified.
availabilityConfiguration_dateModified :: Lens' AvailabilityConfiguration (Maybe UTCTime)
-- | Displays the domain to which the provider applies.
availabilityConfiguration_domainName :: Lens' AvailabilityConfiguration (Maybe Text)
-- | If ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
availabilityConfiguration_ewsProvider :: Lens' AvailabilityConfiguration (Maybe RedactedEwsAvailabilityProvider)
-- | If ProviderType is LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
availabilityConfiguration_lambdaProvider :: Lens' AvailabilityConfiguration (Maybe LambdaAvailabilityProvider)
-- | Displays the provider type that applies to this domain.
availabilityConfiguration_providerType :: Lens' AvailabilityConfiguration (Maybe AvailabilityProviderType)
-- | The resource's ability to automatically reply to requests. If
-- disabled, delegates must be associated to the resource.
bookingOptions_autoAcceptRequests :: Lens' BookingOptions (Maybe Bool)
-- | The resource's ability to automatically decline any conflicting
-- requests.
bookingOptions_autoDeclineConflictingRequests :: Lens' BookingOptions (Maybe Bool)
-- | The resource's ability to automatically decline any recurring
-- requests.
bookingOptions_autoDeclineRecurringRequests :: Lens' BookingOptions (Maybe Bool)
-- | The identifier for the user or group associated as the resource's
-- delegate.
delegate_id :: Lens' Delegate Text
-- | The type of the delegate: user or group.
delegate_type :: Lens' Delegate MemberType
-- | The DNS hostname.- For example, domain.example.com.
dnsRecord_hostname :: Lens' DnsRecord (Maybe Text)
-- | The RFC 1035 record type. Possible values: CNAME, A,
-- MX.
dnsRecord_type :: Lens' DnsRecord (Maybe Text)
-- | The value returned by the DNS for a query to that hostname and record
-- type.
dnsRecord_value :: Lens' DnsRecord (Maybe Text)
-- | The fully qualified domain name.
domain_domainName :: Lens' Domain (Maybe Text)
-- | The hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
domain_hostedZoneId :: Lens' Domain (Maybe Text)
-- | The endpoint of the remote EWS server.
ewsAvailabilityProvider_ewsEndpoint :: Lens' EwsAvailabilityProvider Text
-- | The username used to authenticate the remote EWS server.
ewsAvailabilityProvider_ewsUsername :: Lens' EwsAvailabilityProvider Text
-- | The password used to authenticate the remote EWS server.
ewsAvailabilityProvider_ewsPassword :: Lens' EwsAvailabilityProvider Text
-- | The number of days for which the folder-configuration action applies.
folderConfiguration_period :: Lens' FolderConfiguration (Maybe Natural)
-- | The folder name.
folderConfiguration_name :: Lens' FolderConfiguration FolderName
-- | The action to take on the folder contents at the end of the folder
-- configuration period.
folderConfiguration_action :: Lens' FolderConfiguration RetentionAction
-- | The date indicating when the group was disabled from WorkMail use.
group_disabledDate :: Lens' Group (Maybe UTCTime)
-- | The email of the group.
group_email :: Lens' Group (Maybe Text)
-- | The date indicating when the group was enabled for WorkMail use.
group_enabledDate :: Lens' Group (Maybe UTCTime)
-- | The identifier of the group.
group_id :: Lens' Group (Maybe Text)
-- | The name of the group.
group_name :: Lens' Group (Maybe Text)
-- | The state of the group, which can be ENABLED, DISABLED, or DELETED.
group_state :: Lens' Group (Maybe EntityState)
-- | The ID of the rule that matched the input
impersonationMatchedRule_impersonationRuleId :: Lens' ImpersonationMatchedRule (Maybe Text)
-- | The name of the rule that matched the input.
impersonationMatchedRule_name :: Lens' ImpersonationMatchedRule (Maybe Text)
-- | The date when the impersonation role was created.
impersonationRole_dateCreated :: Lens' ImpersonationRole (Maybe UTCTime)
-- | The date when the impersonation role was last modified.
impersonationRole_dateModified :: Lens' ImpersonationRole (Maybe UTCTime)
-- | The identifier of the impersonation role.
impersonationRole_impersonationRoleId :: Lens' ImpersonationRole (Maybe Text)
-- | The impersonation role name.
impersonationRole_name :: Lens' ImpersonationRole (Maybe Text)
-- | The impersonation role type.
impersonationRole_type :: Lens' ImpersonationRole (Maybe ImpersonationRoleType)
-- | The rule description.
impersonationRule_description :: Lens' ImpersonationRule (Maybe Text)
-- | The rule name.
impersonationRule_name :: Lens' ImpersonationRule (Maybe Text)
-- | A list of user IDs that don't match the rule.
impersonationRule_notTargetUsers :: Lens' ImpersonationRule (Maybe (NonEmpty Text))
-- | A list of user IDs that match the rule.
impersonationRule_targetUsers :: Lens' ImpersonationRule (Maybe (NonEmpty Text))
-- | The identifier of the rule.
impersonationRule_impersonationRuleId :: Lens' ImpersonationRule Text
-- | The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
impersonationRule_effect :: Lens' ImpersonationRule AccessEffect
-- | The Amazon Resource Name (ARN) of the Lambda that acts as the
-- availability provider.
lambdaAvailabilityProvider_lambdaArn :: Lens' LambdaAvailabilityProvider Text
-- | Whether the domain is default or not.
mailDomainSummary_defaultDomain :: Lens' MailDomainSummary (Maybe Bool)
-- | The domain name.
mailDomainSummary_domainName :: Lens' MailDomainSummary (Maybe Text)
-- | The mailbox export job description.
mailboxExportJob_description :: Lens' MailboxExportJob (Maybe Text)
-- | The mailbox export job end timestamp.
mailboxExportJob_endTime :: Lens' MailboxExportJob (Maybe UTCTime)
-- | The identifier of the user or resource associated with the mailbox.
mailboxExportJob_entityId :: Lens' MailboxExportJob (Maybe Text)
-- | The estimated progress of the mailbox export job, in percentage
-- points.
mailboxExportJob_estimatedProgress :: Lens' MailboxExportJob (Maybe Natural)
-- | The identifier of the mailbox export job.
mailboxExportJob_jobId :: Lens' MailboxExportJob (Maybe Text)
-- | The name of the S3 bucket.
mailboxExportJob_s3BucketName :: Lens' MailboxExportJob (Maybe Text)
-- | The path to the S3 bucket and file that the mailbox export job exports
-- to.
mailboxExportJob_s3Path :: Lens' MailboxExportJob (Maybe Text)
-- | The mailbox export job start timestamp.
mailboxExportJob_startTime :: Lens' MailboxExportJob (Maybe UTCTime)
-- | The state of the mailbox export job.
mailboxExportJob_state :: Lens' MailboxExportJob (Maybe MailboxExportJobState)
-- | The date indicating when the member was disabled from WorkMail use.
member_disabledDate :: Lens' Member (Maybe UTCTime)
-- | The date indicating when the member was enabled for WorkMail use.
member_enabledDate :: Lens' Member (Maybe UTCTime)
-- | The identifier of the member.
member_id :: Lens' Member (Maybe Text)
-- | The name of the member.
member_name :: Lens' Member (Maybe Text)
-- | The state of the member, which can be ENABLED, DISABLED, or DELETED.
member_state :: Lens' Member (Maybe EntityState)
-- | A member can be a user or group.
member_type :: Lens' Member (Maybe MemberType)
-- | Identifier of the rule that a simulated user matches.
mobileDeviceAccessMatchedRule_mobileDeviceAccessRuleId :: Lens' MobileDeviceAccessMatchedRule (Maybe Text)
-- | Name of a rule that a simulated user matches.
mobileDeviceAccessMatchedRule_name :: Lens' MobileDeviceAccessMatchedRule (Maybe Text)
-- | The date the override was first created.
mobileDeviceAccessOverride_dateCreated :: Lens' MobileDeviceAccessOverride (Maybe UTCTime)
-- | The date the override was last modified.
mobileDeviceAccessOverride_dateModified :: Lens' MobileDeviceAccessOverride (Maybe UTCTime)
-- | A description of the override.
mobileDeviceAccessOverride_description :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | The device to which the override applies.
mobileDeviceAccessOverride_deviceId :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | The effect of the override, ALLOW or DENY.
mobileDeviceAccessOverride_effect :: Lens' MobileDeviceAccessOverride (Maybe MobileDeviceAccessRuleEffect)
-- | The WorkMail user to which the access override applies.
mobileDeviceAccessOverride_userId :: Lens' MobileDeviceAccessOverride (Maybe Text)
-- | The date and time at which an access rule was created.
mobileDeviceAccessRule_dateCreated :: Lens' MobileDeviceAccessRule (Maybe UTCTime)
-- | The date and time at which an access rule was modified.
mobileDeviceAccessRule_dateModified :: Lens' MobileDeviceAccessRule (Maybe UTCTime)
-- | The description of a mobile access rule.
mobileDeviceAccessRule_description :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | Device models that a rule will match.
mobileDeviceAccessRule_deviceModels :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that a rule will match.
mobileDeviceAccessRule_deviceOperatingSystems :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that a rule will match.
mobileDeviceAccessRule_deviceTypes :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that a rule will match.
mobileDeviceAccessRule_deviceUserAgents :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The effect of the rule when it matches. Allowed values are
-- ALLOW or DENY.
mobileDeviceAccessRule_effect :: Lens' MobileDeviceAccessRule (Maybe MobileDeviceAccessRuleEffect)
-- | The ID assigned to a mobile access rule.
mobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | The name of a mobile access rule.
mobileDeviceAccessRule_name :: Lens' MobileDeviceAccessRule (Maybe Text)
-- | Device models that a rule will not match. All other device
-- models will match.
mobileDeviceAccessRule_notDeviceModels :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device operating systems that a rule will not match. All other
-- device types will match.
mobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device types that a rule will not match. All other device types
-- will match.
mobileDeviceAccessRule_notDeviceTypes :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | Device user agents that a rule will not match. All other device
-- user agents will match.
mobileDeviceAccessRule_notDeviceUserAgents :: Lens' MobileDeviceAccessRule (Maybe (NonEmpty Text))
-- | The alias associated with the organization.
organizationSummary_alias :: Lens' OrganizationSummary (Maybe Text)
-- | The default email domain associated with the organization.
organizationSummary_defaultMailDomain :: Lens' OrganizationSummary (Maybe Text)
-- | The error message associated with the organization. It is only present
-- if unexpected behavior has occurred with regards to the organization.
-- It provides insight or solutions regarding unexpected behavior.
organizationSummary_errorMessage :: Lens' OrganizationSummary (Maybe Text)
-- | The identifier associated with the organization.
organizationSummary_organizationId :: Lens' OrganizationSummary (Maybe Text)
-- | The state associated with the organization.
organizationSummary_state :: Lens' OrganizationSummary (Maybe Text)
-- | The identifier of the user, group, or resource to which the
-- permissions are granted.
permission_granteeId :: Lens' Permission Text
-- | The type of user, group, or resource referred to in GranteeId.
permission_granteeType :: Lens' Permission MemberType
-- | The permissions granted to the grantee. SEND_AS allows the grantee to
-- send email as the owner of the mailbox (the grantee is not mentioned
-- on these emails). SEND_ON_BEHALF allows the grantee to send email on
-- behalf of the owner of the mailbox (the grantee is not mentioned as
-- the physical sender of these emails). FULL_ACCESS allows the grantee
-- full access to the mailbox, irrespective of other folder-level
-- permissions set on the mailbox.
permission_permissionValues :: Lens' Permission [PermissionType]
-- | The endpoint of the remote EWS server.
redactedEwsAvailabilityProvider_ewsEndpoint :: Lens' RedactedEwsAvailabilityProvider (Maybe Text)
-- | The username used to authenticate the remote EWS server.
redactedEwsAvailabilityProvider_ewsUsername :: Lens' RedactedEwsAvailabilityProvider (Maybe Text)
-- | The date indicating when the resource was disabled from WorkMail use.
resource_disabledDate :: Lens' Resource (Maybe UTCTime)
-- | The email of the resource.
resource_email :: Lens' Resource (Maybe Text)
-- | The date indicating when the resource was enabled for WorkMail use.
resource_enabledDate :: Lens' Resource (Maybe UTCTime)
-- | The identifier of the resource.
resource_id :: Lens' Resource (Maybe Text)
-- | The name of the resource.
resource_name :: Lens' Resource (Maybe Text)
-- | The state of the resource, which can be ENABLED, DISABLED, or DELETED.
resource_state :: Lens' Resource (Maybe EntityState)
-- | The type of the resource: equipment or room.
resource_type :: Lens' Resource (Maybe ResourceType)
-- | The key of the tag.
tag_key :: Lens' Tag Text
-- | The value of the tag.
tag_value :: Lens' Tag Text
-- | The date indicating when the user was disabled from WorkMail use.
user_disabledDate :: Lens' User (Maybe UTCTime)
-- | The display name of the user.
user_displayName :: Lens' User (Maybe Text)
-- | The email of the user.
user_email :: Lens' User (Maybe Text)
-- | The date indicating when the user was enabled for WorkMail use.
user_enabledDate :: Lens' User (Maybe UTCTime)
-- | The identifier of the user.
user_id :: Lens' User (Maybe Text)
-- | The name of the user.
user_name :: Lens' User (Maybe Text)
-- | The state of the user, which can be ENABLED, DISABLED, or DELETED.
user_state :: Lens' User (Maybe EntityState)
-- | The role of the user.
user_userRole :: Lens' User (Maybe UserRole)
module Amazonka.WorkMail.Waiters
-- | Derived from API version 2017-10-01 of the AWS service
-- descriptions, licensed under Apache 2.0.
--
-- WorkMail is a secure, managed business email and calendaring service
-- with support for existing desktop and mobile email clients. You can
-- access your email, contacts, and calendars using Microsoft Outlook,
-- your browser, or other native iOS and Android email applications. You
-- can integrate WorkMail with your existing corporate directory and
-- control both the keys that encrypt your data and the location in which
-- your data is stored.
--
-- The WorkMail API is designed for the following scenarios:
--
--
-- - Listing and describing organizations
-- - Managing users
-- - Managing groups
-- - Managing resources
--
--
-- All WorkMail API operations are Amazon-authenticated and
-- certificate-signed. They not only require the use of the AWS SDK, but
-- also allow for the exclusive use of AWS Identity and Access Management
-- users and roles to help facilitate access, trust, and permission
-- policies. By creating a role and allowing an IAM user to access the
-- WorkMail site, the IAM user gains full administrative visibility into
-- the entire WorkMail organization (or as set in the IAM policy). This
-- includes, but is not limited to, the ability to create, update, and
-- delete users, groups, and resources. This allows developers to perform
-- the scenarios listed above, as well as give users the ability to grant
-- access on a selective basis using the IAM model.
module Amazonka.WorkMail
-- | API version 2017-10-01 of the Amazon WorkMail SDK
-- configuration.
defaultService :: Service
-- | The directory is already in use by another WorkMail organization in
-- the same account and Region.
_DirectoryInUseException :: AsError a => Fold a ServiceError
-- | The directory service doesn't recognize the credentials supplied by
-- WorkMail.
_DirectoryServiceAuthenticationFailedException :: AsError a => Fold a ServiceError
-- | The directory is unavailable. It might be located in another Region or
-- deleted.
_DirectoryUnavailableException :: AsError a => Fold a ServiceError
-- | The email address that you're trying to assign is already created for
-- a different user, group, or resource.
_EmailAddressInUseException :: AsError a => Fold a ServiceError
-- | The user, group, or resource that you're trying to register is already
-- registered.
_EntityAlreadyRegisteredException :: AsError a => Fold a ServiceError
-- | The identifier supplied for the user, group, or resource does not
-- exist in your organization.
_EntityNotFoundException :: AsError a => Fold a ServiceError
-- | You are performing an operation on a user, group, or resource that
-- isn't in the expected state, such as trying to delete an active user.
_EntityStateException :: AsError a => Fold a ServiceError
-- | The configuration for a resource isn't valid. A resource must either
-- be able to auto-respond to requests or have at least one delegate
-- associated that can do so on its behalf.
_InvalidConfigurationException :: AsError a => Fold a ServiceError
-- | You SES configuration has customizations that WorkMail cannot save.
-- The error message lists the invalid setting. For examples of invalid
-- settings, refer to CreateReceiptRule.
_InvalidCustomSesConfigurationException :: AsError a => Fold a ServiceError
-- | One or more of the input parameters don't match the service's
-- restrictions.
_InvalidParameterException :: AsError a => Fold a ServiceError
-- | The supplied password doesn't match the minimum security constraints,
-- such as length or use of special characters.
_InvalidPasswordException :: AsError a => Fold a ServiceError
-- | The request exceeds the limit of the resource.
_LimitExceededException :: AsError a => Fold a ServiceError
-- | The domain you're trying to change is in use by another user or
-- organization in your account. See the error message for details.
_MailDomainInUseException :: AsError a => Fold a ServiceError
-- | The domain specified is not found in your organization.
_MailDomainNotFoundException :: AsError a => Fold a ServiceError
-- | After a domain has been added to the organization, it must be
-- verified. The domain is not yet verified.
_MailDomainStateException :: AsError a => Fold a ServiceError
-- | The user, group, or resource name isn't unique in WorkMail.
_NameAvailabilityException :: AsError a => Fold a ServiceError
-- | An operation received a valid organization identifier that either
-- doesn't belong or exist in the system.
_OrganizationNotFoundException :: AsError a => Fold a ServiceError
-- | The organization must have a valid state to perform certain operations
-- on the organization or its members.
_OrganizationStateException :: AsError a => Fold a ServiceError
-- | This user, group, or resource name is not allowed in WorkMail.
_ReservedNameException :: AsError a => Fold a ServiceError
-- | The resource cannot be found.
_ResourceNotFoundException :: AsError a => Fold a ServiceError
-- | The resource can have up to 50 user-applied tags.
_TooManyTagsException :: AsError a => Fold a ServiceError
-- | You can't perform a write operation against a read-only directory.
_UnsupportedOperationException :: AsError a => Fold a ServiceError
-- | See: newAssociateDelegateToResource smart constructor.
data AssociateDelegateToResource
AssociateDelegateToResource' :: Text -> Text -> Text -> AssociateDelegateToResource
-- | Create a value of AssociateDelegateToResource with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- AssociateDelegateToResource,
-- associateDelegateToResource_organizationId - The organization
-- under which the resource exists.
--
-- $sel:resourceId:AssociateDelegateToResource',
-- associateDelegateToResource_resourceId - The resource for which
-- members (users or groups) are associated.
--
-- AssociateDelegateToResource,
-- associateDelegateToResource_entityId - The member (user or
-- group) to associate to the resource.
newAssociateDelegateToResource :: Text -> Text -> Text -> AssociateDelegateToResource
-- | See: newAssociateDelegateToResourceResponse smart
-- constructor.
data AssociateDelegateToResourceResponse
AssociateDelegateToResourceResponse' :: Int -> AssociateDelegateToResourceResponse
-- | Create a value of AssociateDelegateToResourceResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:AssociateDelegateToResourceResponse',
-- associateDelegateToResourceResponse_httpStatus - The response's
-- http status code.
newAssociateDelegateToResourceResponse :: Int -> AssociateDelegateToResourceResponse
-- | See: newAssociateMemberToGroup smart constructor.
data AssociateMemberToGroup
AssociateMemberToGroup' :: Text -> Text -> Text -> AssociateMemberToGroup
-- | Create a value of AssociateMemberToGroup with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- AssociateMemberToGroup,
-- associateMemberToGroup_organizationId - The organization under
-- which the group exists.
--
-- $sel:groupId:AssociateMemberToGroup',
-- associateMemberToGroup_groupId - The group to which the member
-- (user or group) is associated.
--
-- $sel:memberId:AssociateMemberToGroup',
-- associateMemberToGroup_memberId - The member (user or group) to
-- associate to the group.
newAssociateMemberToGroup :: Text -> Text -> Text -> AssociateMemberToGroup
-- | See: newAssociateMemberToGroupResponse smart
-- constructor.
data AssociateMemberToGroupResponse
AssociateMemberToGroupResponse' :: Int -> AssociateMemberToGroupResponse
-- | Create a value of AssociateMemberToGroupResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:AssociateMemberToGroupResponse',
-- associateMemberToGroupResponse_httpStatus - The response's http
-- status code.
newAssociateMemberToGroupResponse :: Int -> AssociateMemberToGroupResponse
-- | See: newAssumeImpersonationRole smart constructor.
data AssumeImpersonationRole
AssumeImpersonationRole' :: Text -> Text -> AssumeImpersonationRole
-- | Create a value of AssumeImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- AssumeImpersonationRole,
-- assumeImpersonationRole_organizationId - The WorkMail
-- organization under which the impersonation role will be assumed.
--
-- AssumeImpersonationRole,
-- assumeImpersonationRole_impersonationRoleId - The impersonation
-- role ID to assume.
newAssumeImpersonationRole :: Text -> Text -> AssumeImpersonationRole
-- | See: newAssumeImpersonationRoleResponse smart
-- constructor.
data AssumeImpersonationRoleResponse
AssumeImpersonationRoleResponse' :: Maybe Integer -> Maybe Text -> Int -> AssumeImpersonationRoleResponse
-- | Create a value of AssumeImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:expiresIn:AssumeImpersonationRoleResponse',
-- assumeImpersonationRoleResponse_expiresIn - The authentication
-- token's validity, in seconds.
--
-- $sel:token:AssumeImpersonationRoleResponse',
-- assumeImpersonationRoleResponse_token - The authentication
-- token for the impersonation role.
--
-- $sel:httpStatus:AssumeImpersonationRoleResponse',
-- assumeImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newAssumeImpersonationRoleResponse :: Int -> AssumeImpersonationRoleResponse
-- | See: newCancelMailboxExportJob smart constructor.
data CancelMailboxExportJob
CancelMailboxExportJob' :: Text -> Text -> Text -> CancelMailboxExportJob
-- | Create a value of CancelMailboxExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CancelMailboxExportJob',
-- cancelMailboxExportJob_clientToken - The idempotency token for
-- the client request.
--
-- CancelMailboxExportJob, cancelMailboxExportJob_jobId -
-- The job ID.
--
-- CancelMailboxExportJob,
-- cancelMailboxExportJob_organizationId - The organization ID.
newCancelMailboxExportJob :: Text -> Text -> Text -> CancelMailboxExportJob
-- | See: newCancelMailboxExportJobResponse smart
-- constructor.
data CancelMailboxExportJobResponse
CancelMailboxExportJobResponse' :: Int -> CancelMailboxExportJobResponse
-- | Create a value of CancelMailboxExportJobResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:CancelMailboxExportJobResponse',
-- cancelMailboxExportJobResponse_httpStatus - The response's http
-- status code.
newCancelMailboxExportJobResponse :: Int -> CancelMailboxExportJobResponse
-- | See: newCreateAlias smart constructor.
data CreateAlias
CreateAlias' :: Text -> Text -> Text -> CreateAlias
-- | Create a value of CreateAlias with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateAlias, createAlias_organizationId - The
-- organization under which the member (user or group) exists.
--
-- CreateAlias, createAlias_entityId - The member (user or
-- group) to which this alias is added.
--
-- CreateAlias, createAlias_alias - The alias to add to the
-- member set.
newCreateAlias :: Text -> Text -> Text -> CreateAlias
-- | See: newCreateAliasResponse smart constructor.
data CreateAliasResponse
CreateAliasResponse' :: Int -> CreateAliasResponse
-- | Create a value of CreateAliasResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:CreateAliasResponse',
-- createAliasResponse_httpStatus - The response's http status
-- code.
newCreateAliasResponse :: Int -> CreateAliasResponse
-- | See: newCreateAvailabilityConfiguration smart
-- constructor.
data CreateAvailabilityConfiguration
CreateAvailabilityConfiguration' :: Maybe Text -> Maybe EwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Text -> Text -> CreateAvailabilityConfiguration
-- | Create a value of CreateAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateAvailabilityConfiguration',
-- createAvailabilityConfiguration_clientToken - An idempotent
-- token that ensures that an API request is executed only once.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_ewsProvider - Exchange Web
-- Services (EWS) availability provider definition. The request must
-- contain exactly one provider definition, either EwsProvider
-- or LambdaProvider.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_lambdaProvider - Lambda
-- availability provider definition. The request must contain exactly one
-- provider definition, either EwsProvider or
-- LambdaProvider.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration will be
-- created.
--
-- CreateAvailabilityConfiguration,
-- createAvailabilityConfiguration_domainName - The domain to
-- which the provider applies.
newCreateAvailabilityConfiguration :: Text -> Text -> CreateAvailabilityConfiguration
-- | See: newCreateAvailabilityConfigurationResponse smart
-- constructor.
data CreateAvailabilityConfigurationResponse
CreateAvailabilityConfigurationResponse' :: Int -> CreateAvailabilityConfigurationResponse
-- | Create a value of CreateAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:CreateAvailabilityConfigurationResponse',
-- createAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newCreateAvailabilityConfigurationResponse :: Int -> CreateAvailabilityConfigurationResponse
-- | See: newCreateGroup smart constructor.
data CreateGroup
CreateGroup' :: Text -> Text -> CreateGroup
-- | Create a value of CreateGroup with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateGroup, createGroup_organizationId - The
-- organization under which the group is to be created.
--
-- CreateGroup, createGroup_name - The name of the group.
newCreateGroup :: Text -> Text -> CreateGroup
-- | See: newCreateGroupResponse smart constructor.
data CreateGroupResponse
CreateGroupResponse' :: Maybe Text -> Int -> CreateGroupResponse
-- | Create a value of CreateGroupResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:groupId:CreateGroupResponse',
-- createGroupResponse_groupId - The identifier of the group.
--
-- $sel:httpStatus:CreateGroupResponse',
-- createGroupResponse_httpStatus - The response's http status
-- code.
newCreateGroupResponse :: Int -> CreateGroupResponse
-- | See: newCreateImpersonationRole smart constructor.
data CreateImpersonationRole
CreateImpersonationRole' :: Maybe Text -> Maybe Text -> Text -> Text -> ImpersonationRoleType -> [ImpersonationRule] -> CreateImpersonationRole
-- | Create a value of CreateImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateImpersonationRole',
-- createImpersonationRole_clientToken - The idempotency token for
-- the client request.
--
-- CreateImpersonationRole,
-- createImpersonationRole_description - The description of the
-- new impersonation role.
--
-- CreateImpersonationRole,
-- createImpersonationRole_organizationId - The WorkMail
-- organization to create the new impersonation role within.
--
-- CreateImpersonationRole, createImpersonationRole_name -
-- The name of the new impersonation role.
--
-- CreateImpersonationRole, createImpersonationRole_type -
-- The impersonation role's type. The available impersonation role types
-- are READ_ONLY or FULL_ACCESS.
--
-- $sel:rules:CreateImpersonationRole',
-- createImpersonationRole_rules - The list of rules for the
-- impersonation role.
newCreateImpersonationRole :: Text -> Text -> ImpersonationRoleType -> CreateImpersonationRole
-- | See: newCreateImpersonationRoleResponse smart
-- constructor.
data CreateImpersonationRoleResponse
CreateImpersonationRoleResponse' :: Maybe Text -> Int -> CreateImpersonationRoleResponse
-- | Create a value of CreateImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateImpersonationRoleResponse,
-- createImpersonationRoleResponse_impersonationRoleId - The new
-- impersonation role ID.
--
-- $sel:httpStatus:CreateImpersonationRoleResponse',
-- createImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newCreateImpersonationRoleResponse :: Int -> CreateImpersonationRoleResponse
-- | See: newCreateMobileDeviceAccessRule smart constructor.
data CreateMobileDeviceAccessRule
CreateMobileDeviceAccessRule' :: Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> Text -> MobileDeviceAccessRuleEffect -> CreateMobileDeviceAccessRule
-- | Create a value of CreateMobileDeviceAccessRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateMobileDeviceAccessRule',
-- createMobileDeviceAccessRule_clientToken - The idempotency
-- token for the client request.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_description - The rule
-- description.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceModels - Device models that
-- the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceOperatingSystems - Device
-- operating systems that the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceTypes - Device types that
-- the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_deviceUserAgents - Device user
-- agents that the rule will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceModels - Device models
-- that the rule will not match. All other device models will
-- match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceOperatingSystems - Device
-- operating systems that the rule will not match. All other
-- device operating systems will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceTypes - Device types that
-- the rule will not match. All other device types will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_notDeviceUserAgents - Device user
-- agents that the rule will not match. All other device user
-- agents will match.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_organizationId - The WorkMail
-- organization under which the rule will be created.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_name - The rule name.
--
-- CreateMobileDeviceAccessRule,
-- createMobileDeviceAccessRule_effect - The effect of the rule
-- when it matches. Allowed values are ALLOW or DENY.
newCreateMobileDeviceAccessRule :: Text -> Text -> MobileDeviceAccessRuleEffect -> CreateMobileDeviceAccessRule
-- | See: newCreateMobileDeviceAccessRuleResponse smart
-- constructor.
data CreateMobileDeviceAccessRuleResponse
CreateMobileDeviceAccessRuleResponse' :: Maybe Text -> Int -> CreateMobileDeviceAccessRuleResponse
-- | Create a value of CreateMobileDeviceAccessRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateMobileDeviceAccessRuleResponse,
-- createMobileDeviceAccessRuleResponse_mobileDeviceAccessRuleId -
-- The identifier for the newly created mobile device access rule.
--
-- $sel:httpStatus:CreateMobileDeviceAccessRuleResponse',
-- createMobileDeviceAccessRuleResponse_httpStatus - The
-- response's http status code.
newCreateMobileDeviceAccessRuleResponse :: Int -> CreateMobileDeviceAccessRuleResponse
-- | See: newCreateOrganization smart constructor.
data CreateOrganization
CreateOrganization' :: Maybe Text -> Maybe Text -> Maybe [Domain] -> Maybe Bool -> Maybe Text -> Text -> CreateOrganization
-- | Create a value of CreateOrganization with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:CreateOrganization',
-- createOrganization_clientToken - The idempotency token
-- associated with the request.
--
-- $sel:directoryId:CreateOrganization',
-- createOrganization_directoryId - The AWS Directory Service
-- directory ID.
--
-- $sel:domains:CreateOrganization',
-- createOrganization_domains - The email domains to associate
-- with the organization.
--
-- $sel:enableInteroperability:CreateOrganization',
-- createOrganization_enableInteroperability - When true,
-- allows organization interoperability between WorkMail and Microsoft
-- Exchange. If true, you must include a AD Connector directory
-- ID in the request.
--
-- $sel:kmsKeyArn:CreateOrganization',
-- createOrganization_kmsKeyArn - The Amazon Resource Name (ARN)
-- of a customer managed key from AWS KMS.
--
-- CreateOrganization, createOrganization_alias - The
-- organization alias.
newCreateOrganization :: Text -> CreateOrganization
-- | See: newCreateOrganizationResponse smart constructor.
data CreateOrganizationResponse
CreateOrganizationResponse' :: Maybe Text -> Int -> CreateOrganizationResponse
-- | Create a value of CreateOrganizationResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateOrganizationResponse,
-- createOrganizationResponse_organizationId - The organization
-- ID.
--
-- $sel:httpStatus:CreateOrganizationResponse',
-- createOrganizationResponse_httpStatus - The response's http
-- status code.
newCreateOrganizationResponse :: Int -> CreateOrganizationResponse
-- | See: newCreateResource smart constructor.
data CreateResource
CreateResource' :: Text -> Text -> ResourceType -> CreateResource
-- | Create a value of CreateResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateResource, createResource_organizationId - The
-- identifier associated with the organization for which the resource is
-- created.
--
-- CreateResource, createResource_name - The name of the
-- new resource.
--
-- CreateResource, createResource_type - The type of the
-- new resource. The available types are equipment and
-- room.
newCreateResource :: Text -> Text -> ResourceType -> CreateResource
-- | See: newCreateResourceResponse smart constructor.
data CreateResourceResponse
CreateResourceResponse' :: Maybe Text -> Int -> CreateResourceResponse
-- | Create a value of CreateResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceId:CreateResourceResponse',
-- createResourceResponse_resourceId - The identifier of the new
-- resource.
--
-- $sel:httpStatus:CreateResourceResponse',
-- createResourceResponse_httpStatus - The response's http status
-- code.
newCreateResourceResponse :: Int -> CreateResourceResponse
-- | See: newCreateUser smart constructor.
data CreateUser
CreateUser' :: Text -> Text -> Text -> Sensitive Text -> CreateUser
-- | Create a value of CreateUser with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateUser, createUser_organizationId - The identifier
-- of the organization for which the user is created.
--
-- CreateUser, createUser_name - The name for the new user.
-- WorkMail directory user names have a maximum length of 64. All others
-- have a maximum length of 20.
--
-- CreateUser, createUser_displayName - The display name
-- for the new user.
--
-- $sel:password:CreateUser', createUser_password - The
-- password for the new user.
newCreateUser :: Text -> Text -> Text -> Text -> CreateUser
-- | See: newCreateUserResponse smart constructor.
data CreateUserResponse
CreateUserResponse' :: Maybe Text -> Int -> CreateUserResponse
-- | Create a value of CreateUserResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- CreateUserResponse, createUserResponse_userId - The
-- identifier for the new user.
--
-- $sel:httpStatus:CreateUserResponse',
-- createUserResponse_httpStatus - The response's http status
-- code.
newCreateUserResponse :: Int -> CreateUserResponse
-- | See: newDeleteAccessControlRule smart constructor.
data DeleteAccessControlRule
DeleteAccessControlRule' :: Text -> Text -> DeleteAccessControlRule
-- | Create a value of DeleteAccessControlRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteAccessControlRule,
-- deleteAccessControlRule_organizationId - The identifier for the
-- organization.
--
-- DeleteAccessControlRule, deleteAccessControlRule_name -
-- The name of the access control rule.
newDeleteAccessControlRule :: Text -> Text -> DeleteAccessControlRule
-- | See: newDeleteAccessControlRuleResponse smart
-- constructor.
data DeleteAccessControlRuleResponse
DeleteAccessControlRuleResponse' :: Int -> DeleteAccessControlRuleResponse
-- | Create a value of DeleteAccessControlRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteAccessControlRuleResponse',
-- deleteAccessControlRuleResponse_httpStatus - The response's
-- http status code.
newDeleteAccessControlRuleResponse :: Int -> DeleteAccessControlRuleResponse
-- | See: newDeleteAlias smart constructor.
data DeleteAlias
DeleteAlias' :: Text -> Text -> Text -> DeleteAlias
-- | Create a value of DeleteAlias with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteAlias, deleteAlias_organizationId - The identifier
-- for the organization under which the user exists.
--
-- DeleteAlias, deleteAlias_entityId - The identifier for
-- the member (user or group) from which to have the aliases removed.
--
-- DeleteAlias, deleteAlias_alias - The aliases to be
-- removed from the user's set of aliases. Duplicate entries in the list
-- are collapsed into single entries (the list is transformed into a
-- set).
newDeleteAlias :: Text -> Text -> Text -> DeleteAlias
-- | See: newDeleteAliasResponse smart constructor.
data DeleteAliasResponse
DeleteAliasResponse' :: Int -> DeleteAliasResponse
-- | Create a value of DeleteAliasResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteAliasResponse',
-- deleteAliasResponse_httpStatus - The response's http status
-- code.
newDeleteAliasResponse :: Int -> DeleteAliasResponse
-- | See: newDeleteAvailabilityConfiguration smart
-- constructor.
data DeleteAvailabilityConfiguration
DeleteAvailabilityConfiguration' :: Text -> Text -> DeleteAvailabilityConfiguration
-- | Create a value of DeleteAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteAvailabilityConfiguration,
-- deleteAvailabilityConfiguration_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration will be
-- deleted.
--
-- DeleteAvailabilityConfiguration,
-- deleteAvailabilityConfiguration_domainName - The domain for
-- which the AvailabilityConfiguration will be deleted.
newDeleteAvailabilityConfiguration :: Text -> Text -> DeleteAvailabilityConfiguration
-- | See: newDeleteAvailabilityConfigurationResponse smart
-- constructor.
data DeleteAvailabilityConfigurationResponse
DeleteAvailabilityConfigurationResponse' :: Int -> DeleteAvailabilityConfigurationResponse
-- | Create a value of DeleteAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteAvailabilityConfigurationResponse',
-- deleteAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newDeleteAvailabilityConfigurationResponse :: Int -> DeleteAvailabilityConfigurationResponse
-- | See: newDeleteEmailMonitoringConfiguration smart
-- constructor.
data DeleteEmailMonitoringConfiguration
DeleteEmailMonitoringConfiguration' :: Text -> DeleteEmailMonitoringConfiguration
-- | Create a value of DeleteEmailMonitoringConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteEmailMonitoringConfiguration,
-- deleteEmailMonitoringConfiguration_organizationId - The ID of
-- the organization from which the email monitoring configuration is
-- deleted.
newDeleteEmailMonitoringConfiguration :: Text -> DeleteEmailMonitoringConfiguration
-- | See: newDeleteEmailMonitoringConfigurationResponse smart
-- constructor.
data DeleteEmailMonitoringConfigurationResponse
DeleteEmailMonitoringConfigurationResponse' :: Int -> DeleteEmailMonitoringConfigurationResponse
-- | Create a value of DeleteEmailMonitoringConfigurationResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteEmailMonitoringConfigurationResponse',
-- deleteEmailMonitoringConfigurationResponse_httpStatus - The
-- response's http status code.
newDeleteEmailMonitoringConfigurationResponse :: Int -> DeleteEmailMonitoringConfigurationResponse
-- | See: newDeleteGroup smart constructor.
data DeleteGroup
DeleteGroup' :: Text -> Text -> DeleteGroup
-- | Create a value of DeleteGroup with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteGroup, deleteGroup_organizationId - The
-- organization that contains the group.
--
-- $sel:groupId:DeleteGroup', deleteGroup_groupId - The
-- identifier of the group to be deleted.
newDeleteGroup :: Text -> Text -> DeleteGroup
-- | See: newDeleteGroupResponse smart constructor.
data DeleteGroupResponse
DeleteGroupResponse' :: Int -> DeleteGroupResponse
-- | Create a value of DeleteGroupResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteGroupResponse',
-- deleteGroupResponse_httpStatus - The response's http status
-- code.
newDeleteGroupResponse :: Int -> DeleteGroupResponse
-- | See: newDeleteImpersonationRole smart constructor.
data DeleteImpersonationRole
DeleteImpersonationRole' :: Text -> Text -> DeleteImpersonationRole
-- | Create a value of DeleteImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteImpersonationRole,
-- deleteImpersonationRole_organizationId - The WorkMail
-- organization from which to delete the impersonation role.
--
-- DeleteImpersonationRole,
-- deleteImpersonationRole_impersonationRoleId - The ID of the
-- impersonation role to delete.
newDeleteImpersonationRole :: Text -> Text -> DeleteImpersonationRole
-- | See: newDeleteImpersonationRoleResponse smart
-- constructor.
data DeleteImpersonationRoleResponse
DeleteImpersonationRoleResponse' :: Int -> DeleteImpersonationRoleResponse
-- | Create a value of DeleteImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteImpersonationRoleResponse',
-- deleteImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newDeleteImpersonationRoleResponse :: Int -> DeleteImpersonationRoleResponse
-- | See: newDeleteMailboxPermissions smart constructor.
data DeleteMailboxPermissions
DeleteMailboxPermissions' :: Text -> Text -> Text -> DeleteMailboxPermissions
-- | Create a value of DeleteMailboxPermissions with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteMailboxPermissions,
-- deleteMailboxPermissions_organizationId - The identifier of the
-- organization under which the member (user or group) exists.
--
-- DeleteMailboxPermissions,
-- deleteMailboxPermissions_entityId - The identifier of the
-- member (user or group) that owns the mailbox.
--
-- DeleteMailboxPermissions,
-- deleteMailboxPermissions_granteeId - The identifier of the
-- member (user or group) for which to delete granted permissions.
newDeleteMailboxPermissions :: Text -> Text -> Text -> DeleteMailboxPermissions
-- | See: newDeleteMailboxPermissionsResponse smart
-- constructor.
data DeleteMailboxPermissionsResponse
DeleteMailboxPermissionsResponse' :: Int -> DeleteMailboxPermissionsResponse
-- | Create a value of DeleteMailboxPermissionsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteMailboxPermissionsResponse',
-- deleteMailboxPermissionsResponse_httpStatus - The response's
-- http status code.
newDeleteMailboxPermissionsResponse :: Int -> DeleteMailboxPermissionsResponse
-- | See: newDeleteMobileDeviceAccessOverride smart
-- constructor.
data DeleteMobileDeviceAccessOverride
DeleteMobileDeviceAccessOverride' :: Text -> Text -> Text -> DeleteMobileDeviceAccessOverride
-- | Create a value of DeleteMobileDeviceAccessOverride with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteMobileDeviceAccessOverride,
-- deleteMobileDeviceAccessOverride_organizationId - The WorkMail
-- organization for which the access override will be deleted.
--
-- DeleteMobileDeviceAccessOverride,
-- deleteMobileDeviceAccessOverride_userId - The WorkMail user for
-- which you want to delete the override. Accepts the following types of
-- user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- DeleteMobileDeviceAccessOverride,
-- deleteMobileDeviceAccessOverride_deviceId - The mobile device
-- for which you delete the override. DeviceId is case
-- insensitive.
newDeleteMobileDeviceAccessOverride :: Text -> Text -> Text -> DeleteMobileDeviceAccessOverride
-- | See: newDeleteMobileDeviceAccessOverrideResponse smart
-- constructor.
data DeleteMobileDeviceAccessOverrideResponse
DeleteMobileDeviceAccessOverrideResponse' :: Int -> DeleteMobileDeviceAccessOverrideResponse
-- | Create a value of DeleteMobileDeviceAccessOverrideResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteMobileDeviceAccessOverrideResponse',
-- deleteMobileDeviceAccessOverrideResponse_httpStatus - The
-- response's http status code.
newDeleteMobileDeviceAccessOverrideResponse :: Int -> DeleteMobileDeviceAccessOverrideResponse
-- | See: newDeleteMobileDeviceAccessRule smart constructor.
data DeleteMobileDeviceAccessRule
DeleteMobileDeviceAccessRule' :: Text -> Text -> DeleteMobileDeviceAccessRule
-- | Create a value of DeleteMobileDeviceAccessRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteMobileDeviceAccessRule,
-- deleteMobileDeviceAccessRule_organizationId - The WorkMail
-- organization under which the rule will be deleted.
--
-- DeleteMobileDeviceAccessRule,
-- deleteMobileDeviceAccessRule_mobileDeviceAccessRuleId - The
-- identifier of the rule to be deleted.
newDeleteMobileDeviceAccessRule :: Text -> Text -> DeleteMobileDeviceAccessRule
-- | See: newDeleteMobileDeviceAccessRuleResponse smart
-- constructor.
data DeleteMobileDeviceAccessRuleResponse
DeleteMobileDeviceAccessRuleResponse' :: Int -> DeleteMobileDeviceAccessRuleResponse
-- | Create a value of DeleteMobileDeviceAccessRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteMobileDeviceAccessRuleResponse',
-- deleteMobileDeviceAccessRuleResponse_httpStatus - The
-- response's http status code.
newDeleteMobileDeviceAccessRuleResponse :: Int -> DeleteMobileDeviceAccessRuleResponse
-- | See: newDeleteOrganization smart constructor.
data DeleteOrganization
DeleteOrganization' :: Maybe Text -> Text -> Bool -> DeleteOrganization
-- | Create a value of DeleteOrganization with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:DeleteOrganization',
-- deleteOrganization_clientToken - The idempotency token
-- associated with the request.
--
-- DeleteOrganization, deleteOrganization_organizationId -
-- The organization ID.
--
-- $sel:deleteDirectory:DeleteOrganization',
-- deleteOrganization_deleteDirectory - If true, deletes the AWS
-- Directory Service directory associated with the organization.
newDeleteOrganization :: Text -> Bool -> DeleteOrganization
-- | See: newDeleteOrganizationResponse smart constructor.
data DeleteOrganizationResponse
DeleteOrganizationResponse' :: Maybe Text -> Maybe Text -> Int -> DeleteOrganizationResponse
-- | Create a value of DeleteOrganizationResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteOrganization,
-- deleteOrganizationResponse_organizationId - The organization
-- ID.
--
-- DeleteOrganizationResponse,
-- deleteOrganizationResponse_state - The state of the
-- organization.
--
-- $sel:httpStatus:DeleteOrganizationResponse',
-- deleteOrganizationResponse_httpStatus - The response's http
-- status code.
newDeleteOrganizationResponse :: Int -> DeleteOrganizationResponse
-- | See: newDeleteResource smart constructor.
data DeleteResource
DeleteResource' :: Text -> Text -> DeleteResource
-- | Create a value of DeleteResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteResource, deleteResource_organizationId - The
-- identifier associated with the organization from which the resource is
-- deleted.
--
-- $sel:resourceId:DeleteResource',
-- deleteResource_resourceId - The identifier of the resource to
-- be deleted.
newDeleteResource :: Text -> Text -> DeleteResource
-- | See: newDeleteResourceResponse smart constructor.
data DeleteResourceResponse
DeleteResourceResponse' :: Int -> DeleteResourceResponse
-- | Create a value of DeleteResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteResourceResponse',
-- deleteResourceResponse_httpStatus - The response's http status
-- code.
newDeleteResourceResponse :: Int -> DeleteResourceResponse
-- | See: newDeleteRetentionPolicy smart constructor.
data DeleteRetentionPolicy
DeleteRetentionPolicy' :: Text -> Text -> DeleteRetentionPolicy
-- | Create a value of DeleteRetentionPolicy with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteRetentionPolicy,
-- deleteRetentionPolicy_organizationId - The organization ID.
--
-- DeleteRetentionPolicy, deleteRetentionPolicy_id - The
-- retention policy ID.
newDeleteRetentionPolicy :: Text -> Text -> DeleteRetentionPolicy
-- | See: newDeleteRetentionPolicyResponse smart constructor.
data DeleteRetentionPolicyResponse
DeleteRetentionPolicyResponse' :: Int -> DeleteRetentionPolicyResponse
-- | Create a value of DeleteRetentionPolicyResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteRetentionPolicyResponse',
-- deleteRetentionPolicyResponse_httpStatus - The response's http
-- status code.
newDeleteRetentionPolicyResponse :: Int -> DeleteRetentionPolicyResponse
-- | See: newDeleteUser smart constructor.
data DeleteUser
DeleteUser' :: Text -> Text -> DeleteUser
-- | Create a value of DeleteUser with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteUser, deleteUser_organizationId - The organization
-- that contains the user to be deleted.
--
-- DeleteUser, deleteUser_userId - The identifier of the
-- user to be deleted.
newDeleteUser :: Text -> Text -> DeleteUser
-- | See: newDeleteUserResponse smart constructor.
data DeleteUserResponse
DeleteUserResponse' :: Int -> DeleteUserResponse
-- | Create a value of DeleteUserResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteUserResponse',
-- deleteUserResponse_httpStatus - The response's http status
-- code.
newDeleteUserResponse :: Int -> DeleteUserResponse
-- | See: newDeregisterFromWorkMail smart constructor.
data DeregisterFromWorkMail
DeregisterFromWorkMail' :: Text -> Text -> DeregisterFromWorkMail
-- | Create a value of DeregisterFromWorkMail with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeregisterFromWorkMail,
-- deregisterFromWorkMail_organizationId - The identifier for the
-- organization under which the WorkMail entity exists.
--
-- DeregisterFromWorkMail, deregisterFromWorkMail_entityId
-- - The identifier for the member (user or group) to be updated.
newDeregisterFromWorkMail :: Text -> Text -> DeregisterFromWorkMail
-- | See: newDeregisterFromWorkMailResponse smart
-- constructor.
data DeregisterFromWorkMailResponse
DeregisterFromWorkMailResponse' :: Int -> DeregisterFromWorkMailResponse
-- | Create a value of DeregisterFromWorkMailResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeregisterFromWorkMailResponse',
-- deregisterFromWorkMailResponse_httpStatus - The response's http
-- status code.
newDeregisterFromWorkMailResponse :: Int -> DeregisterFromWorkMailResponse
-- | See: newDeregisterMailDomain smart constructor.
data DeregisterMailDomain
DeregisterMailDomain' :: Text -> Text -> DeregisterMailDomain
-- | Create a value of DeregisterMailDomain with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeregisterMailDomain,
-- deregisterMailDomain_organizationId - The WorkMail organization
-- for which the domain will be deregistered.
--
-- DeregisterMailDomain, deregisterMailDomain_domainName -
-- The domain to deregister in WorkMail and SES.
newDeregisterMailDomain :: Text -> Text -> DeregisterMailDomain
-- | See: newDeregisterMailDomainResponse smart constructor.
data DeregisterMailDomainResponse
DeregisterMailDomainResponse' :: Int -> DeregisterMailDomainResponse
-- | Create a value of DeregisterMailDomainResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeregisterMailDomainResponse',
-- deregisterMailDomainResponse_httpStatus - The response's http
-- status code.
newDeregisterMailDomainResponse :: Int -> DeregisterMailDomainResponse
-- | See: newDescribeEmailMonitoringConfiguration smart
-- constructor.
data DescribeEmailMonitoringConfiguration
DescribeEmailMonitoringConfiguration' :: Text -> DescribeEmailMonitoringConfiguration
-- | Create a value of DescribeEmailMonitoringConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeEmailMonitoringConfiguration,
-- describeEmailMonitoringConfiguration_organizationId - The ID of
-- the organization for which the email monitoring configuration is
-- described.
newDescribeEmailMonitoringConfiguration :: Text -> DescribeEmailMonitoringConfiguration
-- | See: newDescribeEmailMonitoringConfigurationResponse
-- smart constructor.
data DescribeEmailMonitoringConfigurationResponse
DescribeEmailMonitoringConfigurationResponse' :: Maybe Text -> Maybe Text -> Int -> DescribeEmailMonitoringConfigurationResponse
-- | Create a value of DescribeEmailMonitoringConfigurationResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:logGroupArn:DescribeEmailMonitoringConfigurationResponse',
-- describeEmailMonitoringConfigurationResponse_logGroupArn - The
-- Amazon Resource Name (ARN) of the CloudWatch Log group associated with
-- the email monitoring configuration.
--
-- $sel:roleArn:DescribeEmailMonitoringConfigurationResponse',
-- describeEmailMonitoringConfigurationResponse_roleArn - The
-- Amazon Resource Name (ARN) of the IAM Role associated with the email
-- monitoring configuration.
--
-- $sel:httpStatus:DescribeEmailMonitoringConfigurationResponse',
-- describeEmailMonitoringConfigurationResponse_httpStatus - The
-- response's http status code.
newDescribeEmailMonitoringConfigurationResponse :: Int -> DescribeEmailMonitoringConfigurationResponse
-- | See: newDescribeGroup smart constructor.
data DescribeGroup
DescribeGroup' :: Text -> Text -> DescribeGroup
-- | Create a value of DescribeGroup with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeGroup, describeGroup_organizationId - The
-- identifier for the organization under which the group exists.
--
-- DescribeGroup, describeGroup_groupId - The identifier
-- for the group to be described.
newDescribeGroup :: Text -> Text -> DescribeGroup
-- | See: newDescribeGroupResponse smart constructor.
data DescribeGroupResponse
DescribeGroupResponse' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Int -> DescribeGroupResponse
-- | Create a value of DescribeGroupResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeGroupResponse,
-- describeGroupResponse_disabledDate - The date and time when a
-- user was deregistered from WorkMail, in UNIX epoch time format.
--
-- DescribeGroupResponse, describeGroupResponse_email - The
-- email of the described group.
--
-- DescribeGroupResponse, describeGroupResponse_enabledDate
-- - The date and time when a user was registered to WorkMail, in UNIX
-- epoch time format.
--
-- DescribeGroup, describeGroupResponse_groupId - The
-- identifier of the described group.
--
-- DescribeGroupResponse, describeGroupResponse_name - The
-- name of the described group.
--
-- DescribeGroupResponse, describeGroupResponse_state - The
-- state of the user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
--
-- $sel:httpStatus:DescribeGroupResponse',
-- describeGroupResponse_httpStatus - The response's http status
-- code.
newDescribeGroupResponse :: Int -> DescribeGroupResponse
-- | See: newDescribeInboundDmarcSettings smart constructor.
data DescribeInboundDmarcSettings
DescribeInboundDmarcSettings' :: Text -> DescribeInboundDmarcSettings
-- | Create a value of DescribeInboundDmarcSettings with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeInboundDmarcSettings,
-- describeInboundDmarcSettings_organizationId - Lists the ID of
-- the given organization.
newDescribeInboundDmarcSettings :: Text -> DescribeInboundDmarcSettings
-- | See: newDescribeInboundDmarcSettingsResponse smart
-- constructor.
data DescribeInboundDmarcSettingsResponse
DescribeInboundDmarcSettingsResponse' :: Maybe Bool -> Int -> DescribeInboundDmarcSettingsResponse
-- | Create a value of DescribeInboundDmarcSettingsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:enforced:DescribeInboundDmarcSettingsResponse',
-- describeInboundDmarcSettingsResponse_enforced - Lists the
-- enforcement setting of the applied policy.
--
-- $sel:httpStatus:DescribeInboundDmarcSettingsResponse',
-- describeInboundDmarcSettingsResponse_httpStatus - The
-- response's http status code.
newDescribeInboundDmarcSettingsResponse :: Int -> DescribeInboundDmarcSettingsResponse
-- | See: newDescribeMailboxExportJob smart constructor.
data DescribeMailboxExportJob
DescribeMailboxExportJob' :: Text -> Text -> DescribeMailboxExportJob
-- | Create a value of DescribeMailboxExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeMailboxExportJob, describeMailboxExportJob_jobId
-- - The mailbox export job ID.
--
-- DescribeMailboxExportJob,
-- describeMailboxExportJob_organizationId - The organization ID.
newDescribeMailboxExportJob :: Text -> Text -> DescribeMailboxExportJob
-- | See: newDescribeMailboxExportJobResponse smart
-- constructor.
data DescribeMailboxExportJobResponse
DescribeMailboxExportJobResponse' :: Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe MailboxExportJobState -> Int -> DescribeMailboxExportJobResponse
-- | Create a value of DescribeMailboxExportJobResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_description - The mailbox
-- export job description.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_endTime - The mailbox export
-- job end timestamp.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_entityId - The identifier of
-- the user or resource associated with the mailbox.
--
-- $sel:errorInfo:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_errorInfo - Error information
-- for failed mailbox export jobs.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_estimatedProgress - The
-- estimated progress of the mailbox export job, in percentage points.
--
-- $sel:kmsKeyArn:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_kmsKeyArn - The Amazon
-- Resource Name (ARN) of the symmetric AWS Key Management Service (AWS
-- KMS) key that encrypts the exported mailbox content.
--
-- $sel:roleArn:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_roleArn - The ARN of the AWS
-- Identity and Access Management (IAM) role that grants write permission
-- to the Amazon Simple Storage Service (Amazon S3) bucket.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_s3BucketName - The name of the
-- S3 bucket.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_s3Path - The path to the S3
-- bucket and file that the mailbox export job is exporting to.
--
-- $sel:s3Prefix:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_s3Prefix - The S3 bucket
-- prefix.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_startTime - The mailbox export
-- job start timestamp.
--
-- DescribeMailboxExportJobResponse,
-- describeMailboxExportJobResponse_state - The state of the
-- mailbox export job.
--
-- $sel:httpStatus:DescribeMailboxExportJobResponse',
-- describeMailboxExportJobResponse_httpStatus - The response's
-- http status code.
newDescribeMailboxExportJobResponse :: Int -> DescribeMailboxExportJobResponse
-- | See: newDescribeOrganization smart constructor.
data DescribeOrganization
DescribeOrganization' :: Text -> DescribeOrganization
-- | Create a value of DescribeOrganization with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeOrganization,
-- describeOrganization_organizationId - The identifier for the
-- organization to be described.
newDescribeOrganization :: Text -> DescribeOrganization
-- | See: newDescribeOrganizationResponse smart constructor.
data DescribeOrganizationResponse
DescribeOrganizationResponse' :: Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Int -> DescribeOrganizationResponse
-- | Create a value of DescribeOrganizationResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:arn:DescribeOrganizationResponse',
-- describeOrganizationResponse_arn - The Amazon Resource Name
-- (ARN) of the organization.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_alias - The alias for an
-- organization.
--
-- $sel:completedDate:DescribeOrganizationResponse',
-- describeOrganizationResponse_completedDate - The date at which
-- the organization became usable in the WorkMail context, in UNIX epoch
-- time format.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_defaultMailDomain - The default
-- mail domain associated with the organization.
--
-- $sel:directoryId:DescribeOrganizationResponse',
-- describeOrganizationResponse_directoryId - The identifier for
-- the directory associated with an WorkMail organization.
--
-- $sel:directoryType:DescribeOrganizationResponse',
-- describeOrganizationResponse_directoryType - The type of
-- directory associated with the WorkMail organization.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_errorMessage - (Optional) The
-- error message indicating if unexpected behavior was encountered with
-- regards to the organization.
--
-- DescribeOrganization,
-- describeOrganizationResponse_organizationId - The identifier of
-- an organization.
--
-- DescribeOrganizationResponse,
-- describeOrganizationResponse_state - The state of an
-- organization.
--
-- $sel:httpStatus:DescribeOrganizationResponse',
-- describeOrganizationResponse_httpStatus - The response's http
-- status code.
newDescribeOrganizationResponse :: Int -> DescribeOrganizationResponse
-- | See: newDescribeResource smart constructor.
data DescribeResource
DescribeResource' :: Text -> Text -> DescribeResource
-- | Create a value of DescribeResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeResource, describeResource_organizationId - The
-- identifier associated with the organization for which the resource is
-- described.
--
-- DescribeResource, describeResource_resourceId - The
-- identifier of the resource to be described.
newDescribeResource :: Text -> Text -> DescribeResource
-- | See: newDescribeResourceResponse smart constructor.
data DescribeResourceResponse
DescribeResourceResponse' :: Maybe BookingOptions -> Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe ResourceType -> Int -> DescribeResourceResponse
-- | Create a value of DescribeResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bookingOptions:DescribeResourceResponse',
-- describeResourceResponse_bookingOptions - The booking options
-- for the described resource.
--
-- DescribeResourceResponse,
-- describeResourceResponse_disabledDate - The date and time when
-- a resource was disabled from WorkMail, in UNIX epoch time format.
--
-- DescribeResourceResponse, describeResourceResponse_email
-- - The email of the described resource.
--
-- DescribeResourceResponse,
-- describeResourceResponse_enabledDate - The date and time when a
-- resource was enabled for WorkMail, in UNIX epoch time format.
--
-- DescribeResourceResponse, describeResourceResponse_name
-- - The name of the described resource.
--
-- DescribeResource, describeResourceResponse_resourceId -
-- The identifier of the described resource.
--
-- DescribeResourceResponse, describeResourceResponse_state
-- - The state of the resource: enabled (registered to WorkMail),
-- disabled (deregistered or never registered to WorkMail), or deleted.
--
-- DescribeResourceResponse, describeResourceResponse_type
-- - The type of the described resource.
--
-- $sel:httpStatus:DescribeResourceResponse',
-- describeResourceResponse_httpStatus - The response's http
-- status code.
newDescribeResourceResponse :: Int -> DescribeResourceResponse
-- | See: newDescribeUser smart constructor.
data DescribeUser
DescribeUser' :: Text -> Text -> DescribeUser
-- | Create a value of DescribeUser with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeUser, describeUser_organizationId - The
-- identifier for the organization under which the user exists.
--
-- DescribeUser, describeUser_userId - The identifier for
-- the user to be described.
newDescribeUser :: Text -> Text -> DescribeUser
-- | See: newDescribeUserResponse smart constructor.
data DescribeUserResponse
DescribeUserResponse' :: Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe EntityState -> Maybe Text -> Maybe UserRole -> Int -> DescribeUserResponse
-- | Create a value of DescribeUserResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeUserResponse, describeUserResponse_disabledDate
-- - The date and time at which the user was disabled for WorkMail usage,
-- in UNIX epoch time format.
--
-- DescribeUserResponse, describeUserResponse_displayName -
-- The display name of the user.
--
-- DescribeUserResponse, describeUserResponse_email - The
-- email of the user.
--
-- DescribeUserResponse, describeUserResponse_enabledDate -
-- The date and time at which the user was enabled for WorkMailusage, in
-- UNIX epoch time format.
--
-- DescribeUserResponse, describeUserResponse_name - The
-- name for the user.
--
-- DescribeUserResponse, describeUserResponse_state - The
-- state of a user: enabled (registered to WorkMail) or disabled
-- (deregistered or never registered to WorkMail).
--
-- DescribeUser, describeUserResponse_userId - The
-- identifier for the described user.
--
-- DescribeUserResponse, describeUserResponse_userRole - In
-- certain cases, other entities are modeled as users. If
-- interoperability is enabled, resources are imported into WorkMail as
-- users. Because different WorkMail organizations rely on different
-- directory types, administrators can distinguish between an
-- unregistered user (account is disabled and has a user role) and the
-- directory administrators. The values are USER, RESOURCE, and
-- SYSTEM_USER.
--
-- $sel:httpStatus:DescribeUserResponse',
-- describeUserResponse_httpStatus - The response's http status
-- code.
newDescribeUserResponse :: Int -> DescribeUserResponse
-- | See: newDisassociateDelegateFromResource smart
-- constructor.
data DisassociateDelegateFromResource
DisassociateDelegateFromResource' :: Text -> Text -> Text -> DisassociateDelegateFromResource
-- | Create a value of DisassociateDelegateFromResource with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DisassociateDelegateFromResource,
-- disassociateDelegateFromResource_organizationId - The
-- identifier for the organization under which the resource exists.
--
-- $sel:resourceId:DisassociateDelegateFromResource',
-- disassociateDelegateFromResource_resourceId - The identifier of
-- the resource from which delegates' set members are removed.
--
-- DisassociateDelegateFromResource,
-- disassociateDelegateFromResource_entityId - The identifier for
-- the member (user, group) to be removed from the resource's delegates.
newDisassociateDelegateFromResource :: Text -> Text -> Text -> DisassociateDelegateFromResource
-- | See: newDisassociateDelegateFromResourceResponse smart
-- constructor.
data DisassociateDelegateFromResourceResponse
DisassociateDelegateFromResourceResponse' :: Int -> DisassociateDelegateFromResourceResponse
-- | Create a value of DisassociateDelegateFromResourceResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DisassociateDelegateFromResourceResponse',
-- disassociateDelegateFromResourceResponse_httpStatus - The
-- response's http status code.
newDisassociateDelegateFromResourceResponse :: Int -> DisassociateDelegateFromResourceResponse
-- | See: newDisassociateMemberFromGroup smart constructor.
data DisassociateMemberFromGroup
DisassociateMemberFromGroup' :: Text -> Text -> Text -> DisassociateMemberFromGroup
-- | Create a value of DisassociateMemberFromGroup with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DisassociateMemberFromGroup,
-- disassociateMemberFromGroup_organizationId - The identifier for
-- the organization under which the group exists.
--
-- $sel:groupId:DisassociateMemberFromGroup',
-- disassociateMemberFromGroup_groupId - The identifier for the
-- group from which members are removed.
--
-- $sel:memberId:DisassociateMemberFromGroup',
-- disassociateMemberFromGroup_memberId - The identifier for the
-- member to be removed to the group.
newDisassociateMemberFromGroup :: Text -> Text -> Text -> DisassociateMemberFromGroup
-- | See: newDisassociateMemberFromGroupResponse smart
-- constructor.
data DisassociateMemberFromGroupResponse
DisassociateMemberFromGroupResponse' :: Int -> DisassociateMemberFromGroupResponse
-- | Create a value of DisassociateMemberFromGroupResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DisassociateMemberFromGroupResponse',
-- disassociateMemberFromGroupResponse_httpStatus - The response's
-- http status code.
newDisassociateMemberFromGroupResponse :: Int -> DisassociateMemberFromGroupResponse
-- | See: newGetAccessControlEffect smart constructor.
data GetAccessControlEffect
GetAccessControlEffect' :: Maybe Text -> Maybe Text -> Text -> Text -> Text -> GetAccessControlEffect
-- | Create a value of GetAccessControlEffect with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetAccessControlEffect,
-- getAccessControlEffect_impersonationRoleId - The impersonation
-- role ID.
--
-- GetAccessControlEffect, getAccessControlEffect_userId -
-- The user ID.
--
-- GetAccessControlEffect,
-- getAccessControlEffect_organizationId - The identifier for the
-- organization.
--
-- $sel:ipAddress:GetAccessControlEffect',
-- getAccessControlEffect_ipAddress - The IPv4 address.
--
-- GetAccessControlEffect, getAccessControlEffect_action -
-- The access protocol action. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
newGetAccessControlEffect :: Text -> Text -> Text -> GetAccessControlEffect
-- | See: newGetAccessControlEffectResponse smart
-- constructor.
data GetAccessControlEffectResponse
GetAccessControlEffectResponse' :: Maybe AccessControlRuleEffect -> Maybe [Text] -> Int -> GetAccessControlEffectResponse
-- | Create a value of GetAccessControlEffectResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetAccessControlEffectResponse,
-- getAccessControlEffectResponse_effect - The rule effect.
--
-- $sel:matchedRules:GetAccessControlEffectResponse',
-- getAccessControlEffectResponse_matchedRules - The rules that
-- match the given parameters, resulting in an effect.
--
-- $sel:httpStatus:GetAccessControlEffectResponse',
-- getAccessControlEffectResponse_httpStatus - The response's http
-- status code.
newGetAccessControlEffectResponse :: Int -> GetAccessControlEffectResponse
-- | See: newGetDefaultRetentionPolicy smart constructor.
data GetDefaultRetentionPolicy
GetDefaultRetentionPolicy' :: Text -> GetDefaultRetentionPolicy
-- | Create a value of GetDefaultRetentionPolicy with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetDefaultRetentionPolicy,
-- getDefaultRetentionPolicy_organizationId - The organization ID.
newGetDefaultRetentionPolicy :: Text -> GetDefaultRetentionPolicy
-- | See: newGetDefaultRetentionPolicyResponse smart
-- constructor.
data GetDefaultRetentionPolicyResponse
GetDefaultRetentionPolicyResponse' :: Maybe Text -> Maybe [FolderConfiguration] -> Maybe Text -> Maybe Text -> Int -> GetDefaultRetentionPolicyResponse
-- | Create a value of GetDefaultRetentionPolicyResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetDefaultRetentionPolicyResponse,
-- getDefaultRetentionPolicyResponse_description - The retention
-- policy description.
--
-- $sel:folderConfigurations:GetDefaultRetentionPolicyResponse',
-- getDefaultRetentionPolicyResponse_folderConfigurations - The
-- retention policy folder configurations.
--
-- GetDefaultRetentionPolicyResponse,
-- getDefaultRetentionPolicyResponse_id - The retention policy ID.
--
-- GetDefaultRetentionPolicyResponse,
-- getDefaultRetentionPolicyResponse_name - The retention policy
-- name.
--
-- $sel:httpStatus:GetDefaultRetentionPolicyResponse',
-- getDefaultRetentionPolicyResponse_httpStatus - The response's
-- http status code.
newGetDefaultRetentionPolicyResponse :: Int -> GetDefaultRetentionPolicyResponse
-- | See: newGetImpersonationRole smart constructor.
data GetImpersonationRole
GetImpersonationRole' :: Text -> Text -> GetImpersonationRole
-- | Create a value of GetImpersonationRole with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRole,
-- getImpersonationRole_organizationId - The WorkMail organization
-- from which to retrieve the impersonation role.
--
-- GetImpersonationRole,
-- getImpersonationRole_impersonationRoleId - The impersonation
-- role ID to retrieve.
newGetImpersonationRole :: Text -> Text -> GetImpersonationRole
-- | See: newGetImpersonationRoleResponse smart constructor.
data GetImpersonationRoleResponse
GetImpersonationRoleResponse' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe [ImpersonationRule] -> Maybe ImpersonationRoleType -> Int -> GetImpersonationRoleResponse
-- | Create a value of GetImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_dateCreated - The date when the
-- impersonation role was created.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_dateModified - The date when the
-- impersonation role was last modified.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_description - The impersonation
-- role description.
--
-- GetImpersonationRole,
-- getImpersonationRoleResponse_impersonationRoleId - The
-- impersonation role ID.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_name - The impersonation role
-- name.
--
-- $sel:rules:GetImpersonationRoleResponse',
-- getImpersonationRoleResponse_rules - The list of rules for the
-- given impersonation role.
--
-- GetImpersonationRoleResponse,
-- getImpersonationRoleResponse_type - The impersonation role
-- type.
--
-- $sel:httpStatus:GetImpersonationRoleResponse',
-- getImpersonationRoleResponse_httpStatus - The response's http
-- status code.
newGetImpersonationRoleResponse :: Int -> GetImpersonationRoleResponse
-- | See: newGetImpersonationRoleEffect smart constructor.
data GetImpersonationRoleEffect
GetImpersonationRoleEffect' :: Text -> Text -> Text -> GetImpersonationRoleEffect
-- | Create a value of GetImpersonationRoleEffect with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRoleEffect,
-- getImpersonationRoleEffect_organizationId - The WorkMail
-- organization where the impersonation role is defined.
--
-- GetImpersonationRoleEffect,
-- getImpersonationRoleEffect_impersonationRoleId - The
-- impersonation role ID to test.
--
-- $sel:targetUser:GetImpersonationRoleEffect',
-- getImpersonationRoleEffect_targetUser - The WorkMail
-- organization user chosen to test the impersonation role. The following
-- identity formats are available:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
newGetImpersonationRoleEffect :: Text -> Text -> Text -> GetImpersonationRoleEffect
-- | See: newGetImpersonationRoleEffectResponse smart
-- constructor.
data GetImpersonationRoleEffectResponse
GetImpersonationRoleEffectResponse' :: Maybe AccessEffect -> Maybe [ImpersonationMatchedRule] -> Maybe ImpersonationRoleType -> Int -> GetImpersonationRoleEffectResponse
-- | Create a value of GetImpersonationRoleEffectResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetImpersonationRoleEffectResponse,
-- getImpersonationRoleEffectResponse_effect - Effect of the
-- impersonation role on the target user based on its rules. Available
-- effects are ALLOW or DENY.
--
-- $sel:matchedRules:GetImpersonationRoleEffectResponse',
-- getImpersonationRoleEffectResponse_matchedRules - A list of the
-- rules that match the input and produce the configured effect.
--
-- GetImpersonationRoleEffectResponse,
-- getImpersonationRoleEffectResponse_type - The impersonation
-- role type.
--
-- $sel:httpStatus:GetImpersonationRoleEffectResponse',
-- getImpersonationRoleEffectResponse_httpStatus - The response's
-- http status code.
newGetImpersonationRoleEffectResponse :: Int -> GetImpersonationRoleEffectResponse
-- | See: newGetMailDomain smart constructor.
data GetMailDomain
GetMailDomain' :: Text -> Text -> GetMailDomain
-- | Create a value of GetMailDomain with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMailDomain, getMailDomain_organizationId - The
-- WorkMail organization for which the domain is retrieved.
--
-- GetMailDomain, getMailDomain_domainName - The domain
-- from which you want to retrieve details.
newGetMailDomain :: Text -> Text -> GetMailDomain
-- | See: newGetMailDomainResponse smart constructor.
data GetMailDomainResponse
GetMailDomainResponse' :: Maybe DnsRecordVerificationStatus -> Maybe Bool -> Maybe Bool -> Maybe DnsRecordVerificationStatus -> Maybe [DnsRecord] -> Int -> GetMailDomainResponse
-- | Create a value of GetMailDomainResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dkimVerificationStatus:GetMailDomainResponse',
-- getMailDomainResponse_dkimVerificationStatus - Indicates the
-- status of a DKIM verification.
--
-- $sel:isDefault:GetMailDomainResponse',
-- getMailDomainResponse_isDefault - Specifies whether the domain
-- is the default domain for your organization.
--
-- $sel:isTestDomain:GetMailDomainResponse',
-- getMailDomainResponse_isTestDomain - Specifies whether the
-- domain is a test domain provided by WorkMail, or a custom domain.
--
-- $sel:ownershipVerificationStatus:GetMailDomainResponse',
-- getMailDomainResponse_ownershipVerificationStatus - Indicates
-- the status of the domain ownership verification.
--
-- $sel:records:GetMailDomainResponse',
-- getMailDomainResponse_records - A list of the DNS records that
-- WorkMail recommends adding in your DNS provider for the best user
-- experience. The records configure your domain with DMARC, SPF, DKIM,
-- and direct incoming email traffic to SES. See admin guide for more
-- details.
--
-- $sel:httpStatus:GetMailDomainResponse',
-- getMailDomainResponse_httpStatus - The response's http status
-- code.
newGetMailDomainResponse :: Int -> GetMailDomainResponse
-- | See: newGetMailboxDetails smart constructor.
data GetMailboxDetails
GetMailboxDetails' :: Text -> Text -> GetMailboxDetails
-- | Create a value of GetMailboxDetails with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMailboxDetails, getMailboxDetails_organizationId -
-- The identifier for the organization that contains the user whose
-- mailbox details are being requested.
--
-- GetMailboxDetails, getMailboxDetails_userId - The
-- identifier for the user whose mailbox details are being requested.
newGetMailboxDetails :: Text -> Text -> GetMailboxDetails
-- | See: newGetMailboxDetailsResponse smart constructor.
data GetMailboxDetailsResponse
GetMailboxDetailsResponse' :: Maybe Natural -> Maybe Double -> Int -> GetMailboxDetailsResponse
-- | Create a value of GetMailboxDetailsResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:mailboxQuota:GetMailboxDetailsResponse',
-- getMailboxDetailsResponse_mailboxQuota - The maximum allowed
-- mailbox size, in MB, for the specified user.
--
-- $sel:mailboxSize:GetMailboxDetailsResponse',
-- getMailboxDetailsResponse_mailboxSize - The current mailbox
-- size, in MB, for the specified user.
--
-- $sel:httpStatus:GetMailboxDetailsResponse',
-- getMailboxDetailsResponse_httpStatus - The response's http
-- status code.
newGetMailboxDetailsResponse :: Int -> GetMailboxDetailsResponse
-- | See: newGetMobileDeviceAccessEffect smart constructor.
data GetMobileDeviceAccessEffect
GetMobileDeviceAccessEffect' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Text -> GetMobileDeviceAccessEffect
-- | Create a value of GetMobileDeviceAccessEffect with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:deviceModel:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceModel - Device model the
-- simulated user will report.
--
-- $sel:deviceOperatingSystem:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceOperatingSystem - Device
-- operating system the simulated user will report.
--
-- $sel:deviceType:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceType - Device type the
-- simulated user will report.
--
-- $sel:deviceUserAgent:GetMobileDeviceAccessEffect',
-- getMobileDeviceAccessEffect_deviceUserAgent - Device user agent
-- the simulated user will report.
--
-- GetMobileDeviceAccessEffect,
-- getMobileDeviceAccessEffect_organizationId - The WorkMail
-- organization to simulate the access effect for.
newGetMobileDeviceAccessEffect :: Text -> GetMobileDeviceAccessEffect
-- | See: newGetMobileDeviceAccessEffectResponse smart
-- constructor.
data GetMobileDeviceAccessEffectResponse
GetMobileDeviceAccessEffectResponse' :: Maybe MobileDeviceAccessRuleEffect -> Maybe [MobileDeviceAccessMatchedRule] -> Int -> GetMobileDeviceAccessEffectResponse
-- | Create a value of GetMobileDeviceAccessEffectResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMobileDeviceAccessEffectResponse,
-- getMobileDeviceAccessEffectResponse_effect - The effect of the
-- simulated access, ALLOW or DENY, after evaluating
-- mobile device access rules in the WorkMail organization for the
-- simulated user parameters.
--
-- $sel:matchedRules:GetMobileDeviceAccessEffectResponse',
-- getMobileDeviceAccessEffectResponse_matchedRules - A list of
-- the rules which matched the simulated user input and produced the
-- effect.
--
-- $sel:httpStatus:GetMobileDeviceAccessEffectResponse',
-- getMobileDeviceAccessEffectResponse_httpStatus - The response's
-- http status code.
newGetMobileDeviceAccessEffectResponse :: Int -> GetMobileDeviceAccessEffectResponse
-- | See: newGetMobileDeviceAccessOverride smart constructor.
data GetMobileDeviceAccessOverride
GetMobileDeviceAccessOverride' :: Text -> Text -> Text -> GetMobileDeviceAccessOverride
-- | Create a value of GetMobileDeviceAccessOverride with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverride_organizationId - The WorkMail
-- organization to which you want to apply the override.
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverride_userId - Identifies the WorkMail
-- user for the override. Accepts the following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverride_deviceId - The mobile device to
-- which the override applies. DeviceId is case insensitive.
newGetMobileDeviceAccessOverride :: Text -> Text -> Text -> GetMobileDeviceAccessOverride
-- | See: newGetMobileDeviceAccessOverrideResponse smart
-- constructor.
data GetMobileDeviceAccessOverrideResponse
GetMobileDeviceAccessOverrideResponse' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> Int -> GetMobileDeviceAccessOverrideResponse
-- | Create a value of GetMobileDeviceAccessOverrideResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_dateCreated - The date
-- the override was first created.
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_dateModified - The date
-- the description was last modified.
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_description - A
-- description of the override.
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverrideResponse_deviceId - The device to
-- which the access override applies.
--
-- GetMobileDeviceAccessOverrideResponse,
-- getMobileDeviceAccessOverrideResponse_effect - The effect of
-- the override, ALLOW or DENY.
--
-- GetMobileDeviceAccessOverride,
-- getMobileDeviceAccessOverrideResponse_userId - The WorkMail
-- user to which the access override applies.
--
-- $sel:httpStatus:GetMobileDeviceAccessOverrideResponse',
-- getMobileDeviceAccessOverrideResponse_httpStatus - The
-- response's http status code.
newGetMobileDeviceAccessOverrideResponse :: Int -> GetMobileDeviceAccessOverrideResponse
-- | See: newListAccessControlRules smart constructor.
data ListAccessControlRules
ListAccessControlRules' :: Text -> ListAccessControlRules
-- | Create a value of ListAccessControlRules with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListAccessControlRules,
-- listAccessControlRules_organizationId - The identifier for the
-- organization.
newListAccessControlRules :: Text -> ListAccessControlRules
-- | See: newListAccessControlRulesResponse smart
-- constructor.
data ListAccessControlRulesResponse
ListAccessControlRulesResponse' :: Maybe [AccessControlRule] -> Int -> ListAccessControlRulesResponse
-- | Create a value of ListAccessControlRulesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:rules:ListAccessControlRulesResponse',
-- listAccessControlRulesResponse_rules - The access control
-- rules.
--
-- $sel:httpStatus:ListAccessControlRulesResponse',
-- listAccessControlRulesResponse_httpStatus - The response's http
-- status code.
newListAccessControlRulesResponse :: Int -> ListAccessControlRulesResponse
-- | See: newListAliases smart constructor.
data ListAliases
ListAliases' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListAliases
-- | Create a value of ListAliases with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListAliases', listAliases_maxResults -
-- The maximum number of results to return in a single call.
--
-- ListAliases, listAliases_nextToken - The token to use to
-- retrieve the next page of results. The first call does not contain any
-- tokens.
--
-- ListAliases, listAliases_organizationId - The identifier
-- for the organization under which the entity exists.
--
-- ListAliases, listAliases_entityId - The identifier for
-- the entity for which to list the aliases.
newListAliases :: Text -> Text -> ListAliases
-- | See: newListAliasesResponse smart constructor.
data ListAliasesResponse
ListAliasesResponse' :: Maybe [Text] -> Maybe Text -> Int -> ListAliasesResponse
-- | Create a value of ListAliasesResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:aliases:ListAliasesResponse',
-- listAliasesResponse_aliases - The entity's paginated aliases.
--
-- ListAliases, listAliasesResponse_nextToken - The token
-- to use to retrieve the next page of results. The value is "null" when
-- there are no more results to return.
--
-- $sel:httpStatus:ListAliasesResponse',
-- listAliasesResponse_httpStatus - The response's http status
-- code.
newListAliasesResponse :: Int -> ListAliasesResponse
-- | See: newListAvailabilityConfigurations smart
-- constructor.
data ListAvailabilityConfigurations
ListAvailabilityConfigurations' :: Maybe Natural -> Maybe Text -> Text -> ListAvailabilityConfigurations
-- | Create a value of ListAvailabilityConfigurations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListAvailabilityConfigurations',
-- listAvailabilityConfigurations_maxResults - The maximum number
-- of results to return in a single call.
--
-- ListAvailabilityConfigurations,
-- listAvailabilityConfigurations_nextToken - The token to use to
-- retrieve the next page of results. The first call does not require a
-- token.
--
-- ListAvailabilityConfigurations,
-- listAvailabilityConfigurations_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration's will
-- be listed.
newListAvailabilityConfigurations :: Text -> ListAvailabilityConfigurations
-- | See: newListAvailabilityConfigurationsResponse smart
-- constructor.
data ListAvailabilityConfigurationsResponse
ListAvailabilityConfigurationsResponse' :: Maybe [AvailabilityConfiguration] -> Maybe Text -> Int -> ListAvailabilityConfigurationsResponse
-- | Create a value of ListAvailabilityConfigurationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:availabilityConfigurations:ListAvailabilityConfigurationsResponse',
-- listAvailabilityConfigurationsResponse_availabilityConfigurations
-- - The list of AvailabilityConfiguration's that exist for the
-- specified WorkMail organization.
--
-- ListAvailabilityConfigurations,
-- listAvailabilityConfigurationsResponse_nextToken - The token to
-- use to retrieve the next page of results. The value is null
-- when there are no further results to return.
--
-- $sel:httpStatus:ListAvailabilityConfigurationsResponse',
-- listAvailabilityConfigurationsResponse_httpStatus - The
-- response's http status code.
newListAvailabilityConfigurationsResponse :: Int -> ListAvailabilityConfigurationsResponse
-- | See: newListGroupMembers smart constructor.
data ListGroupMembers
ListGroupMembers' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListGroupMembers
-- | Create a value of ListGroupMembers with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListGroupMembers',
-- listGroupMembers_maxResults - The maximum number of results to
-- return in a single call.
--
-- ListGroupMembers, listGroupMembers_nextToken - The token
-- to use to retrieve the next page of results. The first call does not
-- contain any tokens.
--
-- ListGroupMembers, listGroupMembers_organizationId - The
-- identifier for the organization under which the group exists.
--
-- $sel:groupId:ListGroupMembers', listGroupMembers_groupId
-- - The identifier for the group to which the members (users or groups)
-- are associated.
newListGroupMembers :: Text -> Text -> ListGroupMembers
-- | See: newListGroupMembersResponse smart constructor.
data ListGroupMembersResponse
ListGroupMembersResponse' :: Maybe [Member] -> Maybe Text -> Int -> ListGroupMembersResponse
-- | Create a value of ListGroupMembersResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:members:ListGroupMembersResponse',
-- listGroupMembersResponse_members - The members associated to
-- the group.
--
-- ListGroupMembers, listGroupMembersResponse_nextToken -
-- The token to use to retrieve the next page of results. The first call
-- does not contain any tokens.
--
-- $sel:httpStatus:ListGroupMembersResponse',
-- listGroupMembersResponse_httpStatus - The response's http
-- status code.
newListGroupMembersResponse :: Int -> ListGroupMembersResponse
-- | See: newListGroups smart constructor.
data ListGroups
ListGroups' :: Maybe Natural -> Maybe Text -> Text -> ListGroups
-- | Create a value of ListGroups with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListGroups', listGroups_maxResults - The
-- maximum number of results to return in a single call.
--
-- ListGroups, listGroups_nextToken - The token to use to
-- retrieve the next page of results. The first call does not contain any
-- tokens.
--
-- ListGroups, listGroups_organizationId - The identifier
-- for the organization under which the groups exist.
newListGroups :: Text -> ListGroups
-- | See: newListGroupsResponse smart constructor.
data ListGroupsResponse
ListGroupsResponse' :: Maybe [Group] -> Maybe Text -> Int -> ListGroupsResponse
-- | Create a value of ListGroupsResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:groups:ListGroupsResponse',
-- listGroupsResponse_groups - The overview of groups for an
-- organization.
--
-- ListGroups, listGroupsResponse_nextToken - The token to
-- use to retrieve the next page of results. The value is "null" when
-- there are no more results to return.
--
-- $sel:httpStatus:ListGroupsResponse',
-- listGroupsResponse_httpStatus - The response's http status
-- code.
newListGroupsResponse :: Int -> ListGroupsResponse
-- | See: newListImpersonationRoles smart constructor.
data ListImpersonationRoles
ListImpersonationRoles' :: Maybe Natural -> Maybe Text -> Text -> ListImpersonationRoles
-- | Create a value of ListImpersonationRoles with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListImpersonationRoles',
-- listImpersonationRoles_maxResults - The maximum number of
-- results returned in a single call.
--
-- ListImpersonationRoles, listImpersonationRoles_nextToken
-- - The token used to retrieve the next page of results. The first call
-- doesn't require a token.
--
-- ListImpersonationRoles,
-- listImpersonationRoles_organizationId - The WorkMail
-- organization to which the listed impersonation roles belong.
newListImpersonationRoles :: Text -> ListImpersonationRoles
-- | See: newListImpersonationRolesResponse smart
-- constructor.
data ListImpersonationRolesResponse
ListImpersonationRolesResponse' :: Maybe Text -> Maybe [ImpersonationRole] -> Int -> ListImpersonationRolesResponse
-- | Create a value of ListImpersonationRolesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListImpersonationRoles,
-- listImpersonationRolesResponse_nextToken - The token to
-- retrieve the next page of results. The value is null when
-- there are no results to return.
--
-- $sel:roles:ListImpersonationRolesResponse',
-- listImpersonationRolesResponse_roles - The list of
-- impersonation roles under the given WorkMail organization.
--
-- $sel:httpStatus:ListImpersonationRolesResponse',
-- listImpersonationRolesResponse_httpStatus - The response's http
-- status code.
newListImpersonationRolesResponse :: Int -> ListImpersonationRolesResponse
-- | See: newListMailDomains smart constructor.
data ListMailDomains
ListMailDomains' :: Maybe Natural -> Maybe Text -> Text -> ListMailDomains
-- | Create a value of ListMailDomains with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListMailDomains',
-- listMailDomains_maxResults - The maximum number of results to
-- return in a single call.
--
-- ListMailDomains, listMailDomains_nextToken - The token
-- to use to retrieve the next page of results. The first call does not
-- require a token.
--
-- ListMailDomains, listMailDomains_organizationId - The
-- WorkMail organization for which to list domains.
newListMailDomains :: Text -> ListMailDomains
-- | See: newListMailDomainsResponse smart constructor.
data ListMailDomainsResponse
ListMailDomainsResponse' :: Maybe [MailDomainSummary] -> Maybe Text -> Int -> ListMailDomainsResponse
-- | Create a value of ListMailDomainsResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:mailDomains:ListMailDomainsResponse',
-- listMailDomainsResponse_mailDomains - The list of mail domain
-- summaries, specifying domains that exist in the specified WorkMail
-- organization, along with the information about whether the domain is
-- or isn't the default.
--
-- ListMailDomains, listMailDomainsResponse_nextToken - The
-- token to use to retrieve the next page of results. The value becomes
-- null when there are no more results to return.
--
-- $sel:httpStatus:ListMailDomainsResponse',
-- listMailDomainsResponse_httpStatus - The response's http status
-- code.
newListMailDomainsResponse :: Int -> ListMailDomainsResponse
-- | See: newListMailboxExportJobs smart constructor.
data ListMailboxExportJobs
ListMailboxExportJobs' :: Maybe Natural -> Maybe Text -> Text -> ListMailboxExportJobs
-- | Create a value of ListMailboxExportJobs with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListMailboxExportJobs',
-- listMailboxExportJobs_maxResults - The maximum number of
-- results to return in a single call.
--
-- ListMailboxExportJobs, listMailboxExportJobs_nextToken -
-- The token to use to retrieve the next page of results.
--
-- ListMailboxExportJobs,
-- listMailboxExportJobs_organizationId - The organization ID.
newListMailboxExportJobs :: Text -> ListMailboxExportJobs
-- | See: newListMailboxExportJobsResponse smart constructor.
data ListMailboxExportJobsResponse
ListMailboxExportJobsResponse' :: Maybe [MailboxExportJob] -> Maybe Text -> Int -> ListMailboxExportJobsResponse
-- | Create a value of ListMailboxExportJobsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:jobs:ListMailboxExportJobsResponse',
-- listMailboxExportJobsResponse_jobs - The mailbox export job
-- details.
--
-- ListMailboxExportJobs,
-- listMailboxExportJobsResponse_nextToken - The token to use to
-- retrieve the next page of results.
--
-- $sel:httpStatus:ListMailboxExportJobsResponse',
-- listMailboxExportJobsResponse_httpStatus - The response's http
-- status code.
newListMailboxExportJobsResponse :: Int -> ListMailboxExportJobsResponse
-- | See: newListMailboxPermissions smart constructor.
data ListMailboxPermissions
ListMailboxPermissions' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListMailboxPermissions
-- | Create a value of ListMailboxPermissions with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListMailboxPermissions',
-- listMailboxPermissions_maxResults - The maximum number of
-- results to return in a single call.
--
-- ListMailboxPermissions, listMailboxPermissions_nextToken
-- - The token to use to retrieve the next page of results. The first
-- call does not contain any tokens.
--
-- ListMailboxPermissions,
-- listMailboxPermissions_organizationId - The identifier of the
-- organization under which the user, group, or resource exists.
--
-- ListMailboxPermissions, listMailboxPermissions_entityId
-- - The identifier of the user, group, or resource for which to list
-- mailbox permissions.
newListMailboxPermissions :: Text -> Text -> ListMailboxPermissions
-- | See: newListMailboxPermissionsResponse smart
-- constructor.
data ListMailboxPermissionsResponse
ListMailboxPermissionsResponse' :: Maybe Text -> Maybe [Permission] -> Int -> ListMailboxPermissionsResponse
-- | Create a value of ListMailboxPermissionsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMailboxPermissions,
-- listMailboxPermissionsResponse_nextToken - The token to use to
-- retrieve the next page of results. The value is "null" when there are
-- no more results to return.
--
-- $sel:permissions:ListMailboxPermissionsResponse',
-- listMailboxPermissionsResponse_permissions - One page of the
-- user, group, or resource mailbox permissions.
--
-- $sel:httpStatus:ListMailboxPermissionsResponse',
-- listMailboxPermissionsResponse_httpStatus - The response's http
-- status code.
newListMailboxPermissionsResponse :: Int -> ListMailboxPermissionsResponse
-- | See: newListMobileDeviceAccessOverrides smart
-- constructor.
data ListMobileDeviceAccessOverrides
ListMobileDeviceAccessOverrides' :: Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Text -> ListMobileDeviceAccessOverrides
-- | Create a value of ListMobileDeviceAccessOverrides with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_deviceId - The mobile device to
-- which the access override applies.
--
-- $sel:maxResults:ListMobileDeviceAccessOverrides',
-- listMobileDeviceAccessOverrides_maxResults - The maximum number
-- of results to return in a single call.
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_nextToken - The token to use to
-- retrieve the next page of results. The first call does not require a
-- token.
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_userId - The WorkMail user
-- under which you list the mobile device access overrides. Accepts the
-- following types of user identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverrides_organizationId - The WorkMail
-- organization under which to list mobile device access overrides.
newListMobileDeviceAccessOverrides :: Text -> ListMobileDeviceAccessOverrides
-- | See: newListMobileDeviceAccessOverridesResponse smart
-- constructor.
data ListMobileDeviceAccessOverridesResponse
ListMobileDeviceAccessOverridesResponse' :: Maybe Text -> Maybe [MobileDeviceAccessOverride] -> Int -> ListMobileDeviceAccessOverridesResponse
-- | Create a value of ListMobileDeviceAccessOverridesResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMobileDeviceAccessOverrides,
-- listMobileDeviceAccessOverridesResponse_nextToken - The token
-- to use to retrieve the next page of results. The value is “null” when
-- there are no more results to return.
--
-- $sel:overrides:ListMobileDeviceAccessOverridesResponse',
-- listMobileDeviceAccessOverridesResponse_overrides - The list of
-- mobile device access overrides that exist for the specified WorkMail
-- organization and user.
--
-- $sel:httpStatus:ListMobileDeviceAccessOverridesResponse',
-- listMobileDeviceAccessOverridesResponse_httpStatus - The
-- response's http status code.
newListMobileDeviceAccessOverridesResponse :: Int -> ListMobileDeviceAccessOverridesResponse
-- | See: newListMobileDeviceAccessRules smart constructor.
data ListMobileDeviceAccessRules
ListMobileDeviceAccessRules' :: Text -> ListMobileDeviceAccessRules
-- | Create a value of ListMobileDeviceAccessRules with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListMobileDeviceAccessRules,
-- listMobileDeviceAccessRules_organizationId - The WorkMail
-- organization for which to list the rules.
newListMobileDeviceAccessRules :: Text -> ListMobileDeviceAccessRules
-- | See: newListMobileDeviceAccessRulesResponse smart
-- constructor.
data ListMobileDeviceAccessRulesResponse
ListMobileDeviceAccessRulesResponse' :: Maybe [MobileDeviceAccessRule] -> Int -> ListMobileDeviceAccessRulesResponse
-- | Create a value of ListMobileDeviceAccessRulesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:rules:ListMobileDeviceAccessRulesResponse',
-- listMobileDeviceAccessRulesResponse_rules - The list of mobile
-- device access rules that exist under the specified WorkMail
-- organization.
--
-- $sel:httpStatus:ListMobileDeviceAccessRulesResponse',
-- listMobileDeviceAccessRulesResponse_httpStatus - The response's
-- http status code.
newListMobileDeviceAccessRulesResponse :: Int -> ListMobileDeviceAccessRulesResponse
-- | See: newListOrganizations smart constructor.
data ListOrganizations
ListOrganizations' :: Maybe Natural -> Maybe Text -> ListOrganizations
-- | Create a value of ListOrganizations with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListOrganizations',
-- listOrganizations_maxResults - The maximum number of results to
-- return in a single call.
--
-- ListOrganizations, listOrganizations_nextToken - The
-- token to use to retrieve the next page of results. The first call does
-- not contain any tokens.
newListOrganizations :: ListOrganizations
-- | See: newListOrganizationsResponse smart constructor.
data ListOrganizationsResponse
ListOrganizationsResponse' :: Maybe Text -> Maybe [OrganizationSummary] -> Int -> ListOrganizationsResponse
-- | Create a value of ListOrganizationsResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListOrganizations, listOrganizationsResponse_nextToken -
-- The token to use to retrieve the next page of results. The value is
-- "null" when there are no more results to return.
--
-- $sel:organizationSummaries:ListOrganizationsResponse',
-- listOrganizationsResponse_organizationSummaries - The overview
-- of owned organizations presented as a list of organization summaries.
--
-- $sel:httpStatus:ListOrganizationsResponse',
-- listOrganizationsResponse_httpStatus - The response's http
-- status code.
newListOrganizationsResponse :: Int -> ListOrganizationsResponse
-- | See: newListResourceDelegates smart constructor.
data ListResourceDelegates
ListResourceDelegates' :: Maybe Natural -> Maybe Text -> Text -> Text -> ListResourceDelegates
-- | Create a value of ListResourceDelegates with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListResourceDelegates',
-- listResourceDelegates_maxResults - The number of maximum
-- results in a page.
--
-- ListResourceDelegates, listResourceDelegates_nextToken -
-- The token used to paginate through the delegates associated with a
-- resource.
--
-- ListResourceDelegates,
-- listResourceDelegates_organizationId - The identifier for the
-- organization that contains the resource for which delegates are
-- listed.
--
-- $sel:resourceId:ListResourceDelegates',
-- listResourceDelegates_resourceId - The identifier for the
-- resource whose delegates are listed.
newListResourceDelegates :: Text -> Text -> ListResourceDelegates
-- | See: newListResourceDelegatesResponse smart constructor.
data ListResourceDelegatesResponse
ListResourceDelegatesResponse' :: Maybe [Delegate] -> Maybe Text -> Int -> ListResourceDelegatesResponse
-- | Create a value of ListResourceDelegatesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:delegates:ListResourceDelegatesResponse',
-- listResourceDelegatesResponse_delegates - One page of the
-- resource's delegates.
--
-- ListResourceDelegates,
-- listResourceDelegatesResponse_nextToken - The token used to
-- paginate through the delegates associated with a resource. While
-- results are still available, it has an associated value. When the last
-- page is reached, the token is empty.
--
-- $sel:httpStatus:ListResourceDelegatesResponse',
-- listResourceDelegatesResponse_httpStatus - The response's http
-- status code.
newListResourceDelegatesResponse :: Int -> ListResourceDelegatesResponse
-- | See: newListResources smart constructor.
data ListResources
ListResources' :: Maybe Natural -> Maybe Text -> Text -> ListResources
-- | Create a value of ListResources with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListResources', listResources_maxResults
-- - The maximum number of results to return in a single call.
--
-- ListResources, listResources_nextToken - The token to
-- use to retrieve the next page of results. The first call does not
-- contain any tokens.
--
-- ListResources, listResources_organizationId - The
-- identifier for the organization under which the resources exist.
newListResources :: Text -> ListResources
-- | See: newListResourcesResponse smart constructor.
data ListResourcesResponse
ListResourcesResponse' :: Maybe Text -> Maybe [Resource] -> Int -> ListResourcesResponse
-- | Create a value of ListResourcesResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListResources, listResourcesResponse_nextToken - The
-- token used to paginate through all the organization's resources. While
-- results are still available, it has an associated value. When the last
-- page is reached, the token is empty.
--
-- $sel:resources:ListResourcesResponse',
-- listResourcesResponse_resources - One page of the
-- organization's resource representation.
--
-- $sel:httpStatus:ListResourcesResponse',
-- listResourcesResponse_httpStatus - The response's http status
-- code.
newListResourcesResponse :: Int -> ListResourcesResponse
-- | See: newListTagsForResource smart constructor.
data ListTagsForResource
ListTagsForResource' :: Text -> ListTagsForResource
-- | Create a value of ListTagsForResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceARN:ListTagsForResource',
-- listTagsForResource_resourceARN - The resource ARN.
newListTagsForResource :: Text -> ListTagsForResource
-- | See: newListTagsForResourceResponse smart constructor.
data ListTagsForResourceResponse
ListTagsForResourceResponse' :: Maybe [Tag] -> Int -> ListTagsForResourceResponse
-- | Create a value of ListTagsForResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:tags:ListTagsForResourceResponse',
-- listTagsForResourceResponse_tags - A list of tag key-value
-- pairs.
--
-- $sel:httpStatus:ListTagsForResourceResponse',
-- listTagsForResourceResponse_httpStatus - The response's http
-- status code.
newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
-- | See: newListUsers smart constructor.
data ListUsers
ListUsers' :: Maybe Natural -> Maybe Text -> Text -> ListUsers
-- | Create a value of ListUsers with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:ListUsers', listUsers_maxResults - The
-- maximum number of results to return in a single call.
--
-- ListUsers, listUsers_nextToken - The token to use to
-- retrieve the next page of results. The first call does not contain any
-- tokens.
--
-- ListUsers, listUsers_organizationId - The identifier for
-- the organization under which the users exist.
newListUsers :: Text -> ListUsers
-- | See: newListUsersResponse smart constructor.
data ListUsersResponse
ListUsersResponse' :: Maybe Text -> Maybe [User] -> Int -> ListUsersResponse
-- | Create a value of ListUsersResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ListUsers, listUsersResponse_nextToken - The token to
-- use to retrieve the next page of results. This value is `null` when
-- there are no more results to return.
--
-- $sel:users:ListUsersResponse', listUsersResponse_users -
-- The overview of users for an organization.
--
-- $sel:httpStatus:ListUsersResponse',
-- listUsersResponse_httpStatus - The response's http status code.
newListUsersResponse :: Int -> ListUsersResponse
-- | See: newPutAccessControlRule smart constructor.
data PutAccessControlRule
PutAccessControlRule' :: Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Text -> AccessControlRuleEffect -> Text -> Text -> PutAccessControlRule
-- | Create a value of PutAccessControlRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutAccessControlRule, putAccessControlRule_actions -
-- Access protocol actions to include in the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
--
-- PutAccessControlRule,
-- putAccessControlRule_impersonationRoleIds - Impersonation role
-- IDs to include in the rule.
--
-- PutAccessControlRule, putAccessControlRule_ipRanges -
-- IPv4 CIDR ranges to include in the rule.
--
-- PutAccessControlRule, putAccessControlRule_notActions -
-- Access protocol actions to exclude from the rule. Valid values include
-- ActiveSync, AutoDiscover, EWS,
-- IMAP, SMTP, WindowsOutlook, and
-- WebMail.
--
-- PutAccessControlRule,
-- putAccessControlRule_notImpersonationRoleIds - Impersonation
-- role IDs to exclude from the rule.
--
-- PutAccessControlRule, putAccessControlRule_notIpRanges -
-- IPv4 CIDR ranges to exclude from the rule.
--
-- PutAccessControlRule, putAccessControlRule_notUserIds -
-- User IDs to exclude from the rule.
--
-- PutAccessControlRule, putAccessControlRule_userIds -
-- User IDs to include in the rule.
--
-- PutAccessControlRule, putAccessControlRule_name - The
-- rule name.
--
-- PutAccessControlRule, putAccessControlRule_effect - The
-- rule effect.
--
-- PutAccessControlRule, putAccessControlRule_description -
-- The rule description.
--
-- PutAccessControlRule,
-- putAccessControlRule_organizationId - The identifier of the
-- organization.
newPutAccessControlRule :: Text -> AccessControlRuleEffect -> Text -> Text -> PutAccessControlRule
-- | See: newPutAccessControlRuleResponse smart constructor.
data PutAccessControlRuleResponse
PutAccessControlRuleResponse' :: Int -> PutAccessControlRuleResponse
-- | Create a value of PutAccessControlRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutAccessControlRuleResponse',
-- putAccessControlRuleResponse_httpStatus - The response's http
-- status code.
newPutAccessControlRuleResponse :: Int -> PutAccessControlRuleResponse
-- | See: newPutEmailMonitoringConfiguration smart
-- constructor.
data PutEmailMonitoringConfiguration
PutEmailMonitoringConfiguration' :: Text -> Text -> Text -> PutEmailMonitoringConfiguration
-- | Create a value of PutEmailMonitoringConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutEmailMonitoringConfiguration,
-- putEmailMonitoringConfiguration_organizationId - The ID of the
-- organization for which the email monitoring configuration is set.
--
-- $sel:roleArn:PutEmailMonitoringConfiguration',
-- putEmailMonitoringConfiguration_roleArn - The Amazon Resource
-- Name (ARN) of the IAM Role associated with the email monitoring
-- configuration.
--
-- $sel:logGroupArn:PutEmailMonitoringConfiguration',
-- putEmailMonitoringConfiguration_logGroupArn - The Amazon
-- Resource Name (ARN) of the CloudWatch Log group associated with the
-- email monitoring configuration.
newPutEmailMonitoringConfiguration :: Text -> Text -> Text -> PutEmailMonitoringConfiguration
-- | See: newPutEmailMonitoringConfigurationResponse smart
-- constructor.
data PutEmailMonitoringConfigurationResponse
PutEmailMonitoringConfigurationResponse' :: Int -> PutEmailMonitoringConfigurationResponse
-- | Create a value of PutEmailMonitoringConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutEmailMonitoringConfigurationResponse',
-- putEmailMonitoringConfigurationResponse_httpStatus - The
-- response's http status code.
newPutEmailMonitoringConfigurationResponse :: Int -> PutEmailMonitoringConfigurationResponse
-- | See: newPutInboundDmarcSettings smart constructor.
data PutInboundDmarcSettings
PutInboundDmarcSettings' :: Text -> Bool -> PutInboundDmarcSettings
-- | Create a value of PutInboundDmarcSettings with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutInboundDmarcSettings,
-- putInboundDmarcSettings_organizationId - The ID of the
-- organization that you are applying the DMARC policy to.
--
-- $sel:enforced:PutInboundDmarcSettings',
-- putInboundDmarcSettings_enforced - Enforces or suspends a
-- policy after it's applied.
newPutInboundDmarcSettings :: Text -> Bool -> PutInboundDmarcSettings
-- | See: newPutInboundDmarcSettingsResponse smart
-- constructor.
data PutInboundDmarcSettingsResponse
PutInboundDmarcSettingsResponse' :: Int -> PutInboundDmarcSettingsResponse
-- | Create a value of PutInboundDmarcSettingsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutInboundDmarcSettingsResponse',
-- putInboundDmarcSettingsResponse_httpStatus - The response's
-- http status code.
newPutInboundDmarcSettingsResponse :: Int -> PutInboundDmarcSettingsResponse
-- | See: newPutMailboxPermissions smart constructor.
data PutMailboxPermissions
PutMailboxPermissions' :: Text -> Text -> Text -> [PermissionType] -> PutMailboxPermissions
-- | Create a value of PutMailboxPermissions with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutMailboxPermissions,
-- putMailboxPermissions_organizationId - The identifier of the
-- organization under which the user, group, or resource exists.
--
-- PutMailboxPermissions, putMailboxPermissions_entityId -
-- The identifier of the user, group, or resource for which to update
-- mailbox permissions.
--
-- PutMailboxPermissions, putMailboxPermissions_granteeId -
-- The identifier of the user, group, or resource to which to grant the
-- permissions.
--
-- PutMailboxPermissions,
-- putMailboxPermissions_permissionValues - The permissions
-- granted to the grantee. SEND_AS allows the grantee to send email as
-- the owner of the mailbox (the grantee is not mentioned on these
-- emails). SEND_ON_BEHALF allows the grantee to send email on behalf of
-- the owner of the mailbox (the grantee is not mentioned as the physical
-- sender of these emails). FULL_ACCESS allows the grantee full access to
-- the mailbox, irrespective of other folder-level permissions set on the
-- mailbox.
newPutMailboxPermissions :: Text -> Text -> Text -> PutMailboxPermissions
-- | See: newPutMailboxPermissionsResponse smart constructor.
data PutMailboxPermissionsResponse
PutMailboxPermissionsResponse' :: Int -> PutMailboxPermissionsResponse
-- | Create a value of PutMailboxPermissionsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutMailboxPermissionsResponse',
-- putMailboxPermissionsResponse_httpStatus - The response's http
-- status code.
newPutMailboxPermissionsResponse :: Int -> PutMailboxPermissionsResponse
-- | See: newPutMobileDeviceAccessOverride smart constructor.
data PutMobileDeviceAccessOverride
PutMobileDeviceAccessOverride' :: Maybe Text -> Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> PutMobileDeviceAccessOverride
-- | Create a value of PutMobileDeviceAccessOverride with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_description - A description of
-- the override.
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_organizationId - Identifies the
-- WorkMail organization for which you create the override.
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_userId - The WorkMail user for
-- which you create the override. Accepts the following types of user
-- identities:
--
--
-- - User ID: 12345678-1234-1234-1234-123456789012 or
-- S-1-1-12-1234567890-123456789-123456789-1234
-- - Email address: user@domain.tld
-- - User name: user
--
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_deviceId - The mobile device for
-- which you create the override. DeviceId is case insensitive.
--
-- PutMobileDeviceAccessOverride,
-- putMobileDeviceAccessOverride_effect - The effect of the
-- override, ALLOW or DENY.
newPutMobileDeviceAccessOverride :: Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> PutMobileDeviceAccessOverride
-- | See: newPutMobileDeviceAccessOverrideResponse smart
-- constructor.
data PutMobileDeviceAccessOverrideResponse
PutMobileDeviceAccessOverrideResponse' :: Int -> PutMobileDeviceAccessOverrideResponse
-- | Create a value of PutMobileDeviceAccessOverrideResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutMobileDeviceAccessOverrideResponse',
-- putMobileDeviceAccessOverrideResponse_httpStatus - The
-- response's http status code.
newPutMobileDeviceAccessOverrideResponse :: Int -> PutMobileDeviceAccessOverrideResponse
-- | See: newPutRetentionPolicy smart constructor.
data PutRetentionPolicy
PutRetentionPolicy' :: Maybe (Sensitive Text) -> Maybe Text -> Text -> Text -> [FolderConfiguration] -> PutRetentionPolicy
-- | Create a value of PutRetentionPolicy with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutRetentionPolicy, putRetentionPolicy_description - The
-- retention policy description.
--
-- PutRetentionPolicy, putRetentionPolicy_id - The
-- retention policy ID.
--
-- PutRetentionPolicy, putRetentionPolicy_organizationId -
-- The organization ID.
--
-- PutRetentionPolicy, putRetentionPolicy_name - The
-- retention policy name.
--
-- $sel:folderConfigurations:PutRetentionPolicy',
-- putRetentionPolicy_folderConfigurations - The retention policy
-- folder configurations.
newPutRetentionPolicy :: Text -> Text -> PutRetentionPolicy
-- | See: newPutRetentionPolicyResponse smart constructor.
data PutRetentionPolicyResponse
PutRetentionPolicyResponse' :: Int -> PutRetentionPolicyResponse
-- | Create a value of PutRetentionPolicyResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutRetentionPolicyResponse',
-- putRetentionPolicyResponse_httpStatus - The response's http
-- status code.
newPutRetentionPolicyResponse :: Int -> PutRetentionPolicyResponse
-- | See: newRegisterMailDomain smart constructor.
data RegisterMailDomain
RegisterMailDomain' :: Maybe Text -> Text -> Text -> RegisterMailDomain
-- | Create a value of RegisterMailDomain with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:clientToken:RegisterMailDomain',
-- registerMailDomain_clientToken - Idempotency token used when
-- retrying requests.
--
-- RegisterMailDomain, registerMailDomain_organizationId -
-- The WorkMail organization under which you're creating the domain.
--
-- RegisterMailDomain, registerMailDomain_domainName - The
-- name of the mail domain to create in WorkMail and SES.
newRegisterMailDomain :: Text -> Text -> RegisterMailDomain
-- | See: newRegisterMailDomainResponse smart constructor.
data RegisterMailDomainResponse
RegisterMailDomainResponse' :: Int -> RegisterMailDomainResponse
-- | Create a value of RegisterMailDomainResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:RegisterMailDomainResponse',
-- registerMailDomainResponse_httpStatus - The response's http
-- status code.
newRegisterMailDomainResponse :: Int -> RegisterMailDomainResponse
-- | See: newRegisterToWorkMail smart constructor.
data RegisterToWorkMail
RegisterToWorkMail' :: Text -> Text -> Text -> RegisterToWorkMail
-- | Create a value of RegisterToWorkMail with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- RegisterToWorkMail, registerToWorkMail_organizationId -
-- The identifier for the organization under which the user, group, or
-- resource exists.
--
-- RegisterToWorkMail, registerToWorkMail_entityId - The
-- identifier for the user, group, or resource to be updated.
--
-- RegisterToWorkMail, registerToWorkMail_email - The email
-- for the user, group, or resource to be updated.
newRegisterToWorkMail :: Text -> Text -> Text -> RegisterToWorkMail
-- | See: newRegisterToWorkMailResponse smart constructor.
data RegisterToWorkMailResponse
RegisterToWorkMailResponse' :: Int -> RegisterToWorkMailResponse
-- | Create a value of RegisterToWorkMailResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:RegisterToWorkMailResponse',
-- registerToWorkMailResponse_httpStatus - The response's http
-- status code.
newRegisterToWorkMailResponse :: Int -> RegisterToWorkMailResponse
-- | See: newResetPassword smart constructor.
data ResetPassword
ResetPassword' :: Text -> Text -> Sensitive Text -> ResetPassword
-- | Create a value of ResetPassword with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ResetPassword, resetPassword_organizationId - The
-- identifier of the organization that contains the user for which the
-- password is reset.
--
-- ResetPassword, resetPassword_userId - The identifier of
-- the user for whom the password is reset.
--
-- $sel:password:ResetPassword', resetPassword_password -
-- The new password for the user.
newResetPassword :: Text -> Text -> Text -> ResetPassword
-- | See: newResetPasswordResponse smart constructor.
data ResetPasswordResponse
ResetPasswordResponse' :: Int -> ResetPasswordResponse
-- | Create a value of ResetPasswordResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:ResetPasswordResponse',
-- resetPasswordResponse_httpStatus - The response's http status
-- code.
newResetPasswordResponse :: Int -> ResetPasswordResponse
-- | See: newStartMailboxExportJob smart constructor.
data StartMailboxExportJob
StartMailboxExportJob' :: Maybe Text -> Text -> Text -> Text -> Text -> Text -> Text -> Text -> StartMailboxExportJob
-- | Create a value of StartMailboxExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- StartMailboxExportJob, startMailboxExportJob_description
-- - The mailbox export job description.
--
-- $sel:clientToken:StartMailboxExportJob',
-- startMailboxExportJob_clientToken - The idempotency token for
-- the client request.
--
-- StartMailboxExportJob,
-- startMailboxExportJob_organizationId - The identifier
-- associated with the organization.
--
-- StartMailboxExportJob, startMailboxExportJob_entityId -
-- The identifier of the user or resource associated with the mailbox.
--
-- $sel:roleArn:StartMailboxExportJob',
-- startMailboxExportJob_roleArn - The ARN of the AWS Identity and
-- Access Management (IAM) role that grants write permission to the S3
-- bucket.
--
-- $sel:kmsKeyArn:StartMailboxExportJob',
-- startMailboxExportJob_kmsKeyArn - The Amazon Resource Name
-- (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that
-- encrypts the exported mailbox content.
--
-- StartMailboxExportJob,
-- startMailboxExportJob_s3BucketName - The name of the S3 bucket.
--
-- $sel:s3Prefix:StartMailboxExportJob',
-- startMailboxExportJob_s3Prefix - The S3 bucket prefix.
newStartMailboxExportJob :: Text -> Text -> Text -> Text -> Text -> Text -> Text -> StartMailboxExportJob
-- | See: newStartMailboxExportJobResponse smart constructor.
data StartMailboxExportJobResponse
StartMailboxExportJobResponse' :: Maybe Text -> Int -> StartMailboxExportJobResponse
-- | Create a value of StartMailboxExportJobResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- StartMailboxExportJobResponse,
-- startMailboxExportJobResponse_jobId - The job ID.
--
-- $sel:httpStatus:StartMailboxExportJobResponse',
-- startMailboxExportJobResponse_httpStatus - The response's http
-- status code.
newStartMailboxExportJobResponse :: Int -> StartMailboxExportJobResponse
-- | See: newTagResource smart constructor.
data TagResource
TagResource' :: Text -> [Tag] -> TagResource
-- | Create a value of TagResource with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceARN:TagResource', tagResource_resourceARN -
-- The resource ARN.
--
-- $sel:tags:TagResource', tagResource_tags - The tag
-- key-value pairs.
newTagResource :: Text -> TagResource
-- | See: newTagResourceResponse smart constructor.
data TagResourceResponse
TagResourceResponse' :: Int -> TagResourceResponse
-- | Create a value of TagResourceResponse with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:TagResourceResponse',
-- tagResourceResponse_httpStatus - The response's http status
-- code.
newTagResourceResponse :: Int -> TagResourceResponse
-- | See: newTestAvailabilityConfiguration smart constructor.
data TestAvailabilityConfiguration
TestAvailabilityConfiguration' :: Maybe Text -> Maybe EwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Text -> TestAvailabilityConfiguration
-- | Create a value of TestAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_domainName - The domain to which
-- the provider applies. If this field is provided, a stored availability
-- provider associated to this domain name will be tested.
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_ewsProvider - Undocumented
-- member.
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_lambdaProvider - Undocumented
-- member.
--
-- TestAvailabilityConfiguration,
-- testAvailabilityConfiguration_organizationId - The WorkMail
-- organization where the availability provider will be tested.
newTestAvailabilityConfiguration :: Text -> TestAvailabilityConfiguration
-- | See: newTestAvailabilityConfigurationResponse smart
-- constructor.
data TestAvailabilityConfigurationResponse
TestAvailabilityConfigurationResponse' :: Maybe Text -> Maybe Bool -> Int -> TestAvailabilityConfigurationResponse
-- | Create a value of TestAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:failureReason:TestAvailabilityConfigurationResponse',
-- testAvailabilityConfigurationResponse_failureReason - String
-- containing the reason for a failed test if TestPassed is
-- false.
--
-- $sel:testPassed:TestAvailabilityConfigurationResponse',
-- testAvailabilityConfigurationResponse_testPassed - Boolean
-- indicating whether the test passed or failed.
--
-- $sel:httpStatus:TestAvailabilityConfigurationResponse',
-- testAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newTestAvailabilityConfigurationResponse :: Int -> TestAvailabilityConfigurationResponse
-- | See: newUntagResource smart constructor.
data UntagResource
UntagResource' :: Text -> [Text] -> UntagResource
-- | Create a value of UntagResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceARN:UntagResource',
-- untagResource_resourceARN - The resource ARN.
--
-- $sel:tagKeys:UntagResource', untagResource_tagKeys - The
-- tag keys.
newUntagResource :: Text -> UntagResource
-- | See: newUntagResourceResponse smart constructor.
data UntagResourceResponse
UntagResourceResponse' :: Int -> UntagResourceResponse
-- | Create a value of UntagResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UntagResourceResponse',
-- untagResourceResponse_httpStatus - The response's http status
-- code.
newUntagResourceResponse :: Int -> UntagResourceResponse
-- | See: newUpdateAvailabilityConfiguration smart
-- constructor.
data UpdateAvailabilityConfiguration
UpdateAvailabilityConfiguration' :: Maybe EwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Text -> Text -> UpdateAvailabilityConfiguration
-- | Create a value of UpdateAvailabilityConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_ewsProvider - The EWS
-- availability provider definition. The request must contain exactly one
-- provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_lambdaProvider - The Lambda
-- availability provider definition. The request must contain exactly one
-- provider definition, either EwsProvider or
-- LambdaProvider. The previously stored provider will be
-- overridden by the one provided.
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_organizationId - The WorkMail
-- organization for which the AvailabilityConfiguration will be
-- updated.
--
-- UpdateAvailabilityConfiguration,
-- updateAvailabilityConfiguration_domainName - The domain to
-- which the provider applies the availability configuration.
newUpdateAvailabilityConfiguration :: Text -> Text -> UpdateAvailabilityConfiguration
-- | See: newUpdateAvailabilityConfigurationResponse smart
-- constructor.
data UpdateAvailabilityConfigurationResponse
UpdateAvailabilityConfigurationResponse' :: Int -> UpdateAvailabilityConfigurationResponse
-- | Create a value of UpdateAvailabilityConfigurationResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateAvailabilityConfigurationResponse',
-- updateAvailabilityConfigurationResponse_httpStatus - The
-- response's http status code.
newUpdateAvailabilityConfigurationResponse :: Int -> UpdateAvailabilityConfigurationResponse
-- | See: newUpdateDefaultMailDomain smart constructor.
data UpdateDefaultMailDomain
UpdateDefaultMailDomain' :: Text -> Text -> UpdateDefaultMailDomain
-- | Create a value of UpdateDefaultMailDomain with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateDefaultMailDomain,
-- updateDefaultMailDomain_organizationId - The WorkMail
-- organization for which to list domains.
--
-- UpdateDefaultMailDomain,
-- updateDefaultMailDomain_domainName - The domain name that will
-- become the default domain.
newUpdateDefaultMailDomain :: Text -> Text -> UpdateDefaultMailDomain
-- | See: newUpdateDefaultMailDomainResponse smart
-- constructor.
data UpdateDefaultMailDomainResponse
UpdateDefaultMailDomainResponse' :: Int -> UpdateDefaultMailDomainResponse
-- | Create a value of UpdateDefaultMailDomainResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateDefaultMailDomainResponse',
-- updateDefaultMailDomainResponse_httpStatus - The response's
-- http status code.
newUpdateDefaultMailDomainResponse :: Int -> UpdateDefaultMailDomainResponse
-- | See: newUpdateImpersonationRole smart constructor.
data UpdateImpersonationRole
UpdateImpersonationRole' :: Maybe Text -> Text -> Text -> Text -> ImpersonationRoleType -> [ImpersonationRule] -> UpdateImpersonationRole
-- | Create a value of UpdateImpersonationRole with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateImpersonationRole,
-- updateImpersonationRole_description - The updated impersonation
-- role description.
--
-- UpdateImpersonationRole,
-- updateImpersonationRole_organizationId - The WorkMail
-- organization that contains the impersonation role to update.
--
-- UpdateImpersonationRole,
-- updateImpersonationRole_impersonationRoleId - The ID of the
-- impersonation role to update.
--
-- UpdateImpersonationRole, updateImpersonationRole_name -
-- The updated impersonation role name.
--
-- UpdateImpersonationRole, updateImpersonationRole_type -
-- The updated impersonation role type.
--
-- $sel:rules:UpdateImpersonationRole',
-- updateImpersonationRole_rules - The updated list of rules.
newUpdateImpersonationRole :: Text -> Text -> Text -> ImpersonationRoleType -> UpdateImpersonationRole
-- | See: newUpdateImpersonationRoleResponse smart
-- constructor.
data UpdateImpersonationRoleResponse
UpdateImpersonationRoleResponse' :: Int -> UpdateImpersonationRoleResponse
-- | Create a value of UpdateImpersonationRoleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateImpersonationRoleResponse',
-- updateImpersonationRoleResponse_httpStatus - The response's
-- http status code.
newUpdateImpersonationRoleResponse :: Int -> UpdateImpersonationRoleResponse
-- | See: newUpdateMailboxQuota smart constructor.
data UpdateMailboxQuota
UpdateMailboxQuota' :: Text -> Text -> Natural -> UpdateMailboxQuota
-- | Create a value of UpdateMailboxQuota with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateMailboxQuota, updateMailboxQuota_organizationId -
-- The identifier for the organization that contains the user for whom to
-- update the mailbox quota.
--
-- UpdateMailboxQuota, updateMailboxQuota_userId - The
-- identifer for the user for whom to update the mailbox quota.
--
-- $sel:mailboxQuota:UpdateMailboxQuota',
-- updateMailboxQuota_mailboxQuota - The updated mailbox quota, in
-- MB, for the specified user.
newUpdateMailboxQuota :: Text -> Text -> Natural -> UpdateMailboxQuota
-- | See: newUpdateMailboxQuotaResponse smart constructor.
data UpdateMailboxQuotaResponse
UpdateMailboxQuotaResponse' :: Int -> UpdateMailboxQuotaResponse
-- | Create a value of UpdateMailboxQuotaResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateMailboxQuotaResponse',
-- updateMailboxQuotaResponse_httpStatus - The response's http
-- status code.
newUpdateMailboxQuotaResponse :: Int -> UpdateMailboxQuotaResponse
-- | See: newUpdateMobileDeviceAccessRule smart constructor.
data UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule' :: Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> UpdateMobileDeviceAccessRule
-- | Create a value of UpdateMobileDeviceAccessRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_description - The updated rule
-- description.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceModels - Device models that
-- the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceOperatingSystems - Device
-- operating systems that the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceTypes - Device types that
-- the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_deviceUserAgents - User agents
-- that the updated rule will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceModels - Device models
-- that the updated rule will not match. All other device models
-- will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceOperatingSystems - Device
-- operating systems that the updated rule will not match. All
-- other device operating systems will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceTypes - Device types that
-- the updated rule will not match. All other device types will
-- match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_notDeviceUserAgents - User agents
-- that the updated rule will not match. All other user agents
-- will match.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_organizationId - The WorkMail
-- organization under which the rule will be updated.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_mobileDeviceAccessRuleId - The
-- identifier of the rule to be updated.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_name - The updated rule name.
--
-- UpdateMobileDeviceAccessRule,
-- updateMobileDeviceAccessRule_effect - The effect of the rule
-- when it matches. Allowed values are ALLOW or DENY.
newUpdateMobileDeviceAccessRule :: Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> UpdateMobileDeviceAccessRule
-- | See: newUpdateMobileDeviceAccessRuleResponse smart
-- constructor.
data UpdateMobileDeviceAccessRuleResponse
UpdateMobileDeviceAccessRuleResponse' :: Int -> UpdateMobileDeviceAccessRuleResponse
-- | Create a value of UpdateMobileDeviceAccessRuleResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateMobileDeviceAccessRuleResponse',
-- updateMobileDeviceAccessRuleResponse_httpStatus - The
-- response's http status code.
newUpdateMobileDeviceAccessRuleResponse :: Int -> UpdateMobileDeviceAccessRuleResponse
-- | See: newUpdatePrimaryEmailAddress smart constructor.
data UpdatePrimaryEmailAddress
UpdatePrimaryEmailAddress' :: Text -> Text -> Text -> UpdatePrimaryEmailAddress
-- | Create a value of UpdatePrimaryEmailAddress with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdatePrimaryEmailAddress,
-- updatePrimaryEmailAddress_organizationId - The organization
-- that contains the user, group, or resource to update.
--
-- UpdatePrimaryEmailAddress,
-- updatePrimaryEmailAddress_entityId - The user, group, or
-- resource to update.
--
-- UpdatePrimaryEmailAddress,
-- updatePrimaryEmailAddress_email - The value of the email to be
-- updated as primary.
newUpdatePrimaryEmailAddress :: Text -> Text -> Text -> UpdatePrimaryEmailAddress
-- | See: newUpdatePrimaryEmailAddressResponse smart
-- constructor.
data UpdatePrimaryEmailAddressResponse
UpdatePrimaryEmailAddressResponse' :: Int -> UpdatePrimaryEmailAddressResponse
-- | Create a value of UpdatePrimaryEmailAddressResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdatePrimaryEmailAddressResponse',
-- updatePrimaryEmailAddressResponse_httpStatus - The response's
-- http status code.
newUpdatePrimaryEmailAddressResponse :: Int -> UpdatePrimaryEmailAddressResponse
-- | See: newUpdateResource smart constructor.
data UpdateResource
UpdateResource' :: Maybe BookingOptions -> Maybe Text -> Text -> Text -> UpdateResource
-- | Create a value of UpdateResource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bookingOptions:UpdateResource',
-- updateResource_bookingOptions - The resource's booking options
-- to be updated.
--
-- UpdateResource, updateResource_name - The name of the
-- resource to be updated.
--
-- UpdateResource, updateResource_organizationId - The
-- identifier associated with the organization for which the resource is
-- updated.
--
-- $sel:resourceId:UpdateResource',
-- updateResource_resourceId - The identifier of the resource to
-- be updated.
newUpdateResource :: Text -> Text -> UpdateResource
-- | See: newUpdateResourceResponse smart constructor.
data UpdateResourceResponse
UpdateResourceResponse' :: Int -> UpdateResourceResponse
-- | Create a value of UpdateResourceResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:UpdateResourceResponse',
-- updateResourceResponse_httpStatus - The response's http status
-- code.
newUpdateResourceResponse :: Int -> UpdateResourceResponse
newtype AccessControlRuleEffect
AccessControlRuleEffect' :: Text -> AccessControlRuleEffect
[fromAccessControlRuleEffect] :: AccessControlRuleEffect -> Text
pattern AccessControlRuleEffect_ALLOW :: AccessControlRuleEffect
pattern AccessControlRuleEffect_DENY :: AccessControlRuleEffect
newtype AccessEffect
AccessEffect' :: Text -> AccessEffect
[fromAccessEffect] :: AccessEffect -> Text
pattern AccessEffect_ALLOW :: AccessEffect
pattern AccessEffect_DENY :: AccessEffect
newtype AvailabilityProviderType
AvailabilityProviderType' :: Text -> AvailabilityProviderType
[fromAvailabilityProviderType] :: AvailabilityProviderType -> Text
pattern AvailabilityProviderType_EWS :: AvailabilityProviderType
pattern AvailabilityProviderType_LAMBDA :: AvailabilityProviderType
newtype DnsRecordVerificationStatus
DnsRecordVerificationStatus' :: Text -> DnsRecordVerificationStatus
[fromDnsRecordVerificationStatus] :: DnsRecordVerificationStatus -> Text
pattern DnsRecordVerificationStatus_FAILED :: DnsRecordVerificationStatus
pattern DnsRecordVerificationStatus_PENDING :: DnsRecordVerificationStatus
pattern DnsRecordVerificationStatus_VERIFIED :: DnsRecordVerificationStatus
newtype EntityState
EntityState' :: Text -> EntityState
[fromEntityState] :: EntityState -> Text
pattern EntityState_DELETED :: EntityState
pattern EntityState_DISABLED :: EntityState
pattern EntityState_ENABLED :: EntityState
newtype FolderName
FolderName' :: Text -> FolderName
[fromFolderName] :: FolderName -> Text
pattern FolderName_DELETED_ITEMS :: FolderName
pattern FolderName_DRAFTS :: FolderName
pattern FolderName_INBOX :: FolderName
pattern FolderName_JUNK_EMAIL :: FolderName
pattern FolderName_SENT_ITEMS :: FolderName
newtype ImpersonationRoleType
ImpersonationRoleType' :: Text -> ImpersonationRoleType
[fromImpersonationRoleType] :: ImpersonationRoleType -> Text
pattern ImpersonationRoleType_FULL_ACCESS :: ImpersonationRoleType
pattern ImpersonationRoleType_READ_ONLY :: ImpersonationRoleType
newtype MailboxExportJobState
MailboxExportJobState' :: Text -> MailboxExportJobState
[fromMailboxExportJobState] :: MailboxExportJobState -> Text
pattern MailboxExportJobState_CANCELLED :: MailboxExportJobState
pattern MailboxExportJobState_COMPLETED :: MailboxExportJobState
pattern MailboxExportJobState_FAILED :: MailboxExportJobState
pattern MailboxExportJobState_RUNNING :: MailboxExportJobState
newtype MemberType
MemberType' :: Text -> MemberType
[fromMemberType] :: MemberType -> Text
pattern MemberType_GROUP :: MemberType
pattern MemberType_USER :: MemberType
newtype MobileDeviceAccessRuleEffect
MobileDeviceAccessRuleEffect' :: Text -> MobileDeviceAccessRuleEffect
[fromMobileDeviceAccessRuleEffect] :: MobileDeviceAccessRuleEffect -> Text
pattern MobileDeviceAccessRuleEffect_ALLOW :: MobileDeviceAccessRuleEffect
pattern MobileDeviceAccessRuleEffect_DENY :: MobileDeviceAccessRuleEffect
newtype PermissionType
PermissionType' :: Text -> PermissionType
[fromPermissionType] :: PermissionType -> Text
pattern PermissionType_FULL_ACCESS :: PermissionType
pattern PermissionType_SEND_AS :: PermissionType
pattern PermissionType_SEND_ON_BEHALF :: PermissionType
newtype ResourceType
ResourceType' :: Text -> ResourceType
[fromResourceType] :: ResourceType -> Text
pattern ResourceType_EQUIPMENT :: ResourceType
pattern ResourceType_ROOM :: ResourceType
newtype RetentionAction
RetentionAction' :: Text -> RetentionAction
[fromRetentionAction] :: RetentionAction -> Text
pattern RetentionAction_DELETE :: RetentionAction
pattern RetentionAction_NONE :: RetentionAction
pattern RetentionAction_PERMANENTLY_DELETE :: RetentionAction
newtype UserRole
UserRole' :: Text -> UserRole
[fromUserRole] :: UserRole -> Text
pattern UserRole_RESOURCE :: UserRole
pattern UserRole_SYSTEM_USER :: UserRole
pattern UserRole_USER :: UserRole
-- | A rule that controls access to an WorkMail organization.
--
-- See: newAccessControlRule smart constructor.
data AccessControlRule
AccessControlRule' :: Maybe [Text] -> Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe AccessControlRuleEffect -> Maybe [Text] -> Maybe [Text] -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> Maybe [Text] -> AccessControlRule
-- | Create a value of AccessControlRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:actions:AccessControlRule',
-- accessControlRule_actions - Access protocol actions to include
-- in the rule. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
--
-- $sel:dateCreated:AccessControlRule',
-- accessControlRule_dateCreated - The date that the rule was
-- created.
--
-- $sel:dateModified:AccessControlRule',
-- accessControlRule_dateModified - The date that the rule was
-- modified.
--
-- $sel:description:AccessControlRule',
-- accessControlRule_description - The rule description.
--
-- $sel:effect:AccessControlRule', accessControlRule_effect
-- - The rule effect.
--
-- $sel:impersonationRoleIds:AccessControlRule',
-- accessControlRule_impersonationRoleIds - Impersonation role IDs
-- to include in the rule.
--
-- $sel:ipRanges:AccessControlRule',
-- accessControlRule_ipRanges - IPv4 CIDR ranges to include in the
-- rule.
--
-- $sel:name:AccessControlRule', accessControlRule_name -
-- The rule name.
--
-- $sel:notActions:AccessControlRule',
-- accessControlRule_notActions - Access protocol actions to
-- exclude from the rule. Valid values include ActiveSync,
-- AutoDiscover, EWS, IMAP, SMTP,
-- WindowsOutlook, and WebMail.
--
-- $sel:notImpersonationRoleIds:AccessControlRule',
-- accessControlRule_notImpersonationRoleIds - Impersonation role
-- IDs to exclude from the rule.
--
-- $sel:notIpRanges:AccessControlRule',
-- accessControlRule_notIpRanges - IPv4 CIDR ranges to exclude
-- from the rule.
--
-- $sel:notUserIds:AccessControlRule',
-- accessControlRule_notUserIds - User IDs to exclude from the
-- rule.
--
-- $sel:userIds:AccessControlRule',
-- accessControlRule_userIds - User IDs to include in the rule.
newAccessControlRule :: AccessControlRule
-- | List all the AvailabilityConfiguration's for the given
-- WorkMail organization.
--
-- See: newAvailabilityConfiguration smart constructor.
data AvailabilityConfiguration
AvailabilityConfiguration' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe RedactedEwsAvailabilityProvider -> Maybe LambdaAvailabilityProvider -> Maybe AvailabilityProviderType -> AvailabilityConfiguration
-- | Create a value of AvailabilityConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:AvailabilityConfiguration',
-- availabilityConfiguration_dateCreated - The date and time at
-- which the availability configuration was created.
--
-- $sel:dateModified:AvailabilityConfiguration',
-- availabilityConfiguration_dateModified - The date and time at
-- which the availability configuration was last modified.
--
-- $sel:domainName:AvailabilityConfiguration',
-- availabilityConfiguration_domainName - Displays the domain to
-- which the provider applies.
--
-- $sel:ewsProvider:AvailabilityConfiguration',
-- availabilityConfiguration_ewsProvider - If
-- ProviderType is EWS, then this field contains
-- RedactedEwsAvailabilityProvider. Otherwise, it is not
-- required.
--
-- $sel:lambdaProvider:AvailabilityConfiguration',
-- availabilityConfiguration_lambdaProvider - If ProviderType is
-- LAMBDA then this field contains
-- LambdaAvailabilityProvider. Otherwise, it is not required.
--
-- $sel:providerType:AvailabilityConfiguration',
-- availabilityConfiguration_providerType - Displays the provider
-- type that applies to this domain.
newAvailabilityConfiguration :: AvailabilityConfiguration
-- | At least one delegate must be associated to the resource to disable
-- automatic replies from the resource.
--
-- See: newBookingOptions smart constructor.
data BookingOptions
BookingOptions' :: Maybe Bool -> Maybe Bool -> Maybe Bool -> BookingOptions
-- | Create a value of BookingOptions with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:autoAcceptRequests:BookingOptions',
-- bookingOptions_autoAcceptRequests - The resource's ability to
-- automatically reply to requests. If disabled, delegates must be
-- associated to the resource.
--
-- $sel:autoDeclineConflictingRequests:BookingOptions',
-- bookingOptions_autoDeclineConflictingRequests - The resource's
-- ability to automatically decline any conflicting requests.
--
-- $sel:autoDeclineRecurringRequests:BookingOptions',
-- bookingOptions_autoDeclineRecurringRequests - The resource's
-- ability to automatically decline any recurring requests.
newBookingOptions :: BookingOptions
-- | The name of the attribute, which is one of the values defined in the
-- UserAttribute enumeration.
--
-- See: newDelegate smart constructor.
data Delegate
Delegate' :: Text -> MemberType -> Delegate
-- | Create a value of Delegate with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:id:Delegate', delegate_id - The identifier for the
-- user or group associated as the resource's delegate.
--
-- $sel:type':Delegate', delegate_type - The type of the
-- delegate: user or group.
newDelegate :: Text -> MemberType -> Delegate
-- | A DNS record uploaded to your DNS provider.
--
-- See: newDnsRecord smart constructor.
data DnsRecord
DnsRecord' :: Maybe Text -> Maybe Text -> Maybe Text -> DnsRecord
-- | Create a value of DnsRecord with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:hostname:DnsRecord', dnsRecord_hostname - The DNS
-- hostname.- For example, domain.example.com.
--
-- $sel:type':DnsRecord', dnsRecord_type - The RFC 1035
-- record type. Possible values: CNAME, A, MX.
--
-- $sel:value:DnsRecord', dnsRecord_value - The value
-- returned by the DNS for a query to that hostname and record type.
newDnsRecord :: DnsRecord
-- | The domain to associate with an WorkMail organization.
--
-- When you configure a domain hosted in Amazon Route 53 (Route 53), all
-- recommended DNS records are added to the organization when you create
-- it. For more information, see Adding a domain in the
-- WorkMail Administrator Guide.
--
-- See: newDomain smart constructor.
data Domain
Domain' :: Maybe Text -> Maybe Text -> Domain
-- | Create a value of Domain with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:domainName:Domain', domain_domainName - The fully
-- qualified domain name.
--
-- $sel:hostedZoneId:Domain', domain_hostedZoneId - The
-- hosted zone ID for a domain hosted in Route 53. Required when
-- configuring a domain hosted in Route 53.
newDomain :: Domain
-- | Describes an EWS based availability provider. This is only used as
-- input to the service.
--
-- See: newEwsAvailabilityProvider smart constructor.
data EwsAvailabilityProvider
EwsAvailabilityProvider' :: Text -> Text -> Sensitive Text -> EwsAvailabilityProvider
-- | Create a value of EwsAvailabilityProvider with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:ewsEndpoint:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsEndpoint - The endpoint of the
-- remote EWS server.
--
-- $sel:ewsUsername:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsUsername - The username used to
-- authenticate the remote EWS server.
--
-- $sel:ewsPassword:EwsAvailabilityProvider',
-- ewsAvailabilityProvider_ewsPassword - The password used to
-- authenticate the remote EWS server.
newEwsAvailabilityProvider :: Text -> Text -> Text -> EwsAvailabilityProvider
-- | The configuration applied to an organization's folders by its
-- retention policy.
--
-- See: newFolderConfiguration smart constructor.
data FolderConfiguration
FolderConfiguration' :: Maybe Natural -> FolderName -> RetentionAction -> FolderConfiguration
-- | Create a value of FolderConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:period:FolderConfiguration',
-- folderConfiguration_period - The number of days for which the
-- folder-configuration action applies.
--
-- $sel:name:FolderConfiguration', folderConfiguration_name
-- - The folder name.
--
-- $sel:action:FolderConfiguration',
-- folderConfiguration_action - The action to take on the folder
-- contents at the end of the folder configuration period.
newFolderConfiguration :: FolderName -> RetentionAction -> FolderConfiguration
-- | The representation of an WorkMail group.
--
-- See: newGroup smart constructor.
data Group
Group' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Group
-- | Create a value of Group with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Group', group_disabledDate - The date
-- indicating when the group was disabled from WorkMail use.
--
-- $sel:email:Group', group_email - The email of the group.
--
-- $sel:enabledDate:Group', group_enabledDate - The date
-- indicating when the group was enabled for WorkMail use.
--
-- $sel:id:Group', group_id - The identifier of the group.
--
-- $sel:name:Group', group_name - The name of the group.
--
-- $sel:state:Group', group_state - The state of the group,
-- which can be ENABLED, DISABLED, or DELETED.
newGroup :: Group
-- | The impersonation rule that matched the input.
--
-- See: newImpersonationMatchedRule smart constructor.
data ImpersonationMatchedRule
ImpersonationMatchedRule' :: Maybe Text -> Maybe Text -> ImpersonationMatchedRule
-- | Create a value of ImpersonationMatchedRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:impersonationRuleId:ImpersonationMatchedRule',
-- impersonationMatchedRule_impersonationRuleId - The ID of the
-- rule that matched the input
--
-- $sel:name:ImpersonationMatchedRule',
-- impersonationMatchedRule_name - The name of the rule that
-- matched the input.
newImpersonationMatchedRule :: ImpersonationMatchedRule
-- | An impersonation role for the given WorkMail organization.
--
-- See: newImpersonationRole smart constructor.
data ImpersonationRole
ImpersonationRole' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe ImpersonationRoleType -> ImpersonationRole
-- | Create a value of ImpersonationRole with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:ImpersonationRole',
-- impersonationRole_dateCreated - The date when the impersonation
-- role was created.
--
-- $sel:dateModified:ImpersonationRole',
-- impersonationRole_dateModified - The date when the
-- impersonation role was last modified.
--
-- $sel:impersonationRoleId:ImpersonationRole',
-- impersonationRole_impersonationRoleId - The identifier of the
-- impersonation role.
--
-- $sel:name:ImpersonationRole', impersonationRole_name -
-- The impersonation role name.
--
-- $sel:type':ImpersonationRole', impersonationRole_type -
-- The impersonation role type.
newImpersonationRole :: ImpersonationRole
-- | The rules for the given impersonation role.
--
-- See: newImpersonationRule smart constructor.
data ImpersonationRule
ImpersonationRule' :: Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> AccessEffect -> ImpersonationRule
-- | Create a value of ImpersonationRule with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:description:ImpersonationRule',
-- impersonationRule_description - The rule description.
--
-- $sel:name:ImpersonationRule', impersonationRule_name -
-- The rule name.
--
-- $sel:notTargetUsers:ImpersonationRule',
-- impersonationRule_notTargetUsers - A list of user IDs that
-- don't match the rule.
--
-- $sel:targetUsers:ImpersonationRule',
-- impersonationRule_targetUsers - A list of user IDs that match
-- the rule.
--
-- $sel:impersonationRuleId:ImpersonationRule',
-- impersonationRule_impersonationRuleId - The identifier of the
-- rule.
--
-- $sel:effect:ImpersonationRule', impersonationRule_effect
-- - The effect of the rule when it matches the input. Allowed effect
-- values are ALLOW or DENY.
newImpersonationRule :: Text -> AccessEffect -> ImpersonationRule
-- | Describes a Lambda based availability provider.
--
-- See: newLambdaAvailabilityProvider smart constructor.
data LambdaAvailabilityProvider
LambdaAvailabilityProvider' :: Text -> LambdaAvailabilityProvider
-- | Create a value of LambdaAvailabilityProvider with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lambdaArn:LambdaAvailabilityProvider',
-- lambdaAvailabilityProvider_lambdaArn - The Amazon Resource Name
-- (ARN) of the Lambda that acts as the availability provider.
newLambdaAvailabilityProvider :: Text -> LambdaAvailabilityProvider
-- | The data for a given domain.
--
-- See: newMailDomainSummary smart constructor.
data MailDomainSummary
MailDomainSummary' :: Maybe Bool -> Maybe Text -> MailDomainSummary
-- | Create a value of MailDomainSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:defaultDomain:MailDomainSummary',
-- mailDomainSummary_defaultDomain - Whether the domain is default
-- or not.
--
-- $sel:domainName:MailDomainSummary',
-- mailDomainSummary_domainName - The domain name.
newMailDomainSummary :: MailDomainSummary
-- | The details of a mailbox export job, including the user or resource ID
-- associated with the mailbox and the S3 bucket that the mailbox
-- contents are exported to.
--
-- See: newMailboxExportJob smart constructor.
data MailboxExportJob
MailboxExportJob' :: Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe MailboxExportJobState -> MailboxExportJob
-- | Create a value of MailboxExportJob with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:description:MailboxExportJob',
-- mailboxExportJob_description - The mailbox export job
-- description.
--
-- $sel:endTime:MailboxExportJob', mailboxExportJob_endTime
-- - The mailbox export job end timestamp.
--
-- $sel:entityId:MailboxExportJob',
-- mailboxExportJob_entityId - The identifier of the user or
-- resource associated with the mailbox.
--
-- $sel:estimatedProgress:MailboxExportJob',
-- mailboxExportJob_estimatedProgress - The estimated progress of
-- the mailbox export job, in percentage points.
--
-- $sel:jobId:MailboxExportJob', mailboxExportJob_jobId -
-- The identifier of the mailbox export job.
--
-- $sel:s3BucketName:MailboxExportJob',
-- mailboxExportJob_s3BucketName - The name of the S3 bucket.
--
-- $sel:s3Path:MailboxExportJob', mailboxExportJob_s3Path -
-- The path to the S3 bucket and file that the mailbox export job exports
-- to.
--
-- $sel:startTime:MailboxExportJob',
-- mailboxExportJob_startTime - The mailbox export job start
-- timestamp.
--
-- $sel:state:MailboxExportJob', mailboxExportJob_state -
-- The state of the mailbox export job.
newMailboxExportJob :: MailboxExportJob
-- | The representation of a user or group.
--
-- See: newMember smart constructor.
data Member
Member' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe MemberType -> Member
-- | Create a value of Member with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Member', member_disabledDate - The
-- date indicating when the member was disabled from WorkMail use.
--
-- $sel:enabledDate:Member', member_enabledDate - The date
-- indicating when the member was enabled for WorkMail use.
--
-- $sel:id:Member', member_id - The identifier of the
-- member.
--
-- $sel:name:Member', member_name - The name of the member.
--
-- $sel:state:Member', member_state - The state of the
-- member, which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:type':Member', member_type - A member can be a user
-- or group.
newMember :: Member
-- | The rule that a simulated user matches.
--
-- See: newMobileDeviceAccessMatchedRule smart constructor.
data MobileDeviceAccessMatchedRule
MobileDeviceAccessMatchedRule' :: Maybe Text -> Maybe Text -> MobileDeviceAccessMatchedRule
-- | Create a value of MobileDeviceAccessMatchedRule with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:mobileDeviceAccessRuleId:MobileDeviceAccessMatchedRule',
-- mobileDeviceAccessMatchedRule_mobileDeviceAccessRuleId -
-- Identifier of the rule that a simulated user matches.
--
-- $sel:name:MobileDeviceAccessMatchedRule',
-- mobileDeviceAccessMatchedRule_name - Name of a rule that a
-- simulated user matches.
newMobileDeviceAccessMatchedRule :: MobileDeviceAccessMatchedRule
-- | The override object.
--
-- See: newMobileDeviceAccessOverride smart constructor.
data MobileDeviceAccessOverride
MobileDeviceAccessOverride' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> MobileDeviceAccessOverride
-- | Create a value of MobileDeviceAccessOverride with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_dateCreated - The date the override
-- was first created.
--
-- $sel:dateModified:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_dateModified - The date the override
-- was last modified.
--
-- $sel:description:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_description - A description of the
-- override.
--
-- $sel:deviceId:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_deviceId - The device to which the
-- override applies.
--
-- $sel:effect:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_effect - The effect of the override,
-- ALLOW or DENY.
--
-- $sel:userId:MobileDeviceAccessOverride',
-- mobileDeviceAccessOverride_userId - The WorkMail user to which
-- the access override applies.
newMobileDeviceAccessOverride :: MobileDeviceAccessOverride
-- | A rule that controls access to mobile devices for an WorkMail group.
--
-- See: newMobileDeviceAccessRule smart constructor.
data MobileDeviceAccessRule
MobileDeviceAccessRule' :: Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe MobileDeviceAccessRuleEffect -> Maybe Text -> Maybe Text -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> MobileDeviceAccessRule
-- | Create a value of MobileDeviceAccessRule with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:dateCreated:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_dateCreated - The date and time at which
-- an access rule was created.
--
-- $sel:dateModified:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_dateModified - The date and time at
-- which an access rule was modified.
--
-- $sel:description:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_description - The description of a
-- mobile access rule.
--
-- $sel:deviceModels:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceModels - Device models that a rule
-- will match.
--
-- $sel:deviceOperatingSystems:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceOperatingSystems - Device
-- operating systems that a rule will match.
--
-- $sel:deviceTypes:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceTypes - Device types that a rule
-- will match.
--
-- $sel:deviceUserAgents:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_deviceUserAgents - Device user agents
-- that a rule will match.
--
-- $sel:effect:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_effect - The effect of the rule when it
-- matches. Allowed values are ALLOW or DENY.
--
-- $sel:mobileDeviceAccessRuleId:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_mobileDeviceAccessRuleId - The ID
-- assigned to a mobile access rule.
--
-- $sel:name:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_name - The name of a mobile access rule.
--
-- $sel:notDeviceModels:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceModels - Device models that a
-- rule will not match. All other device models will match.
--
-- $sel:notDeviceOperatingSystems:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceOperatingSystems - Device
-- operating systems that a rule will not match. All other device
-- types will match.
--
-- $sel:notDeviceTypes:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceTypes - Device types that a
-- rule will not match. All other device types will match.
--
-- $sel:notDeviceUserAgents:MobileDeviceAccessRule',
-- mobileDeviceAccessRule_notDeviceUserAgents - Device user agents
-- that a rule will not match. All other device user agents will
-- match.
newMobileDeviceAccessRule :: MobileDeviceAccessRule
-- | The representation of an organization.
--
-- See: newOrganizationSummary smart constructor.
data OrganizationSummary
OrganizationSummary' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> OrganizationSummary
-- | Create a value of OrganizationSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:alias:OrganizationSummary',
-- organizationSummary_alias - The alias associated with the
-- organization.
--
-- $sel:defaultMailDomain:OrganizationSummary',
-- organizationSummary_defaultMailDomain - The default email
-- domain associated with the organization.
--
-- $sel:errorMessage:OrganizationSummary',
-- organizationSummary_errorMessage - The error message associated
-- with the organization. It is only present if unexpected behavior has
-- occurred with regards to the organization. It provides insight or
-- solutions regarding unexpected behavior.
--
-- $sel:organizationId:OrganizationSummary',
-- organizationSummary_organizationId - The identifier associated
-- with the organization.
--
-- $sel:state:OrganizationSummary',
-- organizationSummary_state - The state associated with the
-- organization.
newOrganizationSummary :: OrganizationSummary
-- | Permission granted to a user, group, or resource to access a certain
-- aspect of another user, group, or resource mailbox.
--
-- See: newPermission smart constructor.
data Permission
Permission' :: Text -> MemberType -> [PermissionType] -> Permission
-- | Create a value of Permission with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:granteeId:Permission', permission_granteeId - The
-- identifier of the user, group, or resource to which the permissions
-- are granted.
--
-- $sel:granteeType:Permission', permission_granteeType -
-- The type of user, group, or resource referred to in GranteeId.
--
-- $sel:permissionValues:Permission',
-- permission_permissionValues - The permissions granted to the
-- grantee. SEND_AS allows the grantee to send email as the owner of the
-- mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF
-- allows the grantee to send email on behalf of the owner of the mailbox
-- (the grantee is not mentioned as the physical sender of these emails).
-- FULL_ACCESS allows the grantee full access to the mailbox,
-- irrespective of other folder-level permissions set on the mailbox.
newPermission :: Text -> MemberType -> Permission
-- | Describes an EWS based availability provider when returned from the
-- service. It does not contain the password of the endpoint.
--
-- See: newRedactedEwsAvailabilityProvider smart
-- constructor.
data RedactedEwsAvailabilityProvider
RedactedEwsAvailabilityProvider' :: Maybe Text -> Maybe Text -> RedactedEwsAvailabilityProvider
-- | Create a value of RedactedEwsAvailabilityProvider with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:ewsEndpoint:RedactedEwsAvailabilityProvider',
-- redactedEwsAvailabilityProvider_ewsEndpoint - The endpoint of
-- the remote EWS server.
--
-- $sel:ewsUsername:RedactedEwsAvailabilityProvider',
-- redactedEwsAvailabilityProvider_ewsUsername - The username used
-- to authenticate the remote EWS server.
newRedactedEwsAvailabilityProvider :: RedactedEwsAvailabilityProvider
-- | The representation of a resource.
--
-- See: newResource smart constructor.
data Resource
Resource' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe ResourceType -> Resource
-- | Create a value of Resource with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:Resource', resource_disabledDate - The
-- date indicating when the resource was disabled from WorkMail use.
--
-- $sel:email:Resource', resource_email - The email of the
-- resource.
--
-- $sel:enabledDate:Resource', resource_enabledDate - The
-- date indicating when the resource was enabled for WorkMail use.
--
-- $sel:id:Resource', resource_id - The identifier of the
-- resource.
--
-- $sel:name:Resource', resource_name - The name of the
-- resource.
--
-- $sel:state:Resource', resource_state - The state of the
-- resource, which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:type':Resource', resource_type - The type of the
-- resource: equipment or room.
newResource :: Resource
-- | Describes a tag applied to a resource.
--
-- See: newTag smart constructor.
data Tag
Tag' :: Text -> Text -> Tag
-- | Create a value of Tag with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:key:Tag', tag_key - The key of the tag.
--
-- $sel:value:Tag', tag_value - The value of the tag.
newTag :: Text -> Text -> Tag
-- | The representation of an WorkMail user.
--
-- See: newUser smart constructor.
data User
User' :: Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe EntityState -> Maybe UserRole -> User
-- | Create a value of User with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:disabledDate:User', user_disabledDate - The date
-- indicating when the user was disabled from WorkMail use.
--
-- $sel:displayName:User', user_displayName - The display
-- name of the user.
--
-- $sel:email:User', user_email - The email of the user.
--
-- $sel:enabledDate:User', user_enabledDate - The date
-- indicating when the user was enabled for WorkMail use.
--
-- $sel:id:User', user_id - The identifier of the user.
--
-- $sel:name:User', user_name - The name of the user.
--
-- $sel:state:User', user_state - The state of the user,
-- which can be ENABLED, DISABLED, or DELETED.
--
-- $sel:userRole:User', user_userRole - The role of the
-- user.
newUser :: User