aws logo
AWS Classic v5.33.0, Mar 24 23

aws.macie2.Account

Provides a resource to manage an AWS Macie Account.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

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

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
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());

    }
}
import pulumi
import pulumi_aws as aws

test = aws.macie2.Account("test",
    finding_publishing_frequency="FIFTEEN_MINUTES",
    status="ENABLED")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.macie2.Account("test", {
    findingPublishingFrequency: "FIFTEEN_MINUTES",
    status: "ENABLED",
});
resources:
  test:
    type: aws:macie2:Account
    properties:
      findingPublishingFrequency: FIFTEEN_MINUTES
      status: ENABLED

Create Account Resource

new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            finding_publishing_frequency: Optional[str] = None,
            status: Optional[str] = None)
@overload
def Account(resource_name: str,
            args: Optional[AccountArgs] = None,
            opts: Optional[ResourceOptions] = 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.

name 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 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 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 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 String
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

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)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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

aws_macie2_account can be imported using the id, e.g.,

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

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.