AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.redshift.getServiceAccount
Explore with Pulumi AI
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.
Using getServiceAccount
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 getServiceAccount(args: GetServiceAccountArgs, opts?: InvokeOptions): Promise<GetServiceAccountResult>
function getServiceAccountOutput(args: GetServiceAccountOutputArgs, opts?: InvokeOptions): Output<GetServiceAccountResult>
def get_service_account(region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceAccountResult
def get_service_account_output(region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceAccountResult]
func GetServiceAccount(ctx *Context, args *GetServiceAccountArgs, opts ...InvokeOption) (*GetServiceAccountResult, error)
func GetServiceAccountOutput(ctx *Context, args *GetServiceAccountOutputArgs, opts ...InvokeOption) GetServiceAccountResultOutput
> Note: This function is named GetServiceAccount
in the Go SDK.
public static class GetServiceAccount
{
public static Task<GetServiceAccountResult> InvokeAsync(GetServiceAccountArgs args, InvokeOptions? opts = null)
public static Output<GetServiceAccountResult> Invoke(GetServiceAccountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceAccountResult> getServiceAccount(GetServiceAccountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:redshift/getServiceAccount:getServiceAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Region string
Name of the region whose AWS Redshift account ID is desired. Defaults to the region from the AWS provider configuration.
- Region string
Name of the region whose AWS Redshift account ID is desired. Defaults to the region from the AWS provider configuration.
- region String
Name of the region whose AWS Redshift account ID is desired. Defaults to the region from the AWS provider configuration.
- region string
Name of the region whose AWS Redshift account ID is desired. Defaults to the region from the AWS provider configuration.
- region str
Name of the region whose AWS Redshift account ID is desired. Defaults to the region from the AWS provider configuration.
- region String
Name of the region whose AWS Redshift account ID is desired. Defaults to the region from the AWS provider configuration.
getServiceAccount Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.