flexibleengine.SwrOrganization
Explore with Pulumi AI
Manages an SWR organization resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const test = new flexibleengine.SwrOrganization("test", {});
import pulumi
import pulumi_flexibleengine as flexibleengine
test = flexibleengine.SwrOrganization("test")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewSwrOrganization(ctx, "test", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var test = new Flexibleengine.SwrOrganization("test");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.SwrOrganization;
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 test = new SwrOrganization("test");
}
}
resources:
test:
type: flexibleengine:SwrOrganization
Create SwrOrganization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwrOrganization(name: string, args?: SwrOrganizationArgs, opts?: CustomResourceOptions);
@overload
def SwrOrganization(resource_name: str,
args: Optional[SwrOrganizationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SwrOrganization(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
region: Optional[str] = None,
swr_organization_id: Optional[str] = None,
timeouts: Optional[SwrOrganizationTimeoutsArgs] = None)
func NewSwrOrganization(ctx *Context, name string, args *SwrOrganizationArgs, opts ...ResourceOption) (*SwrOrganization, error)
public SwrOrganization(string name, SwrOrganizationArgs? args = null, CustomResourceOptions? opts = null)
public SwrOrganization(String name, SwrOrganizationArgs args)
public SwrOrganization(String name, SwrOrganizationArgs args, CustomResourceOptions options)
type: flexibleengine:SwrOrganization
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 SwrOrganizationArgs
- 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 SwrOrganizationArgs
- 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 SwrOrganizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwrOrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwrOrganizationArgs
- 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 swrOrganizationResource = new Flexibleengine.SwrOrganization("swrOrganizationResource", new()
{
Name = "string",
Region = "string",
SwrOrganizationId = "string",
Timeouts = new Flexibleengine.Inputs.SwrOrganizationTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := flexibleengine.NewSwrOrganization(ctx, "swrOrganizationResource", &flexibleengine.SwrOrganizationArgs{
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SwrOrganizationId: pulumi.String("string"),
Timeouts: &flexibleengine.SwrOrganizationTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var swrOrganizationResource = new SwrOrganization("swrOrganizationResource", SwrOrganizationArgs.builder()
.name("string")
.region("string")
.swrOrganizationId("string")
.timeouts(SwrOrganizationTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
swr_organization_resource = flexibleengine.SwrOrganization("swrOrganizationResource",
name="string",
region="string",
swr_organization_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const swrOrganizationResource = new flexibleengine.SwrOrganization("swrOrganizationResource", {
name: "string",
region: "string",
swrOrganizationId: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:SwrOrganization
properties:
name: string
region: string
swrOrganizationId: string
timeouts:
create: string
delete: string
SwrOrganization 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 SwrOrganization resource accepts the following input properties:
- Name string
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Swr
Organization stringId - ID of the organization.
- Timeouts
Swr
Organization Timeouts
- Name string
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Swr
Organization stringId - ID of the organization.
- Timeouts
Swr
Organization Timeouts Args
- name String
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Organization StringId - ID of the organization.
- timeouts
Swr
Organization Timeouts
- name string
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Organization stringId - ID of the organization.
- timeouts
Swr
Organization Timeouts
- name str
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr_
organization_ strid - ID of the organization.
- timeouts
Swr
Organization Timeouts Args
- name String
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Organization StringId - ID of the organization.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SwrOrganization resource produces the following output properties:
- Creator string
- The creator username of the organization.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Server string - The URL that can be used to log into the container registry.
- Permission string
- The permission of the organization, the value can be Manage, Write, and Read.
- Creator string
- The creator username of the organization.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Server string - The URL that can be used to log into the container registry.
- Permission string
- The permission of the organization, the value can be Manage, Write, and Read.
- creator String
- The creator username of the organization.
- id String
- The provider-assigned unique ID for this managed resource.
- login
Server String - The URL that can be used to log into the container registry.
- permission String
- The permission of the organization, the value can be Manage, Write, and Read.
- creator string
- The creator username of the organization.
- id string
- The provider-assigned unique ID for this managed resource.
- login
Server string - The URL that can be used to log into the container registry.
- permission string
- The permission of the organization, the value can be Manage, Write, and Read.
- creator str
- The creator username of the organization.
- id str
- The provider-assigned unique ID for this managed resource.
- login_
server str - The URL that can be used to log into the container registry.
- permission str
- The permission of the organization, the value can be Manage, Write, and Read.
- creator String
- The creator username of the organization.
- id String
- The provider-assigned unique ID for this managed resource.
- login
Server String - The URL that can be used to log into the container registry.
- permission String
- The permission of the organization, the value can be Manage, Write, and Read.
Look up Existing SwrOrganization Resource
Get an existing SwrOrganization 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?: SwrOrganizationState, opts?: CustomResourceOptions): SwrOrganization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
creator: Optional[str] = None,
login_server: Optional[str] = None,
name: Optional[str] = None,
permission: Optional[str] = None,
region: Optional[str] = None,
swr_organization_id: Optional[str] = None,
timeouts: Optional[SwrOrganizationTimeoutsArgs] = None) -> SwrOrganization
func GetSwrOrganization(ctx *Context, name string, id IDInput, state *SwrOrganizationState, opts ...ResourceOption) (*SwrOrganization, error)
public static SwrOrganization Get(string name, Input<string> id, SwrOrganizationState? state, CustomResourceOptions? opts = null)
public static SwrOrganization get(String name, Output<String> id, SwrOrganizationState state, CustomResourceOptions options)
resources: _: type: flexibleengine:SwrOrganization get: id: ${id}
- 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.
- Creator string
- The creator username of the organization.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- Permission string
- The permission of the organization, the value can be Manage, Write, and Read.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Swr
Organization stringId - ID of the organization.
- Timeouts
Swr
Organization Timeouts
- Creator string
- The creator username of the organization.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- Permission string
- The permission of the organization, the value can be Manage, Write, and Read.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Swr
Organization stringId - ID of the organization.
- Timeouts
Swr
Organization Timeouts Args
- creator String
- The creator username of the organization.
- login
Server String - The URL that can be used to log into the container registry.
- name String
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- permission String
- The permission of the organization, the value can be Manage, Write, and Read.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Organization StringId - ID of the organization.
- timeouts
Swr
Organization Timeouts
- creator string
- The creator username of the organization.
- login
Server string - The URL that can be used to log into the container registry.
- name string
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- permission string
- The permission of the organization, the value can be Manage, Write, and Read.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Organization stringId - ID of the organization.
- timeouts
Swr
Organization Timeouts
- creator str
- The creator username of the organization.
- login_
server str - The URL that can be used to log into the container registry.
- name str
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- permission str
- The permission of the organization, the value can be Manage, Write, and Read.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr_
organization_ strid - ID of the organization.
- timeouts
Swr
Organization Timeouts Args
- creator String
- The creator username of the organization.
- login
Server String - The URL that can be used to log into the container registry.
- name String
- Specifies the name of the organization. The organization name must be globally unique. Changing this creates a new resource.
- permission String
- The permission of the organization, the value can be Manage, Write, and Read.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Organization StringId - ID of the organization.
- timeouts Property Map
Supporting Types
SwrOrganizationTimeouts, SwrOrganizationTimeoutsArgs
Import
Organizations can be imported using the name
, e.g.
$ pulumi import flexibleengine:index/swrOrganization:SwrOrganization test org-name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.