1. Packages
  2. AWS
  3. API Docs
  4. macie2
  5. Account
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.macie2.Account

Explore with Pulumi AI

Provides a resource to manage an AWS Macie Account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.macie2.Account("test", {
    findingPublishingFrequency: "FIFTEEN_MINUTES",
    status: "ENABLED",
});
Copy
import pulumi
import pulumi_aws as aws

test = aws.macie2.Account("test",
    finding_publishing_frequency="FIFTEEN_MINUTES",
    status="ENABLED")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/macie2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := macie2.NewAccount(ctx, "test", &macie2.AccountArgs{
			FindingPublishingFrequency: pulumi.String("FIFTEEN_MINUTES"),
			Status:                     pulumi.String("ENABLED"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = new Aws.Macie2.Account("test", new()
    {
        FindingPublishingFrequency = "FIFTEEN_MINUTES",
        Status = "ENABLED",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.macie2.Account;
import com.pulumi.aws.macie2.AccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var test = new Account("test", AccountArgs.builder()
            .findingPublishingFrequency("FIFTEEN_MINUTES")
            .status("ENABLED")
            .build());

    }
}
Copy
resources:
  test:
    type: aws:macie2:Account
    properties:
      findingPublishingFrequency: FIFTEEN_MINUTES
      status: ENABLED
Copy

Create Account Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            args: Optional[AccountArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            finding_publishing_frequency: Optional[str] = None,
            status: Optional[str] = None)
func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: aws:macie2:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var awsAccountResource = new Aws.Macie2.Account("awsAccountResource", new()
{
    FindingPublishingFrequency = "string",
    Status = "string",
});
Copy
example, err := macie2.NewAccount(ctx, "awsAccountResource", &macie2.AccountArgs{
	FindingPublishingFrequency: pulumi.String("string"),
	Status:                     pulumi.String("string"),
})
Copy
var awsAccountResource = new Account("awsAccountResource", AccountArgs.builder()
    .findingPublishingFrequency("string")
    .status("string")
    .build());
Copy
aws_account_resource = aws.macie2.Account("awsAccountResource",
    finding_publishing_frequency="string",
    status="string")
Copy
const awsAccountResource = new aws.macie2.Account("awsAccountResource", {
    findingPublishingFrequency: "string",
    status: "string",
});
Copy
type: aws:macie2:Account
properties:
    findingPublishingFrequency: string
    status: string
Copy

Account Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Account resource accepts the following input properties:

FindingPublishingFrequency string
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
Status string
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
FindingPublishingFrequency string
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
Status string
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
findingPublishingFrequency String
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
status String
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
findingPublishingFrequency string
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
status string
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
finding_publishing_frequency str
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
status str
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
findingPublishingFrequency String
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
status String
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

CreatedAt string
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
Id string
The provider-assigned unique ID for this managed resource.
ServiceRole string
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
UpdatedAt string
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
CreatedAt string
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
Id string
The provider-assigned unique ID for this managed resource.
ServiceRole string
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
UpdatedAt string
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
createdAt String
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
id String
The provider-assigned unique ID for this managed resource.
serviceRole String
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
updatedAt String
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
createdAt string
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
id string
The provider-assigned unique ID for this managed resource.
serviceRole string
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
updatedAt string
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
created_at str
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
id str
The provider-assigned unique ID for this managed resource.
service_role str
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
updated_at str
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
createdAt String
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
id String
The provider-assigned unique ID for this managed resource.
serviceRole String
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
updatedAt String
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.

Look up Existing Account Resource

Get an existing Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        finding_publishing_frequency: Optional[str] = None,
        service_role: Optional[str] = None,
        status: Optional[str] = None,
        updated_at: Optional[str] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
resources:  _:    type: aws:macie2:Account    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreatedAt string
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
FindingPublishingFrequency string
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
ServiceRole string
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
Status string
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
UpdatedAt string
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
CreatedAt string
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
FindingPublishingFrequency string
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
ServiceRole string
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
Status string
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
UpdatedAt string
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
createdAt String
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
findingPublishingFrequency String
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
serviceRole String
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
status String
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
updatedAt String
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
createdAt string
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
findingPublishingFrequency string
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
serviceRole string
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
status string
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
updatedAt string
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
created_at str
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
finding_publishing_frequency str
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
service_role str
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
status str
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
updated_at str
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.
createdAt String
The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
findingPublishingFrequency String
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS.
serviceRole String
The Amazon Resource Name (ARN) of the service-linked role that allows Macie to monitor and analyze data in AWS resources for the account.
status String
Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED.
updatedAt String
The date and time, in UTC and extended RFC 3339 format, of the most recent change to the status of the Macie account.

Import

Using pulumi import, import aws_macie2_account using the id. For example:

$ pulumi import aws:macie2/account:Account example abcd1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.