astra logo
astra v1.0.35, Jul 27 22

astra.getSecureConnectBundleUrl

astra.getSecureConnectBundleUrl provides a datasource that generates a temporary secure connect bundle URL. This URL lasts five minutes. Secure connect bundles are used to connect to Astra using cql cassandra drivers. See the docs for more information on how to connect.

Example Usage

using Pulumi;
using Astra = Pulumi.Astra;

class MyStack : Stack
{
    public MyStack()
    {
        var dev = Output.Create(Astra.GetSecureConnectBundleUrl.InvokeAsync(new Astra.GetSecureConnectBundleUrlArgs
        {
            DatabaseId = "f9f4b1e0-4c05-451e-9bba-d631295a7f73",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := astra.GetSecureConnectBundleUrl(ctx, &GetSecureConnectBundleUrlArgs{
			DatabaseId: "f9f4b1e0-4c05-451e-9bba-d631295a7f73",
		}, nil)
		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.astra.AstraFunctions;
import com.pulumi.astra.inputs.GetSecureConnectBundleUrlArgs;
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 dev = AstraFunctions.getSecureConnectBundleUrl(GetSecureConnectBundleUrlArgs.builder()
            .databaseId("f9f4b1e0-4c05-451e-9bba-d631295a7f73")
            .build());

    }
}
import pulumi
import pulumi_astra as astra

dev = astra.get_secure_connect_bundle_url(database_id="f9f4b1e0-4c05-451e-9bba-d631295a7f73")
import * as pulumi from "@pulumi/pulumi";
import * as astra from "@pulumi/astra";

const dev = pulumi.output(astra.getSecureConnectBundleUrl({
    databaseId: "f9f4b1e0-4c05-451e-9bba-d631295a7f73",
}));
variables:
  dev:
    Fn::Invoke:
      Function: astra:getSecureConnectBundleUrl
      Arguments:
        databaseId: f9f4b1e0-4c05-451e-9bba-d631295a7f73

Using getSecureConnectBundleUrl

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 getSecureConnectBundleUrl(args: GetSecureConnectBundleUrlArgs, opts?: InvokeOptions): Promise<GetSecureConnectBundleUrlResult>
function getSecureConnectBundleUrlOutput(args: GetSecureConnectBundleUrlOutputArgs, opts?: InvokeOptions): Output<GetSecureConnectBundleUrlResult>
def get_secure_connect_bundle_url(database_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSecureConnectBundleUrlResult
def get_secure_connect_bundle_url_output(database_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSecureConnectBundleUrlResult]
func GetSecureConnectBundleUrl(ctx *Context, args *GetSecureConnectBundleUrlArgs, opts ...InvokeOption) (*GetSecureConnectBundleUrlResult, error)
func GetSecureConnectBundleUrlOutput(ctx *Context, args *GetSecureConnectBundleUrlOutputArgs, opts ...InvokeOption) GetSecureConnectBundleUrlResultOutput

> Note: This function is named GetSecureConnectBundleUrl in the Go SDK.

public static class GetSecureConnectBundleUrl 
{
    public static Task<GetSecureConnectBundleUrlResult> InvokeAsync(GetSecureConnectBundleUrlArgs args, InvokeOptions? opts = null)
    public static Output<GetSecureConnectBundleUrlResult> Invoke(GetSecureConnectBundleUrlInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecureConnectBundleUrlResult> getSecureConnectBundleUrl(GetSecureConnectBundleUrlArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: astra:index/getSecureConnectBundleUrl:getSecureConnectBundleUrl
  arguments:
    # arguments dictionary

The following arguments are supported:

DatabaseId string
DatabaseId string
databaseId String
databaseId string
databaseId String

getSecureConnectBundleUrl Result

The following output properties are available:

DatabaseId string
Id string

The provider-assigned unique ID for this managed resource.

Url string
DatabaseId string
Id string

The provider-assigned unique ID for this managed resource.

Url string
databaseId String
id String

The provider-assigned unique ID for this managed resource.

url String
databaseId string
id string

The provider-assigned unique ID for this managed resource.

url string
database_id str
id str

The provider-assigned unique ID for this managed resource.

url str
databaseId String
id String

The provider-assigned unique ID for this managed resource.

url String

Package Details

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

This Pulumi package is based on the astra Terraform Provider.