1. Packages
  2. Volcengine
  3. API Docs
  4. organization
  5. ServiceControlPolicyEnabler
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.organization.ServiceControlPolicyEnabler

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage organization service control policy enabler

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Organization.ServiceControlPolicyEnabler("foo");
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/organization"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := organization.NewServiceControlPolicyEnabler(ctx, "foo", 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.volcengine.organization.ServiceControlPolicyEnabler;
    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 foo = new ServiceControlPolicyEnabler("foo");
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.organization.ServiceControlPolicyEnabler("foo")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.organization.ServiceControlPolicyEnabler("foo", {});
    
    resources:
      foo:
        type: volcengine:organization:ServiceControlPolicyEnabler
    

    Create ServiceControlPolicyEnabler Resource

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

    Constructor syntax

    new ServiceControlPolicyEnabler(name: string, args?: ServiceControlPolicyEnablerArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceControlPolicyEnabler(resource_name: str,
                                    args: Optional[ServiceControlPolicyEnablerArgs] = None,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceControlPolicyEnabler(resource_name: str,
                                    opts: Optional[ResourceOptions] = None)
    func NewServiceControlPolicyEnabler(ctx *Context, name string, args *ServiceControlPolicyEnablerArgs, opts ...ResourceOption) (*ServiceControlPolicyEnabler, error)
    public ServiceControlPolicyEnabler(string name, ServiceControlPolicyEnablerArgs? args = null, CustomResourceOptions? opts = null)
    public ServiceControlPolicyEnabler(String name, ServiceControlPolicyEnablerArgs args)
    public ServiceControlPolicyEnabler(String name, ServiceControlPolicyEnablerArgs args, CustomResourceOptions options)
    
    type: volcengine:organization:ServiceControlPolicyEnabler
    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 ServiceControlPolicyEnablerArgs
    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 ServiceControlPolicyEnablerArgs
    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 ServiceControlPolicyEnablerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceControlPolicyEnablerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceControlPolicyEnablerArgs
    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 serviceControlPolicyEnablerResource = new Volcengine.Organization.ServiceControlPolicyEnabler("serviceControlPolicyEnablerResource");
    
    example, err := organization.NewServiceControlPolicyEnabler(ctx, "serviceControlPolicyEnablerResource", nil)
    
    var serviceControlPolicyEnablerResource = new ServiceControlPolicyEnabler("serviceControlPolicyEnablerResource");
    
    service_control_policy_enabler_resource = volcengine.organization.ServiceControlPolicyEnabler("serviceControlPolicyEnablerResource")
    
    const serviceControlPolicyEnablerResource = new volcengine.organization.ServiceControlPolicyEnabler("serviceControlPolicyEnablerResource", {});
    
    type: volcengine:organization:ServiceControlPolicyEnabler
    properties: {}
    

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

    Outputs

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

    Get an existing ServiceControlPolicyEnabler 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?: ServiceControlPolicyEnablerState, opts?: CustomResourceOptions): ServiceControlPolicyEnabler
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ) -> ServiceControlPolicyEnabler
    func GetServiceControlPolicyEnabler(ctx *Context, name string, id IDInput, state *ServiceControlPolicyEnablerState, opts ...ResourceOption) (*ServiceControlPolicyEnabler, error)
    public static ServiceControlPolicyEnabler Get(string name, Input<string> id, ServiceControlPolicyEnablerState? state, CustomResourceOptions? opts = null)
    public static ServiceControlPolicyEnabler get(String name, Output<String> id, ServiceControlPolicyEnablerState 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:

    Import

    ServiceControlPolicy enabler can be imported using the default_id (organization:service_control_policy_enable) , e.g.

     $ pulumi import volcengine:organization/serviceControlPolicyEnabler:ServiceControlPolicyEnabler default organization:service_control_policy_enable
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine