1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. devopsagent
  6. Asset
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi

    Manages an AWS DevOps Agent Asset.

    Note: content and metadata are inputs retained in Terraform state. Terraform does not detect out-of-band changes to these inputs. metadataActual exposes the current metadata returned by AWS. Import cannot recover the original content or metadata input.

    Note: Updating ZIP content replaces all files in the asset, including files managed separately. Updating single-file content adds or replaces that file without deleting other files. Updating source URL content re-syncs from the original source; an unchanged URL does not trigger a re-sync.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.devopsagent.AgentSpace("example", {name: "example"});
    const exampleAsset = new aws.devopsagent.Asset("example", {
        content: {
            file: {
                body: {
                    text: "Follow the operational runbook.",
                },
                path: "AGENTS.md",
            },
        },
        agentSpaceId: example.agentSpaceId,
        assetType: "agents_md",
        metadata: JSON.stringify({
            agent_type: "GENERIC",
        }),
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example = aws.devopsagent.AgentSpace("example", name="example")
    example_asset = aws.devopsagent.Asset("example",
        content={
            "file": {
                "body": {
                    "text": "Follow the operational runbook.",
                },
                "path": "AGENTS.md",
            },
        },
        agent_space_id=example.agent_space_id,
        asset_type="agents_md",
        metadata=json.dumps({
            "agent_type": "GENERIC",
        }))
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/devopsagent"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devopsagent.NewAgentSpace(ctx, "example", &devopsagent.AgentSpaceArgs{
    			Name: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]string{
    			"agent_type": "GENERIC",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = devopsagent.NewAsset(ctx, "example", &devopsagent.AssetArgs{
    			Content: &devopsagent.AssetContentArgs{
    				File: &devopsagent.AssetContentFileArgs{
    					Body: &devopsagent.AssetContentFileBodyArgs{
    						Text: pulumi.String("Follow the operational runbook."),
    					},
    					Path: pulumi.String("AGENTS.md"),
    				},
    			},
    			AgentSpaceId: example.AgentSpaceId,
    			AssetType:    pulumi.String("agents_md"),
    			Metadata:     pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.DevOpsAgent.AgentSpace("example", new()
        {
            Name = "example",
        });
    
        var exampleAsset = new Aws.DevOpsAgent.Asset("example", new()
        {
            Content = new Aws.DevOpsAgent.Inputs.AssetContentArgs
            {
                File = new Aws.DevOpsAgent.Inputs.AssetContentFileArgs
                {
                    Body = new Aws.DevOpsAgent.Inputs.AssetContentFileBodyArgs
                    {
                        Text = "Follow the operational runbook.",
                    },
                    Path = "AGENTS.md",
                },
            },
            AgentSpaceId = example.AgentSpaceId,
            AssetType = "agents_md",
            Metadata = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["agent_type"] = "GENERIC",
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.devopsagent.AgentSpace;
    import com.pulumi.aws.devopsagent.AgentSpaceArgs;
    import com.pulumi.aws.devopsagent.Asset;
    import com.pulumi.aws.devopsagent.AssetArgs;
    import com.pulumi.aws.devopsagent.inputs.AssetContentArgs;
    import com.pulumi.aws.devopsagent.inputs.AssetContentFileArgs;
    import com.pulumi.aws.devopsagent.inputs.AssetContentFileBodyArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 AgentSpace("example", AgentSpaceArgs.builder()
                .name("example")
                .build());
    
            var exampleAsset = new Asset("exampleAsset", AssetArgs.builder()
                .content(AssetContentArgs.builder()
                    .file(AssetContentFileArgs.builder()
                        .body(AssetContentFileBodyArgs.builder()
                            .text("Follow the operational runbook.")
                            .build())
                        .path("AGENTS.md")
                        .build())
                    .build())
                .agentSpaceId(example.agentSpaceId())
                .assetType("agents_md")
                .metadata(serializeJson(
                    jsonObject(
                        jsonProperty("agent_type", "GENERIC")
                    )))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:devopsagent:AgentSpace
        properties:
          name: example
      exampleAsset:
        type: aws:devopsagent:Asset
        name: example
        properties:
          content:
            file:
              body:
                text: Follow the operational runbook.
              path: AGENTS.md
          agentSpaceId: ${example.agentSpaceId}
          assetType: agents_md
          metadata:
            fn::toJSON:
              agent_type: GENERIC
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_devopsagent_agent_space" "example" {
      lifecycle {
        create_before_destroy = true
      }
      name = "example"
    }
    resource "aws_devopsagent_asset" "example" {
      lifecycle {
        create_before_destroy = true
      }
      content {
        file {
          body {
            text = "Follow the operational runbook."
          }
          path = "AGENTS.md"
        }
      }
      agent_space_id = aws_devopsagent_agent_space.example.agent_space_id
      asset_type     = "agents_md"
      metadata = jsonencode({
        "agent_type" = "GENERIC"
      })
    }
    

    Create Asset Resource

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

    Constructor syntax

    new Asset(name: string, args: AssetArgs, opts?: CustomResourceOptions);
    @overload
    def Asset(resource_name: str,
              args: AssetArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Asset(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              agent_space_id: Optional[str] = None,
              asset_type: Optional[str] = None,
              content: Optional[AssetContentArgs] = None,
              metadata: Optional[str] = None,
              region: Optional[str] = None)
    func NewAsset(ctx *Context, name string, args AssetArgs, opts ...ResourceOption) (*Asset, error)
    public Asset(string name, AssetArgs args, CustomResourceOptions? opts = null)
    public Asset(String name, AssetArgs args)
    public Asset(String name, AssetArgs args, CustomResourceOptions options)
    
    type: aws:devopsagent:Asset
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_devopsagent_asset" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AssetArgs
    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 AssetArgs
    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 AssetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AssetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AssetArgs
    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 assetResource = new Aws.DevOpsAgent.Asset("assetResource", new()
    {
        AgentSpaceId = "string",
        AssetType = "string",
        Content = new Aws.DevOpsAgent.Inputs.AssetContentArgs
        {
            File = new Aws.DevOpsAgent.Inputs.AssetContentFileArgs
            {
                Body = new Aws.DevOpsAgent.Inputs.AssetContentFileBodyArgs
                {
                    Bytes = "string",
                    Text = "string",
                },
                Path = "string",
                Metadata = "string",
            },
            SourceUrl = new Aws.DevOpsAgent.Inputs.AssetContentSourceUrlArgs
            {
                Url = "string",
            },
            Zip = new Aws.DevOpsAgent.Inputs.AssetContentZipArgs
            {
                ZipFile = "string",
            },
        },
        Metadata = "string",
        Region = "string",
    });
    
    example, err := devopsagent.NewAsset(ctx, "assetResource", &devopsagent.AssetArgs{
    	AgentSpaceId: pulumi.String("string"),
    	AssetType:    pulumi.String("string"),
    	Content: &devopsagent.AssetContentArgs{
    		File: &devopsagent.AssetContentFileArgs{
    			Body: &devopsagent.AssetContentFileBodyArgs{
    				Bytes: pulumi.String("string"),
    				Text:  pulumi.String("string"),
    			},
    			Path:     pulumi.String("string"),
    			Metadata: pulumi.String("string"),
    		},
    		SourceUrl: &devopsagent.AssetContentSourceUrlArgs{
    			Url: pulumi.String("string"),
    		},
    		Zip: &devopsagent.AssetContentZipArgs{
    			ZipFile: pulumi.String("string"),
    		},
    	},
    	Metadata: pulumi.String("string"),
    	Region:   pulumi.String("string"),
    })
    
    resource "aws_devopsagent_asset" "assetResource" {
      lifecycle {
        create_before_destroy = true
      }
      agent_space_id = "string"
      asset_type     = "string"
      content = {
        file = {
          body = {
            bytes = "string"
            text  = "string"
          }
          path     = "string"
          metadata = "string"
        }
        source_url = {
          url = "string"
        }
        zip = {
          zip_file = "string"
        }
      }
      metadata = "string"
      region   = "string"
    }
    
    var assetResource = new Asset("assetResource", AssetArgs.builder()
        .agentSpaceId("string")
        .assetType("string")
        .content(AssetContentArgs.builder()
            .file(AssetContentFileArgs.builder()
                .body(AssetContentFileBodyArgs.builder()
                    .bytes("string")
                    .text("string")
                    .build())
                .path("string")
                .metadata("string")
                .build())
            .sourceUrl(AssetContentSourceUrlArgs.builder()
                .url("string")
                .build())
            .zip(AssetContentZipArgs.builder()
                .zipFile("string")
                .build())
            .build())
        .metadata("string")
        .region("string")
        .build());
    
    asset_resource = aws.devopsagent.Asset("assetResource",
        agent_space_id="string",
        asset_type="string",
        content={
            "file": {
                "body": {
                    "bytes": "string",
                    "text": "string",
                },
                "path": "string",
                "metadata": "string",
            },
            "source_url": {
                "url": "string",
            },
            "zip": {
                "zip_file": "string",
            },
        },
        metadata="string",
        region="string")
    
    const assetResource = new aws.devopsagent.Asset("assetResource", {
        agentSpaceId: "string",
        assetType: "string",
        content: {
            file: {
                body: {
                    bytes: "string",
                    text: "string",
                },
                path: "string",
                metadata: "string",
            },
            sourceUrl: {
                url: "string",
            },
            zip: {
                zipFile: "string",
            },
        },
        metadata: "string",
        region: "string",
    });
    
    type: aws:devopsagent:Asset
    properties:
        agentSpaceId: string
        assetType: string
        content:
            file:
                body:
                    bytes: string
                    text: string
                metadata: string
                path: string
            sourceUrl:
                url: string
            zip:
                zipFile: string
        metadata: string
        region: string
    

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

    AgentSpaceId string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    AssetType string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    Content AssetContent

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    Metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    AgentSpaceId string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    AssetType string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    Content AssetContentArgs

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    Metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    agent_space_id string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    asset_type string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content object

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    agentSpaceId String
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    assetType String
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content AssetContent

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    metadata String
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    agentSpaceId string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    assetType string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content AssetContent

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    agent_space_id str
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    asset_type str
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content AssetContentArgs

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    metadata str
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    agentSpaceId String
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    assetType String
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content Property Map

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    metadata String
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Outputs

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

    AssetId string
    Identifier of the asset.
    CreatedAt string
    Creation timestamp in RFC 3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetadataActual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    UpdatedAt string
    Last update timestamp in RFC 3339 format.
    Version int
    Current asset version.
    AssetId string
    Identifier of the asset.
    CreatedAt string
    Creation timestamp in RFC 3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetadataActual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    UpdatedAt string
    Last update timestamp in RFC 3339 format.
    Version int
    Current asset version.
    asset_id string
    Identifier of the asset.
    created_at string
    Creation timestamp in RFC 3339 format.
    id string
    The provider-assigned unique ID for this managed resource.
    metadata_actual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    updated_at string
    Last update timestamp in RFC 3339 format.
    version number
    Current asset version.
    assetId String
    Identifier of the asset.
    createdAt String
    Creation timestamp in RFC 3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    metadataActual String
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    updatedAt String
    Last update timestamp in RFC 3339 format.
    version Integer
    Current asset version.
    assetId string
    Identifier of the asset.
    createdAt string
    Creation timestamp in RFC 3339 format.
    id string
    The provider-assigned unique ID for this managed resource.
    metadataActual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    updatedAt string
    Last update timestamp in RFC 3339 format.
    version number
    Current asset version.
    asset_id str
    Identifier of the asset.
    created_at str
    Creation timestamp in RFC 3339 format.
    id str
    The provider-assigned unique ID for this managed resource.
    metadata_actual str
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    updated_at str
    Last update timestamp in RFC 3339 format.
    version int
    Current asset version.
    assetId String
    Identifier of the asset.
    createdAt String
    Creation timestamp in RFC 3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    metadataActual String
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    updatedAt String
    Last update timestamp in RFC 3339 format.
    version Number
    Current asset version.

    Look up Existing Asset Resource

    Get an existing Asset 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?: AssetState, opts?: CustomResourceOptions): Asset
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_space_id: Optional[str] = None,
            asset_id: Optional[str] = None,
            asset_type: Optional[str] = None,
            content: Optional[AssetContentArgs] = None,
            created_at: Optional[str] = None,
            metadata: Optional[str] = None,
            metadata_actual: Optional[str] = None,
            region: Optional[str] = None,
            updated_at: Optional[str] = None,
            version: Optional[int] = None) -> Asset
    func GetAsset(ctx *Context, name string, id IDInput, state *AssetState, opts ...ResourceOption) (*Asset, error)
    public static Asset Get(string name, Input<string> id, AssetState? state, CustomResourceOptions? opts = null)
    public static Asset get(String name, Output<String> id, AssetState state, CustomResourceOptions options)
    resources:  _:    type: aws:devopsagent:Asset    get:      id: ${id}
    import {
      to = aws_devopsagent_asset.example
      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:
    AgentSpaceId string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    AssetId string
    Identifier of the asset.
    AssetType string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    Content AssetContent

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    CreatedAt string
    Creation timestamp in RFC 3339 format.
    Metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    MetadataActual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    UpdatedAt string
    Last update timestamp in RFC 3339 format.
    Version int
    Current asset version.
    AgentSpaceId string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    AssetId string
    Identifier of the asset.
    AssetType string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    Content AssetContentArgs

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    CreatedAt string
    Creation timestamp in RFC 3339 format.
    Metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    MetadataActual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    UpdatedAt string
    Last update timestamp in RFC 3339 format.
    Version int
    Current asset version.
    agent_space_id string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    asset_id string
    Identifier of the asset.
    asset_type string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content object

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    created_at string
    Creation timestamp in RFC 3339 format.
    metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    metadata_actual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    updated_at string
    Last update timestamp in RFC 3339 format.
    version number
    Current asset version.
    agentSpaceId String
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    assetId String
    Identifier of the asset.
    assetType String
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content AssetContent

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    createdAt String
    Creation timestamp in RFC 3339 format.
    metadata String
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    metadataActual String
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    updatedAt String
    Last update timestamp in RFC 3339 format.
    version Integer
    Current asset version.
    agentSpaceId string
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    assetId string
    Identifier of the asset.
    assetType string
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content AssetContent

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    createdAt string
    Creation timestamp in RFC 3339 format.
    metadata string
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    metadataActual string
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    updatedAt string
    Last update timestamp in RFC 3339 format.
    version number
    Current asset version.
    agent_space_id str
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    asset_id str
    Identifier of the asset.
    asset_type str
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content AssetContentArgs

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    created_at str
    Creation timestamp in RFC 3339 format.
    metadata str
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    metadata_actual str
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    updated_at str
    Last update timestamp in RFC 3339 format.
    version int
    Current asset version.
    agentSpaceId String
    Identifier of the Agent Space containing the asset. Changing this value requires replacement.
    assetId String
    Identifier of the asset.
    assetType String
    Type of asset. Changing this value requires replacement. See Managing assets for supported types and their metadata requirements.
    content Property Map

    Content to upload. Exactly one block is required. See content Block below.

    The following arguments are optional:

    createdAt String
    Creation timestamp in RFC 3339 format.
    metadata String
    JSON document describing the asset. Required metadata fields depend on assetType. Updates replace supplied top-level fields and retain omitted fields in AWS; removing a field from this document does not delete it from AWS. Changes to metadata alone do not re-upload content.
    metadataActual String
    Full JSON metadata returned by AWS, including retained fields and service-provided defaults.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    updatedAt String
    Last update timestamp in RFC 3339 format.
    version Number
    Current asset version.

    Supporting Types

    AssetContent, AssetContentArgs

    File AssetContentFile
    Single file to add or replace. See file Block below.
    SourceUrl AssetContentSourceUrl
    Source URL to import. See sourceUrl Block below.
    Zip AssetContentZip
    ZIP archive containing asset files. See zip Block below.
    File AssetContentFile
    Single file to add or replace. See file Block below.
    SourceUrl AssetContentSourceUrl
    Source URL to import. See sourceUrl Block below.
    Zip AssetContentZip
    ZIP archive containing asset files. See zip Block below.
    file object
    Single file to add or replace. See file Block below.
    source_url object
    Source URL to import. See sourceUrl Block below.
    zip object
    ZIP archive containing asset files. See zip Block below.
    file AssetContentFile
    Single file to add or replace. See file Block below.
    sourceUrl AssetContentSourceUrl
    Source URL to import. See sourceUrl Block below.
    zip AssetContentZip
    ZIP archive containing asset files. See zip Block below.
    file AssetContentFile
    Single file to add or replace. See file Block below.
    sourceUrl AssetContentSourceUrl
    Source URL to import. See sourceUrl Block below.
    zip AssetContentZip
    ZIP archive containing asset files. See zip Block below.
    file AssetContentFile
    Single file to add or replace. See file Block below.
    source_url AssetContentSourceUrl
    Source URL to import. See sourceUrl Block below.
    zip AssetContentZip
    ZIP archive containing asset files. See zip Block below.
    file Property Map
    Single file to add or replace. See file Block below.
    sourceUrl Property Map
    Source URL to import. See sourceUrl Block below.
    zip Property Map
    ZIP archive containing asset files. See zip Block below.

    AssetContentFile, AssetContentFileArgs

    Body AssetContentFileBody
    File content. See body Block below.
    Path string
    Path of the file within the asset.
    Metadata string
    JSON metadata for the file.
    Body AssetContentFileBody
    File content. See body Block below.
    Path string
    Path of the file within the asset.
    Metadata string
    JSON metadata for the file.
    body object
    File content. See body Block below.
    path string
    Path of the file within the asset.
    metadata string
    JSON metadata for the file.
    body AssetContentFileBody
    File content. See body Block below.
    path String
    Path of the file within the asset.
    metadata String
    JSON metadata for the file.
    body AssetContentFileBody
    File content. See body Block below.
    path string
    Path of the file within the asset.
    metadata string
    JSON metadata for the file.
    body AssetContentFileBody
    File content. See body Block below.
    path str
    Path of the file within the asset.
    metadata str
    JSON metadata for the file.
    body Property Map
    File content. See body Block below.
    path String
    Path of the file within the asset.
    metadata String
    JSON metadata for the file.

    AssetContentFileBody, AssetContentFileBodyArgs

    Bytes string
    Base64-encoded binary file content.
    Text string
    Text file content.
    Bytes string
    Base64-encoded binary file content.
    Text string
    Text file content.
    bytes string
    Base64-encoded binary file content.
    text string
    Text file content.
    bytes String
    Base64-encoded binary file content.
    text String
    Text file content.
    bytes string
    Base64-encoded binary file content.
    text string
    Text file content.
    bytes str
    Base64-encoded binary file content.
    text str
    Text file content.
    bytes String
    Base64-encoded binary file content.
    text String
    Text file content.

    AssetContentSourceUrl, AssetContentSourceUrlArgs

    Url string
    Source URL from which to import asset content.
    Url string
    Source URL from which to import asset content.
    url string
    Source URL from which to import asset content.
    url String
    Source URL from which to import asset content.
    url string
    Source URL from which to import asset content.
    url str
    Source URL from which to import asset content.
    url String
    Source URL from which to import asset content.

    AssetContentZip, AssetContentZipArgs

    ZipFile string
    Base64-encoded ZIP archive. Use filebase64() to load a local ZIP file.
    ZipFile string
    Base64-encoded ZIP archive. Use filebase64() to load a local ZIP file.
    zip_file string
    Base64-encoded ZIP archive. Use filebase64() to load a local ZIP file.
    zipFile String
    Base64-encoded ZIP archive. Use filebase64() to load a local ZIP file.
    zipFile string
    Base64-encoded ZIP archive. Use filebase64() to load a local ZIP file.
    zip_file str
    Base64-encoded ZIP archive. Use filebase64() to load a local ZIP file.
    zipFile String
    Base64-encoded ZIP archive. Use filebase64() to load a local ZIP file.

    Import

    Identity Schema

    Required

    • agentSpaceId (String) Identifier of the Agent Space containing the asset.
    • assetId (String) Identifier of the asset.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import an asset using its Agent Space ID and asset ID separated by a comma. For example:

    $ pulumi import aws:devopsagent/asset:Asset example 12345678-1234-1234-1234-123456789012,87654321-4321-4321-4321-210987654321
    

    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 logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial