Macie

public struct Macie

Client object for interacting with AWS Macie service.

Amazon Macie Classic Amazon Macie Classic is a security service that uses machine learning to automatically discover, classify, and protect sensitive data in AWS. Macie Classic recognizes sensitive data such as personally identifiable information (PII) or intellectual property, and provides you with dashboards and alerts that give visibility into how this data is being accessed or moved. For more information, see the Amazon Macie Classic User Guide. A new Amazon Macie is now available with significant design improvements and additional features, at a lower price and in most AWS Regions. We encourage you to explore and use the new and improved features, and benefit from the reduced cost. To learn about features and pricing for the new Amazon Macie, see Amazon Macie.

  • Initialize the Macie client

    Declaration

    Swift

    public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)

    Parameters

    accessKeyId

    Public access key provided by AWS

    secretAccessKey

    Private access key provided by AWS

    sessionToken

    Token provided by STS.AssumeRole() which allows access to another AWS account

    region

    Region of server you want to communicate with

    endpoint

    Custom endpoint URL to use instead of standard AWS servers

    middlewares

    Array of middlewares to apply to requests and responses

    eventLoopGroupProvider

    EventLoopGroup to use. Use useAWSClientShared if the client shall manage its own EventLoopGroup.

  • Associates a specified AWS account with Amazon Macie Classic as a member account.

    Declaration

    Swift

    @discardableResult
    public func associateMemberAccount(_ input: AssociateMemberAccountRequest) -> EventLoopFuture<Void>
  • Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If memberAccountId isn’t specified, the action associates specified S3 resources with Macie Classic for the current master account. If memberAccountId is specified, the action associates specified S3 resources with Macie Classic for the specified member account.

    Declaration

    Swift

    public func associateS3Resources(_ input: AssociateS3ResourcesRequest) -> EventLoopFuture<AssociateS3ResourcesResult>
  • Removes the specified member account from Amazon Macie Classic.

    Declaration

    Swift

    @discardableResult
    public func disassociateMemberAccount(_ input: DisassociateMemberAccountRequest) -> EventLoopFuture<Void>
  • Removes specified S3 resources from being monitored by Amazon Macie Classic. If memberAccountId isn’t specified, the action removes specified S3 resources from Macie Classic for the current master account. If memberAccountId is specified, the action removes specified S3 resources from Macie Classic for the specified member account.

    Declaration

    Swift

    public func disassociateS3Resources(_ input: DisassociateS3ResourcesRequest) -> EventLoopFuture<DisassociateS3ResourcesResult>
  • Lists all Amazon Macie Classic member accounts for the current Amazon Macie Classic master account.

    Declaration

    Swift

    public func listMemberAccounts(_ input: ListMemberAccountsRequest) -> EventLoopFuture<ListMemberAccountsResult>
  • Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn’t specified, the action lists the S3 resources associated with Amazon Macie Classic for the current master account. If memberAccountId is specified, the action lists the S3 resources associated with Amazon Macie Classic for the specified member account.

    Declaration

    Swift

    public func listS3Resources(_ input: ListS3ResourcesRequest) -> EventLoopFuture<ListS3ResourcesResult>
  • Updates the classification types for the specified S3 resources. If memberAccountId isn’t specified, the action updates the classification types of the S3 resources associated with Amazon Macie Classic for the current master account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Amazon Macie Classic for the specified member account.

    Declaration

    Swift

    public func updateS3Resources(_ input: UpdateS3ResourcesRequest) -> EventLoopFuture<UpdateS3ResourcesResult>
  • Lists all Amazon Macie Classic member accounts for the current Amazon Macie Classic master account.

    Declaration

    Swift

    public func listMemberAccountsPaginator(_ input: ListMemberAccountsRequest, onPage: @escaping (ListMemberAccountsResult, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
  • Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn’t specified, the action lists the S3 resources associated with Amazon Macie Classic for the current master account. If memberAccountId is specified, the action lists the S3 resources associated with Amazon Macie Classic for the specified member account.

    Declaration

    Swift

    public func listS3ResourcesPaginator(_ input: ListS3ResourcesRequest, onPage: @escaping (ListS3ResourcesResult, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>