Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Use this data source to query the detail of a CAM policy by its ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getCamPolicyDetail({
policyId: 236245899,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cam_policy_detail(policy_id=236245899)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetCamPolicyDetail(ctx, &tencentcloud.GetCamPolicyDetailArgs{
PolicyId: 236245899,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetCamPolicyDetail.Invoke(new()
{
PolicyId = 236245899,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCamPolicyDetailArgs;
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 example = TencentcloudFunctions.getCamPolicyDetail(GetCamPolicyDetailArgs.builder()
.policyId(236245899)
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getCamPolicyDetail
arguments:
policyId: 2.36245899e+08
Example coming soon!
Using getCamPolicyDetail
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 getCamPolicyDetail(args: GetCamPolicyDetailArgs, opts?: InvokeOptions): Promise<GetCamPolicyDetailResult>
function getCamPolicyDetailOutput(args: GetCamPolicyDetailOutputArgs, opts?: InvokeOptions): Output<GetCamPolicyDetailResult>def get_cam_policy_detail(id: Optional[str] = None,
policy_id: Optional[float] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCamPolicyDetailResult
def get_cam_policy_detail_output(id: pulumi.Input[Optional[str]] = None,
policy_id: pulumi.Input[Optional[float]] = None,
result_output_file: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCamPolicyDetailResult]func GetCamPolicyDetail(ctx *Context, args *GetCamPolicyDetailArgs, opts ...InvokeOption) (*GetCamPolicyDetailResult, error)
func GetCamPolicyDetailOutput(ctx *Context, args *GetCamPolicyDetailOutputArgs, opts ...InvokeOption) GetCamPolicyDetailResultOutput> Note: This function is named GetCamPolicyDetail in the Go SDK.
public static class GetCamPolicyDetail
{
public static Task<GetCamPolicyDetailResult> InvokeAsync(GetCamPolicyDetailArgs args, InvokeOptions? opts = null)
public static Output<GetCamPolicyDetailResult> Invoke(GetCamPolicyDetailInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCamPolicyDetailResult> getCamPolicyDetail(GetCamPolicyDetailArgs args, InvokeOptions options)
public static Output<GetCamPolicyDetailResult> getCamPolicyDetail(GetCamPolicyDetailArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCamPolicyDetail:getCamPolicyDetail
arguments:
# arguments dictionarydata "tencentcloud_getcampolicydetail" "name" {
# arguments
}The following arguments are supported:
- Policy
Id double - Policy ID.
- Id string
- Result
Output stringFile - Used to save results.
- Policy
Id float64 - Policy ID.
- Id string
- Result
Output stringFile - Used to save results.
- policy_
id number - Policy ID.
- id string
- result_
output_ stringfile - Used to save results.
- policy
Id Double - Policy ID.
- id String
- result
Output StringFile - Used to save results.
- policy
Id number - Policy ID.
- id string
- result
Output stringFile - Used to save results.
- policy_
id float - Policy ID.
- id str
- result_
output_ strfile - Used to save results.
- policy
Id Number - Policy ID.
- id String
- result
Output StringFile - Used to save results.
getCamPolicyDetail Result
The following output properties are available:
- Id string
- Policy
Id double - Policy
Infos List<GetCam Policy Detail Policy Info> - Policy detail information.
- Result
Output stringFile
- Id string
- Policy
Id float64 - Policy
Infos []GetCam Policy Detail Policy Info - Policy detail information.
- Result
Output stringFile
- id string
- policy_
id number - policy_
infos list(object) - Policy detail information.
- result_
output_ stringfile
- id String
- policy
Id Double - policy
Infos List<GetCam Policy Detail Policy Info> - Policy detail information.
- result
Output StringFile
- id string
- policy
Id number - policy
Infos GetCam Policy Detail Policy Info[] - Policy detail information.
- result
Output stringFile
- id str
- policy_
id float - policy_
infos Sequence[GetCam Policy Detail Policy Info] - Policy detail information.
- result_
output_ strfile
- id String
- policy
Id Number - policy
Infos List<Property Map> - Policy detail information.
- result
Output StringFile
Supporting Types
GetCamPolicyDetailPolicyInfo
- Add
Time string - Time the policy was created.
- Description string
- Policy description.
- Is
Service doubleLinked Role Policy - Whether the policy is a service-linked role policy. 0 means no, 1 means yes.
- Policy
Document string - Policy document.
- Policy
Name string - Policy name.
- Preset
Alias string - Preset policy alias. Note: this field may return null.
-
List<Get
Cam Policy Detail Policy Info Tag> - Tags associated with the policy.
- Type double
- Policy type. 1 means custom policy, 2 means preset policy.
- Update
Time string - Time the policy was last updated.
- Add
Time string - Time the policy was created.
- Description string
- Policy description.
- Is
Service float64Linked Role Policy - Whether the policy is a service-linked role policy. 0 means no, 1 means yes.
- Policy
Document string - Policy document.
- Policy
Name string - Policy name.
- Preset
Alias string - Preset policy alias. Note: this field may return null.
-
[]Get
Cam Policy Detail Policy Info Tag - Tags associated with the policy.
- Type float64
- Policy type. 1 means custom policy, 2 means preset policy.
- Update
Time string - Time the policy was last updated.
- add_
time string - Time the policy was created.
- description string
- Policy description.
- is_
service_ numberlinked_ role_ policy - Whether the policy is a service-linked role policy. 0 means no, 1 means yes.
- policy_
document string - Policy document.
- policy_
name string - Policy name.
- preset_
alias string - Preset policy alias. Note: this field may return null.
- list(object)
- Tags associated with the policy.
- type number
- Policy type. 1 means custom policy, 2 means preset policy.
- update_
time string - Time the policy was last updated.
- add
Time String - Time the policy was created.
- description String
- Policy description.
- is
Service DoubleLinked Role Policy - Whether the policy is a service-linked role policy. 0 means no, 1 means yes.
- policy
Document String - Policy document.
- policy
Name String - Policy name.
- preset
Alias String - Preset policy alias. Note: this field may return null.
-
List<Get
Cam Policy Detail Policy Info Tag> - Tags associated with the policy.
- type Double
- Policy type. 1 means custom policy, 2 means preset policy.
- update
Time String - Time the policy was last updated.
- add
Time string - Time the policy was created.
- description string
- Policy description.
- is
Service numberLinked Role Policy - Whether the policy is a service-linked role policy. 0 means no, 1 means yes.
- policy
Document string - Policy document.
- policy
Name string - Policy name.
- preset
Alias string - Preset policy alias. Note: this field may return null.
-
Get
Cam Policy Detail Policy Info Tag[] - Tags associated with the policy.
- type number
- Policy type. 1 means custom policy, 2 means preset policy.
- update
Time string - Time the policy was last updated.
- add_
time str - Time the policy was created.
- description str
- Policy description.
- is_
service_ floatlinked_ role_ policy - Whether the policy is a service-linked role policy. 0 means no, 1 means yes.
- policy_
document str - Policy document.
- policy_
name str - Policy name.
- preset_
alias str - Preset policy alias. Note: this field may return null.
-
Sequence[Get
Cam Policy Detail Policy Info Tag] - Tags associated with the policy.
- type float
- Policy type. 1 means custom policy, 2 means preset policy.
- update_
time str - Time the policy was last updated.
- add
Time String - Time the policy was created.
- description String
- Policy description.
- is
Service NumberLinked Role Policy - Whether the policy is a service-linked role policy. 0 means no, 1 means yes.
- policy
Document String - Policy document.
- policy
Name String - Policy name.
- preset
Alias String - Preset policy alias. Note: this field may return null.
- List<Property Map>
- Tags associated with the policy.
- type Number
- Policy type. 1 means custom policy, 2 means preset policy.
- update
Time String - Time the policy was last updated.
GetCamPolicyDetailPolicyInfoTag
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
