1. Packages
  2. Volcengine
  3. API Docs
  4. organization
  5. ServiceControlPolicyEnabler
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.organization.ServiceControlPolicyEnabler

Explore with Pulumi AI

Provides a resource to manage organization service control policy enabler

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const foo = new volcengine.organization.ServiceControlPolicyEnabler("foo", {});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.organization.ServiceControlPolicyEnabler("foo")
Copy
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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Organization.ServiceControlPolicyEnabler("foo");

});
Copy
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");

    }
}
Copy
resources:
  foo:
    type: volcengine:organization:ServiceControlPolicyEnabler
Copy

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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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");
Copy
example, err := organization.NewServiceControlPolicyEnabler(ctx, "serviceControlPolicyEnablerResource", nil)
Copy
var serviceControlPolicyEnablerResource = new ServiceControlPolicyEnabler("serviceControlPolicyEnablerResource");
Copy
service_control_policy_enabler_resource = volcengine.organization.ServiceControlPolicyEnabler("serviceControlPolicyEnablerResource")
Copy
const serviceControlPolicyEnablerResource = new volcengine.organization.ServiceControlPolicyEnabler("serviceControlPolicyEnablerResource", {});
Copy
type: volcengine:organization:ServiceControlPolicyEnabler
properties: {}
Copy

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)
resources:  _:    type: volcengine:organization:ServiceControlPolicyEnabler    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:

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
Copy

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.