You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_container_analysis_occurrence" {
source="./modules/google-beta/r/google_container_analysis_occurrence"# note_name - (required) is a type of stringnote_name=null# project - (optional) is a type of stringproject=null# remediation - (optional) is a type of stringremediation=null# resource_uri - (required) is a type of stringresource_uri=nullattestation=[{
serialized_payload =null
signatures = [{
public_key_id =null
signature =null
}]
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
variable"note_name" {
description="(required) - The analysis note associated with this occurrence, in the form of\nprojects/[PROJECT]/notes/[NOTE_ID]. This field can be used as a\nfilter in list requests."type=string
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"remediation" {
description="(optional) - A description of actions that can be taken to remedy the note."type=stringdefault=null
}
variable"resource_uri" {
description="(required) - Required. Immutable. A URI that represents the resource for which\nthe occurrence applies. For example,\nhttps://gcr.io/project/image@sha256:123abc for a Docker image."type=string
}
variable"attestation" {
description="nested block: NestingList, min items: 1, max items: 1"type=set(object(
{
serialized_payload =string
signatures =set(object(
{
public_key_id =string
signature =string
}
))
}
))
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_container_analysis_occurrence""this" {
# note_name - (required) is a type of stringnote_name=var.note_name# project - (optional) is a type of stringproject=var.project# remediation - (optional) is a type of stringremediation=var.remediation# resource_uri - (required) is a type of stringresource_uri=var.resource_uridynamic"attestation" {
for_each=var.attestationcontent {
# serialized_payload - (required) is a type of stringserialized_payload=attestation.value["serialized_payload"]
dynamic"signatures" {
for_each=attestation.value.signaturescontent {
# public_key_id - (required) is a type of stringpublic_key_id=signatures.value["public_key_id"]
# signature - (optional) is a type of stringsignature=signatures.value["signature"]
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}