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",
});
import pulumi
import pulumi_aws as aws
test = aws.macie2.Account("test",
finding_publishing_frequency="FIFTEEN_MINUTES",
status="ENABLED")
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
})
}
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",
});
});
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());
}
}
resources:
test:
type: aws:macie2:Account
properties:
findingPublishingFrequency: FIFTEEN_MINUTES
status: ENABLED
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 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.
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",
});
example, err := macie2.NewAccount(ctx, "awsAccountResource", &macie2.AccountArgs{
FindingPublishingFrequency: pulumi.String("string"),
Status: pulumi.String("string"),
})
var awsAccountResource = new Account("awsAccountResource", AccountArgs.builder()
.findingPublishingFrequency("string")
.status("string")
.build());
aws_account_resource = aws.macie2.Account("awsAccountResource",
finding_publishing_frequency="string",
status="string")
const awsAccountResource = new aws.macie2.Account("awsAccountResource", {
findingPublishingFrequency: "string",
status: "string",
});
type: aws:macie2:Account
properties:
findingPublishingFrequency: string
status: string
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:
- Finding
Publishing stringFrequency - 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
orSIX_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 areENABLED
orPAUSED
.
- Finding
Publishing stringFrequency - 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
orSIX_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 areENABLED
orPAUSED
.
- finding
Publishing StringFrequency - 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
orSIX_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 areENABLED
orPAUSED
.
- finding
Publishing stringFrequency - 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
orSIX_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 areENABLED
orPAUSED
.
- finding_
publishing_ strfrequency - 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
orSIX_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 areENABLED
orPAUSED
.
- finding
Publishing StringFrequency - 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
orSIX_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 areENABLED
orPAUSED
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- Created
At 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.
- Service
Role 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.
- Updated
At 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 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.
- Service
Role 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.
- Updated
At 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 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.
- service
Role 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.
- updated
At 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 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.
- service
Role 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.
- updated
At 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.
- created
At 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.
- service
Role 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.
- updated
At 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.
- Created
At string - The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
- Finding
Publishing stringFrequency - 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
orSIX_HOURS
. - Service
Role 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 areENABLED
orPAUSED
. - Updated
At 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 string - The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
- Finding
Publishing stringFrequency - 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
orSIX_HOURS
. - Service
Role 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 areENABLED
orPAUSED
. - Updated
At 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 String - The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
- finding
Publishing StringFrequency - 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
orSIX_HOURS
. - service
Role 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 areENABLED
orPAUSED
. - updated
At 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 string - The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
- finding
Publishing stringFrequency - 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
orSIX_HOURS
. - service
Role 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 areENABLED
orPAUSED
. - updated
At 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_ strfrequency - 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
orSIX_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 areENABLED
orPAUSED
. - 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.
- created
At String - The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.
- finding
Publishing StringFrequency - 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
orSIX_HOURS
. - service
Role 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 areENABLED
orPAUSED
. - updated
At 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
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.