Note

class Note : KotlinCustomResource

A Container Analysis note is a high-level piece of metadata that describes a type of analysis that can be done for a resource. To get more information about Note, see:

Example Usage

Container Analysis Note Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.containeranalysis.Note;
import com.pulumi.gcp.containeranalysis.NoteArgs;
import com.pulumi.gcp.containeranalysis.inputs.NoteAttestationAuthorityArgs;
import com.pulumi.gcp.containeranalysis.inputs.NoteAttestationAuthorityHintArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var note = new Note("note", NoteArgs.builder()
.attestationAuthority(NoteAttestationAuthorityArgs.builder()
.hint(NoteAttestationAuthorityHintArgs.builder()
.humanReadableName("Attestor Note")
.build())
.build())
.build());
}
}

Container Analysis Note Attestation Full

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.containeranalysis.Note;
import com.pulumi.gcp.containeranalysis.NoteArgs;
import com.pulumi.gcp.containeranalysis.inputs.NoteAttestationAuthorityArgs;
import com.pulumi.gcp.containeranalysis.inputs.NoteAttestationAuthorityHintArgs;
import com.pulumi.gcp.containeranalysis.inputs.NoteRelatedUrlArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var note = new Note("note", NoteArgs.builder()
.attestationAuthority(NoteAttestationAuthorityArgs.builder()
.hint(NoteAttestationAuthorityHintArgs.builder()
.humanReadableName("Attestor Note")
.build())
.build())
.expirationTime("2120-10-02T15:01:23.045123456Z")
.longDescription("a longer description of test note")
.relatedUrls(
NoteRelatedUrlArgs.builder()
.label("foo")
.url("some.url")
.build(),
NoteRelatedUrlArgs.builder()
.url("google.com")
.build())
.shortDescription("test note")
.build());
}
}

Import

Note can be imported using any of these accepted formats

$ pulumi import gcp:containeranalysis/note:Note default projects/{{project}}/notes/{{name}}
$ pulumi import gcp:containeranalysis/note:Note default {{project}}/{{name}}
$ pulumi import gcp:containeranalysis/note:Note default {{name}}

Properties

Link copied to clipboard

Note kind that represents a logical attestation "role" or "authority". For example, an organization might have one AttestationAuthority for "QA" and one for "build". This Note is intended to act strictly as a grouping mechanism for the attached Occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an Occurrence to a given Note. It also provides a single point of lookup to find all attached Attestation Occurrences, even if they don't all live in the same project. Structure is documented below.

Link copied to clipboard
val createTime: Output<String>

The time this note was created.

Link copied to clipboard
val expirationTime: Output<String>?

Time of expiration for this note. Leave empty if note does not expire.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>

The type of analysis this note describes

Link copied to clipboard
val longDescription: Output<String>?

A detailed description of the note

Link copied to clipboard
val name: Output<String>

The name of the note.

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Names of other notes related to this note.

Link copied to clipboard

URLs associated with this note and related metadata. Structure is documented below.

Link copied to clipboard
val shortDescription: Output<String>?

A one sentence description of the note.

Link copied to clipboard
val updateTime: Output<String>

The time this note was last updated.

Link copied to clipboard
val urn: Output<String>