getServiceAccount

Use this data source to get the Account ID of the AWS Redshift Service Account in a given region for the purpose of allowing Redshift to store audit data in S3.

Note: AWS documentation states that a service principal name should be used instead of an AWS account ID in any relevant IAM policy. The aws.redshift.getServiceAccount data source should now be considered deprecated and will be removed in a future version.

Return

A collection of values returned by getServiceAccount.

Parameters

argument

A collection of arguments for invoking getServiceAccount.


suspend fun getServiceAccount(region: String? = null): GetServiceAccountResult

Return

A collection of values returned by getServiceAccount.

Parameters

region

Name of the region whose AWS Redshift account ID is desired. Defaults to the region from the AWS provider configuration.

See also


Return

A collection of values returned by getServiceAccount.

Parameters

argument

Builder for com.pulumi.aws.redshift.kotlin.inputs.GetServiceAccountPlainArgs.

See also