zio.aws.workmail.WorkMailMock.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-workmail_2.12 Show documentation
Show all versions of zio-aws-workmail_2.12 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.workmail
import zio.aws.workmail.model.ListAvailabilityConfigurationsResponse.ReadOnly
import zio.mock.{Proxy, Mock}
import zio.aws.workmail.model.{
AssumeImpersonationRoleRequest,
ListResourceDelegatesRequest,
DeleteUserRequest,
DeleteMobileDeviceAccessRuleRequest,
AssociateDelegateToResourceRequest,
DeleteAvailabilityConfigurationRequest,
CreateAvailabilityConfigurationRequest,
CreateMobileDeviceAccessRuleRequest,
StartMailboxExportJobRequest,
UpdatePrimaryEmailAddressRequest,
DescribeUserRequest,
UpdateAvailabilityConfigurationRequest,
ListOrganizationsRequest,
GetMobileDeviceAccessOverrideRequest,
ListMailboxPermissionsRequest,
UpdateImpersonationRoleRequest,
CreateImpersonationRoleRequest,
DescribeEntityRequest,
ListImpersonationRolesRequest,
DeleteMobileDeviceAccessOverrideRequest,
CancelMailboxExportJobRequest,
ListUsersRequest,
RegisterMailDomainRequest,
UpdateGroupRequest,
CreateAliasRequest,
DeregisterFromWorkMailRequest,
DeleteImpersonationRoleRequest,
CreateOrganizationRequest,
DescribeOrganizationRequest,
ListMobileDeviceAccessOverridesRequest,
GetImpersonationRoleEffectRequest,
AssociateMemberToGroupRequest,
ListAccessControlRulesRequest,
ListTagsForResourceRequest,
TestAvailabilityConfigurationRequest,
DescribeGroupRequest,
DeleteAliasRequest,
RegisterToWorkMailRequest,
ListAliasesRequest,
DeleteGroupRequest,
PutEmailMonitoringConfigurationRequest,
PutMailboxPermissionsRequest,
ListAvailabilityConfigurationsRequest,
PutAccessControlRuleRequest,
GetMobileDeviceAccessEffectRequest,
ListGroupsRequest,
ListGroupMembersRequest,
ListMobileDeviceAccessRulesRequest,
GetAccessControlEffectRequest,
DeleteResourceRequest,
ListMailboxExportJobsRequest,
ListResourcesRequest,
CreateUserRequest,
DeleteMailboxPermissionsRequest,
DeleteAccessControlRuleRequest,
ListGroupsForEntityRequest,
DeleteRetentionPolicyRequest,
DeleteEmailMonitoringConfigurationRequest,
CreateResourceRequest,
UntagResourceRequest,
DescribeMailboxExportJobRequest,
PutInboundDmarcSettingsRequest,
CreateGroupRequest,
ListMailDomainsRequest,
DeregisterMailDomainRequest,
UpdateUserRequest,
UpdateDefaultMailDomainRequest,
GetDefaultRetentionPolicyRequest,
DescribeEmailMonitoringConfigurationRequest,
DescribeInboundDmarcSettingsRequest,
UpdateMobileDeviceAccessRuleRequest,
ResetPasswordRequest,
GetMailDomainRequest,
DisassociateMemberFromGroupRequest,
UpdateResourceRequest,
GetMailboxDetailsRequest,
DeleteOrganizationRequest,
DescribeResourceRequest,
TagResourceRequest,
PutRetentionPolicyRequest,
PutMobileDeviceAccessOverrideRequest,
DisassociateDelegateFromResourceRequest,
UpdateMailboxQuotaRequest,
GetImpersonationRoleRequest
}
import software.amazon.awssdk.services.workmail.WorkMailAsyncClient
import zio.aws.core.AwsError
import zio.aws.core.aspects.AwsCallAspect
import zio.{IO, ZEnvironment, URLayer}
import zio.stream.ZStream
import zio.aws.workmail.model.primitives.EmailAddress
object WorkMailMock extends Mock[WorkMail] {
object DeleteImpersonationRole
extends Effect[
DeleteImpersonationRoleRequest,
AwsError,
zio.aws.workmail.model.DeleteImpersonationRoleResponse.ReadOnly
]
object DeleteMailboxPermissions
extends Effect[
DeleteMailboxPermissionsRequest,
AwsError,
zio.aws.workmail.model.DeleteMailboxPermissionsResponse.ReadOnly
]
object DisassociateMemberFromGroup
extends Effect[
DisassociateMemberFromGroupRequest,
AwsError,
zio.aws.workmail.model.DisassociateMemberFromGroupResponse.ReadOnly
]
object ListAccessControlRules
extends Effect[
ListAccessControlRulesRequest,
AwsError,
zio.aws.workmail.model.ListAccessControlRulesResponse.ReadOnly
]
object UpdateImpersonationRole
extends Effect[
UpdateImpersonationRoleRequest,
AwsError,
zio.aws.workmail.model.UpdateImpersonationRoleResponse.ReadOnly
]
object CancelMailboxExportJob
extends Effect[
CancelMailboxExportJobRequest,
AwsError,
zio.aws.workmail.model.CancelMailboxExportJobResponse.ReadOnly
]
object CreateResource
extends Effect[
CreateResourceRequest,
AwsError,
zio.aws.workmail.model.CreateResourceResponse.ReadOnly
]
object ListUsers
extends Stream[
ListUsersRequest,
AwsError,
zio.aws.workmail.model.User.ReadOnly
]
object ListUsersPaginated
extends Effect[
ListUsersRequest,
AwsError,
zio.aws.workmail.model.ListUsersResponse.ReadOnly
]
object UpdateUser
extends Effect[
UpdateUserRequest,
AwsError,
zio.aws.workmail.model.UpdateUserResponse.ReadOnly
]
object DescribeOrganization
extends Effect[
DescribeOrganizationRequest,
AwsError,
zio.aws.workmail.model.DescribeOrganizationResponse.ReadOnly
]
object UpdateResource
extends Effect[
UpdateResourceRequest,
AwsError,
zio.aws.workmail.model.UpdateResourceResponse.ReadOnly
]
object ListImpersonationRoles
extends Stream[
ListImpersonationRolesRequest,
AwsError,
zio.aws.workmail.model.ImpersonationRole.ReadOnly
]
object ListImpersonationRolesPaginated
extends Effect[
ListImpersonationRolesRequest,
AwsError,
zio.aws.workmail.model.ListImpersonationRolesResponse.ReadOnly
]
object ListMailDomains
extends Stream[
ListMailDomainsRequest,
AwsError,
zio.aws.workmail.model.MailDomainSummary.ReadOnly
]
object ListMailDomainsPaginated
extends Effect[
ListMailDomainsRequest,
AwsError,
zio.aws.workmail.model.ListMailDomainsResponse.ReadOnly
]
object UpdateMobileDeviceAccessRule
extends Effect[
UpdateMobileDeviceAccessRuleRequest,
AwsError,
zio.aws.workmail.model.UpdateMobileDeviceAccessRuleResponse.ReadOnly
]
object AssociateDelegateToResource
extends Effect[
AssociateDelegateToResourceRequest,
AwsError,
zio.aws.workmail.model.AssociateDelegateToResourceResponse.ReadOnly
]
object DeleteRetentionPolicy
extends Effect[
DeleteRetentionPolicyRequest,
AwsError,
zio.aws.workmail.model.DeleteRetentionPolicyResponse.ReadOnly
]
object DeregisterMailDomain
extends Effect[
DeregisterMailDomainRequest,
AwsError,
zio.aws.workmail.model.DeregisterMailDomainResponse.ReadOnly
]
object ListAvailabilityConfigurations
extends Stream[
ListAvailabilityConfigurationsRequest,
AwsError,
zio.aws.workmail.model.AvailabilityConfiguration.ReadOnly
]
object ListAvailabilityConfigurationsPaginated
extends Effect[ListAvailabilityConfigurationsRequest, AwsError, ReadOnly]
object StartMailboxExportJob
extends Effect[
StartMailboxExportJobRequest,
AwsError,
zio.aws.workmail.model.StartMailboxExportJobResponse.ReadOnly
]
object ListResourceDelegates
extends Stream[
ListResourceDelegatesRequest,
AwsError,
zio.aws.workmail.model.Delegate.ReadOnly
]
object ListResourceDelegatesPaginated
extends Effect[
ListResourceDelegatesRequest,
AwsError,
zio.aws.workmail.model.ListResourceDelegatesResponse.ReadOnly
]
object ListMailboxExportJobs
extends Stream[
ListMailboxExportJobsRequest,
AwsError,
zio.aws.workmail.model.MailboxExportJob.ReadOnly
]
object ListMailboxExportJobsPaginated
extends Effect[
ListMailboxExportJobsRequest,
AwsError,
zio.aws.workmail.model.ListMailboxExportJobsResponse.ReadOnly
]
object DeleteGroup
extends Effect[
DeleteGroupRequest,
AwsError,
zio.aws.workmail.model.DeleteGroupResponse.ReadOnly
]
object AssociateMemberToGroup
extends Effect[
AssociateMemberToGroupRequest,
AwsError,
zio.aws.workmail.model.AssociateMemberToGroupResponse.ReadOnly
]
object DescribeResource
extends Effect[
DescribeResourceRequest,
AwsError,
zio.aws.workmail.model.DescribeResourceResponse.ReadOnly
]
object PutAccessControlRule
extends Effect[
PutAccessControlRuleRequest,
AwsError,
zio.aws.workmail.model.PutAccessControlRuleResponse.ReadOnly
]
object GetMailboxDetails
extends Effect[
GetMailboxDetailsRequest,
AwsError,
zio.aws.workmail.model.GetMailboxDetailsResponse.ReadOnly
]
object ListOrganizations
extends Stream[
ListOrganizationsRequest,
AwsError,
zio.aws.workmail.model.OrganizationSummary.ReadOnly
]
object ListOrganizationsPaginated
extends Effect[
ListOrganizationsRequest,
AwsError,
zio.aws.workmail.model.ListOrganizationsResponse.ReadOnly
]
object DeregisterFromWorkMail
extends Effect[
DeregisterFromWorkMailRequest,
AwsError,
zio.aws.workmail.model.DeregisterFromWorkMailResponse.ReadOnly
]
object UpdateAvailabilityConfiguration
extends Effect[
UpdateAvailabilityConfigurationRequest,
AwsError,
zio.aws.workmail.model.UpdateAvailabilityConfigurationResponse.ReadOnly
]
object ListMailboxPermissions
extends Stream[
ListMailboxPermissionsRequest,
AwsError,
zio.aws.workmail.model.Permission.ReadOnly
]
object ListMailboxPermissionsPaginated
extends Effect[
ListMailboxPermissionsRequest,
AwsError,
zio.aws.workmail.model.ListMailboxPermissionsResponse.ReadOnly
]
object ListGroups
extends Stream[
ListGroupsRequest,
AwsError,
zio.aws.workmail.model.Group.ReadOnly
]
object ListGroupsPaginated
extends Effect[
ListGroupsRequest,
AwsError,
zio.aws.workmail.model.ListGroupsResponse.ReadOnly
]
object GetMobileDeviceAccessEffect
extends Effect[
GetMobileDeviceAccessEffectRequest,
AwsError,
zio.aws.workmail.model.GetMobileDeviceAccessEffectResponse.ReadOnly
]
object DescribeMailboxExportJob
extends Effect[
DescribeMailboxExportJobRequest,
AwsError,
zio.aws.workmail.model.DescribeMailboxExportJobResponse.ReadOnly
]
object CreateUser
extends Effect[
CreateUserRequest,
AwsError,
zio.aws.workmail.model.CreateUserResponse.ReadOnly
]
object DeleteOrganization
extends Effect[
DeleteOrganizationRequest,
AwsError,
zio.aws.workmail.model.DeleteOrganizationResponse.ReadOnly
]
object DescribeEmailMonitoringConfiguration
extends Effect[
DescribeEmailMonitoringConfigurationRequest,
AwsError,
zio.aws.workmail.model.DescribeEmailMonitoringConfigurationResponse.ReadOnly
]
object ListGroupsForEntity
extends Stream[
ListGroupsForEntityRequest,
AwsError,
zio.aws.workmail.model.GroupIdentifier.ReadOnly
]
object ListGroupsForEntityPaginated
extends Effect[
ListGroupsForEntityRequest,
AwsError,
zio.aws.workmail.model.ListGroupsForEntityResponse.ReadOnly
]
object DescribeInboundDmarcSettings
extends Effect[
DescribeInboundDmarcSettingsRequest,
AwsError,
zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse.ReadOnly
]
object AssumeImpersonationRole
extends Effect[
AssumeImpersonationRoleRequest,
AwsError,
zio.aws.workmail.model.AssumeImpersonationRoleResponse.ReadOnly
]
object ListAliases extends Stream[ListAliasesRequest, AwsError, EmailAddress]
object ListAliasesPaginated
extends Effect[
ListAliasesRequest,
AwsError,
zio.aws.workmail.model.ListAliasesResponse.ReadOnly
]
object ListMobileDeviceAccessRules
extends Effect[
ListMobileDeviceAccessRulesRequest,
AwsError,
zio.aws.workmail.model.ListMobileDeviceAccessRulesResponse.ReadOnly
]
object TestAvailabilityConfiguration
extends Effect[
TestAvailabilityConfigurationRequest,
AwsError,
zio.aws.workmail.model.TestAvailabilityConfigurationResponse.ReadOnly
]
object PutMailboxPermissions
extends Effect[
PutMailboxPermissionsRequest,
AwsError,
zio.aws.workmail.model.PutMailboxPermissionsResponse.ReadOnly
]
object DeleteAccessControlRule
extends Effect[
DeleteAccessControlRuleRequest,
AwsError,
zio.aws.workmail.model.DeleteAccessControlRuleResponse.ReadOnly
]
object CreateImpersonationRole
extends Effect[
CreateImpersonationRoleRequest,
AwsError,
zio.aws.workmail.model.CreateImpersonationRoleResponse.ReadOnly
]
object PutEmailMonitoringConfiguration
extends Effect[
PutEmailMonitoringConfigurationRequest,
AwsError,
zio.aws.workmail.model.PutEmailMonitoringConfigurationResponse.ReadOnly
]
object GetAccessControlEffect
extends Effect[
GetAccessControlEffectRequest,
AwsError,
zio.aws.workmail.model.GetAccessControlEffectResponse.ReadOnly
]
object GetMailDomain
extends Effect[
GetMailDomainRequest,
AwsError,
zio.aws.workmail.model.GetMailDomainResponse.ReadOnly
]
object UntagResource
extends Effect[
UntagResourceRequest,
AwsError,
zio.aws.workmail.model.UntagResourceResponse.ReadOnly
]
object CreateAlias
extends Effect[
CreateAliasRequest,
AwsError,
zio.aws.workmail.model.CreateAliasResponse.ReadOnly
]
object ListResources
extends Stream[
ListResourcesRequest,
AwsError,
zio.aws.workmail.model.Resource.ReadOnly
]
object ListResourcesPaginated
extends Effect[
ListResourcesRequest,
AwsError,
zio.aws.workmail.model.ListResourcesResponse.ReadOnly
]
object ListGroupMembers
extends Stream[
ListGroupMembersRequest,
AwsError,
zio.aws.workmail.model.Member.ReadOnly
]
object ListGroupMembersPaginated
extends Effect[
ListGroupMembersRequest,
AwsError,
zio.aws.workmail.model.ListGroupMembersResponse.ReadOnly
]
object GetDefaultRetentionPolicy
extends Effect[
GetDefaultRetentionPolicyRequest,
AwsError,
zio.aws.workmail.model.GetDefaultRetentionPolicyResponse.ReadOnly
]
object CreateAvailabilityConfiguration
extends Effect[
CreateAvailabilityConfigurationRequest,
AwsError,
zio.aws.workmail.model.CreateAvailabilityConfigurationResponse.ReadOnly
]
object RegisterMailDomain
extends Effect[
RegisterMailDomainRequest,
AwsError,
zio.aws.workmail.model.RegisterMailDomainResponse.ReadOnly
]
object ListMobileDeviceAccessOverrides
extends Stream[
ListMobileDeviceAccessOverridesRequest,
AwsError,
zio.aws.workmail.model.MobileDeviceAccessOverride.ReadOnly
]
object ListMobileDeviceAccessOverridesPaginated
extends Effect[
ListMobileDeviceAccessOverridesRequest,
AwsError,
zio.aws.workmail.model.ListMobileDeviceAccessOverridesResponse.ReadOnly
]
object PutInboundDmarcSettings
extends Effect[
PutInboundDmarcSettingsRequest,
AwsError,
zio.aws.workmail.model.PutInboundDmarcSettingsResponse.ReadOnly
]
object DescribeGroup
extends Effect[
DescribeGroupRequest,
AwsError,
zio.aws.workmail.model.DescribeGroupResponse.ReadOnly
]
object CreateGroup
extends Effect[
CreateGroupRequest,
AwsError,
zio.aws.workmail.model.CreateGroupResponse.ReadOnly
]
object DisassociateDelegateFromResource
extends Effect[
DisassociateDelegateFromResourceRequest,
AwsError,
zio.aws.workmail.model.DisassociateDelegateFromResourceResponse.ReadOnly
]
object DescribeUser
extends Effect[
DescribeUserRequest,
AwsError,
zio.aws.workmail.model.DescribeUserResponse.ReadOnly
]
object ListTagsForResource
extends Effect[
ListTagsForResourceRequest,
AwsError,
zio.aws.workmail.model.ListTagsForResourceResponse.ReadOnly
]
object PutRetentionPolicy
extends Effect[
PutRetentionPolicyRequest,
AwsError,
zio.aws.workmail.model.PutRetentionPolicyResponse.ReadOnly
]
object UpdateGroup
extends Effect[
UpdateGroupRequest,
AwsError,
zio.aws.workmail.model.UpdateGroupResponse.ReadOnly
]
object RegisterToWorkMail
extends Effect[
RegisterToWorkMailRequest,
AwsError,
zio.aws.workmail.model.RegisterToWorkMailResponse.ReadOnly
]
object DeleteMobileDeviceAccessRule
extends Effect[
DeleteMobileDeviceAccessRuleRequest,
AwsError,
zio.aws.workmail.model.DeleteMobileDeviceAccessRuleResponse.ReadOnly
]
object TagResource
extends Effect[
TagResourceRequest,
AwsError,
zio.aws.workmail.model.TagResourceResponse.ReadOnly
]
object UpdatePrimaryEmailAddress
extends Effect[
UpdatePrimaryEmailAddressRequest,
AwsError,
zio.aws.workmail.model.UpdatePrimaryEmailAddressResponse.ReadOnly
]
object ResetPassword
extends Effect[
ResetPasswordRequest,
AwsError,
zio.aws.workmail.model.ResetPasswordResponse.ReadOnly
]
object DeleteAlias
extends Effect[
DeleteAliasRequest,
AwsError,
zio.aws.workmail.model.DeleteAliasResponse.ReadOnly
]
object GetImpersonationRole
extends Effect[
GetImpersonationRoleRequest,
AwsError,
zio.aws.workmail.model.GetImpersonationRoleResponse.ReadOnly
]
object DeleteUser
extends Effect[
DeleteUserRequest,
AwsError,
zio.aws.workmail.model.DeleteUserResponse.ReadOnly
]
object DeleteAvailabilityConfiguration
extends Effect[
DeleteAvailabilityConfigurationRequest,
AwsError,
zio.aws.workmail.model.DeleteAvailabilityConfigurationResponse.ReadOnly
]
object CreateMobileDeviceAccessRule
extends Effect[
CreateMobileDeviceAccessRuleRequest,
AwsError,
zio.aws.workmail.model.CreateMobileDeviceAccessRuleResponse.ReadOnly
]
object UpdateMailboxQuota
extends Effect[
UpdateMailboxQuotaRequest,
AwsError,
zio.aws.workmail.model.UpdateMailboxQuotaResponse.ReadOnly
]
object DeleteEmailMonitoringConfiguration
extends Effect[
DeleteEmailMonitoringConfigurationRequest,
AwsError,
zio.aws.workmail.model.DeleteEmailMonitoringConfigurationResponse.ReadOnly
]
object PutMobileDeviceAccessOverride
extends Effect[
PutMobileDeviceAccessOverrideRequest,
AwsError,
zio.aws.workmail.model.PutMobileDeviceAccessOverrideResponse.ReadOnly
]
object DeleteMobileDeviceAccessOverride
extends Effect[
DeleteMobileDeviceAccessOverrideRequest,
AwsError,
zio.aws.workmail.model.DeleteMobileDeviceAccessOverrideResponse.ReadOnly
]
object DescribeEntity
extends Effect[
DescribeEntityRequest,
AwsError,
zio.aws.workmail.model.DescribeEntityResponse.ReadOnly
]
object GetImpersonationRoleEffect
extends Effect[
GetImpersonationRoleEffectRequest,
AwsError,
zio.aws.workmail.model.GetImpersonationRoleEffectResponse.ReadOnly
]
object UpdateDefaultMailDomain
extends Effect[
UpdateDefaultMailDomainRequest,
AwsError,
zio.aws.workmail.model.UpdateDefaultMailDomainResponse.ReadOnly
]
object GetMobileDeviceAccessOverride
extends Effect[
GetMobileDeviceAccessOverrideRequest,
AwsError,
zio.aws.workmail.model.GetMobileDeviceAccessOverrideResponse.ReadOnly
]
object CreateOrganization
extends Effect[
CreateOrganizationRequest,
AwsError,
zio.aws.workmail.model.CreateOrganizationResponse.ReadOnly
]
object DeleteResource
extends Effect[
DeleteResourceRequest,
AwsError,
zio.aws.workmail.model.DeleteResourceResponse.ReadOnly
]
val compose: URLayer[Proxy, WorkMail] = zio.ZLayer {
zio.ZIO.service[Proxy].flatMap { proxy =>
withRuntime[Proxy, WorkMail] { rts =>
zio.ZIO.succeed {
new WorkMail {
val api: WorkMailAsyncClient = null
def withAspect[R1](
newAspect: AwsCallAspect[R1],
r: ZEnvironment[R1]
): WorkMail = this
def deleteImpersonationRole(
request: DeleteImpersonationRoleRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteImpersonationRoleResponse.ReadOnly
] = proxy(DeleteImpersonationRole, request)
def deleteMailboxPermissions(
request: DeleteMailboxPermissionsRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteMailboxPermissionsResponse.ReadOnly
] = proxy(DeleteMailboxPermissions, request)
def disassociateMemberFromGroup(
request: DisassociateMemberFromGroupRequest
): IO[
AwsError,
zio.aws.workmail.model.DisassociateMemberFromGroupResponse.ReadOnly
] = proxy(DisassociateMemberFromGroup, request)
def listAccessControlRules(
request: ListAccessControlRulesRequest
): IO[
AwsError,
zio.aws.workmail.model.ListAccessControlRulesResponse.ReadOnly
] = proxy(ListAccessControlRules, request)
def updateImpersonationRole(
request: UpdateImpersonationRoleRequest
): IO[
AwsError,
zio.aws.workmail.model.UpdateImpersonationRoleResponse.ReadOnly
] = proxy(UpdateImpersonationRole, request)
def cancelMailboxExportJob(
request: CancelMailboxExportJobRequest
): IO[
AwsError,
zio.aws.workmail.model.CancelMailboxExportJobResponse.ReadOnly
] = proxy(CancelMailboxExportJob, request)
def createResource(request: CreateResourceRequest): IO[
AwsError,
zio.aws.workmail.model.CreateResourceResponse.ReadOnly
] = proxy(CreateResource, request)
def listUsers(
request: ListUsersRequest
): ZStream[Any, AwsError, zio.aws.workmail.model.User.ReadOnly] =
zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListUsers, request)
}
.getOrThrowFiberFailure()
}
def listUsersPaginated(
request: ListUsersRequest
): IO[AwsError, zio.aws.workmail.model.ListUsersResponse.ReadOnly] =
proxy(ListUsersPaginated, request)
def updateUser(request: UpdateUserRequest): IO[
AwsError,
zio.aws.workmail.model.UpdateUserResponse.ReadOnly
] = proxy(UpdateUser, request)
def describeOrganization(request: DescribeOrganizationRequest): IO[
AwsError,
zio.aws.workmail.model.DescribeOrganizationResponse.ReadOnly
] = proxy(DescribeOrganization, request)
def updateResource(request: UpdateResourceRequest): IO[
AwsError,
zio.aws.workmail.model.UpdateResourceResponse.ReadOnly
] = proxy(UpdateResource, request)
def listImpersonationRoles(
request: ListImpersonationRolesRequest
): ZStream[
Any,
AwsError,
zio.aws.workmail.model.ImpersonationRole.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListImpersonationRoles, request)
}
.getOrThrowFiberFailure()
}
def listImpersonationRolesPaginated(
request: ListImpersonationRolesRequest
): IO[
AwsError,
zio.aws.workmail.model.ListImpersonationRolesResponse.ReadOnly
] = proxy(ListImpersonationRolesPaginated, request)
def listMailDomains(request: ListMailDomainsRequest): ZStream[
Any,
AwsError,
zio.aws.workmail.model.MailDomainSummary.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListMailDomains, request)
}
.getOrThrowFiberFailure()
}
def listMailDomainsPaginated(request: ListMailDomainsRequest): IO[
AwsError,
zio.aws.workmail.model.ListMailDomainsResponse.ReadOnly
] = proxy(ListMailDomainsPaginated, request)
def updateMobileDeviceAccessRule(
request: UpdateMobileDeviceAccessRuleRequest
): IO[
AwsError,
zio.aws.workmail.model.UpdateMobileDeviceAccessRuleResponse.ReadOnly
] = proxy(UpdateMobileDeviceAccessRule, request)
def associateDelegateToResource(
request: AssociateDelegateToResourceRequest
): IO[
AwsError,
zio.aws.workmail.model.AssociateDelegateToResourceResponse.ReadOnly
] = proxy(AssociateDelegateToResource, request)
def deleteRetentionPolicy(
request: DeleteRetentionPolicyRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteRetentionPolicyResponse.ReadOnly
] = proxy(DeleteRetentionPolicy, request)
def deregisterMailDomain(request: DeregisterMailDomainRequest): IO[
AwsError,
zio.aws.workmail.model.DeregisterMailDomainResponse.ReadOnly
] = proxy(DeregisterMailDomain, request)
def listAvailabilityConfigurations(
request: ListAvailabilityConfigurationsRequest
): ZStream[
Any,
AwsError,
zio.aws.workmail.model.AvailabilityConfiguration.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListAvailabilityConfigurations, request)
}
.getOrThrowFiberFailure()
}
def listAvailabilityConfigurationsPaginated(
request: ListAvailabilityConfigurationsRequest
): IO[AwsError, ReadOnly] =
proxy(ListAvailabilityConfigurationsPaginated, request)
def startMailboxExportJob(
request: StartMailboxExportJobRequest
): IO[
AwsError,
zio.aws.workmail.model.StartMailboxExportJobResponse.ReadOnly
] = proxy(StartMailboxExportJob, request)
def listResourceDelegates(
request: ListResourceDelegatesRequest
): ZStream[
Any,
AwsError,
zio.aws.workmail.model.Delegate.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListResourceDelegates, request)
}
.getOrThrowFiberFailure()
}
def listResourceDelegatesPaginated(
request: ListResourceDelegatesRequest
): IO[
AwsError,
zio.aws.workmail.model.ListResourceDelegatesResponse.ReadOnly
] = proxy(ListResourceDelegatesPaginated, request)
def listMailboxExportJobs(
request: ListMailboxExportJobsRequest
): ZStream[
Any,
AwsError,
zio.aws.workmail.model.MailboxExportJob.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListMailboxExportJobs, request)
}
.getOrThrowFiberFailure()
}
def listMailboxExportJobsPaginated(
request: ListMailboxExportJobsRequest
): IO[
AwsError,
zio.aws.workmail.model.ListMailboxExportJobsResponse.ReadOnly
] = proxy(ListMailboxExportJobsPaginated, request)
def deleteGroup(request: DeleteGroupRequest): IO[
AwsError,
zio.aws.workmail.model.DeleteGroupResponse.ReadOnly
] = proxy(DeleteGroup, request)
def associateMemberToGroup(
request: AssociateMemberToGroupRequest
): IO[
AwsError,
zio.aws.workmail.model.AssociateMemberToGroupResponse.ReadOnly
] = proxy(AssociateMemberToGroup, request)
def describeResource(request: DescribeResourceRequest): IO[
AwsError,
zio.aws.workmail.model.DescribeResourceResponse.ReadOnly
] = proxy(DescribeResource, request)
def putAccessControlRule(request: PutAccessControlRuleRequest): IO[
AwsError,
zio.aws.workmail.model.PutAccessControlRuleResponse.ReadOnly
] = proxy(PutAccessControlRule, request)
def getMailboxDetails(request: GetMailboxDetailsRequest): IO[
AwsError,
zio.aws.workmail.model.GetMailboxDetailsResponse.ReadOnly
] = proxy(GetMailboxDetails, request)
def listOrganizations(request: ListOrganizationsRequest): ZStream[
Any,
AwsError,
zio.aws.workmail.model.OrganizationSummary.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListOrganizations, request)
}
.getOrThrowFiberFailure()
}
def listOrganizationsPaginated(
request: ListOrganizationsRequest
): IO[
AwsError,
zio.aws.workmail.model.ListOrganizationsResponse.ReadOnly
] = proxy(ListOrganizationsPaginated, request)
def deregisterFromWorkMail(
request: DeregisterFromWorkMailRequest
): IO[
AwsError,
zio.aws.workmail.model.DeregisterFromWorkMailResponse.ReadOnly
] = proxy(DeregisterFromWorkMail, request)
def updateAvailabilityConfiguration(
request: UpdateAvailabilityConfigurationRequest
): IO[
AwsError,
zio.aws.workmail.model.UpdateAvailabilityConfigurationResponse.ReadOnly
] = proxy(UpdateAvailabilityConfiguration, request)
def listMailboxPermissions(
request: ListMailboxPermissionsRequest
): ZStream[
Any,
AwsError,
zio.aws.workmail.model.Permission.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListMailboxPermissions, request)
}
.getOrThrowFiberFailure()
}
def listMailboxPermissionsPaginated(
request: ListMailboxPermissionsRequest
): IO[
AwsError,
zio.aws.workmail.model.ListMailboxPermissionsResponse.ReadOnly
] = proxy(ListMailboxPermissionsPaginated, request)
def listGroups(
request: ListGroupsRequest
): ZStream[Any, AwsError, zio.aws.workmail.model.Group.ReadOnly] =
zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListGroups, request)
}
.getOrThrowFiberFailure()
}
def listGroupsPaginated(request: ListGroupsRequest): IO[
AwsError,
zio.aws.workmail.model.ListGroupsResponse.ReadOnly
] = proxy(ListGroupsPaginated, request)
def getMobileDeviceAccessEffect(
request: GetMobileDeviceAccessEffectRequest
): IO[
AwsError,
zio.aws.workmail.model.GetMobileDeviceAccessEffectResponse.ReadOnly
] = proxy(GetMobileDeviceAccessEffect, request)
def describeMailboxExportJob(
request: DescribeMailboxExportJobRequest
): IO[
AwsError,
zio.aws.workmail.model.DescribeMailboxExportJobResponse.ReadOnly
] = proxy(DescribeMailboxExportJob, request)
def createUser(request: CreateUserRequest): IO[
AwsError,
zio.aws.workmail.model.CreateUserResponse.ReadOnly
] = proxy(CreateUser, request)
def deleteOrganization(request: DeleteOrganizationRequest): IO[
AwsError,
zio.aws.workmail.model.DeleteOrganizationResponse.ReadOnly
] = proxy(DeleteOrganization, request)
def describeEmailMonitoringConfiguration(
request: DescribeEmailMonitoringConfigurationRequest
): IO[
AwsError,
zio.aws.workmail.model.DescribeEmailMonitoringConfigurationResponse.ReadOnly
] = proxy(DescribeEmailMonitoringConfiguration, request)
def listGroupsForEntity(
request: ListGroupsForEntityRequest
): ZStream[
Any,
AwsError,
zio.aws.workmail.model.GroupIdentifier.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListGroupsForEntity, request)
}
.getOrThrowFiberFailure()
}
def listGroupsForEntityPaginated(
request: ListGroupsForEntityRequest
): IO[
AwsError,
zio.aws.workmail.model.ListGroupsForEntityResponse.ReadOnly
] = proxy(ListGroupsForEntityPaginated, request)
def describeInboundDmarcSettings(
request: DescribeInboundDmarcSettingsRequest
): IO[
AwsError,
zio.aws.workmail.model.DescribeInboundDmarcSettingsResponse.ReadOnly
] = proxy(DescribeInboundDmarcSettings, request)
def assumeImpersonationRole(
request: AssumeImpersonationRoleRequest
): IO[
AwsError,
zio.aws.workmail.model.AssumeImpersonationRoleResponse.ReadOnly
] = proxy(AssumeImpersonationRole, request)
def listAliases(
request: ListAliasesRequest
): ZStream[Any, AwsError, EmailAddress] =
zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListAliases, request)
}
.getOrThrowFiberFailure()
}
def listAliasesPaginated(request: ListAliasesRequest): IO[
AwsError,
zio.aws.workmail.model.ListAliasesResponse.ReadOnly
] = proxy(ListAliasesPaginated, request)
def listMobileDeviceAccessRules(
request: ListMobileDeviceAccessRulesRequest
): IO[
AwsError,
zio.aws.workmail.model.ListMobileDeviceAccessRulesResponse.ReadOnly
] = proxy(ListMobileDeviceAccessRules, request)
def testAvailabilityConfiguration(
request: TestAvailabilityConfigurationRequest
): IO[
AwsError,
zio.aws.workmail.model.TestAvailabilityConfigurationResponse.ReadOnly
] = proxy(TestAvailabilityConfiguration, request)
def putMailboxPermissions(
request: PutMailboxPermissionsRequest
): IO[
AwsError,
zio.aws.workmail.model.PutMailboxPermissionsResponse.ReadOnly
] = proxy(PutMailboxPermissions, request)
def deleteAccessControlRule(
request: DeleteAccessControlRuleRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteAccessControlRuleResponse.ReadOnly
] = proxy(DeleteAccessControlRule, request)
def createImpersonationRole(
request: CreateImpersonationRoleRequest
): IO[
AwsError,
zio.aws.workmail.model.CreateImpersonationRoleResponse.ReadOnly
] = proxy(CreateImpersonationRole, request)
def putEmailMonitoringConfiguration(
request: PutEmailMonitoringConfigurationRequest
): IO[
AwsError,
zio.aws.workmail.model.PutEmailMonitoringConfigurationResponse.ReadOnly
] = proxy(PutEmailMonitoringConfiguration, request)
def getAccessControlEffect(
request: GetAccessControlEffectRequest
): IO[
AwsError,
zio.aws.workmail.model.GetAccessControlEffectResponse.ReadOnly
] = proxy(GetAccessControlEffect, request)
def getMailDomain(request: GetMailDomainRequest): IO[
AwsError,
zio.aws.workmail.model.GetMailDomainResponse.ReadOnly
] = proxy(GetMailDomain, request)
def untagResource(request: UntagResourceRequest): IO[
AwsError,
zio.aws.workmail.model.UntagResourceResponse.ReadOnly
] = proxy(UntagResource, request)
def createAlias(request: CreateAliasRequest): IO[
AwsError,
zio.aws.workmail.model.CreateAliasResponse.ReadOnly
] = proxy(CreateAlias, request)
def listResources(request: ListResourcesRequest): ZStream[
Any,
AwsError,
zio.aws.workmail.model.Resource.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListResources, request)
}
.getOrThrowFiberFailure()
}
def listResourcesPaginated(request: ListResourcesRequest): IO[
AwsError,
zio.aws.workmail.model.ListResourcesResponse.ReadOnly
] = proxy(ListResourcesPaginated, request)
def listGroupMembers(
request: ListGroupMembersRequest
): ZStream[Any, AwsError, zio.aws.workmail.model.Member.ReadOnly] =
zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListGroupMembers, request)
}
.getOrThrowFiberFailure()
}
def listGroupMembersPaginated(request: ListGroupMembersRequest): IO[
AwsError,
zio.aws.workmail.model.ListGroupMembersResponse.ReadOnly
] = proxy(ListGroupMembersPaginated, request)
def getDefaultRetentionPolicy(
request: GetDefaultRetentionPolicyRequest
): IO[
AwsError,
zio.aws.workmail.model.GetDefaultRetentionPolicyResponse.ReadOnly
] = proxy(GetDefaultRetentionPolicy, request)
def createAvailabilityConfiguration(
request: CreateAvailabilityConfigurationRequest
): IO[
AwsError,
zio.aws.workmail.model.CreateAvailabilityConfigurationResponse.ReadOnly
] = proxy(CreateAvailabilityConfiguration, request)
def registerMailDomain(request: RegisterMailDomainRequest): IO[
AwsError,
zio.aws.workmail.model.RegisterMailDomainResponse.ReadOnly
] = proxy(RegisterMailDomain, request)
def listMobileDeviceAccessOverrides(
request: ListMobileDeviceAccessOverridesRequest
): ZStream[
Any,
AwsError,
zio.aws.workmail.model.MobileDeviceAccessOverride.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListMobileDeviceAccessOverrides, request)
}
.getOrThrowFiberFailure()
}
def listMobileDeviceAccessOverridesPaginated(
request: ListMobileDeviceAccessOverridesRequest
): IO[
AwsError,
zio.aws.workmail.model.ListMobileDeviceAccessOverridesResponse.ReadOnly
] = proxy(ListMobileDeviceAccessOverridesPaginated, request)
def putInboundDmarcSettings(
request: PutInboundDmarcSettingsRequest
): IO[
AwsError,
zio.aws.workmail.model.PutInboundDmarcSettingsResponse.ReadOnly
] = proxy(PutInboundDmarcSettings, request)
def describeGroup(request: DescribeGroupRequest): IO[
AwsError,
zio.aws.workmail.model.DescribeGroupResponse.ReadOnly
] = proxy(DescribeGroup, request)
def createGroup(request: CreateGroupRequest): IO[
AwsError,
zio.aws.workmail.model.CreateGroupResponse.ReadOnly
] = proxy(CreateGroup, request)
def disassociateDelegateFromResource(
request: DisassociateDelegateFromResourceRequest
): IO[
AwsError,
zio.aws.workmail.model.DisassociateDelegateFromResourceResponse.ReadOnly
] = proxy(DisassociateDelegateFromResource, request)
def describeUser(request: DescribeUserRequest): IO[
AwsError,
zio.aws.workmail.model.DescribeUserResponse.ReadOnly
] = proxy(DescribeUser, request)
def listTagsForResource(request: ListTagsForResourceRequest): IO[
AwsError,
zio.aws.workmail.model.ListTagsForResourceResponse.ReadOnly
] = proxy(ListTagsForResource, request)
def putRetentionPolicy(request: PutRetentionPolicyRequest): IO[
AwsError,
zio.aws.workmail.model.PutRetentionPolicyResponse.ReadOnly
] = proxy(PutRetentionPolicy, request)
def updateGroup(request: UpdateGroupRequest): IO[
AwsError,
zio.aws.workmail.model.UpdateGroupResponse.ReadOnly
] = proxy(UpdateGroup, request)
def registerToWorkMail(request: RegisterToWorkMailRequest): IO[
AwsError,
zio.aws.workmail.model.RegisterToWorkMailResponse.ReadOnly
] = proxy(RegisterToWorkMail, request)
def deleteMobileDeviceAccessRule(
request: DeleteMobileDeviceAccessRuleRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteMobileDeviceAccessRuleResponse.ReadOnly
] = proxy(DeleteMobileDeviceAccessRule, request)
def tagResource(request: TagResourceRequest): IO[
AwsError,
zio.aws.workmail.model.TagResourceResponse.ReadOnly
] = proxy(TagResource, request)
def updatePrimaryEmailAddress(
request: UpdatePrimaryEmailAddressRequest
): IO[
AwsError,
zio.aws.workmail.model.UpdatePrimaryEmailAddressResponse.ReadOnly
] = proxy(UpdatePrimaryEmailAddress, request)
def resetPassword(request: ResetPasswordRequest): IO[
AwsError,
zio.aws.workmail.model.ResetPasswordResponse.ReadOnly
] = proxy(ResetPassword, request)
def deleteAlias(request: DeleteAliasRequest): IO[
AwsError,
zio.aws.workmail.model.DeleteAliasResponse.ReadOnly
] = proxy(DeleteAlias, request)
def getImpersonationRole(request: GetImpersonationRoleRequest): IO[
AwsError,
zio.aws.workmail.model.GetImpersonationRoleResponse.ReadOnly
] = proxy(GetImpersonationRole, request)
def deleteUser(request: DeleteUserRequest): IO[
AwsError,
zio.aws.workmail.model.DeleteUserResponse.ReadOnly
] = proxy(DeleteUser, request)
def deleteAvailabilityConfiguration(
request: DeleteAvailabilityConfigurationRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteAvailabilityConfigurationResponse.ReadOnly
] = proxy(DeleteAvailabilityConfiguration, request)
def createMobileDeviceAccessRule(
request: CreateMobileDeviceAccessRuleRequest
): IO[
AwsError,
zio.aws.workmail.model.CreateMobileDeviceAccessRuleResponse.ReadOnly
] = proxy(CreateMobileDeviceAccessRule, request)
def updateMailboxQuota(request: UpdateMailboxQuotaRequest): IO[
AwsError,
zio.aws.workmail.model.UpdateMailboxQuotaResponse.ReadOnly
] = proxy(UpdateMailboxQuota, request)
def deleteEmailMonitoringConfiguration(
request: DeleteEmailMonitoringConfigurationRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteEmailMonitoringConfigurationResponse.ReadOnly
] = proxy(DeleteEmailMonitoringConfiguration, request)
def putMobileDeviceAccessOverride(
request: PutMobileDeviceAccessOverrideRequest
): IO[
AwsError,
zio.aws.workmail.model.PutMobileDeviceAccessOverrideResponse.ReadOnly
] = proxy(PutMobileDeviceAccessOverride, request)
def deleteMobileDeviceAccessOverride(
request: DeleteMobileDeviceAccessOverrideRequest
): IO[
AwsError,
zio.aws.workmail.model.DeleteMobileDeviceAccessOverrideResponse.ReadOnly
] = proxy(DeleteMobileDeviceAccessOverride, request)
def describeEntity(request: DescribeEntityRequest): IO[
AwsError,
zio.aws.workmail.model.DescribeEntityResponse.ReadOnly
] = proxy(DescribeEntity, request)
def getImpersonationRoleEffect(
request: GetImpersonationRoleEffectRequest
): IO[
AwsError,
zio.aws.workmail.model.GetImpersonationRoleEffectResponse.ReadOnly
] = proxy(GetImpersonationRoleEffect, request)
def updateDefaultMailDomain(
request: UpdateDefaultMailDomainRequest
): IO[
AwsError,
zio.aws.workmail.model.UpdateDefaultMailDomainResponse.ReadOnly
] = proxy(UpdateDefaultMailDomain, request)
def getMobileDeviceAccessOverride(
request: GetMobileDeviceAccessOverrideRequest
): IO[
AwsError,
zio.aws.workmail.model.GetMobileDeviceAccessOverrideResponse.ReadOnly
] = proxy(GetMobileDeviceAccessOverride, request)
def createOrganization(request: CreateOrganizationRequest): IO[
AwsError,
zio.aws.workmail.model.CreateOrganizationResponse.ReadOnly
] = proxy(CreateOrganization, request)
def deleteResource(request: DeleteResourceRequest): IO[
AwsError,
zio.aws.workmail.model.DeleteResourceResponse.ReadOnly
] = proxy(DeleteResource, request)
}
}
}
}
}
}