Skip to content
v2.278.0

CfnArtifactProps Struct ​

Properties for defining a CfnArtifact.

Example ​

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
# 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
// 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();
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
// 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 ​

agentSpaceIdstringagent_space_idstragentSpaceIdStringAgentSpaceIdstringAgentSpaceId*string required #
The unique identifier of the agent space to add the artifact to.
artifactContentoptionalstringartifact_contentoptionalstrartifactContentoptionalStringArtifactContentoptionalstringArtifactContentoptional*string #
The binary content of the artifact to upload, encoded as a Base64 string.
artifactTypestringartifact_typestrartifactTypeStringArtifactTypestringArtifactType*string required #
The file type of the artifact.
fileNamestringfile_namestrfileNameStringFileNamestringFileName*string required #
The file name of the artifact.