Aquasec v0.8.27 published on Monday, Jan 29, 2024 by Pulumiverse
aquasec.getAquaLabels
Explore with Pulumi AI
The data source aquasec.getAquaLabels
provides a method to query all aqua labels within the Aqua account management.The fields returned from this query are detailed in the Schema section below.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumi.Aquasec;
return await Deployment.RunAsync(() =>
{
var aquaLabels = Aquasec.GetAquaLabels.Invoke();
return new Dictionary<string, object?>
{
["scopes"] = aquaLabels,
};
});
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 {
aquaLabels, err := aquasec.GetAquaLabels(ctx, nil, nil)
if err != nil {
return err
}
ctx.Export("scopes", aquaLabels)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.AquasecFunctions;
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) {
final var aquaLabels = AquasecFunctions.getAquaLabels();
ctx.export("scopes", aquaLabels.applyValue(getAquaLabelsResult -> getAquaLabelsResult));
}
}
import pulumi
import pulumi_aquasec as aquasec
aqua_labels = aquasec.get_aqua_labels()
pulumi.export("scopes", aqua_labels)
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";
const aquaLabels = aquasec.getAquaLabels({});
export const scopes = aquaLabels;
variables:
aquaLabels:
fn::invoke:
Function: aquasec:getAquaLabels
Arguments: {}
outputs:
# Print all Aqua labels
scopes: ${aquaLabels}
Using getAquaLabels
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAquaLabels(opts?: InvokeOptions): Promise<GetAquaLabelsResult>
function getAquaLabelsOutput(opts?: InvokeOptions): Output<GetAquaLabelsResult>
def get_aqua_labels(opts: Optional[InvokeOptions] = None) -> GetAquaLabelsResult
def get_aqua_labels_output(opts: Optional[InvokeOptions] = None) -> Output[GetAquaLabelsResult]
func GetAquaLabels(ctx *Context, opts ...InvokeOption) (*GetAquaLabelsResult, error)
func GetAquaLabelsOutput(ctx *Context, opts ...InvokeOption) GetAquaLabelsResultOutput
> Note: This function is named GetAquaLabels
in the Go SDK.
public static class GetAquaLabels
{
public static Task<GetAquaLabelsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetAquaLabelsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetAquaLabelsResult> getAquaLabels(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aquasec:index/getAquaLabels:getAquaLabels
arguments:
# arguments dictionary
getAquaLabels Result
The following output properties are available:
- Aqua
Labels List<Pulumiverse.Aquasec. Outputs. Get Aqua Labels Aqua Label> - Id string
- The provider-assigned unique ID for this managed resource.
- Aqua
Labels []GetAqua Labels Aqua Label - Id string
- The provider-assigned unique ID for this managed resource.
- aqua
Labels List<GetAqua Labels Aqua Label> - id String
- The provider-assigned unique ID for this managed resource.
- aqua
Labels GetAqua Labels Aqua Label[] - id string
- The provider-assigned unique ID for this managed resource.
- aqua_
labels Sequence[GetAqua Labels Aqua Label] - id str
- The provider-assigned unique ID for this managed resource.
- aqua
Labels List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetAquaLabelsAquaLabel
- string
- Created string
- Description string
- Name string
- string
- Created string
- Description string
- Name string
- String
- created String
- description String
- name String
- string
- created string
- description string
- name string
- str
- created str
- description str
- name str
- String
- created String
- description String
- name String
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aquasec
Terraform Provider.