1. Packages
  2. Awx Provider
  3. API Docs
  4. Organization
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

awx.Organization

Explore with Pulumi AI

awx logo
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

    TBD

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as awx from "@pulumi/awx";
    
    const _default = new awx.Organization("default", {});
    
    import pulumi
    import pulumi_awx as awx
    
    default = awx.Organization("default")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/awx/awx"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := awx.NewOrganization(ctx, "default", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Awx = Pulumi.Awx;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Awx.Organization("default");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.awx.Organization;
    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 default_ = new Organization("default");
    
        }
    }
    
    resources:
      default:
        type: awx:Organization
    

    Create Organization Resource

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

    Constructor syntax

    new Organization(name: string, args?: OrganizationArgs, opts?: CustomResourceOptions);
    @overload
    def Organization(resource_name: str,
                     args: Optional[OrganizationArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Organization(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     custom_virtualenv: Optional[str] = None,
                     default_environment: Optional[float] = None,
                     description: Optional[str] = None,
                     max_hosts: Optional[float] = None,
                     name: Optional[str] = None,
                     organization_id: Optional[str] = None)
    func NewOrganization(ctx *Context, name string, args *OrganizationArgs, opts ...ResourceOption) (*Organization, error)
    public Organization(string name, OrganizationArgs? args = null, CustomResourceOptions? opts = null)
    public Organization(String name, OrganizationArgs args)
    public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
    
    type: awx:Organization
    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 OrganizationArgs
    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 OrganizationArgs
    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 OrganizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationArgs
    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 organizationResource = new Awx.Organization("organizationResource", new()
    {
        CustomVirtualenv = "string",
        DefaultEnvironment = 0,
        Description = "string",
        MaxHosts = 0,
        Name = "string",
        OrganizationId = "string",
    });
    
    example, err := awx.NewOrganization(ctx, "organizationResource", &awx.OrganizationArgs{
    	CustomVirtualenv:   pulumi.String("string"),
    	DefaultEnvironment: pulumi.Float64(0),
    	Description:        pulumi.String("string"),
    	MaxHosts:           pulumi.Float64(0),
    	Name:               pulumi.String("string"),
    	OrganizationId:     pulumi.String("string"),
    })
    
    var organizationResource = new Organization("organizationResource", OrganizationArgs.builder()
        .customVirtualenv("string")
        .defaultEnvironment(0)
        .description("string")
        .maxHosts(0)
        .name("string")
        .organizationId("string")
        .build());
    
    organization_resource = awx.Organization("organizationResource",
        custom_virtualenv="string",
        default_environment=0,
        description="string",
        max_hosts=0,
        name="string",
        organization_id="string")
    
    const organizationResource = new awx.Organization("organizationResource", {
        customVirtualenv: "string",
        defaultEnvironment: 0,
        description: "string",
        maxHosts: 0,
        name: "string",
        organizationId: "string",
    });
    
    type: awx:Organization
    properties:
        customVirtualenv: string
        defaultEnvironment: 0
        description: string
        maxHosts: 0
        name: string
        organizationId: string
    

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

    CustomVirtualenv string
    Local absolute file path containing a custom Python virtualenv to use
    DefaultEnvironment double
    The default execution environment for jobs run by this organization.
    Description string
    MaxHosts double
    Maximum number of hosts allowed to be managed by this organization
    Name string
    OrganizationId string
    CustomVirtualenv string
    Local absolute file path containing a custom Python virtualenv to use
    DefaultEnvironment float64
    The default execution environment for jobs run by this organization.
    Description string
    MaxHosts float64
    Maximum number of hosts allowed to be managed by this organization
    Name string
    OrganizationId string
    customVirtualenv String
    Local absolute file path containing a custom Python virtualenv to use
    defaultEnvironment Double
    The default execution environment for jobs run by this organization.
    description String
    maxHosts Double
    Maximum number of hosts allowed to be managed by this organization
    name String
    organizationId String
    customVirtualenv string
    Local absolute file path containing a custom Python virtualenv to use
    defaultEnvironment number
    The default execution environment for jobs run by this organization.
    description string
    maxHosts number
    Maximum number of hosts allowed to be managed by this organization
    name string
    organizationId string
    custom_virtualenv str
    Local absolute file path containing a custom Python virtualenv to use
    default_environment float
    The default execution environment for jobs run by this organization.
    description str
    max_hosts float
    Maximum number of hosts allowed to be managed by this organization
    name str
    organization_id str
    customVirtualenv String
    Local absolute file path containing a custom Python virtualenv to use
    defaultEnvironment Number
    The default execution environment for jobs run by this organization.
    description String
    maxHosts Number
    Maximum number of hosts allowed to be managed by this organization
    name String
    organizationId String

    Outputs

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

    Get an existing Organization 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?: OrganizationState, opts?: CustomResourceOptions): Organization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_virtualenv: Optional[str] = None,
            default_environment: Optional[float] = None,
            description: Optional[str] = None,
            max_hosts: Optional[float] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None) -> Organization
    func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)
    public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)
    public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)
    resources:  _:    type: awx:Organization    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.
    The following state arguments are supported:
    CustomVirtualenv string
    Local absolute file path containing a custom Python virtualenv to use
    DefaultEnvironment double
    The default execution environment for jobs run by this organization.
    Description string
    MaxHosts double
    Maximum number of hosts allowed to be managed by this organization
    Name string
    OrganizationId string
    CustomVirtualenv string
    Local absolute file path containing a custom Python virtualenv to use
    DefaultEnvironment float64
    The default execution environment for jobs run by this organization.
    Description string
    MaxHosts float64
    Maximum number of hosts allowed to be managed by this organization
    Name string
    OrganizationId string
    customVirtualenv String
    Local absolute file path containing a custom Python virtualenv to use
    defaultEnvironment Double
    The default execution environment for jobs run by this organization.
    description String
    maxHosts Double
    Maximum number of hosts allowed to be managed by this organization
    name String
    organizationId String
    customVirtualenv string
    Local absolute file path containing a custom Python virtualenv to use
    defaultEnvironment number
    The default execution environment for jobs run by this organization.
    description string
    maxHosts number
    Maximum number of hosts allowed to be managed by this organization
    name string
    organizationId string
    custom_virtualenv str
    Local absolute file path containing a custom Python virtualenv to use
    default_environment float
    The default execution environment for jobs run by this organization.
    description str
    max_hosts float
    Maximum number of hosts allowed to be managed by this organization
    name str
    organization_id str
    customVirtualenv String
    Local absolute file path containing a custom Python virtualenv to use
    defaultEnvironment Number
    The default execution environment for jobs run by this organization.
    description String
    maxHosts Number
    Maximum number of hosts allowed to be managed by this organization
    name String
    organizationId String

    Package Details

    Repository
    awx denouche/terraform-provider-awx
    License
    Notes
    This Pulumi package is based on the awx Terraform Provider.
    awx logo
    awx 0.29.1 published on Monday, Apr 14, 2025 by denouche