Skip to main content Link Search Menu Expand Document (external link)

CloudTrailService overview

Added in v1.0.0


Table of contents


constructors

makeCloudTrailService

Signature

export declare const makeCloudTrailService: Effect.Effect<any, unknown, unknown>

Added in v1.0.0

models

CloudTrailService (class)

Signature

export declare class CloudTrailService

Added in v1.0.0

CloudTrailService$ (interface)

Signature

export interface CloudTrailService$ {
  /**
   * @see {@link AddTagsCommand}
   */
  addTags(
    args: AddTagsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    AddTagsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelARNInvalidError
    | ChannelNotFoundError
    | CloudTrailARNInvalidError
    | ConflictError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidTagParameterError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | ResourceNotFoundError
    | ResourceTypeNotSupportedError
    | TagsLimitExceededError
    | UnsupportedOperationError
  >

  /**
   * @see {@link CancelQueryCommand}
   */
  cancelQuery(
    args: CancelQueryCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    CancelQueryCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ConflictError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InactiveQueryError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | QueryIdNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link CreateChannelCommand}
   */
  createChannel(
    args: CreateChannelCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    CreateChannelCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelAlreadyExistsError
    | ChannelMaxLimitExceededError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidEventDataStoreCategoryError
    | InvalidParameterError
    | InvalidSourceError
    | InvalidTagParameterError
    | OperationNotPermittedError
    | TagsLimitExceededError
    | UnsupportedOperationError
  >

  /**
   * @see {@link CreateDashboardCommand}
   */
  createDashboard(
    args: CreateDashboardCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    CreateDashboardCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ConflictError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientEncryptionPolicyError
    | InvalidQueryStatementError
    | InvalidTagParameterError
    | ServiceQuotaExceededError
    | UnsupportedOperationError
  >

  /**
   * @see {@link CreateEventDataStoreCommand}
   */
  createEventDataStore(
    args: CreateEventDataStoreCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    CreateEventDataStoreCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailAccessNotEnabledError
    | ConflictError
    | EventDataStoreAlreadyExistsError
    | EventDataStoreMaxLimitExceededError
    | InsufficientDependencyServiceAccessPermissionError
    | InsufficientEncryptionPolicyError
    | InvalidEventSelectorsError
    | InvalidKmsKeyIdError
    | InvalidParameterError
    | InvalidTagParameterError
    | KmsError
    | KmsKeyNotFoundError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | ThrottlingError
    | UnsupportedOperationError
  >

  /**
   * @see {@link CreateTrailCommand}
   */
  createTrail(
    args: CreateTrailCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    CreateTrailCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailAccessNotEnabledError
    | CloudTrailInvalidClientTokenIdError
    | CloudWatchLogsDeliveryUnavailableError
    | ConflictError
    | InsufficientDependencyServiceAccessPermissionError
    | InsufficientEncryptionPolicyError
    | InsufficientS3BucketPolicyError
    | InsufficientSnsTopicPolicyError
    | InvalidCloudWatchLogsLogGroupArnError
    | InvalidCloudWatchLogsRoleArnError
    | InvalidKmsKeyIdError
    | InvalidParameterCombinationError
    | InvalidParameterError
    | InvalidS3BucketNameError
    | InvalidS3PrefixError
    | InvalidSnsTopicNameError
    | InvalidTagParameterError
    | InvalidTrailNameError
    | KmsError
    | KmsKeyDisabledError
    | KmsKeyNotFoundError
    | MaximumNumberOfTrailsExceededError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | S3BucketDoesNotExistError
    | TagsLimitExceededError
    | ThrottlingError
    | TrailAlreadyExistsError
    | TrailNotProvidedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DeleteChannelCommand}
   */
  deleteChannel(
    args: DeleteChannelCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DeleteChannelCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelARNInvalidError
    | ChannelNotFoundError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DeleteDashboardCommand}
   */
  deleteDashboard(
    args: DeleteDashboardCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DeleteDashboardCommandOutput,
    Cause.TimeoutError | SdkError | ConflictError | ResourceNotFoundError | UnsupportedOperationError
  >

  /**
   * @see {@link DeleteEventDataStoreCommand}
   */
  deleteEventDataStore(
    args: DeleteEventDataStoreCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DeleteEventDataStoreCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelExistsForEDSError
    | ConflictError
    | EventDataStoreARNInvalidError
    | EventDataStoreFederationEnabledError
    | EventDataStoreHasOngoingImportError
    | EventDataStoreNotFoundError
    | EventDataStoreTerminationProtectedError
    | InactiveEventDataStoreError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DeleteResourcePolicyCommand}
   */
  deleteResourcePolicy(
    args: DeleteResourcePolicyCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DeleteResourcePolicyCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ConflictError
    | OperationNotPermittedError
    | ResourceARNNotValidError
    | ResourceNotFoundError
    | ResourcePolicyNotFoundError
    | ResourceTypeNotSupportedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DeleteTrailCommand}
   */
  deleteTrail(
    args: DeleteTrailCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DeleteTrailCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | ConflictError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidHomeRegionError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | ThrottlingError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DeregisterOrganizationDelegatedAdminCommand}
   */
  deregisterOrganizationDelegatedAdmin(
    args: DeregisterOrganizationDelegatedAdminCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DeregisterOrganizationDelegatedAdminCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | AccountNotFoundError
    | AccountNotRegisteredError
    | CloudTrailAccessNotEnabledError
    | ConflictError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidParameterError
    | NotOrganizationManagementAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DescribeQueryCommand}
   */
  describeQuery(
    args: DescribeQueryCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DescribeQueryCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | QueryIdNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DescribeTrailsCommand}
   */
  describeTrails(
    args: DescribeTrailsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DescribeTrailsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link DisableFederationCommand}
   */
  disableFederation(
    args: DisableFederationCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    DisableFederationCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | AccessDeniedError
    | CloudTrailAccessNotEnabledError
    | ConcurrentModificationError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | UnsupportedOperationError
  >

  /**
   * @see {@link EnableFederationCommand}
   */
  enableFederation(
    args: EnableFederationCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    EnableFederationCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | AccessDeniedError
    | CloudTrailAccessNotEnabledError
    | ConcurrentModificationError
    | EventDataStoreARNInvalidError
    | EventDataStoreFederationEnabledError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GenerateQueryCommand}
   */
  generateQuery(
    args: GenerateQueryCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GenerateQueryCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | GenerateResponseError
    | InactiveEventDataStoreError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetChannelCommand}
   */
  getChannel(
    args: GetChannelCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetChannelCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelARNInvalidError
    | ChannelNotFoundError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetDashboardCommand}
   */
  getDashboard(
    args: GetDashboardCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetDashboardCommandOutput,
    Cause.TimeoutError | SdkError | ResourceNotFoundError | UnsupportedOperationError
  >

  /**
   * @see {@link GetEventConfigurationCommand}
   */
  getEventConfiguration(
    args: GetEventConfigurationCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetEventConfigurationCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InvalidEventDataStoreCategoryError
    | InvalidEventDataStoreStatusError
    | InvalidParameterCombinationError
    | InvalidParameterError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetEventDataStoreCommand}
   */
  getEventDataStore(
    args: GetEventDataStoreCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetEventDataStoreCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetEventSelectorsCommand}
   */
  getEventSelectors(
    args: GetEventSelectorsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetEventSelectorsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetImportCommand}
   */
  getImport(
    args: GetImportCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetImportCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ImportNotFoundError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetInsightSelectorsCommand}
   */
  getInsightSelectors(
    args: GetInsightSelectorsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetInsightSelectorsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | InsightNotEnabledError
    | InvalidParameterCombinationError
    | InvalidParameterError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | ThrottlingError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetQueryResultsCommand}
   */
  getQueryResults(
    args: GetQueryResultsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetQueryResultsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientEncryptionPolicyError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | QueryIdNotFoundError
    | UnsupportedOperationError
  >

  getQueryResultsStream(
    args: GetQueryResultsCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    GetQueryResultsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientEncryptionPolicyError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | QueryIdNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetResourcePolicyCommand}
   */
  getResourcePolicy(
    args: GetResourcePolicyCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetResourcePolicyCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | OperationNotPermittedError
    | ResourceARNNotValidError
    | ResourceNotFoundError
    | ResourcePolicyNotFoundError
    | ResourceTypeNotSupportedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetTrailCommand}
   */
  getTrail(
    args: GetTrailCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetTrailCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | InvalidTrailNameError
    | OperationNotPermittedError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link GetTrailStatusCommand}
   */
  getTrailStatus(
    args: GetTrailStatusCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    GetTrailStatusCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | InvalidTrailNameError
    | OperationNotPermittedError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListChannelsCommand}
   */
  listChannels(
    args: ListChannelsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListChannelsCommandOutput,
    Cause.TimeoutError | SdkError | InvalidNextTokenError | OperationNotPermittedError | UnsupportedOperationError
  >

  listChannelsStream(
    args: ListChannelsCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListChannelsCommandOutput,
    Cause.TimeoutError | SdkError | InvalidNextTokenError | OperationNotPermittedError | UnsupportedOperationError
  >

  /**
   * @see {@link ListDashboardsCommand}
   */
  listDashboards(
    args: ListDashboardsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<ListDashboardsCommandOutput, Cause.TimeoutError | SdkError | UnsupportedOperationError>

  /**
   * @see {@link ListEventDataStoresCommand}
   */
  listEventDataStores(
    args: ListEventDataStoresCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListEventDataStoresCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  listEventDataStoresStream(
    args: ListEventDataStoresCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListEventDataStoresCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListImportFailuresCommand}
   */
  listImportFailures(
    args: ListImportFailuresCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListImportFailuresCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidNextTokenError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  listImportFailuresStream(
    args: ListImportFailuresCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListImportFailuresCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidNextTokenError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListImportsCommand}
   */
  listImports(
    args: ListImportsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListImportsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | InvalidNextTokenError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  listImportsStream(
    args: ListImportsCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListImportsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | InvalidNextTokenError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListInsightsDataCommand}
   */
  listInsightsData(
    args: ListInsightsDataCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListInsightsDataCommandOutput,
    Cause.TimeoutError | SdkError | InvalidParameterError | OperationNotPermittedError | UnsupportedOperationError
  >

  listInsightsDataStream(
    args: ListInsightsDataCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListInsightsDataCommandOutput,
    Cause.TimeoutError | SdkError | InvalidParameterError | OperationNotPermittedError | UnsupportedOperationError
  >

  /**
   * @see {@link ListInsightsMetricDataCommand}
   */
  listInsightsMetricData(
    args: ListInsightsMetricDataCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListInsightsMetricDataCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidParameterError
    | InvalidTrailNameError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  listInsightsMetricDataStream(
    args: ListInsightsMetricDataCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListInsightsMetricDataCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidParameterError
    | InvalidTrailNameError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListPublicKeysCommand}
   */
  listPublicKeys(
    args: ListPublicKeysCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListPublicKeysCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidTimeRangeError
    | InvalidTokenError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  listPublicKeysStream(
    args: ListPublicKeysCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListPublicKeysCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidTimeRangeError
    | InvalidTokenError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListQueriesCommand}
   */
  listQueries(
    args: ListQueriesCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListQueriesCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidDateRangeError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | InvalidParameterError
    | InvalidQueryStatusError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  listQueriesStream(
    args: ListQueriesCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListQueriesCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidDateRangeError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | InvalidParameterError
    | InvalidQueryStatusError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListTagsCommand}
   */
  listTags(
    args: ListTagsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListTagsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelARNInvalidError
    | CloudTrailARNInvalidError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidTokenError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | ResourceNotFoundError
    | ResourceTypeNotSupportedError
    | UnsupportedOperationError
  >

  listTagsStream(
    args: ListTagsCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListTagsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelARNInvalidError
    | CloudTrailARNInvalidError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidTokenError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | ResourceNotFoundError
    | ResourceTypeNotSupportedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link ListTrailsCommand}
   */
  listTrails(
    args: ListTrailsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    ListTrailsCommandOutput,
    Cause.TimeoutError | SdkError | OperationNotPermittedError | UnsupportedOperationError
  >

  listTrailsStream(
    args: ListTrailsCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    ListTrailsCommandOutput,
    Cause.TimeoutError | SdkError | OperationNotPermittedError | UnsupportedOperationError
  >

  /**
   * @see {@link LookupEventsCommand}
   */
  lookupEvents(
    args: LookupEventsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    LookupEventsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidEventCategoryError
    | InvalidLookupAttributesError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | InvalidTimeRangeError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  lookupEventsStream(
    args: LookupEventsCommandInput,
    options?: HttpHandlerOptions
  ): Stream.Stream<
    LookupEventsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | InvalidEventCategoryError
    | InvalidLookupAttributesError
    | InvalidMaxResultsError
    | InvalidNextTokenError
    | InvalidTimeRangeError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link PutEventConfigurationCommand}
   */
  putEventConfiguration(
    args: PutEventConfigurationCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    PutEventConfigurationCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | ConflictError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientDependencyServiceAccessPermissionError
    | InsufficientIAMAccessPermissionError
    | InvalidEventDataStoreCategoryError
    | InvalidEventDataStoreStatusError
    | InvalidHomeRegionError
    | InvalidParameterCombinationError
    | InvalidParameterError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | ThrottlingError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link PutEventSelectorsCommand}
   */
  putEventSelectors(
    args: PutEventSelectorsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    PutEventSelectorsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | ConflictError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidEventSelectorsError
    | InvalidHomeRegionError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | ThrottlingError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link PutInsightSelectorsCommand}
   */
  putInsightSelectors(
    args: PutInsightSelectorsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    PutInsightSelectorsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | ConflictError
    | InsufficientEncryptionPolicyError
    | InsufficientS3BucketPolicyError
    | InvalidHomeRegionError
    | InvalidInsightSelectorsError
    | InvalidParameterCombinationError
    | InvalidParameterError
    | InvalidTrailNameError
    | KmsError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | S3BucketDoesNotExistError
    | ThrottlingError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link PutResourcePolicyCommand}
   */
  putResourcePolicy(
    args: PutResourcePolicyCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    PutResourcePolicyCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ConflictError
    | OperationNotPermittedError
    | ResourceARNNotValidError
    | ResourceNotFoundError
    | ResourcePolicyNotValidError
    | ResourceTypeNotSupportedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link RegisterOrganizationDelegatedAdminCommand}
   */
  registerOrganizationDelegatedAdmin(
    args: RegisterOrganizationDelegatedAdminCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    RegisterOrganizationDelegatedAdminCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | AccountNotFoundError
    | AccountRegisteredError
    | CannotDelegateManagementAccountError
    | CloudTrailAccessNotEnabledError
    | ConflictError
    | DelegatedAdminAccountLimitExceededError
    | InsufficientDependencyServiceAccessPermissionError
    | InsufficientIAMAccessPermissionError
    | InvalidParameterError
    | NotOrganizationManagementAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | UnsupportedOperationError
  >

  /**
   * @see {@link RemoveTagsCommand}
   */
  removeTags(
    args: RemoveTagsCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    RemoveTagsCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelARNInvalidError
    | ChannelNotFoundError
    | CloudTrailARNInvalidError
    | ConflictError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidTagParameterError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | ResourceNotFoundError
    | ResourceTypeNotSupportedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link RestoreEventDataStoreCommand}
   */
  restoreEventDataStore(
    args: RestoreEventDataStoreCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    RestoreEventDataStoreCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailAccessNotEnabledError
    | EventDataStoreARNInvalidError
    | EventDataStoreMaxLimitExceededError
    | EventDataStoreNotFoundError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidEventDataStoreStatusError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | UnsupportedOperationError
  >

  /**
   * @see {@link SearchSampleQueriesCommand}
   */
  searchSampleQueries(
    args: SearchSampleQueriesCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    SearchSampleQueriesCommandOutput,
    Cause.TimeoutError | SdkError | InvalidParameterError | OperationNotPermittedError | UnsupportedOperationError
  >

  /**
   * @see {@link StartDashboardRefreshCommand}
   */
  startDashboardRefresh(
    args: StartDashboardRefreshCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StartDashboardRefreshCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | ResourceNotFoundError
    | ServiceQuotaExceededError
    | UnsupportedOperationError
  >

  /**
   * @see {@link StartEventDataStoreIngestionCommand}
   */
  startEventDataStoreIngestion(
    args: StartEventDataStoreIngestionCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StartEventDataStoreIngestionCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ConflictError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidEventDataStoreCategoryError
    | InvalidEventDataStoreStatusError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link StartImportCommand}
   */
  startImport(
    args: StartImportCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StartImportCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | AccountHasOngoingImportError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | ImportNotFoundError
    | InactiveEventDataStoreError
    | InsufficientEncryptionPolicyError
    | InvalidEventDataStoreCategoryError
    | InvalidEventDataStoreStatusError
    | InvalidImportSourceError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link StartLoggingCommand}
   */
  startLogging(
    args: StartLoggingCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StartLoggingCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | ConflictError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidHomeRegionError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | ThrottlingError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link StartQueryCommand}
   */
  startQuery(
    args: StartQueryCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StartQueryCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientEncryptionPolicyError
    | InsufficientS3BucketPolicyError
    | InvalidParameterError
    | InvalidQueryStatementError
    | InvalidS3BucketNameError
    | InvalidS3PrefixError
    | MaxConcurrentQueriesError
    | NoManagementAccountSLRExistsError
    | OperationNotPermittedError
    | S3BucketDoesNotExistError
    | UnsupportedOperationError
  >

  /**
   * @see {@link StopEventDataStoreIngestionCommand}
   */
  stopEventDataStoreIngestion(
    args: StopEventDataStoreIngestionCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StopEventDataStoreIngestionCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ConflictError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidEventDataStoreCategoryError
    | InvalidEventDataStoreStatusError
    | InvalidParameterError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link StopImportCommand}
   */
  stopImport(
    args: StopImportCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StopImportCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ImportNotFoundError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link StopLoggingCommand}
   */
  stopLogging(
    args: StopLoggingCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    StopLoggingCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailARNInvalidError
    | ConflictError
    | InsufficientDependencyServiceAccessPermissionError
    | InvalidHomeRegionError
    | InvalidTrailNameError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | ThrottlingError
    | TrailNotFoundError
    | UnsupportedOperationError
  >

  /**
   * @see {@link UpdateChannelCommand}
   */
  updateChannel(
    args: UpdateChannelCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    UpdateChannelCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ChannelAlreadyExistsError
    | ChannelARNInvalidError
    | ChannelNotFoundError
    | EventDataStoreARNInvalidError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InvalidEventDataStoreCategoryError
    | InvalidParameterError
    | OperationNotPermittedError
    | UnsupportedOperationError
  >

  /**
   * @see {@link UpdateDashboardCommand}
   */
  updateDashboard(
    args: UpdateDashboardCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    UpdateDashboardCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | ConflictError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientEncryptionPolicyError
    | InvalidQueryStatementError
    | ResourceNotFoundError
    | ServiceQuotaExceededError
    | UnsupportedOperationError
  >

  /**
   * @see {@link UpdateEventDataStoreCommand}
   */
  updateEventDataStore(
    args: UpdateEventDataStoreCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    UpdateEventDataStoreCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailAccessNotEnabledError
    | ConflictError
    | EventDataStoreAlreadyExistsError
    | EventDataStoreARNInvalidError
    | EventDataStoreHasOngoingImportError
    | EventDataStoreNotFoundError
    | InactiveEventDataStoreError
    | InsufficientDependencyServiceAccessPermissionError
    | InsufficientEncryptionPolicyError
    | InvalidEventSelectorsError
    | InvalidInsightSelectorsError
    | InvalidKmsKeyIdError
    | InvalidParameterError
    | KmsError
    | KmsKeyNotFoundError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | ThrottlingError
    | UnsupportedOperationError
  >

  /**
   * @see {@link UpdateTrailCommand}
   */
  updateTrail(
    args: UpdateTrailCommandInput,
    options?: HttpHandlerOptions
  ): Effect.Effect<
    UpdateTrailCommandOutput,
    | Cause.TimeoutError
    | SdkError
    | CloudTrailAccessNotEnabledError
    | CloudTrailARNInvalidError
    | CloudTrailInvalidClientTokenIdError
    | CloudWatchLogsDeliveryUnavailableError
    | ConflictError
    | InsufficientDependencyServiceAccessPermissionError
    | InsufficientEncryptionPolicyError
    | InsufficientS3BucketPolicyError
    | InsufficientSnsTopicPolicyError
    | InvalidCloudWatchLogsLogGroupArnError
    | InvalidCloudWatchLogsRoleArnError
    | InvalidEventSelectorsError
    | InvalidHomeRegionError
    | InvalidKmsKeyIdError
    | InvalidParameterCombinationError
    | InvalidParameterError
    | InvalidS3BucketNameError
    | InvalidS3PrefixError
    | InvalidSnsTopicNameError
    | InvalidTrailNameError
    | KmsError
    | KmsKeyDisabledError
    | KmsKeyNotFoundError
    | NoManagementAccountSLRExistsError
    | NotOrganizationMasterAccountError
    | OperationNotPermittedError
    | OrganizationNotInAllFeaturesModeError
    | OrganizationsNotInUseError
    | S3BucketDoesNotExistError
    | ThrottlingError
    | TrailNotFoundError
    | TrailNotProvidedError
    | UnsupportedOperationError
  >
}

Added in v1.0.0

utils

CloudTrailService (namespace)

Added in v1.0.0

Config (interface)

Signature

export interface Config extends Omit<CloudTrailClientConfig, "logger"> {
  readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true
}

Added in v1.0.0

Type (type alias)

Signature

export type Type = CloudTrailService$

Added in v1.0.0