# CfnArtifactProps

Struct · External

Properties for defining a `CfnArtifact`.

Used as props by: [CfnArtifact](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securityagent.CfnArtifact.html)

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityagent as securityagent } from 'aws-cdk-lib';
const cfnArtifactProps: securityagent.CfnArtifactProps = {
  agentSpaceId: 'agentSpaceId',
  artifactType: 'artifactType',
  fileName: 'fileName',

  // the properties below are optional
  artifactContent: 'artifactContent',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityagent as securityagent

cfn_artifact_props = securityagent.CfnArtifactProps(
    agent_space_id="agentSpaceId",
    artifact_type="artifactType",
    file_name="fileName",

    # the properties below are optional
    artifact_content="artifactContent"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.securityagent.*;

CfnArtifactProps cfnArtifactProps = CfnArtifactProps.builder()
        .agentSpaceId("agentSpaceId")
        .artifactType("artifactType")
        .fileName("fileName")

        // the properties below are optional
        .artifactContent("artifactContent")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityAgent;

var cfnArtifactProps = new CfnArtifactProps {
    AgentSpaceId = "agentSpaceId",
    ArtifactType = "artifactType",
    FileName = "fileName",

    // the properties below are optional
    ArtifactContent = "artifactContent"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnArtifactProps := &CfnArtifactProps{
	AgentSpaceId: jsii.String("agentSpaceId"),
	ArtifactType: jsii.String("artifactType"),
	FileName: jsii.String("fileName"),

	// the properties below are optional
	ArtifactContent: jsii.String("artifactContent"),
}
```

## Properties

- `agentSpaceId`: string (required) — The unique identifier of the agent space to add the artifact to.

- `artifactContent`: string — The binary content of the artifact to upload, encoded as a Base64 string.

- `artifactType`: string (required) — The file type of the artifact.

- `fileName`: string (required) — The file name of the artifact.
