1. Packages
  2. Scaleway
  3. API Docs
  4. IamApplication
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.IamApplication

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Creates and manages Scaleway IAM Applications. For more information, see the documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.IamApplication("main", {description: "a description"});
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.IamApplication("main", description="a description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewIamApplication(ctx, "main", &scaleway.IamApplicationArgs{
    			Description: pulumi.String("a description"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.IamApplication("main", new()
        {
            Description = "a description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.IamApplication;
    import com.pulumi.scaleway.IamApplicationArgs;
    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 main = new IamApplication("main", IamApplicationArgs.builder()        
                .description("a description")
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:IamApplication
        properties:
          description: a description
    

    Create IamApplication Resource

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

    Constructor syntax

    new IamApplication(name: string, args?: IamApplicationArgs, opts?: CustomResourceOptions);
    @overload
    def IamApplication(resource_name: str,
                       args: Optional[IamApplicationArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamApplication(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       description: Optional[str] = None,
                       name: Optional[str] = None,
                       organization_id: Optional[str] = None,
                       tags: Optional[Sequence[str]] = None)
    func NewIamApplication(ctx *Context, name string, args *IamApplicationArgs, opts ...ResourceOption) (*IamApplication, error)
    public IamApplication(string name, IamApplicationArgs? args = null, CustomResourceOptions? opts = null)
    public IamApplication(String name, IamApplicationArgs args)
    public IamApplication(String name, IamApplicationArgs args, CustomResourceOptions options)
    
    type: scaleway:IamApplication
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Example

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

    var iamApplicationResource = new Scaleway.IamApplication("iamApplicationResource", new()
    {
        Description = "string",
        Name = "string",
        OrganizationId = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := scaleway.NewIamApplication(ctx, "iamApplicationResource", &scaleway.IamApplicationArgs{
    	Description:    pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	OrganizationId: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var iamApplicationResource = new IamApplication("iamApplicationResource", IamApplicationArgs.builder()        
        .description("string")
        .name("string")
        .organizationId("string")
        .tags("string")
        .build());
    
    iam_application_resource = scaleway.IamApplication("iamApplicationResource",
        description="string",
        name="string",
        organization_id="string",
        tags=["string"])
    
    const iamApplicationResource = new scaleway.IamApplication("iamApplicationResource", {
        description: "string",
        name: "string",
        organizationId: "string",
        tags: ["string"],
    });
    
    type: scaleway:IamApplication
    properties:
        description: string
        name: string
        organizationId: string
        tags:
            - string
    

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

    Description string
    The description of the iam application.
    Name string
    The name of the iam application.
    OrganizationId string
    organization_id) The ID of the organization the application is associated with.
    Tags List<string>
    The tags associated with the application.
    Description string
    The description of the iam application.
    Name string
    The name of the iam application.
    OrganizationId string
    organization_id) The ID of the organization the application is associated with.
    Tags []string
    The tags associated with the application.
    description String
    The description of the iam application.
    name String
    The name of the iam application.
    organizationId String
    organization_id) The ID of the organization the application is associated with.
    tags List<String>
    The tags associated with the application.
    description string
    The description of the iam application.
    name string
    The name of the iam application.
    organizationId string
    organization_id) The ID of the organization the application is associated with.
    tags string[]
    The tags associated with the application.
    description str
    The description of the iam application.
    name str
    The name of the iam application.
    organization_id str
    organization_id) The ID of the organization the application is associated with.
    tags Sequence[str]
    The tags associated with the application.
    description String
    The description of the iam application.
    name String
    The name of the iam application.
    organizationId String
    organization_id) The ID of the organization the application is associated with.
    tags List<String>
    The tags associated with the application.

    Outputs

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

    CreatedAt string
    The date and time of the creation of the application.
    Editable bool
    Whether the application is editable.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The date and time of the last update of the application.
    CreatedAt string
    The date and time of the creation of the application.
    Editable bool
    Whether the application is editable.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The date and time of the last update of the application.
    createdAt String
    The date and time of the creation of the application.
    editable Boolean
    Whether the application is editable.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The date and time of the last update of the application.
    createdAt string
    The date and time of the creation of the application.
    editable boolean
    Whether the application is editable.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The date and time of the last update of the application.
    created_at str
    The date and time of the creation of the application.
    editable bool
    Whether the application is editable.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The date and time of the last update of the application.
    createdAt String
    The date and time of the creation of the application.
    editable Boolean
    Whether the application is editable.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The date and time of the last update of the application.

    Look up Existing IamApplication Resource

    Get an existing IamApplication 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?: IamApplicationState, opts?: CustomResourceOptions): IamApplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            editable: Optional[bool] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            updated_at: Optional[str] = None) -> IamApplication
    func GetIamApplication(ctx *Context, name string, id IDInput, state *IamApplicationState, opts ...ResourceOption) (*IamApplication, error)
    public static IamApplication Get(string name, Input<string> id, IamApplicationState? state, CustomResourceOptions? opts = null)
    public static IamApplication get(String name, Output<String> id, IamApplicationState 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:
    CreatedAt string
    The date and time of the creation of the application.
    Description string
    The description of the iam application.
    Editable bool
    Whether the application is editable.
    Name string
    The name of the iam application.
    OrganizationId string
    organization_id) The ID of the organization the application is associated with.
    Tags List<string>
    The tags associated with the application.
    UpdatedAt string
    The date and time of the last update of the application.
    CreatedAt string
    The date and time of the creation of the application.
    Description string
    The description of the iam application.
    Editable bool
    Whether the application is editable.
    Name string
    The name of the iam application.
    OrganizationId string
    organization_id) The ID of the organization the application is associated with.
    Tags []string
    The tags associated with the application.
    UpdatedAt string
    The date and time of the last update of the application.
    createdAt String
    The date and time of the creation of the application.
    description String
    The description of the iam application.
    editable Boolean
    Whether the application is editable.
    name String
    The name of the iam application.
    organizationId String
    organization_id) The ID of the organization the application is associated with.
    tags List<String>
    The tags associated with the application.
    updatedAt String
    The date and time of the last update of the application.
    createdAt string
    The date and time of the creation of the application.
    description string
    The description of the iam application.
    editable boolean
    Whether the application is editable.
    name string
    The name of the iam application.
    organizationId string
    organization_id) The ID of the organization the application is associated with.
    tags string[]
    The tags associated with the application.
    updatedAt string
    The date and time of the last update of the application.
    created_at str
    The date and time of the creation of the application.
    description str
    The description of the iam application.
    editable bool
    Whether the application is editable.
    name str
    The name of the iam application.
    organization_id str
    organization_id) The ID of the organization the application is associated with.
    tags Sequence[str]
    The tags associated with the application.
    updated_at str
    The date and time of the last update of the application.
    createdAt String
    The date and time of the creation of the application.
    description String
    The description of the iam application.
    editable Boolean
    Whether the application is editable.
    name String
    The name of the iam application.
    organizationId String
    organization_id) The ID of the organization the application is associated with.
    tags List<String>
    The tags associated with the application.
    updatedAt String
    The date and time of the last update of the application.

    Import

    Applications can be imported using the {id}, e.g.

    bash

    $ pulumi import scaleway:index/iamApplication:IamApplication main 11111111-1111-1111-1111-111111111111
    

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

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse