1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. macie
  5. getSession

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.macie.getSession

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

The AWS::Macie::Session resource specifies a new Amazon Macie session. A session is an object that represents the Amazon Macie service. A session is required for Amazon Macie to become operational.

Using getSession

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSession(args: GetSessionArgs, opts?: InvokeOptions): Promise<GetSessionResult>
function getSessionOutput(args: GetSessionOutputArgs, opts?: InvokeOptions): Output<GetSessionResult>
Copy
def get_session(aws_account_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetSessionResult
def get_session_output(aws_account_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetSessionResult]
Copy
func LookupSession(ctx *Context, args *LookupSessionArgs, opts ...InvokeOption) (*LookupSessionResult, error)
func LookupSessionOutput(ctx *Context, args *LookupSessionOutputArgs, opts ...InvokeOption) LookupSessionResultOutput
Copy

> Note: This function is named LookupSession in the Go SDK.

public static class GetSession 
{
    public static Task<GetSessionResult> InvokeAsync(GetSessionArgs args, InvokeOptions? opts = null)
    public static Output<GetSessionResult> Invoke(GetSessionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSessionResult> getSession(GetSessionArgs args, InvokeOptions options)
public static Output<GetSessionResult> getSession(GetSessionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:macie:getSession
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AwsAccountId This property is required. string
AWS account ID of customer
AwsAccountId This property is required. string
AWS account ID of customer
awsAccountId This property is required. String
AWS account ID of customer
awsAccountId This property is required. string
AWS account ID of customer
aws_account_id This property is required. str
AWS account ID of customer
awsAccountId This property is required. String
AWS account ID of customer

getSession Result

The following output properties are available:

AutomatedDiscoveryStatus Pulumi.AwsNative.Macie.SessionAutomatedDiscoveryStatus
The status of automated sensitive data discovery for the Macie session.
AwsAccountId string
AWS account ID of customer
FindingPublishingFrequency Pulumi.AwsNative.Macie.SessionFindingPublishingFrequency
A enumeration value that specifies how frequently finding updates are published.
ServiceRole string
Service role used by Macie
Status Pulumi.AwsNative.Macie.SessionStatus
A enumeration value that specifies the status of the Macie Session.
AutomatedDiscoveryStatus SessionAutomatedDiscoveryStatus
The status of automated sensitive data discovery for the Macie session.
AwsAccountId string
AWS account ID of customer
FindingPublishingFrequency SessionFindingPublishingFrequency
A enumeration value that specifies how frequently finding updates are published.
ServiceRole string
Service role used by Macie
Status SessionStatus
A enumeration value that specifies the status of the Macie Session.
automatedDiscoveryStatus SessionAutomatedDiscoveryStatus
The status of automated sensitive data discovery for the Macie session.
awsAccountId String
AWS account ID of customer
findingPublishingFrequency SessionFindingPublishingFrequency
A enumeration value that specifies how frequently finding updates are published.
serviceRole String
Service role used by Macie
status SessionStatus
A enumeration value that specifies the status of the Macie Session.
automatedDiscoveryStatus SessionAutomatedDiscoveryStatus
The status of automated sensitive data discovery for the Macie session.
awsAccountId string
AWS account ID of customer
findingPublishingFrequency SessionFindingPublishingFrequency
A enumeration value that specifies how frequently finding updates are published.
serviceRole string
Service role used by Macie
status SessionStatus
A enumeration value that specifies the status of the Macie Session.
automated_discovery_status SessionAutomatedDiscoveryStatus
The status of automated sensitive data discovery for the Macie session.
aws_account_id str
AWS account ID of customer
finding_publishing_frequency SessionFindingPublishingFrequency
A enumeration value that specifies how frequently finding updates are published.
service_role str
Service role used by Macie
status SessionStatus
A enumeration value that specifies the status of the Macie Session.
automatedDiscoveryStatus "ENABLED" | "DISABLED"
The status of automated sensitive data discovery for the Macie session.
awsAccountId String
AWS account ID of customer
findingPublishingFrequency "FIFTEEN_MINUTES" | "ONE_HOUR" | "SIX_HOURS"
A enumeration value that specifies how frequently finding updates are published.
serviceRole String
Service role used by Macie
status "ENABLED" | "PAUSED"
A enumeration value that specifies the status of the Macie Session.

Supporting Types

SessionAutomatedDiscoveryStatus

SessionFindingPublishingFrequency

SessionStatus

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi