AssetsProperty Struct
Collection of assets to be tested during the pentest.
| Source | |
|---|---|
| Type last changed |
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 assetsProperty: securityagent.CfnPentest.AssetsProperty = {
actors: [{
authentication: {
providerType: 'providerType',
value: 'value',
},
description: 'description',
enableEmailMfa: false,
identifier: 'identifier',
mfaForwardingAddress: 'mfaForwardingAddress',
uris: ['uris'],
}],
clientCertificates: [{
name: 'name',
origins: ['origins'],
secretArn: 'secretArn',
}],
documents: [{
artifactId: 'artifactId',
s3Location: 's3Location',
}],
endpoints: [{
uri: 'uri',
}],
integratedRepositories: [{
integrationId: 'integrationId',
providerResourceId: 'providerResourceId',
// the properties below are optional
branch: 'branch',
}],
sourceCode: [{
s3Location: 's3Location',
}],
trustedCaCertificates: [{
source: {
artifactId: 'artifactId',
inlinePem: 'inlinePem',
s3Location: 's3Location',
},
}],
};
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
assets_property = securityagent.CfnPentest.AssetsProperty(
actors=[securityagent.CfnPentest.ActorProperty(
authentication=securityagent.CfnPentest.AuthenticationProperty(
provider_type="providerType",
value="value"
),
description="description",
enable_email_mfa=False,
identifier="identifier",
mfa_forwarding_address="mfaForwardingAddress",
uris=["uris"]
)],
client_certificates=[securityagent.CfnPentest.ClientCertificateProperty(
name="name",
origins=["origins"],
secret_arn="secretArn"
)],
documents=[securityagent.CfnPentest.DocumentInfoProperty(
artifact_id="artifactId",
s3_location="s3Location"
)],
endpoints=[securityagent.CfnPentest.EndpointProperty(
uri="uri"
)],
integrated_repositories=[securityagent.CfnPentest.IntegratedRepositoryProperty(
integration_id="integrationId",
provider_resource_id="providerResourceId",
# the properties below are optional
branch="branch"
)],
source_code=[securityagent.CfnPentest.SourceCodeRepositoryProperty(
s3_location="s3Location"
)],
trusted_ca_certificates=[securityagent.CfnPentest.TrustedCaCertificateProperty(
source=securityagent.CfnPentest.CaCertificateSourceProperty(
artifact_id="artifactId",
inline_pem="inlinePem",
s3_location="s3Location"
)
)]
)
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.*;
AssetsProperty assetsProperty = AssetsProperty.builder()
.actors(List.of(ActorProperty.builder()
.authentication(AuthenticationProperty.builder()
.providerType("providerType")
.value("value")
.build())
.description("description")
.enableEmailMfa(false)
.identifier("identifier")
.mfaForwardingAddress("mfaForwardingAddress")
.uris(List.of("uris"))
.build()))
.clientCertificates(List.of(ClientCertificateProperty.builder()
.name("name")
.origins(List.of("origins"))
.secretArn("secretArn")
.build()))
.documents(List.of(DocumentInfoProperty.builder()
.artifactId("artifactId")
.s3Location("s3Location")
.build()))
.endpoints(List.of(EndpointProperty.builder()
.uri("uri")
.build()))
.integratedRepositories(List.of(IntegratedRepositoryProperty.builder()
.integrationId("integrationId")
.providerResourceId("providerResourceId")
// the properties below are optional
.branch("branch")
.build()))
.sourceCode(List.of(SourceCodeRepositoryProperty.builder()
.s3Location("s3Location")
.build()))
.trustedCaCertificates(List.of(TrustedCaCertificateProperty.builder()
.source(CaCertificateSourceProperty.builder()
.artifactId("artifactId")
.inlinePem("inlinePem")
.s3Location("s3Location")
.build())
.build()))
.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 assetsProperty = new AssetsProperty {
Actors = new [] { new ActorProperty {
Authentication = new AuthenticationProperty {
ProviderType = "providerType",
Value = "value"
},
Description = "description",
EnableEmailMfa = false,
Identifier = "identifier",
MfaForwardingAddress = "mfaForwardingAddress",
Uris = new [] { "uris" }
} },
ClientCertificates = new [] { new ClientCertificateProperty {
Name = "name",
Origins = new [] { "origins" },
SecretArn = "secretArn"
} },
Documents = new [] { new DocumentInfoProperty {
ArtifactId = "artifactId",
S3Location = "s3Location"
} },
Endpoints = new [] { new EndpointProperty {
Uri = "uri"
} },
IntegratedRepositories = new [] { new IntegratedRepositoryProperty {
IntegrationId = "integrationId",
ProviderResourceId = "providerResourceId",
// the properties below are optional
Branch = "branch"
} },
SourceCode = new [] { new SourceCodeRepositoryProperty {
S3Location = "s3Location"
} },
TrustedCaCertificates = new [] { new TrustedCaCertificateProperty {
Source = new CaCertificateSourceProperty {
ArtifactId = "artifactId",
InlinePem = "inlinePem",
S3Location = "s3Location"
}
} }
};
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"
assetsProperty := &AssetsProperty{
Actors: []interface{}{
&ActorProperty{
Authentication: &AuthenticationProperty{
ProviderType: jsii.String("providerType"),
Value: jsii.String("value"),
},
Description: jsii.String("description"),
EnableEmailMfa: jsii.Boolean(false),
Identifier: jsii.String("identifier"),
MfaForwardingAddress: jsii.String("mfaForwardingAddress"),
Uris: []*string{
jsii.String("uris"),
},
},
},
ClientCertificates: []interface{}{
&ClientCertificateProperty{
Name: jsii.String("name"),
Origins: []*string{
jsii.String("origins"),
},
SecretArn: jsii.String("secretArn"),
},
},
Documents: []interface{}{
&DocumentInfoProperty{
ArtifactId: jsii.String("artifactId"),
S3Location: jsii.String("s3Location"),
},
},
Endpoints: []interface{}{
&EndpointProperty{
Uri: jsii.String("uri"),
},
},
IntegratedRepositories: []interface{}{
&IntegratedRepositoryProperty{
IntegrationId: jsii.String("integrationId"),
ProviderResourceId: jsii.String("providerResourceId"),
// the properties below are optional
Branch: jsii.String("branch"),
},
},
SourceCode: []interface{}{
&SourceCodeRepositoryProperty{
S3Location: jsii.String("s3Location"),
},
},
TrustedCaCertificates: []interface{}{
&TrustedCaCertificateProperty{
Source: &CaCertificateSourceProperty{
ArtifactId: jsii.String("artifactId"),
InlinePem: jsii.String("inlinePem"),
S3Location: jsii.String("s3Location"),
},
},
},
}
Properties
actorsoptionalIResolvable | IResolvable | CfnPentest.ActorProperty[]actorsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ActorProperty]]]actorsoptionalIResolvableActorsoptionalIResolvableActorsoptionalinterface{} #List of actors used during testing.
clientCertificatesoptionalIResolvable | IResolvable | CfnPentest.client_certificatesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ClientCertificateProperty]]]clientCertificatesoptionalIResolvableClientCertificatesoptionalIResolvableClientCertificatesoptionalinterface{} #Client certificates that AWS Security Agent presents to target hosts that require mutual TLS (mTLS).
documentsoptionalIResolvable | IResolvable | CfnPentest.DocumentInfoProperty[]documentsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DocumentInfoProperty]]]documentsoptionalIResolvableDocumentsoptionalIResolvableDocumentsoptionalinterface{} #List of documents providing additional context for the pentest.
endpointsoptionalIResolvable | IResolvable | CfnPentest.EndpointProperty[]endpointsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EndpointProperty]]]endpointsoptionalIResolvableEndpointsoptionalIResolvableEndpointsoptionalinterface{} #List of endpoints to test.
integratedRepositoriesoptionalIResolvable | IResolvable | CfnPentest.integrated_repositoriesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IntegratedRepositoryProperty]]]integratedRepositoriesoptionalIResolvableIntegratedRepositoriesoptionalIResolvableIntegratedRepositoriesoptionalinterface{} #List of repositories connected via provider integrations.
sourceCodeoptionalIResolvable | IResolvable | CfnPentest.source_codeoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SourceCodeRepositoryProperty]]]sourceCodeoptionalIResolvableSourceCodeoptionalIResolvableSourceCodeoptionalinterface{} #List of source code repositories to analyze.
trustedCaCertificatesoptionalIResolvable | IResolvable | CfnPentest.trusted_ca_certificatesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TrustedCaCertificateProperty]]]trustedCaCertificatesoptionalIResolvableTrustedCaCertificatesoptionalIResolvableTrustedCaCertificatesoptionalinterface{} #Trust anchors for validating target endpoint TLS certificates, for endpoints served by a private or internal CA, an intermediate CA, or a self-signed certificate.