Class CfnArtifact
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.securityagent.CfnArtifact
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IArtifactRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:19.068Z")
@Stability(Stable)
public class CfnArtifact
extends CfnResource
implements IInspectable, IArtifactRef
Uploads an artifact to an agent space.
Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.
Example:
// 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.*;
CfnArtifact cfnArtifact = CfnArtifact.Builder.create(this, "MyCfnArtifact")
.agentSpaceId("agentSpaceId")
.artifactType("artifactType")
.fileName("fileName")
// the properties below are optional
.artifactContent("artifactContent")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.securityagent.IArtifactRef
IArtifactRef.Jsii$Default, IArtifactRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnArtifact(software.amazon.jsii.JsiiObjectRef objRef) CfnArtifact(software.constructs.Construct scope, String id, CfnArtifactProps props) Create a newAWS::SecurityAgent::Artifact. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForArtifact(IArtifactRef resource) The unique identifier of the agent space to add the artifact to.The binary content of the artifact to upload, encoded as a Base64 string.A reference to a Artifact resource.The file type of the artifact.The Amazon Resource Name (ARN) of the artifact.The unique identifier assigned to the uploaded artifact.The date and time the artifact was last updated, in ISO 8601 format.The file name of the artifact.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnArtifact.renderProperties(Map<String, Object> props) voidsetAgentSpaceId(String value) The unique identifier of the agent space to add the artifact to.voidsetArtifactContent(String value) The binary content of the artifact to upload, encoded as a Base64 string.voidsetArtifactType(String value) The file type of the artifact.voidsetFileName(String value) The file name of the artifact.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnArtifact
protected CfnArtifact(software.amazon.jsii.JsiiObjectRef objRef) -
CfnArtifact
protected CfnArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnArtifact
@Stability(Stable) public CfnArtifact(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnArtifactProps props) Create a newAWS::SecurityAgent::Artifact.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForArtifact
- Parameters:
resource- This parameter is required.
-
isCfnArtifact
Checks whether the given object is a CfnArtifact.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getArtifactRef
A reference to a Artifact resource.- Specified by:
getArtifactRefin interfaceIArtifactRef
-
getAttrArn
The Amazon Resource Name (ARN) of the artifact. -
getAttrArtifactId
The unique identifier assigned to the uploaded artifact. -
getAttrUpdatedAt
The date and time the artifact was last updated, in ISO 8601 format. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getAgentSpaceId
The unique identifier of the agent space to add the artifact to. -
setAgentSpaceId
The unique identifier of the agent space to add the artifact to. -
getArtifactType
The file type of the artifact. -
setArtifactType
The file type of the artifact. -
getFileName
The file name of the artifact. -
setFileName
The file name of the artifact. -
getArtifactContent
The binary content of the artifact to upload, encoded as a Base64 string. -
setArtifactContent
The binary content of the artifact to upload, encoded as a Base64 string.
-