aquasec logo
Aquasec v0.8.25, Apr 25 23

aquasec.Acknowledge

Explore with Pulumi AI

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumiverse.Aquasec;

return await Deployment.RunAsync(() => 
{
    var acknowledge = new Aquasec.Acknowledge("acknowledge", new()
    {
        Comment = "comment",
        Issues = new[]
        {
            new Aquasec.Inputs.AcknowledgeIssueArgs
            {
                DockerId = "",
                ImageName = "image:latest",
                IssueName = "CVE-2022-1271",
                IssueType = "vulnerability",
                RegistryName = "registry",
                ResourceCpe = "cpe:/a:gnu:gzip:1.10",
                ResourceName = "gzip",
                ResourcePath = "/usr/bin/gzip",
                ResourceType = "executable",
                ResourceVersion = "1.10",
            },
            new Aquasec.Inputs.AcknowledgeIssueArgs
            {
                DockerId = "docker-id",
                ImageName = "image-name",
                IssueName = "ALAS2-2021-1722",
                IssueType = "vulnerability",
                RegistryName = "registry-name",
                ResourceCpe = "pkg:/amzn:2:nss-softokn:3.44.0-8.amzn2",
                ResourceName = "nss-softokn",
                ResourcePath = "",
                ResourceType = "package",
                ResourceVersion = "3.44.0-8.amzn2",
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aquasec.NewAcknowledge(ctx, "acknowledge", &aquasec.AcknowledgeArgs{
			Comment: pulumi.String("comment"),
			Issues: aquasec.AcknowledgeIssueArray{
				&aquasec.AcknowledgeIssueArgs{
					DockerId:        pulumi.String(""),
					ImageName:       pulumi.String("image:latest"),
					IssueName:       pulumi.String("CVE-2022-1271"),
					IssueType:       pulumi.String("vulnerability"),
					RegistryName:    pulumi.String("registry"),
					ResourceCpe:     pulumi.String("cpe:/a:gnu:gzip:1.10"),
					ResourceName:    pulumi.String("gzip"),
					ResourcePath:    pulumi.String("/usr/bin/gzip"),
					ResourceType:    pulumi.String("executable"),
					ResourceVersion: pulumi.String("1.10"),
				},
				&aquasec.AcknowledgeIssueArgs{
					DockerId:        pulumi.String("docker-id"),
					ImageName:       pulumi.String("image-name"),
					IssueName:       pulumi.String("ALAS2-2021-1722"),
					IssueType:       pulumi.String("vulnerability"),
					RegistryName:    pulumi.String("registry-name"),
					ResourceCpe:     pulumi.String("pkg:/amzn:2:nss-softokn:3.44.0-8.amzn2"),
					ResourceName:    pulumi.String("nss-softokn"),
					ResourcePath:    pulumi.String(""),
					ResourceType:    pulumi.String("package"),
					ResourceVersion: pulumi.String("3.44.0-8.amzn2"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.Acknowledge;
import com.pulumi.aquasec.AcknowledgeArgs;
import com.pulumi.aquasec.inputs.AcknowledgeIssueArgs;
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 acknowledge = new Acknowledge("acknowledge", AcknowledgeArgs.builder()        
            .comment("comment")
            .issues(            
                AcknowledgeIssueArgs.builder()
                    .dockerId("")
                    .imageName("image:latest")
                    .issueName("CVE-2022-1271")
                    .issueType("vulnerability")
                    .registryName("registry")
                    .resourceCpe("cpe:/a:gnu:gzip:1.10")
                    .resourceName("gzip")
                    .resourcePath("/usr/bin/gzip")
                    .resourceType("executable")
                    .resourceVersion("1.10")
                    .build(),
                AcknowledgeIssueArgs.builder()
                    .dockerId("docker-id")
                    .imageName("image-name")
                    .issueName("ALAS2-2021-1722")
                    .issueType("vulnerability")
                    .registryName("registry-name")
                    .resourceCpe("pkg:/amzn:2:nss-softokn:3.44.0-8.amzn2")
                    .resourceName("nss-softokn")
                    .resourcePath("")
                    .resourceType("package")
                    .resourceVersion("3.44.0-8.amzn2")
                    .build())
            .build());

    }
}
import pulumi
import pulumiverse_aquasec as aquasec

acknowledge = aquasec.Acknowledge("acknowledge",
    comment="comment",
    issues=[
        aquasec.AcknowledgeIssueArgs(
            docker_id="",
            image_name="image:latest",
            issue_name="CVE-2022-1271",
            issue_type="vulnerability",
            registry_name="registry",
            resource_cpe="cpe:/a:gnu:gzip:1.10",
            resource_name="gzip",
            resource_path="/usr/bin/gzip",
            resource_type="executable",
            resource_version="1.10",
        ),
        aquasec.AcknowledgeIssueArgs(
            docker_id="docker-id",
            image_name="image-name",
            issue_name="ALAS2-2021-1722",
            issue_type="vulnerability",
            registry_name="registry-name",
            resource_cpe="pkg:/amzn:2:nss-softokn:3.44.0-8.amzn2",
            resource_name="nss-softokn",
            resource_path="",
            resource_type="package",
            resource_version="3.44.0-8.amzn2",
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumiverse/aquasec";

const acknowledge = new aquasec.Acknowledge("acknowledge", {
    comment: "comment",
    issues: [
        {
            dockerId: "",
            imageName: "image:latest",
            issueName: "CVE-2022-1271",
            issueType: "vulnerability",
            registryName: "registry",
            resourceCpe: "cpe:/a:gnu:gzip:1.10",
            resourceName: "gzip",
            resourcePath: "/usr/bin/gzip",
            resourceType: "executable",
            resourceVersion: "1.10",
        },
        {
            dockerId: "docker-id",
            imageName: "image-name",
            issueName: "ALAS2-2021-1722",
            issueType: "vulnerability",
            registryName: "registry-name",
            resourceCpe: "pkg:/amzn:2:nss-softokn:3.44.0-8.amzn2",
            resourceName: "nss-softokn",
            resourcePath: "",
            resourceType: "package",
            resourceVersion: "3.44.0-8.amzn2",
        },
    ],
});
resources:
  acknowledge:
    type: aquasec:Acknowledge
    properties:
      comment: comment
      issues:
        - dockerId:
          imageName: image:latest
          issueName: CVE-2022-1271
          issueType: vulnerability
          registryName: registry
          resourceCpe: cpe:/a:gnu:gzip:1.10
          resourceName: gzip
          resourcePath: /usr/bin/gzip
          resourceType: executable
          resourceVersion: '1.10'
        - dockerId: docker-id
          imageName: image-name
          issueName: ALAS2-2021-1722
          issueType: vulnerability
          registryName: registry-name
          resourceCpe: pkg:/amzn:2:nss-softokn:3.44.0-8.amzn2
          resourceName: nss-softokn
          resourcePath:
          resourceType: package
          resourceVersion: 3.44.0-8.amzn2

Create Acknowledge Resource

new Acknowledge(name: string, args: AcknowledgeArgs, opts?: CustomResourceOptions);
@overload
def Acknowledge(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                comment: Optional[str] = None,
                issues: Optional[Sequence[AcknowledgeIssueArgs]] = None)
@overload
def Acknowledge(resource_name: str,
                args: AcknowledgeArgs,
                opts: Optional[ResourceOptions] = None)
func NewAcknowledge(ctx *Context, name string, args AcknowledgeArgs, opts ...ResourceOption) (*Acknowledge, error)
public Acknowledge(string name, AcknowledgeArgs args, CustomResourceOptions? opts = null)
public Acknowledge(String name, AcknowledgeArgs args)
public Acknowledge(String name, AcknowledgeArgs args, CustomResourceOptions options)
type: aquasec:Acknowledge
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AcknowledgeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AcknowledgeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AcknowledgeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AcknowledgeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AcknowledgeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Acknowledge Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Acknowledge resource accepts the following input properties:

Comment string

A comment describing the reason for the acknowledgment

Issues List<Pulumiverse.Aquasec.Inputs.AcknowledgeIssueArgs>

A list of existing security acknowledges.

Comment string

A comment describing the reason for the acknowledgment

Issues []AcknowledgeIssueArgs

A list of existing security acknowledges.

comment String

A comment describing the reason for the acknowledgment

issues List<AcknowledgeIssueArgs>

A list of existing security acknowledges.

comment string

A comment describing the reason for the acknowledgment

issues AcknowledgeIssueArgs[]

A list of existing security acknowledges.

comment str

A comment describing the reason for the acknowledgment

issues Sequence[AcknowledgeIssueArgs]

A list of existing security acknowledges.

comment String

A comment describing the reason for the acknowledgment

issues List<Property Map>

A list of existing security acknowledges.

Outputs

All input properties are implicitly available as output properties. Additionally, the Acknowledge resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Acknowledge Resource

Get an existing Acknowledge resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AcknowledgeState, opts?: CustomResourceOptions): Acknowledge
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comment: Optional[str] = None,
        issues: Optional[Sequence[AcknowledgeIssueArgs]] = None) -> Acknowledge
func GetAcknowledge(ctx *Context, name string, id IDInput, state *AcknowledgeState, opts ...ResourceOption) (*Acknowledge, error)
public static Acknowledge Get(string name, Input<string> id, AcknowledgeState? state, CustomResourceOptions? opts = null)
public static Acknowledge get(String name, Output<String> id, AcknowledgeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Comment string

A comment describing the reason for the acknowledgment

Issues List<Pulumiverse.Aquasec.Inputs.AcknowledgeIssueArgs>

A list of existing security acknowledges.

Comment string

A comment describing the reason for the acknowledgment

Issues []AcknowledgeIssueArgs

A list of existing security acknowledges.

comment String

A comment describing the reason for the acknowledgment

issues List<AcknowledgeIssueArgs>

A list of existing security acknowledges.

comment string

A comment describing the reason for the acknowledgment

issues AcknowledgeIssueArgs[]

A list of existing security acknowledges.

comment str

A comment describing the reason for the acknowledgment

issues Sequence[AcknowledgeIssueArgs]

A list of existing security acknowledges.

comment String

A comment describing the reason for the acknowledgment

issues List<Property Map>

A list of existing security acknowledges.

Supporting Types

AcknowledgeIssue

IssueName string

The name of the security issue (the CVE or security advisory for vulnerabilities, name of malware or type of sensitive data)

IssueType string

The type of the security issue (either 'vulnerability', 'sensitive_data' or 'malware')

ResourceType string

The type of the resource where the issue was detected (either 'package', 'file' or 'executable')

Author string

The user who acknowledged the issue.

Date string

The date and time of the acknowledgment.

DockerId string
ExpirationConfiguredAt string

The current dat and time when the expiration was set

ExpirationConfiguredBy string

The user who set the expiration of the issue.

ExpirationDays int

Number of days until expiration of the acknowledgement. The value must be integer from 1 to 999, inclusive.

FixVersion string

The version of the package that having a fix for the issue.

ImageName string

Only acknowledge the issue in the context of the specified image (also requires 'registry_name')

Os string

When the resource_type is 'package', the operating system is required (e.g., 'ubuntu', 'alpine').

OsVersion string

When the resource_type is 'package', the operating system version is required.

Permission string

The permissions of the user who acknowledged the issue.

RegistryName string

Only acknowledge the issue in the context of the specified repository (also requires 'registry_name').

ResourceCpe string

The CPE of the resource as listed in the issue by the Aqua API. This is required for resources of type 'executable'. For packages and files, the next parameters can be specified instead.

ResourceFormat string

The format of the resource.

ResourceHash string

When the resource_type is 'file', the hash of the file is required

ResourceName string

When the resource_type is 'package', the name of the package is required.

ResourcePath string

The path of the resource. This is required for resources of type 'file' and 'executable'.

ResourceVersion string

When the resource_type is 'package', the version of the package is required

IssueName string

The name of the security issue (the CVE or security advisory for vulnerabilities, name of malware or type of sensitive data)

IssueType string

The type of the security issue (either 'vulnerability', 'sensitive_data' or 'malware')

ResourceType string

The type of the resource where the issue was detected (either 'package', 'file' or 'executable')

Author string

The user who acknowledged the issue.

Date string

The date and time of the acknowledgment.

DockerId string
ExpirationConfiguredAt string

The current dat and time when the expiration was set

ExpirationConfiguredBy string

The user who set the expiration of the issue.

ExpirationDays int

Number of days until expiration of the acknowledgement. The value must be integer from 1 to 999, inclusive.

FixVersion string

The version of the package that having a fix for the issue.

ImageName string

Only acknowledge the issue in the context of the specified image (also requires 'registry_name')

Os string

When the resource_type is 'package', the operating system is required (e.g., 'ubuntu', 'alpine').

OsVersion string

When the resource_type is 'package', the operating system version is required.

Permission string

The permissions of the user who acknowledged the issue.

RegistryName string

Only acknowledge the issue in the context of the specified repository (also requires 'registry_name').

ResourceCpe string

The CPE of the resource as listed in the issue by the Aqua API. This is required for resources of type 'executable'. For packages and files, the next parameters can be specified instead.

ResourceFormat string

The format of the resource.

ResourceHash string

When the resource_type is 'file', the hash of the file is required

ResourceName string

When the resource_type is 'package', the name of the package is required.

ResourcePath string

The path of the resource. This is required for resources of type 'file' and 'executable'.

ResourceVersion string

When the resource_type is 'package', the version of the package is required

issueName String

The name of the security issue (the CVE or security advisory for vulnerabilities, name of malware or type of sensitive data)

issueType String

The type of the security issue (either 'vulnerability', 'sensitive_data' or 'malware')

resourceType String

The type of the resource where the issue was detected (either 'package', 'file' or 'executable')

author String

The user who acknowledged the issue.

date String

The date and time of the acknowledgment.

dockerId String
expirationConfiguredAt String

The current dat and time when the expiration was set

expirationConfiguredBy String

The user who set the expiration of the issue.

expirationDays Integer

Number of days until expiration of the acknowledgement. The value must be integer from 1 to 999, inclusive.

fixVersion String

The version of the package that having a fix for the issue.

imageName String

Only acknowledge the issue in the context of the specified image (also requires 'registry_name')

os String

When the resource_type is 'package', the operating system is required (e.g., 'ubuntu', 'alpine').

osVersion String

When the resource_type is 'package', the operating system version is required.

permission String

The permissions of the user who acknowledged the issue.

registryName String

Only acknowledge the issue in the context of the specified repository (also requires 'registry_name').

resourceCpe String

The CPE of the resource as listed in the issue by the Aqua API. This is required for resources of type 'executable'. For packages and files, the next parameters can be specified instead.

resourceFormat String

The format of the resource.

resourceHash String

When the resource_type is 'file', the hash of the file is required

resourceName String

When the resource_type is 'package', the name of the package is required.

resourcePath String

The path of the resource. This is required for resources of type 'file' and 'executable'.

resourceVersion String

When the resource_type is 'package', the version of the package is required

issueName string

The name of the security issue (the CVE or security advisory for vulnerabilities, name of malware or type of sensitive data)

issueType string

The type of the security issue (either 'vulnerability', 'sensitive_data' or 'malware')

resourceType string

The type of the resource where the issue was detected (either 'package', 'file' or 'executable')

author string

The user who acknowledged the issue.

date string

The date and time of the acknowledgment.

dockerId string
expirationConfiguredAt string

The current dat and time when the expiration was set

expirationConfiguredBy string

The user who set the expiration of the issue.

expirationDays number

Number of days until expiration of the acknowledgement. The value must be integer from 1 to 999, inclusive.

fixVersion string

The version of the package that having a fix for the issue.

imageName string

Only acknowledge the issue in the context of the specified image (also requires 'registry_name')

os string

When the resource_type is 'package', the operating system is required (e.g., 'ubuntu', 'alpine').

osVersion string

When the resource_type is 'package', the operating system version is required.

permission string

The permissions of the user who acknowledged the issue.

registryName string

Only acknowledge the issue in the context of the specified repository (also requires 'registry_name').

resourceCpe string

The CPE of the resource as listed in the issue by the Aqua API. This is required for resources of type 'executable'. For packages and files, the next parameters can be specified instead.

resourceFormat string

The format of the resource.

resourceHash string

When the resource_type is 'file', the hash of the file is required

resourceName string

When the resource_type is 'package', the name of the package is required.

resourcePath string

The path of the resource. This is required for resources of type 'file' and 'executable'.

resourceVersion string

When the resource_type is 'package', the version of the package is required

issue_name str

The name of the security issue (the CVE or security advisory for vulnerabilities, name of malware or type of sensitive data)

issue_type str

The type of the security issue (either 'vulnerability', 'sensitive_data' or 'malware')

resource_type str

The type of the resource where the issue was detected (either 'package', 'file' or 'executable')

author str

The user who acknowledged the issue.

date str

The date and time of the acknowledgment.

docker_id str
expiration_configured_at str

The current dat and time when the expiration was set

expiration_configured_by str

The user who set the expiration of the issue.

expiration_days int

Number of days until expiration of the acknowledgement. The value must be integer from 1 to 999, inclusive.

fix_version str

The version of the package that having a fix for the issue.

image_name str

Only acknowledge the issue in the context of the specified image (also requires 'registry_name')

os str

When the resource_type is 'package', the operating system is required (e.g., 'ubuntu', 'alpine').

os_version str

When the resource_type is 'package', the operating system version is required.

permission str

The permissions of the user who acknowledged the issue.

registry_name str

Only acknowledge the issue in the context of the specified repository (also requires 'registry_name').

resource_cpe str

The CPE of the resource as listed in the issue by the Aqua API. This is required for resources of type 'executable'. For packages and files, the next parameters can be specified instead.

resource_format str

The format of the resource.

resource_hash str

When the resource_type is 'file', the hash of the file is required

resource_name str

When the resource_type is 'package', the name of the package is required.

resource_path str

The path of the resource. This is required for resources of type 'file' and 'executable'.

resource_version str

When the resource_type is 'package', the version of the package is required

issueName String

The name of the security issue (the CVE or security advisory for vulnerabilities, name of malware or type of sensitive data)

issueType String

The type of the security issue (either 'vulnerability', 'sensitive_data' or 'malware')

resourceType String

The type of the resource where the issue was detected (either 'package', 'file' or 'executable')

author String

The user who acknowledged the issue.

date String

The date and time of the acknowledgment.

dockerId String
expirationConfiguredAt String

The current dat and time when the expiration was set

expirationConfiguredBy String

The user who set the expiration of the issue.

expirationDays Number

Number of days until expiration of the acknowledgement. The value must be integer from 1 to 999, inclusive.

fixVersion String

The version of the package that having a fix for the issue.

imageName String

Only acknowledge the issue in the context of the specified image (also requires 'registry_name')

os String

When the resource_type is 'package', the operating system is required (e.g., 'ubuntu', 'alpine').

osVersion String

When the resource_type is 'package', the operating system version is required.

permission String

The permissions of the user who acknowledged the issue.

registryName String

Only acknowledge the issue in the context of the specified repository (also requires 'registry_name').

resourceCpe String

The CPE of the resource as listed in the issue by the Aqua API. This is required for resources of type 'executable'. For packages and files, the next parameters can be specified instead.

resourceFormat String

The format of the resource.

resourceHash String

When the resource_type is 'file', the hash of the file is required

resourceName String

When the resource_type is 'package', the name of the package is required.

resourcePath String

The path of the resource. This is required for resources of type 'file' and 'executable'.

resourceVersion String

When the resource_type is 'package', the version of the package is required

Package Details

Repository
aquasec pulumiverse/pulumi-aquasec
License
Apache-2.0
Notes

This Pulumi package is based on the aquasec Terraform Provider.