Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.iam.Policies has been deprecated in favor of volcengine.iam.getPolicies
Use this data source to query detailed information of iam policies
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.iam.getPolicies({
scope: "Custom",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.iam.get_policies(scope="Custom")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.GetPolicies(ctx, &iam.GetPoliciesArgs{
Scope: pulumi.StringRef("Custom"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Iam.GetPolicies.Invoke(new()
{
Scope = "Custom",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.iam.IamFunctions;
import com.pulumi.volcengine.iam.inputs.GetPoliciesArgs;
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 default = IamFunctions.getPolicies(GetPoliciesArgs.builder()
.scope("Custom")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:iam:getPolicies
Arguments:
scope: Custom
Using Policies
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 policies(args: PoliciesArgs, opts?: InvokeOptions): Promise<PoliciesResult>
function policiesOutput(args: PoliciesOutputArgs, opts?: InvokeOptions): Output<PoliciesResult>def policies(output_file: Optional[str] = None,
scope: Optional[str] = None,
with_service_role_policy: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> PoliciesResult
def policies_output(output_file: Optional[pulumi.Input[str]] = None,
scope: Optional[pulumi.Input[str]] = None,
with_service_role_policy: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[PoliciesResult]func Policies(ctx *Context, args *PoliciesArgs, opts ...InvokeOption) (*PoliciesResult, error)
func PoliciesOutput(ctx *Context, args *PoliciesOutputArgs, opts ...InvokeOption) PoliciesResultOutputpublic static class Policies
{
public static Task<PoliciesResult> InvokeAsync(PoliciesArgs args, InvokeOptions? opts = null)
public static Output<PoliciesResult> Invoke(PoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<PoliciesResult> policies(PoliciesArgs args, InvokeOptions options)
public static Output<PoliciesResult> policies(PoliciesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:iam:Policies
arguments:
# arguments dictionaryThe following arguments are supported:
- Output
File string - File name where to save data source results.
- Scope string
- The scope of the Policy.
- With
Service intRole Policy - Whether to return the service role policy.
- Output
File string - File name where to save data source results.
- Scope string
- The scope of the Policy.
- With
Service intRole Policy - Whether to return the service role policy.
- output
File String - File name where to save data source results.
- scope String
- The scope of the Policy.
- with
Service IntegerRole Policy - Whether to return the service role policy.
- output
File string - File name where to save data source results.
- scope string
- The scope of the Policy.
- with
Service numberRole Policy - Whether to return the service role policy.
- output_
file str - File name where to save data source results.
- scope str
- The scope of the Policy.
- with_
service_ introle_ policy - Whether to return the service role policy.
- output
File String - File name where to save data source results.
- scope String
- The scope of the Policy.
- with
Service NumberRole Policy - Whether to return the service role policy.
Policies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
List<Policies
Policy> - The collection of Policy query.
- Total
Count int - The total count of Policy query.
- Output
File string - Scope string
- With
Service intRole Policy
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
[]Policies
Policy - The collection of Policy query.
- Total
Count int - The total count of Policy query.
- Output
File string - Scope string
- With
Service intRole Policy
- id String
- The provider-assigned unique ID for this managed resource.
- policies
List<Policies
Policy> - The collection of Policy query.
- total
Count Integer - The total count of Policy query.
- output
File String - scope String
- with
Service IntegerRole Policy
- id string
- The provider-assigned unique ID for this managed resource.
- policies
Policies
Policy[] - The collection of Policy query.
- total
Count number - The total count of Policy query.
- output
File string - scope string
- with
Service numberRole Policy
- id str
- The provider-assigned unique ID for this managed resource.
- policies
Sequence[Policies
Policy] - The collection of Policy query.
- total_
count int - The total count of Policy query.
- output_
file str - scope str
- with_
service_ introle_ policy
- 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 - scope String
- with
Service NumberRole Policy
Supporting Types
PoliciesPolicy
- Attachment
Count int - The attachment count of the Policy.
- Category string
- The category 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.
- Is
Service intRole Policy - Whether the Policy is a service role policy.
- Policy
Document string - The document of the Policy.
- Policy
Name string - The name of the Policy.
- Policy
Trn string - The resource name of the Policy.
- Policy
Type string - The type of the Policy.
- Update
Date string - The update time of the Policy.
- Attachment
Count int - The attachment count of the Policy.
- Category string
- The category 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.
- Is
Service intRole Policy - Whether the Policy is a service role policy.
- Policy
Document string - The document of the Policy.
- Policy
Name string - The name of the Policy.
- Policy
Trn string - The resource name of the Policy.
- Policy
Type string - The type of the Policy.
- Update
Date string - The update time of the Policy.
- attachment
Count Integer - The attachment count of the Policy.
- category String
- The category 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.
- is
Service IntegerRole Policy - Whether the Policy is a service role policy.
- policy
Document String - The document of the Policy.
- policy
Name String - The name of the Policy.
- policy
Trn String - The resource name of the Policy.
- policy
Type String - The type of the Policy.
- update
Date String - The update time of the Policy.
- attachment
Count number - The attachment count of the Policy.
- category string
- The category 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.
- is
Service numberRole Policy - Whether the Policy is a service role policy.
- policy
Document string - The document of the Policy.
- policy
Name string - The name of the Policy.
- policy
Trn string - The resource name of the Policy.
- policy
Type string - The type of the Policy.
- update
Date string - The update time of the Policy.
- attachment_
count int - The attachment count of the Policy.
- category str
- The category 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.
- is_
service_ introle_ policy - Whether the Policy is a service role policy.
- policy_
document str - The document of the Policy.
- policy_
name str - The name of the Policy.
- policy_
trn str - The resource name of the Policy.
- policy_
type str - The type of the Policy.
- update_
date str - The update time of the Policy.
- attachment
Count Number - The attachment count of the Policy.
- category String
- The category 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.
- is
Service NumberRole Policy - Whether the Policy is a service role policy.
- policy
Document String - The document of the Policy.
- policy
Name String - The name of the Policy.
- policy
Trn String - The resource name of the Policy.
- policy
Type String - The type 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
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
