Aquasec

v0.2.2 published on Monday, Nov 14, 2022 by Pulumiverse

ApplicationScope

Example Usage

Coming soon!

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.ApplicationScope;
import com.pulumi.aquasec.ApplicationScopeArgs;
import com.pulumi.aquasec.inputs.ApplicationScopeCategoryArgs;
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 terraformiap = new ApplicationScope("terraformiap", ApplicationScopeArgs.builder()        
            .categories(ApplicationScopeCategoryArgs.builder()
                .artifacts(ApplicationScopeCategoryArtifactArgs.builder()
                    .image(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .build())
                .infrastructures(ApplicationScopeCategoryInfrastructureArgs.builder()
                    .kubernetes(ApplicationScopeCategoryInfrastructureKuberneteArgs.builder()
                        .expression("v1")
                        .variables(ApplicationScopeCategoryInfrastructureKuberneteVariableArgs.builder()
                            .attribute("kubernetes.cluster")
                            .value("aqua")
                            .build())
                        .build())
                    .build())
                .workloads(ApplicationScopeCategoryWorkloadArgs.builder()
                    .kubernetes(ApplicationScopeCategoryWorkloadKuberneteArgs.builder()
                        .expression("v1 && v2")
                        .variables(                        
                            ApplicationScopeCategoryWorkloadKuberneteVariableArgs.builder()
                                .attribute("kubernetes.cluster")
                                .value("aqua")
                                .build(),
                            ApplicationScopeCategoryWorkloadKuberneteVariableArgs.builder()
                                .attribute("kubernetes.namespace")
                                .value("aqua")
                                .build())
                        .build())
                    .build())
                .build())
            .description("test123")
            .build());

    }
}

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";

const terraformiap = new aquasec.ApplicationScope("terraformiap", {
    // Categories is a nested block of artifacts, workloads and infrastructure
    categories: [{
        // Artifacts is a nested block of Image, Function, CF
        artifacts: [{
            // Every object requires expression(logical combinations of variables v1, v2, v3...) and list of variables consists of attribute(pre-defined) and value
            images: [{
                expression: "v1 && v2",
                variables: [
                    {
                        attribute: "aqua.registry",
                        value: "test-registry",
                    },
                    {
                        attribute: "image.repo",
                        value: "nginx",
                    },
                ],
            }],
        }],
        // Infrastructure is a nested block of Kubernetes, OS
        infrastructures: [{
            // Every object requires expression and list of variables consists of attribute(pre-defined) and value
            kubernetes: [{
                expression: "v1",
                variables: [{
                    attribute: "kubernetes.cluster",
                    value: "aqua",
                }],
            }],
        }],
        // Workloads is a nested block of Kubernetes, OS, CF
        workloads: [{
            // Every object requires expression(logical combinations of variables v1, v2, v3...) and list of variables consists of attribute(pre-defined) and value
            kubernetes: [{
                expression: "v1 && v2",
                variables: [
                    {
                        attribute: "kubernetes.cluster",
                        value: "aqua",
                    },
                    {
                        attribute: "kubernetes.namespace",
                        value: "aqua",
                    },
                ],
            }],
        }],
    }],
    description: "test123",
});
resources:
  terraformiap:
    type: aquasec:ApplicationScope
    properties:
      # Categories is a nested block of artifacts, workloads and infrastructure
      categories:
        - artifacts:
            - image:
                - expression: v1 && v2
                  variables:
                    - attribute: aqua.registry
                      value: test-registry
                    - attribute: image.repo
                      value: nginx
          infrastructures:
            - kubernetes:
                - expression: v1
                  variables:
                    - attribute: kubernetes.cluster
                      value: aqua
          workloads:
            - kubernetes:
                - expression: v1 && v2
                  variables:
                    - attribute: kubernetes.cluster
                      value: aqua
                    - attribute: kubernetes.namespace
                      value: aqua
      description: test123

Create ApplicationScope Resource

new ApplicationScope(name: string, args?: ApplicationScopeArgs, opts?: CustomResourceOptions);
@overload
def ApplicationScope(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     categories: Optional[Sequence[ApplicationScopeCategoryArgs]] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     owner_email: Optional[str] = None)
@overload
def ApplicationScope(resource_name: str,
                     args: Optional[ApplicationScopeArgs] = None,
                     opts: Optional[ResourceOptions] = None)
func NewApplicationScope(ctx *Context, name string, args *ApplicationScopeArgs, opts ...ResourceOption) (*ApplicationScope, error)
public ApplicationScope(string name, ApplicationScopeArgs? args = null, CustomResourceOptions? opts = null)
public ApplicationScope(String name, ApplicationScopeArgs args)
public ApplicationScope(String name, ApplicationScopeArgs args, CustomResourceOptions options)
type: aquasec:ApplicationScope
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationScopeArgs
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 ApplicationScopeArgs
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 ApplicationScopeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationScopeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationScopeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ApplicationScope 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 ApplicationScope resource accepts the following input properties:

Categories List<Pulumiverse.Aquasec.Inputs.ApplicationScopeCategoryArgs>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

Description string

Description of the application scope.

Name string

Name of an application scope.

OwnerEmail string

Name of an application scope.

Categories []ApplicationScopeCategoryArgs

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

Description string

Description of the application scope.

Name string

Name of an application scope.

OwnerEmail string

Name of an application scope.

categories List<ApplicationScopeCategoryArgs>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description String

Description of the application scope.

name String

Name of an application scope.

ownerEmail String

Name of an application scope.

categories ApplicationScopeCategoryArgs[]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description string

Description of the application scope.

name string

Name of an application scope.

ownerEmail string

Name of an application scope.

categories Sequence[ApplicationScopeCategoryArgs]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description str

Description of the application scope.

name str

Name of an application scope.

owner_email str

Name of an application scope.

categories List<Property Map>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description String

Description of the application scope.

name String

Name of an application scope.

ownerEmail String

Name of an application scope.

Outputs

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

Author string

Username of the account that created the service.

Id string

The provider-assigned unique ID for this managed resource.

Author string

Username of the account that created the service.

Id string

The provider-assigned unique ID for this managed resource.

author String

Username of the account that created the service.

id String

The provider-assigned unique ID for this managed resource.

author string

Username of the account that created the service.

id string

The provider-assigned unique ID for this managed resource.

author str

Username of the account that created the service.

id str

The provider-assigned unique ID for this managed resource.

author String

Username of the account that created the service.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing ApplicationScope Resource

Get an existing ApplicationScope 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?: ApplicationScopeState, opts?: CustomResourceOptions): ApplicationScope
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        author: Optional[str] = None,
        categories: Optional[Sequence[ApplicationScopeCategoryArgs]] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        owner_email: Optional[str] = None) -> ApplicationScope
func GetApplicationScope(ctx *Context, name string, id IDInput, state *ApplicationScopeState, opts ...ResourceOption) (*ApplicationScope, error)
public static ApplicationScope Get(string name, Input<string> id, ApplicationScopeState? state, CustomResourceOptions? opts = null)
public static ApplicationScope get(String name, Output<String> id, ApplicationScopeState 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:
Author string

Username of the account that created the service.

Categories List<Pulumiverse.Aquasec.Inputs.ApplicationScopeCategoryArgs>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

Description string

Description of the application scope.

Name string

Name of an application scope.

OwnerEmail string

Name of an application scope.

Author string

Username of the account that created the service.

Categories []ApplicationScopeCategoryArgs

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

Description string

Description of the application scope.

Name string

Name of an application scope.

OwnerEmail string

Name of an application scope.

author String

Username of the account that created the service.

categories List<ApplicationScopeCategoryArgs>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description String

Description of the application scope.

name String

Name of an application scope.

ownerEmail String

Name of an application scope.

author string

Username of the account that created the service.

categories ApplicationScopeCategoryArgs[]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description string

Description of the application scope.

name string

Name of an application scope.

ownerEmail string

Name of an application scope.

author str

Username of the account that created the service.

categories Sequence[ApplicationScopeCategoryArgs]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description str

Description of the application scope.

name str

Name of an application scope.

owner_email str

Name of an application scope.

author String

Username of the account that created the service.

categories List<Property Map>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

description String

Description of the application scope.

name String

Name of an application scope.

ownerEmail String

Name of an application scope.

Supporting Types

ApplicationScopeCategory

Artifacts List<Pulumiverse.Aquasec.Inputs.ApplicationScopeCategoryArtifact>

An artifact is an application. It can be an image (for a container, not a CF application); a serverless function; or a Tanzu Application Service (TAS) droplet.

EntityScopes List<Pulumiverse.Aquasec.Inputs.ApplicationScopeCategoryEntityScope>
Infrastructures List<Pulumiverse.Aquasec.Inputs.ApplicationScopeCategoryInfrastructure>

An infrastructure resource is an element of a computing environment on which a workload is orchestrated and run. It can be a host (VM) or a Kubernetes cluster.

Workloads List<Pulumiverse.Aquasec.Inputs.ApplicationScopeCategoryWorkload>

A workload is a running container. It can run in a Kubernetes cluster, on a VM (no orchestrator), or under Tanzu Application Service (TAS).

Artifacts []ApplicationScopeCategoryArtifact

An artifact is an application. It can be an image (for a container, not a CF application); a serverless function; or a Tanzu Application Service (TAS) droplet.

EntityScopes []ApplicationScopeCategoryEntityScope
Infrastructures []ApplicationScopeCategoryInfrastructure

An infrastructure resource is an element of a computing environment on which a workload is orchestrated and run. It can be a host (VM) or a Kubernetes cluster.

Workloads []ApplicationScopeCategoryWorkload

A workload is a running container. It can run in a Kubernetes cluster, on a VM (no orchestrator), or under Tanzu Application Service (TAS).

artifacts List<ApplicationScopeCategoryArtifact>

An artifact is an application. It can be an image (for a container, not a CF application); a serverless function; or a Tanzu Application Service (TAS) droplet.

entityScopes List<ApplicationScopeCategoryEntityScope>
infrastructures List<ApplicationScopeCategoryInfrastructure>

An infrastructure resource is an element of a computing environment on which a workload is orchestrated and run. It can be a host (VM) or a Kubernetes cluster.

workloads List<ApplicationScopeCategoryWorkload>

A workload is a running container. It can run in a Kubernetes cluster, on a VM (no orchestrator), or under Tanzu Application Service (TAS).

artifacts ApplicationScopeCategoryArtifact[]

An artifact is an application. It can be an image (for a container, not a CF application); a serverless function; or a Tanzu Application Service (TAS) droplet.

entityScopes ApplicationScopeCategoryEntityScope[]
infrastructures ApplicationScopeCategoryInfrastructure[]

An infrastructure resource is an element of a computing environment on which a workload is orchestrated and run. It can be a host (VM) or a Kubernetes cluster.

workloads ApplicationScopeCategoryWorkload[]

A workload is a running container. It can run in a Kubernetes cluster, on a VM (no orchestrator), or under Tanzu Application Service (TAS).

artifacts Sequence[ApplicationScopeCategoryArtifact]

An artifact is an application. It can be an image (for a container, not a CF application); a serverless function; or a Tanzu Application Service (TAS) droplet.

entity_scopes Sequence[ApplicationScopeCategoryEntityScope]
infrastructures Sequence[ApplicationScopeCategoryInfrastructure]

An infrastructure resource is an element of a computing environment on which a workload is orchestrated and run. It can be a host (VM) or a Kubernetes cluster.

workloads Sequence[ApplicationScopeCategoryWorkload]

A workload is a running container. It can run in a Kubernetes cluster, on a VM (no orchestrator), or under Tanzu Application Service (TAS).

artifacts List<Property Map>

An artifact is an application. It can be an image (for a container, not a CF application); a serverless function; or a Tanzu Application Service (TAS) droplet.

entityScopes List<Property Map>
infrastructures List<Property Map>

An infrastructure resource is an element of a computing environment on which a workload is orchestrated and run. It can be a host (VM) or a Kubernetes cluster.

workloads List<Property Map>

A workload is a running container. It can run in a Kubernetes cluster, on a VM (no orchestrator), or under Tanzu Application Service (TAS).

ApplicationScopeCategoryArtifact

ApplicationScopeCategoryArtifactCf

ApplicationScopeCategoryArtifactCfVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryArtifactFunction

ApplicationScopeCategoryArtifactFunctionVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryArtifactImage

ApplicationScopeCategoryArtifactImageVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryEntityScope

ApplicationScopeCategoryEntityScopeVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryInfrastructure

ApplicationScopeCategoryInfrastructureKubernete

ApplicationScopeCategoryInfrastructureKuberneteVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryInfrastructureO

ApplicationScopeCategoryInfrastructureOVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryWorkload

ApplicationScopeCategoryWorkloadCf

ApplicationScopeCategoryWorkloadCfVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryWorkloadKubernete

ApplicationScopeCategoryWorkloadKuberneteVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

ApplicationScopeCategoryWorkloadO

ApplicationScopeCategoryWorkloadOVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

Package Details

Repository
https://github.com/pulumiverse/pulumi-aquasec
License
Apache-2.0
Notes

This Pulumi package is based on the aquasec Terraform Provider.