1. Packages
  2. AWS
  3. API Docs
  4. fis
  5. TargetAccountConfiguration
AWS v7.14.0 published on Thursday, Dec 11, 2025 by Pulumi
aws logo
AWS v7.14.0 published on Thursday, Dec 11, 2025 by Pulumi

    Manages an AWS FIS (Fault Injection Simulator) Target Account Configuration.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.fis.TargetAccountConfiguration("example", {
        experimentTemplateId: exampleAwsFisExperimentTemplate.id,
        accountId: current.accountId,
        roleArn: fisRole.arn,
        description: "Example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.fis.TargetAccountConfiguration("example",
        experiment_template_id=example_aws_fis_experiment_template["id"],
        account_id=current["accountId"],
        role_arn=fis_role["arn"],
        description="Example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/fis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fis.NewTargetAccountConfiguration(ctx, "example", &fis.TargetAccountConfigurationArgs{
    			ExperimentTemplateId: pulumi.Any(exampleAwsFisExperimentTemplate.Id),
    			AccountId:            pulumi.Any(current.AccountId),
    			RoleArn:              pulumi.Any(fisRole.Arn),
    			Description:          pulumi.String("Example"),
    		})
    		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 example = new Aws.Fis.TargetAccountConfiguration("example", new()
        {
            ExperimentTemplateId = exampleAwsFisExperimentTemplate.Id,
            AccountId = current.AccountId,
            RoleArn = fisRole.Arn,
            Description = "Example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.fis.TargetAccountConfiguration;
    import com.pulumi.aws.fis.TargetAccountConfigurationArgs;
    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 example = new TargetAccountConfiguration("example", TargetAccountConfigurationArgs.builder()
                .experimentTemplateId(exampleAwsFisExperimentTemplate.id())
                .accountId(current.accountId())
                .roleArn(fisRole.arn())
                .description("Example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:fis:TargetAccountConfiguration
        properties:
          experimentTemplateId: ${exampleAwsFisExperimentTemplate.id}
          accountId: ${current.accountId}
          roleArn: ${fisRole.arn}
          description: Example
    

    Create TargetAccountConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TargetAccountConfiguration(name: string, args: TargetAccountConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def TargetAccountConfiguration(resource_name: str,
                                   args: TargetAccountConfigurationArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def TargetAccountConfiguration(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   account_id: Optional[str] = None,
                                   experiment_template_id: Optional[str] = None,
                                   description: Optional[str] = None,
                                   region: Optional[str] = None,
                                   role_arn: Optional[str] = None)
    func NewTargetAccountConfiguration(ctx *Context, name string, args TargetAccountConfigurationArgs, opts ...ResourceOption) (*TargetAccountConfiguration, error)
    public TargetAccountConfiguration(string name, TargetAccountConfigurationArgs args, CustomResourceOptions? opts = null)
    public TargetAccountConfiguration(String name, TargetAccountConfigurationArgs args)
    public TargetAccountConfiguration(String name, TargetAccountConfigurationArgs args, CustomResourceOptions options)
    
    type: aws:fis:TargetAccountConfiguration
    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 TargetAccountConfigurationArgs
    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 TargetAccountConfigurationArgs
    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 TargetAccountConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TargetAccountConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TargetAccountConfigurationArgs
    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 targetAccountConfigurationResource = new Aws.Fis.TargetAccountConfiguration("targetAccountConfigurationResource", new()
    {
        AccountId = "string",
        ExperimentTemplateId = "string",
        Description = "string",
        Region = "string",
        RoleArn = "string",
    });
    
    example, err := fis.NewTargetAccountConfiguration(ctx, "targetAccountConfigurationResource", &fis.TargetAccountConfigurationArgs{
    	AccountId:            pulumi.String("string"),
    	ExperimentTemplateId: pulumi.String("string"),
    	Description:          pulumi.String("string"),
    	Region:               pulumi.String("string"),
    	RoleArn:              pulumi.String("string"),
    })
    
    var targetAccountConfigurationResource = new TargetAccountConfiguration("targetAccountConfigurationResource", TargetAccountConfigurationArgs.builder()
        .accountId("string")
        .experimentTemplateId("string")
        .description("string")
        .region("string")
        .roleArn("string")
        .build());
    
    target_account_configuration_resource = aws.fis.TargetAccountConfiguration("targetAccountConfigurationResource",
        account_id="string",
        experiment_template_id="string",
        description="string",
        region="string",
        role_arn="string")
    
    const targetAccountConfigurationResource = new aws.fis.TargetAccountConfiguration("targetAccountConfigurationResource", {
        accountId: "string",
        experimentTemplateId: "string",
        description: "string",
        region: "string",
        roleArn: "string",
    });
    
    type: aws:fis:TargetAccountConfiguration
    properties:
        accountId: string
        description: string
        experimentTemplateId: string
        region: string
        roleArn: string
    

    TargetAccountConfiguration 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 TargetAccountConfiguration resource accepts the following input properties:

    AccountId string
    Account ID of the target account.
    ExperimentTemplateId string

    Experiment Template ID.

    The following arguments are optional:

    Description string
    Description of the target account.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RoleArn string
    ARN of the IAM Role for the target account.
    AccountId string
    Account ID of the target account.
    ExperimentTemplateId string

    Experiment Template ID.

    The following arguments are optional:

    Description string
    Description of the target account.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RoleArn string
    ARN of the IAM Role for the target account.
    accountId String
    Account ID of the target account.
    experimentTemplateId String

    Experiment Template ID.

    The following arguments are optional:

    description String
    Description of the target account.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    roleArn String
    ARN of the IAM Role for the target account.
    accountId string
    Account ID of the target account.
    experimentTemplateId string

    Experiment Template ID.

    The following arguments are optional:

    description string
    Description of the target account.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    roleArn string
    ARN of the IAM Role for the target account.
    account_id str
    Account ID of the target account.
    experiment_template_id str

    Experiment Template ID.

    The following arguments are optional:

    description str
    Description of the target account.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    role_arn str
    ARN of the IAM Role for the target account.
    accountId String
    Account ID of the target account.
    experimentTemplateId String

    Experiment Template ID.

    The following arguments are optional:

    description String
    Description of the target account.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    roleArn String
    ARN of the IAM Role for the target account.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TargetAccountConfiguration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TargetAccountConfiguration Resource

    Get an existing TargetAccountConfiguration 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?: TargetAccountConfigurationState, opts?: CustomResourceOptions): TargetAccountConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            description: Optional[str] = None,
            experiment_template_id: Optional[str] = None,
            region: Optional[str] = None,
            role_arn: Optional[str] = None) -> TargetAccountConfiguration
    func GetTargetAccountConfiguration(ctx *Context, name string, id IDInput, state *TargetAccountConfigurationState, opts ...ResourceOption) (*TargetAccountConfiguration, error)
    public static TargetAccountConfiguration Get(string name, Input<string> id, TargetAccountConfigurationState? state, CustomResourceOptions? opts = null)
    public static TargetAccountConfiguration get(String name, Output<String> id, TargetAccountConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: aws:fis:TargetAccountConfiguration    get:      id: ${id}
    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.
    The following state arguments are supported:
    AccountId string
    Account ID of the target account.
    Description string
    Description of the target account.
    ExperimentTemplateId string

    Experiment Template ID.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RoleArn string
    ARN of the IAM Role for the target account.
    AccountId string
    Account ID of the target account.
    Description string
    Description of the target account.
    ExperimentTemplateId string

    Experiment Template ID.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RoleArn string
    ARN of the IAM Role for the target account.
    accountId String
    Account ID of the target account.
    description String
    Description of the target account.
    experimentTemplateId String

    Experiment Template ID.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    roleArn String
    ARN of the IAM Role for the target account.
    accountId string
    Account ID of the target account.
    description string
    Description of the target account.
    experimentTemplateId string

    Experiment Template ID.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    roleArn string
    ARN of the IAM Role for the target account.
    account_id str
    Account ID of the target account.
    description str
    Description of the target account.
    experiment_template_id str

    Experiment Template ID.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    role_arn str
    ARN of the IAM Role for the target account.
    accountId String
    Account ID of the target account.
    description String
    Description of the target account.
    experimentTemplateId String

    Experiment Template ID.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    roleArn String
    ARN of the IAM Role for the target account.

    Import

    Using pulumi import, import FIS (Fault Injection Simulator) Target Account Configuration using the account_id,experiment_template_id. For example:

    $ pulumi import aws:fis/targetAccountConfiguration:TargetAccountConfiguration example 123456789012,abcd123456789
    

    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.
    aws logo
    AWS v7.14.0 published on Thursday, Dec 11, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate