We recommend new projects start with resources from the AWS provider.
aws-native.macie.getSession
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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>
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]
func LookupSession(ctx *Context, args *LookupSessionArgs, opts ...InvokeOption) (*LookupSessionResult, error)
func LookupSessionOutput(ctx *Context, args *LookupSessionOutputArgs, opts ...InvokeOption) LookupSessionResultOutput
> 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)
}
public static CompletableFuture<GetSessionResult> getSession(GetSessionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:macie:getSession
arguments:
# arguments dictionary
The following arguments are supported:
- Aws
Account stringId - AWS account ID of customer
- Aws
Account stringId - AWS account ID of customer
- aws
Account StringId - AWS account ID of customer
- aws
Account stringId - AWS account ID of customer
- aws_
account_ strid - AWS account ID of customer
- aws
Account StringId - AWS account ID of customer
getSession Result
The following output properties are available:
- Aws
Account stringId - AWS account ID of customer
- Finding
Publishing Pulumi.Frequency Aws Native. Macie. Session Finding Publishing Frequency - A enumeration value that specifies how frequently finding updates are published.
- Service
Role string - Service role used by Macie
- Status
Pulumi.
Aws Native. Macie. Session Status - A enumeration value that specifies the status of the Macie Session.
- Aws
Account stringId - AWS account ID of customer
- Finding
Publishing SessionFrequency Finding Publishing Frequency - A enumeration value that specifies how frequently finding updates are published.
- Service
Role string - Service role used by Macie
- Status
Session
Status - A enumeration value that specifies the status of the Macie Session.
- aws
Account StringId - AWS account ID of customer
- finding
Publishing SessionFrequency Finding Publishing Frequency - A enumeration value that specifies how frequently finding updates are published.
- service
Role String - Service role used by Macie
- status
Session
Status - A enumeration value that specifies the status of the Macie Session.
- aws
Account stringId - AWS account ID of customer
- finding
Publishing SessionFrequency Finding Publishing Frequency - A enumeration value that specifies how frequently finding updates are published.
- service
Role string - Service role used by Macie
- status
Session
Status - A enumeration value that specifies the status of the Macie Session.
- aws_
account_ strid - AWS account ID of customer
- finding_
publishing_ Sessionfrequency Finding Publishing Frequency - A enumeration value that specifies how frequently finding updates are published.
- service_
role str - Service role used by Macie
- status
Session
Status - A enumeration value that specifies the status of the Macie Session.
- aws
Account StringId - AWS account ID of customer
- finding
Publishing "FIFTEEN_MINUTES" | "ONE_HOUR" | "SIX_HOURS"Frequency - A enumeration value that specifies how frequently finding updates are published.
- service
Role String - Service role used by Macie
- status "ENABLED" | "PAUSED"
- A enumeration value that specifies the status of the Macie Session.
Supporting Types
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.