Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien
qovery.getAwsCredentials
Explore with Pulumi AI
# qovery.AwsCredentials (Data Source)
Provides a Qovery AWS credentials resource. This can be used to create and manage Qovery AWS credentials.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@pulumi/qovery";
const myAwsCreds = qovery.getAwsCredentials({
id: "<credentials_id>",
organizationId: "<organization_id>",
});
import pulumi
import pulumi_qovery as qovery
my_aws_creds = qovery.get_aws_credentials(id="<credentials_id>",
organization_id="<organization_id>")
package main
import (
"github.com/dirien/pulumi-qovery/sdk/go/qovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := qovery.LookupAwsCredentials(ctx, &qovery.LookupAwsCredentialsArgs{
Id: "<credentials_id>",
OrganizationId: "<organization_id>",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = Pulumi.Qovery;
return await Deployment.RunAsync(() =>
{
var myAwsCreds = Qovery.GetAwsCredentials.Invoke(new()
{
Id = "<credentials_id>",
OrganizationId = "<organization_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.QoveryFunctions;
import com.pulumi.qovery.inputs.GetAwsCredentialsArgs;
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 myAwsCreds = QoveryFunctions.getAwsCredentials(GetAwsCredentialsArgs.builder()
.id("<credentials_id>")
.organizationId("<organization_id>")
.build());
}
}
variables:
myAwsCreds:
fn::invoke:
Function: qovery:getAwsCredentials
Arguments:
id: <credentials_id>
organizationId: <organization_id>
Using getAwsCredentials
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 getAwsCredentials(args: GetAwsCredentialsArgs, opts?: InvokeOptions): Promise<GetAwsCredentialsResult>
function getAwsCredentialsOutput(args: GetAwsCredentialsOutputArgs, opts?: InvokeOptions): Output<GetAwsCredentialsResult>
def get_aws_credentials(id: Optional[str] = None,
organization_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAwsCredentialsResult
def get_aws_credentials_output(id: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAwsCredentialsResult]
func LookupAwsCredentials(ctx *Context, args *LookupAwsCredentialsArgs, opts ...InvokeOption) (*LookupAwsCredentialsResult, error)
func LookupAwsCredentialsOutput(ctx *Context, args *LookupAwsCredentialsOutputArgs, opts ...InvokeOption) LookupAwsCredentialsResultOutput
> Note: This function is named LookupAwsCredentials
in the Go SDK.
public static class GetAwsCredentials
{
public static Task<GetAwsCredentialsResult> InvokeAsync(GetAwsCredentialsArgs args, InvokeOptions? opts = null)
public static Output<GetAwsCredentialsResult> Invoke(GetAwsCredentialsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAwsCredentialsResult> getAwsCredentials(GetAwsCredentialsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: qovery:index/getAwsCredentials:getAwsCredentials
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Id of the AWS credentials.
- Organization
Id string - Id of the organization.
- Id string
- Id of the AWS credentials.
- Organization
Id string - Id of the organization.
- id String
- Id of the AWS credentials.
- organization
Id String - Id of the organization.
- id string
- Id of the AWS credentials.
- organization
Id string - Id of the organization.
- id str
- Id of the AWS credentials.
- organization_
id str - Id of the organization.
- id String
- Id of the AWS credentials.
- organization
Id String - Id of the organization.
getAwsCredentials Result
The following output properties are available:
- Id string
- Id of the AWS credentials.
- Name string
- Name of the aws credentials.
- Organization
Id string - Id of the organization.
- Id string
- Id of the AWS credentials.
- Name string
- Name of the aws credentials.
- Organization
Id string - Id of the organization.
- id String
- Id of the AWS credentials.
- name String
- Name of the aws credentials.
- organization
Id String - Id of the organization.
- id string
- Id of the AWS credentials.
- name string
- Name of the aws credentials.
- organization
Id string - Id of the organization.
- id str
- Id of the AWS credentials.
- name str
- Name of the aws credentials.
- organization_
id str - Id of the organization.
- id String
- Id of the AWS credentials.
- name String
- Name of the aws credentials.
- organization
Id String - Id of the organization.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
qovery
Terraform Provider.