1. Packages
  2. Qovery
  3. API Docs
  4. ScalewayCredentials
Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien

qovery.ScalewayCredentials

Explore with Pulumi AI

# qovery.ScalewayCredentials (Resource)

Provides a Qovery SCALEWAY credentials resource. This can be used to create and manage Qovery SCALEWAY credentials.

Example

import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@ediri/qovery";

const myScalewayCreds = new qovery.ScalewayCredentials("myScalewayCreds", {
    organizationId: qovery_organization.my_organization.id,
    scalewayAccessKey: "<your-scaleway-access-key>",
    scalewaySecretKey: "<your-scaleway-secret-key>",
    scalewayProjectId: "<your-scaleway-project-id>",
}, {
    dependsOn: [qovery_organization.my_organization],
});
Copy
import pulumi
import ediri_qovery as qovery

my_scaleway_creds = qovery.ScalewayCredentials("myScalewayCreds",
    organization_id=qovery_organization["my_organization"]["id"],
    scaleway_access_key="<your-scaleway-access-key>",
    scaleway_secret_key="<your-scaleway-secret-key>",
    scaleway_project_id="<your-scaleway-project-id>",
    opts = pulumi.ResourceOptions(depends_on=[qovery_organization["my_organization"]]))
Copy
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.NewScalewayCredentials(ctx, "myScalewayCreds", &qovery.ScalewayCredentialsArgs{
			OrganizationId:    pulumi.Any(qovery_organization.My_organization.Id),
			ScalewayAccessKey: pulumi.String("<your-scaleway-access-key>"),
			ScalewaySecretKey: pulumi.String("<your-scaleway-secret-key>"),
			ScalewayProjectId: pulumi.String("<your-scaleway-project-id>"),
		}, pulumi.DependsOn([]pulumi.Resource{
			qovery_organization.My_organization,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = ediri.Qovery;

return await Deployment.RunAsync(() => 
{
    var myScalewayCreds = new Qovery.ScalewayCredentials("myScalewayCreds", new()
    {
        OrganizationId = qovery_organization.My_organization.Id,
        ScalewayAccessKey = "<your-scaleway-access-key>",
        ScalewaySecretKey = "<your-scaleway-secret-key>",
        ScalewayProjectId = "<your-scaleway-project-id>",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            qovery_organization.My_organization,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.ScalewayCredentials;
import com.pulumi.qovery.ScalewayCredentialsArgs;
import com.pulumi.resources.CustomResourceOptions;
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 myScalewayCreds = new ScalewayCredentials("myScalewayCreds", ScalewayCredentialsArgs.builder()
            .organizationId(qovery_organization.my_organization().id())
            .scalewayAccessKey("<your-scaleway-access-key>")
            .scalewaySecretKey("<your-scaleway-secret-key>")
            .scalewayProjectId("<your-scaleway-project-id>")
            .build(), CustomResourceOptions.builder()
                .dependsOn(qovery_organization.my_organization())
                .build());

    }
}
Copy
resources:
  myScalewayCreds:
    type: qovery:ScalewayCredentials
    properties:
      # Required
      organizationId: ${qovery_organization.my_organization.id}
      scalewayAccessKey: <your-scaleway-access-key>
      scalewaySecretKey: <your-scaleway-secret-key>
      scalewayProjectId: <your-scaleway-project-id>
    options:
      dependson:
        - ${qovery_organization.my_organization}
Copy

Create ScalewayCredentials Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ScalewayCredentials(name: string, args: ScalewayCredentialsArgs, opts?: CustomResourceOptions);
@overload
def ScalewayCredentials(resource_name: str,
                        args: ScalewayCredentialsArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def ScalewayCredentials(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        organization_id: Optional[str] = None,
                        scaleway_access_key: Optional[str] = None,
                        scaleway_organization_id: Optional[str] = None,
                        scaleway_project_id: Optional[str] = None,
                        scaleway_secret_key: Optional[str] = None,
                        name: Optional[str] = None)
func NewScalewayCredentials(ctx *Context, name string, args ScalewayCredentialsArgs, opts ...ResourceOption) (*ScalewayCredentials, error)
public ScalewayCredentials(string name, ScalewayCredentialsArgs args, CustomResourceOptions? opts = null)
public ScalewayCredentials(String name, ScalewayCredentialsArgs args)
public ScalewayCredentials(String name, ScalewayCredentialsArgs args, CustomResourceOptions options)
type: qovery:ScalewayCredentials
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var scalewayCredentialsResource = new Qovery.ScalewayCredentials("scalewayCredentialsResource", new()
{
    OrganizationId = "string",
    ScalewayAccessKey = "string",
    ScalewayOrganizationId = "string",
    ScalewayProjectId = "string",
    ScalewaySecretKey = "string",
    Name = "string",
});
Copy
example, err := qovery.NewScalewayCredentials(ctx, "scalewayCredentialsResource", &qovery.ScalewayCredentialsArgs{
	OrganizationId:         pulumi.String("string"),
	ScalewayAccessKey:      pulumi.String("string"),
	ScalewayOrganizationId: pulumi.String("string"),
	ScalewayProjectId:      pulumi.String("string"),
	ScalewaySecretKey:      pulumi.String("string"),
	Name:                   pulumi.String("string"),
})
Copy
var scalewayCredentialsResource = new ScalewayCredentials("scalewayCredentialsResource", ScalewayCredentialsArgs.builder()
    .organizationId("string")
    .scalewayAccessKey("string")
    .scalewayOrganizationId("string")
    .scalewayProjectId("string")
    .scalewaySecretKey("string")
    .name("string")
    .build());
Copy
scaleway_credentials_resource = qovery.ScalewayCredentials("scalewayCredentialsResource",
    organization_id="string",
    scaleway_access_key="string",
    scaleway_organization_id="string",
    scaleway_project_id="string",
    scaleway_secret_key="string",
    name="string")
Copy
const scalewayCredentialsResource = new qovery.ScalewayCredentials("scalewayCredentialsResource", {
    organizationId: "string",
    scalewayAccessKey: "string",
    scalewayOrganizationId: "string",
    scalewayProjectId: "string",
    scalewaySecretKey: "string",
    name: "string",
});
Copy
type: qovery:ScalewayCredentials
properties:
    name: string
    organizationId: string
    scalewayAccessKey: string
    scalewayOrganizationId: string
    scalewayProjectId: string
    scalewaySecretKey: string
Copy

ScalewayCredentials Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ScalewayCredentials resource accepts the following input properties:

OrganizationId This property is required. string
Id of the organization.
ScalewayAccessKey This property is required. string
Your SCALEWAY access key id.
ScalewayOrganizationId This property is required. string
Your SCALEWAY organization ID.
ScalewayProjectId This property is required. string
Your SCALEWAY project ID.
ScalewaySecretKey This property is required. string
Your SCALEWAY secret key.
Name string
Name of the scaleway credentials.
OrganizationId This property is required. string
Id of the organization.
ScalewayAccessKey This property is required. string
Your SCALEWAY access key id.
ScalewayOrganizationId This property is required. string
Your SCALEWAY organization ID.
ScalewayProjectId This property is required. string
Your SCALEWAY project ID.
ScalewaySecretKey This property is required. string
Your SCALEWAY secret key.
Name string
Name of the scaleway credentials.
organizationId This property is required. String
Id of the organization.
scalewayAccessKey This property is required. String
Your SCALEWAY access key id.
scalewayOrganizationId This property is required. String
Your SCALEWAY organization ID.
scalewayProjectId This property is required. String
Your SCALEWAY project ID.
scalewaySecretKey This property is required. String
Your SCALEWAY secret key.
name String
Name of the scaleway credentials.
organizationId This property is required. string
Id of the organization.
scalewayAccessKey This property is required. string
Your SCALEWAY access key id.
scalewayOrganizationId This property is required. string
Your SCALEWAY organization ID.
scalewayProjectId This property is required. string
Your SCALEWAY project ID.
scalewaySecretKey This property is required. string
Your SCALEWAY secret key.
name string
Name of the scaleway credentials.
organization_id This property is required. str
Id of the organization.
scaleway_access_key This property is required. str
Your SCALEWAY access key id.
scaleway_organization_id This property is required. str
Your SCALEWAY organization ID.
scaleway_project_id This property is required. str
Your SCALEWAY project ID.
scaleway_secret_key This property is required. str
Your SCALEWAY secret key.
name str
Name of the scaleway credentials.
organizationId This property is required. String
Id of the organization.
scalewayAccessKey This property is required. String
Your SCALEWAY access key id.
scalewayOrganizationId This property is required. String
Your SCALEWAY organization ID.
scalewayProjectId This property is required. String
Your SCALEWAY project ID.
scalewaySecretKey This property is required. String
Your SCALEWAY secret key.
name String
Name of the scaleway credentials.

Outputs

All input properties are implicitly available as output properties. Additionally, the ScalewayCredentials 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 ScalewayCredentials Resource

Get an existing ScalewayCredentials 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?: ScalewayCredentialsState, opts?: CustomResourceOptions): ScalewayCredentials
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        scaleway_access_key: Optional[str] = None,
        scaleway_organization_id: Optional[str] = None,
        scaleway_project_id: Optional[str] = None,
        scaleway_secret_key: Optional[str] = None) -> ScalewayCredentials
func GetScalewayCredentials(ctx *Context, name string, id IDInput, state *ScalewayCredentialsState, opts ...ResourceOption) (*ScalewayCredentials, error)
public static ScalewayCredentials Get(string name, Input<string> id, ScalewayCredentialsState? state, CustomResourceOptions? opts = null)
public static ScalewayCredentials get(String name, Output<String> id, ScalewayCredentialsState state, CustomResourceOptions options)
resources:  _:    type: qovery:ScalewayCredentials    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Name string
Name of the scaleway credentials.
OrganizationId string
Id of the organization.
ScalewayAccessKey string
Your SCALEWAY access key id.
ScalewayOrganizationId string
Your SCALEWAY organization ID.
ScalewayProjectId string
Your SCALEWAY project ID.
ScalewaySecretKey string
Your SCALEWAY secret key.
Name string
Name of the scaleway credentials.
OrganizationId string
Id of the organization.
ScalewayAccessKey string
Your SCALEWAY access key id.
ScalewayOrganizationId string
Your SCALEWAY organization ID.
ScalewayProjectId string
Your SCALEWAY project ID.
ScalewaySecretKey string
Your SCALEWAY secret key.
name String
Name of the scaleway credentials.
organizationId String
Id of the organization.
scalewayAccessKey String
Your SCALEWAY access key id.
scalewayOrganizationId String
Your SCALEWAY organization ID.
scalewayProjectId String
Your SCALEWAY project ID.
scalewaySecretKey String
Your SCALEWAY secret key.
name string
Name of the scaleway credentials.
organizationId string
Id of the organization.
scalewayAccessKey string
Your SCALEWAY access key id.
scalewayOrganizationId string
Your SCALEWAY organization ID.
scalewayProjectId string
Your SCALEWAY project ID.
scalewaySecretKey string
Your SCALEWAY secret key.
name str
Name of the scaleway credentials.
organization_id str
Id of the organization.
scaleway_access_key str
Your SCALEWAY access key id.
scaleway_organization_id str
Your SCALEWAY organization ID.
scaleway_project_id str
Your SCALEWAY project ID.
scaleway_secret_key str
Your SCALEWAY secret key.
name String
Name of the scaleway credentials.
organizationId String
Id of the organization.
scalewayAccessKey String
Your SCALEWAY access key id.
scalewayOrganizationId String
Your SCALEWAY organization ID.
scalewayProjectId String
Your SCALEWAY project ID.
scalewaySecretKey String
Your SCALEWAY secret key.

Import

$ pulumi import qovery:index/scalewayCredentials:ScalewayCredentials my_scaleway_creds "<organization_id>,<scaleway_credentials_id>"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
qovery dirien/pulumi-qovery
License
Apache-2.0
Notes
This Pulumi package is based on the qovery Terraform Provider.