Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.organization.ServiceControlPolicies
Explore with Pulumi AI
Use this data source to query detailed information of organization service control policies
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Organization.ServiceControlPolicies.Invoke(new()
{
PolicyType = "Custom",
Query = "test",
});
});
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.ServiceControlPolicies(ctx, &organization.ServiceControlPoliciesArgs{
PolicyType: pulumi.StringRef("Custom"),
Query: pulumi.StringRef("test"),
}, 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.OrganizationFunctions;
import com.pulumi.volcengine.organization.inputs.ServiceControlPoliciesArgs;
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) {
final var foo = OrganizationFunctions.ServiceControlPolicies(ServiceControlPoliciesArgs.builder()
.policyType("Custom")
.query("test")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.organization.service_control_policies(policy_type="Custom",
query="test")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.organization.ServiceControlPolicies({
policyType: "Custom",
query: "test",
});
variables:
foo:
fn::invoke:
Function: volcengine:organization:ServiceControlPolicies
Arguments:
policyType: Custom
query: test
Using ServiceControlPolicies
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function serviceControlPolicies(args: ServiceControlPoliciesArgs, opts?: InvokeOptions): Promise<ServiceControlPoliciesResult>
function serviceControlPoliciesOutput(args: ServiceControlPoliciesOutputArgs, opts?: InvokeOptions): Output<ServiceControlPoliciesResult>
def service_control_policies(output_file: Optional[str] = None,
policy_type: Optional[str] = None,
query: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ServiceControlPoliciesResult
def service_control_policies_output(output_file: Optional[pulumi.Input[str]] = None,
policy_type: Optional[pulumi.Input[str]] = None,
query: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ServiceControlPoliciesResult]
func ServiceControlPolicies(ctx *Context, args *ServiceControlPoliciesArgs, opts ...InvokeOption) (*ServiceControlPoliciesResult, error)
func ServiceControlPoliciesOutput(ctx *Context, args *ServiceControlPoliciesOutputArgs, opts ...InvokeOption) ServiceControlPoliciesResultOutput
public static class ServiceControlPolicies
{
public static Task<ServiceControlPoliciesResult> InvokeAsync(ServiceControlPoliciesArgs args, InvokeOptions? opts = null)
public static Output<ServiceControlPoliciesResult> Invoke(ServiceControlPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<ServiceControlPoliciesResult> serviceControlPolicies(ServiceControlPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:organization:ServiceControlPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Output
File string - File name where to save data source results.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Query string
- Query policies, support policy name or description.
- Output
File string - File name where to save data source results.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Query string
- Query policies, support policy name or description.
- output
File String - File name where to save data source results.
- policy
Type String - The type of policy. The value can be System or Custom.
- query String
- Query policies, support policy name or description.
- output
File string - File name where to save data source results.
- policy
Type string - The type of policy. The value can be System or Custom.
- query string
- Query policies, support policy name or description.
- output_
file str - File name where to save data source results.
- policy_
type str - The type of policy. The value can be System or Custom.
- query str
- Query policies, support policy name or description.
- output
File String - File name where to save data source results.
- policy
Type String - The type of policy. The value can be System or Custom.
- query String
- Query policies, support policy name or description.
ServiceControlPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
List<Service
Control Policies Policy> - The collection of Policy query.
- Total
Count int - The total count of Policy query.
- Output
File string - Policy
Type string - The type of the Policy.
- Query string
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
[]Service
Control Policies Policy - The collection of Policy query.
- Total
Count int - The total count of Policy query.
- Output
File string - Policy
Type string - The type of the Policy.
- Query string
- id String
- The provider-assigned unique ID for this managed resource.
- policies
List<Service
Control Policies Policy> - The collection of Policy query.
- total
Count Integer - The total count of Policy query.
- output
File String - policy
Type String - The type of the Policy.
- query String
- id string
- The provider-assigned unique ID for this managed resource.
- policies
Service
Control Policies Policy[] - The collection of Policy query.
- total
Count number - The total count of Policy query.
- output
File string - policy
Type string - The type of the Policy.
- query string
- id str
- The provider-assigned unique ID for this managed resource.
- policies
Sequence[Service
Control Policies Policy] - The collection of Policy query.
- total_
count int - The total count of Policy query.
- output_
file str - policy_
type str - The type of the Policy.
- query str
- id String
- The provider-assigned unique ID for this managed resource.
- policies List<Property Map>
- The collection of Policy query.
- total
Count Number - The total count of Policy query.
- output
File String - policy
Type String - The type of the Policy.
- query String
Supporting Types
ServiceControlPoliciesPolicy
- Create
Date string - The create time of the Policy.
- Description string
- The description of the Policy.
- Id string
- The ID of the Policy.
- Policy
Name string - The name of the Policy.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Statement string
- The statement of the Policy.
- Update
Date string - The update time of the Policy.
- Create
Date string - The create time of the Policy.
- Description string
- The description of the Policy.
- Id string
- The ID of the Policy.
- Policy
Name string - The name of the Policy.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Statement string
- The statement of the Policy.
- Update
Date string - The update time of the Policy.
- create
Date String - The create time of the Policy.
- description String
- The description of the Policy.
- id String
- The ID of the Policy.
- policy
Name String - The name of the Policy.
- policy
Type String - The type of policy. The value can be System or Custom.
- statement String
- The statement of the Policy.
- update
Date String - The update time of the Policy.
- create
Date string - The create time of the Policy.
- description string
- The description of the Policy.
- id string
- The ID of the Policy.
- policy
Name string - The name of the Policy.
- policy
Type string - The type of policy. The value can be System or Custom.
- statement string
- The statement of the Policy.
- update
Date string - The update time of the Policy.
- create_
date str - The create time of the Policy.
- description str
- The description of the Policy.
- id str
- The ID of the Policy.
- policy_
name str - The name of the Policy.
- policy_
type str - The type of policy. The value can be System or Custom.
- statement str
- The statement of the Policy.
- update_
date str - The update time of the Policy.
- create
Date String - The create time of the Policy.
- description String
- The description of the Policy.
- id String
- The ID of the Policy.
- policy
Name String - The name of the Policy.
- policy
Type String - The type of policy. The value can be System or Custom.
- statement String
- The statement of the Policy.
- update
Date String - The update time of the Policy.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.