We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Uploads an artifact to an agent space. Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.
Create Artifact Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Artifact(name: string, args: ArtifactArgs, opts?: CustomResourceOptions);@overload
def Artifact(resource_name: str,
args: ArtifactArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Artifact(resource_name: str,
opts: Optional[ResourceOptions] = None,
agent_space_id: Optional[str] = None,
artifact_type: Optional[ArtifactType] = None,
file_name: Optional[str] = None,
artifact_content: Optional[str] = None)func NewArtifact(ctx *Context, name string, args ArtifactArgs, opts ...ResourceOption) (*Artifact, error)public Artifact(string name, ArtifactArgs args, CustomResourceOptions? opts = null)
public Artifact(String name, ArtifactArgs args)
public Artifact(String name, ArtifactArgs args, CustomResourceOptions options)
type: aws-native:securityagent:Artifact
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_securityagent_artifact" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ArtifactArgs
- 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 ArtifactArgs
- 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 ArtifactArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArtifactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ArtifactArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Artifact 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 Artifact resource accepts the following input properties:
- Agent
Space stringId - The unique identifier of the agent space to add the artifact to.
- Artifact
Type Pulumi.Aws Native. Security Agent. Artifact Type - The file type of the artifact.
- File
Name string - The file name of the artifact.
- Artifact
Content string - The binary content of the artifact to upload, encoded as a Base64 string.
- Agent
Space stringId - The unique identifier of the agent space to add the artifact to.
- Artifact
Type ArtifactType - The file type of the artifact.
- File
Name string - The file name of the artifact.
- Artifact
Content string - The binary content of the artifact to upload, encoded as a Base64 string.
- agent_
space_ stringid - The unique identifier of the agent space to add the artifact to.
- artifact_
type "TXT" | "PNG" | "JPEG" | "MD" | "PDF" | "DOCX" | "DOC" | "JSON" | "YAML" - The file type of the artifact.
- file_
name string - The file name of the artifact.
- artifact_
content string - The binary content of the artifact to upload, encoded as a Base64 string.
- agent
Space StringId - The unique identifier of the agent space to add the artifact to.
- artifact
Type ArtifactType - The file type of the artifact.
- file
Name String - The file name of the artifact.
- artifact
Content String - The binary content of the artifact to upload, encoded as a Base64 string.
- agent
Space stringId - The unique identifier of the agent space to add the artifact to.
- artifact
Type ArtifactType - The file type of the artifact.
- file
Name string - The file name of the artifact.
- artifact
Content string - The binary content of the artifact to upload, encoded as a Base64 string.
- agent_
space_ strid - The unique identifier of the agent space to add the artifact to.
- artifact_
type ArtifactType - The file type of the artifact.
- file_
name str - The file name of the artifact.
- artifact_
content str - The binary content of the artifact to upload, encoded as a Base64 string.
- agent
Space StringId - The unique identifier of the agent space to add the artifact to.
- artifact
Type "TXT" | "PNG" | "JPEG" | "MD" | "PDF" | "DOCX" | "DOC" | "JSON" | "YAML" - The file type of the artifact.
- file
Name String - The file name of the artifact.
- artifact
Content String - The binary content of the artifact to upload, encoded as a Base64 string.
Outputs
All input properties are implicitly available as output properties. Additionally, the Artifact resource produces the following output properties:
- Arn string
- The Amazon Resource Name (ARN) of the artifact.
- Artifact
Id string - The unique identifier assigned to the uploaded artifact.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - The date and time the artifact was last updated, in ISO 8601 format.
- Arn string
- The Amazon Resource Name (ARN) of the artifact.
- Artifact
Id string - The unique identifier assigned to the uploaded artifact.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - The date and time the artifact was last updated, in ISO 8601 format.
- arn string
- The Amazon Resource Name (ARN) of the artifact.
- artifact_
id string - The unique identifier assigned to the uploaded artifact.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - The date and time the artifact was last updated, in ISO 8601 format.
- arn String
- The Amazon Resource Name (ARN) of the artifact.
- artifact
Id String - The unique identifier assigned to the uploaded artifact.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - The date and time the artifact was last updated, in ISO 8601 format.
- arn string
- The Amazon Resource Name (ARN) of the artifact.
- artifact
Id string - The unique identifier assigned to the uploaded artifact.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
At string - The date and time the artifact was last updated, in ISO 8601 format.
- arn str
- The Amazon Resource Name (ARN) of the artifact.
- artifact_
id str - The unique identifier assigned to the uploaded artifact.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The date and time the artifact was last updated, in ISO 8601 format.
- arn String
- The Amazon Resource Name (ARN) of the artifact.
- artifact
Id String - The unique identifier assigned to the uploaded artifact.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - The date and time the artifact was last updated, in ISO 8601 format.
Look up Existing Artifact Resource
Get an existing Artifact 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>, opts?: CustomResourceOptions): Artifact@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Artifactfunc GetArtifact(ctx *Context, name string, id IDInput, state *ArtifactState, opts ...ResourceOption) (*Artifact, error)public static Artifact Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Artifact get(String name, Output<String> id, CustomResourceOptions options)resources: existingArtifact: type: aws-native:securityagent:Artifact get: id: ${id}import {
to = aws-native_securityagent_artifact.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ArtifactState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
ArtifactType
The file type of the artifact.
| Name | Value |
|---|---|
| Txt | TXT |
| Png | PNG |
| Jpeg | JPEG |
| Md | MD |
PDF | |
| Docx | DOCX |
| Doc | DOC |
| Json | JSON |
| Yaml | YAML |
| Name | Value |
|---|---|
| Artifact | TXT |
| Artifact | PNG |
| Artifact | JPEG |
| Artifact | MD |
| Artifact | PDF |
| Artifact | DOCX |
| Artifact | DOC |
| Artifact | JSON |
| Artifact | YAML |
| Value |
|---|
TXT |
PNG |
JPEG |
MD |
PDF |
DOCX |
DOC |
JSON |
YAML |
| Name | Value |
|---|---|
| Txt | TXT |
| Png | PNG |
| Jpeg | JPEG |
| Md | MD |
PDF | |
| Docx | DOCX |
| Doc | DOC |
| Json | JSON |
| Yaml | YAML |
| Name | Value |
|---|---|
| Txt | TXT |
| Png | PNG |
| Jpeg | JPEG |
| Md | MD |
PDF | |
| Docx | DOCX |
| Doc | DOC |
| Json | JSON |
| Yaml | YAML |
| Name | Value |
|---|---|
| TXT | TXT |
| PNG | PNG |
| JPEG | JPEG |
| MD | MD |
PDF | |
| DOCX | DOCX |
| DOC | DOC |
| JSON | JSON |
| YAML | YAML |
| Value |
|---|
TXT |
PNG |
JPEG |
MD |
PDF |
DOCX |
DOC |
JSON |
YAML |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi