published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Manages an AWS DevOps Agent Asset.
Note:
contentandmetadataare inputs retained in Terraform state. Terraform does not detect out-of-band changes to these inputs.metadataActualexposes 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)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:
- Agent
Space stringId - 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
Asset
Content Content to upload. Exactly one block is required. See
contentBlock 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 stringId - 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
Asset
Content Args Content to upload. Exactly one block is required. See
contentBlock 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_ stringid - 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
contentBlock 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 StringId - 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
Asset
Content Content to upload. Exactly one block is required. See
contentBlock 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 stringId - 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
Asset
Content Content to upload. Exactly one block is required. See
contentBlock 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_ strid - 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
Asset
Content Args Content to upload. Exactly one block is required. See
contentBlock 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.
- agent
Space StringId - 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 Property Map
Content to upload. Exactly one block is required. See
contentBlock 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:
- 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 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 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.
- 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 Integer
- 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.
- 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.
- 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.
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) -> Assetfunc 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.
- Agent
Space stringId - 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
Asset
Content Content to upload. Exactly one block is required. See
contentBlock 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 int
- Current asset version.
- Agent
Space stringId - 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
Asset
Content Args Content to upload. Exactly one block is required. See
contentBlock 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 int
- Current asset version.
- agent_
space_ stringid - 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
contentBlock 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.
- agent
Space StringId - 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
Asset
Content Content to upload. Exactly one block is required. See
contentBlock 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 Integer
- Current asset version.
- agent
Space stringId - 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
Asset
Content Content to upload. Exactly one block is required. See
contentBlock 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.
- agent_
space_ strid - 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
Asset
Content Args Content to upload. Exactly one block is required. See
contentBlock 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.
- agent
Space StringId - 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 Property Map
Content to upload. Exactly one block is required. See
contentBlock 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.
Supporting Types
AssetContent, AssetContentArgs
- File
Asset
Content File - Single file to add or replace. See
fileBlock below. - Source
Url AssetContent Source Url - Source URL to import. See
sourceUrlBlock below. - Zip
Asset
Content Zip - ZIP archive containing asset files. See
zipBlock below.
- File
Asset
Content File - Single file to add or replace. See
fileBlock below. - Source
Url AssetContent Source Url - Source URL to import. See
sourceUrlBlock below. - Zip
Asset
Content Zip - ZIP archive containing asset files. See
zipBlock below.
- file
Asset
Content File - Single file to add or replace. See
fileBlock below. - source
Url AssetContent Source Url - Source URL to import. See
sourceUrlBlock below. - zip
Asset
Content Zip - ZIP archive containing asset files. See
zipBlock below.
- file
Asset
Content File - Single file to add or replace. See
fileBlock below. - source
Url AssetContent Source Url - Source URL to import. See
sourceUrlBlock below. - zip
Asset
Content Zip - ZIP archive containing asset files. See
zipBlock below.
- file
Asset
Content File - Single file to add or replace. See
fileBlock below. - source_
url AssetContent Source Url - Source URL to import. See
sourceUrlBlock below. - zip
Asset
Content Zip - ZIP archive containing asset files. See
zipBlock below.
- file Property Map
- Single file to add or replace. See
fileBlock below. - source
Url Property Map - Source URL to import. See
sourceUrlBlock below. - zip Property Map
- ZIP archive containing asset files. See
zipBlock below.
AssetContentFile, AssetContentFileArgs
- Body
Asset
Content File Body - File content. See
bodyBlock below. - Path string
- Path of the file within the asset.
- Metadata string
- JSON metadata for the file.
- Body
Asset
Content File Body - File content. See
bodyBlock below. - Path string
- Path of the file within the asset.
- Metadata string
- JSON metadata for the file.
- body
Asset
Content File Body - File content. See
bodyBlock below. - path String
- Path of the file within the asset.
- metadata String
- JSON metadata for the file.
- body
Asset
Content File Body - File content. See
bodyBlock below. - path string
- Path of the file within the asset.
- metadata string
- JSON metadata for the file.
- body
Asset
Content File Body - File content. See
bodyBlock below. - path str
- Path of the file within the asset.
- metadata str
- JSON metadata for the file.
- body Property Map
- File content. See
bodyBlock below. - path String
- Path of the file within the asset.
- metadata String
- JSON metadata for the file.
AssetContentFileBody, AssetContentFileBodyArgs
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
- Zip
File 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.
- zip_
file 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.
- zip
File 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.
- zip
File 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
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi