tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getCamPolicyGrantingServiceAccess
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query detailed information of cam policy_granting_service_access
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const policyGrantingServiceAccess = tencentcloud.getCamPolicyGrantingServiceAccess({
roleId: 4611686018436804608,
serviceType: "cam",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
policy_granting_service_access = tencentcloud.get_cam_policy_granting_service_access(role_id=4611686018436804608,
service_type="cam")
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.GetCamPolicyGrantingServiceAccess(ctx, &tencentcloud.GetCamPolicyGrantingServiceAccessArgs{
RoleId: pulumi.Float64Ref(4611686018436804608),
ServiceType: pulumi.StringRef("cam"),
}, 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 policyGrantingServiceAccess = Tencentcloud.GetCamPolicyGrantingServiceAccess.Invoke(new()
{
RoleId = 4611686018436804608,
ServiceType = "cam",
});
});
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.GetCamPolicyGrantingServiceAccessArgs;
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 policyGrantingServiceAccess = TencentcloudFunctions.getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs.builder()
.roleId(4611686018436804608)
.serviceType("cam")
.build());
}
}
variables:
policyGrantingServiceAccess:
fn::invoke:
function: tencentcloud:getCamPolicyGrantingServiceAccess
arguments:
roleId: 4.611686018436805e+18
serviceType: cam
Using getCamPolicyGrantingServiceAccess
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 getCamPolicyGrantingServiceAccess(args: GetCamPolicyGrantingServiceAccessArgs, opts?: InvokeOptions): Promise<GetCamPolicyGrantingServiceAccessResult>
function getCamPolicyGrantingServiceAccessOutput(args: GetCamPolicyGrantingServiceAccessOutputArgs, opts?: InvokeOptions): Output<GetCamPolicyGrantingServiceAccessResult>
def get_cam_policy_granting_service_access(group_id: Optional[float] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
role_id: Optional[float] = None,
service_type: Optional[str] = None,
target_uin: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCamPolicyGrantingServiceAccessResult
def get_cam_policy_granting_service_access_output(group_id: Optional[pulumi.Input[float]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
role_id: Optional[pulumi.Input[float]] = None,
service_type: Optional[pulumi.Input[str]] = None,
target_uin: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCamPolicyGrantingServiceAccessResult]
func GetCamPolicyGrantingServiceAccess(ctx *Context, args *GetCamPolicyGrantingServiceAccessArgs, opts ...InvokeOption) (*GetCamPolicyGrantingServiceAccessResult, error)
func GetCamPolicyGrantingServiceAccessOutput(ctx *Context, args *GetCamPolicyGrantingServiceAccessOutputArgs, opts ...InvokeOption) GetCamPolicyGrantingServiceAccessResultOutput
> Note: This function is named GetCamPolicyGrantingServiceAccess
in the Go SDK.
public static class GetCamPolicyGrantingServiceAccess
{
public static Task<GetCamPolicyGrantingServiceAccessResult> InvokeAsync(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions? opts = null)
public static Output<GetCamPolicyGrantingServiceAccessResult> Invoke(GetCamPolicyGrantingServiceAccessInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCamPolicyGrantingServiceAccessResult> getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions options)
public static Output<GetCamPolicyGrantingServiceAccessResult> getCamPolicyGrantingServiceAccess(GetCamPolicyGrantingServiceAccessArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCamPolicyGrantingServiceAccess:getCamPolicyGrantingServiceAccess
arguments:
# arguments dictionary
The following arguments are supported:
- Group
Id double - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Id string
- Result
Output stringFile - Used to save results.
- Role
Id double - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- Target
Uin double - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Group
Id float64 - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Id string
- Result
Output stringFile - Used to save results.
- Role
Id float64 - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- Service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- Target
Uin float64 - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- group
Id Double - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- id String
- result
Output StringFile - Used to save results.
- role
Id Double - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- service
Type String - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- target
Uin Double - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- group
Id number - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- id string
- result
Output stringFile - Used to save results.
- role
Id number - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- service
Type string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- target
Uin number - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- group_
id float - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- id str
- result_
output_ strfile - Used to save results.
- role_
id float - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- service_
type str - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- target_
uin float - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
- group
Id Number - Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- id String
- result
Output StringFile - Used to save results.
- role
Id Number - Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
- service
Type String - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- target
Uin Number - Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
getCamPolicyGrantingServiceAccess Result
The following output properties are available:
- Id string
- Lists
List<Get
Cam Policy Granting Service Access List> - List.
- Group
Id double - Result
Output stringFile - Role
Id double - Service
Type string - Service type.
- Target
Uin double
- Id string
- Lists
[]Get
Cam Policy Granting Service Access List - List.
- Group
Id float64 - Result
Output stringFile - Role
Id float64 - Service
Type string - Service type.
- Target
Uin float64
- id String
- lists
List<Get
Cam Policy Granting Service Access List> - List.
- group
Id Double - result
Output StringFile - role
Id Double - service
Type String - Service type.
- target
Uin Double
- id string
- lists
Get
Cam Policy Granting Service Access List[] - List.
- group
Id number - result
Output stringFile - role
Id number - service
Type string - Service type.
- target
Uin number
- id str
- lists
Sequence[Get
Cam Policy Granting Service Access List] - List.
- group_
id float - result_
output_ strfile - role_
id float - service_
type str - Service type.
- target_
uin float
- id String
- lists List<Property Map>
- List.
- group
Id Number - result
Output StringFile - role
Id Number - service
Type String - Service type.
- target
Uin Number
Supporting Types
GetCamPolicyGrantingServiceAccessList
- Actions
This property is required. List<GetCam Policy Granting Service Access List Action> - Action list.
- Policies
This property is required. List<GetCam Policy Granting Service Access List Policy> - Policy list.
- Services
This property is required. List<GetCam Policy Granting Service Access List Service> - Service info.
- Actions
This property is required. []GetCam Policy Granting Service Access List Action - Action list.
- Policies
This property is required. []GetCam Policy Granting Service Access List Policy - Policy list.
- Services
This property is required. []GetCam Policy Granting Service Access List Service - Service info.
- actions
This property is required. List<GetCam Policy Granting Service Access List Action> - Action list.
- policies
This property is required. List<GetCam Policy Granting Service Access List Policy> - Policy list.
- services
This property is required. List<GetCam Policy Granting Service Access List Service> - Service info.
- actions
This property is required. GetCam Policy Granting Service Access List Action[] - Action list.
- policies
This property is required. GetCam Policy Granting Service Access List Policy[] - Policy list.
- services
This property is required. GetCam Policy Granting Service Access List Service[] - Service info.
- actions
This property is required. Sequence[GetCam Policy Granting Service Access List Action] - Action list.
- policies
This property is required. Sequence[GetCam Policy Granting Service Access List Policy] - Policy list.
- services
This property is required. Sequence[GetCam Policy Granting Service Access List Service] - Service info.
- actions
This property is required. List<Property Map> - Action list.
- policies
This property is required. List<Property Map> - Policy list.
- services
This property is required. List<Property Map> - Service info.
GetCamPolicyGrantingServiceAccessListAction
- Description
This property is required. string - Action description.
- Name
This property is required. string - Action name.
- Description
This property is required. string - Action description.
- Name
This property is required. string - Action name.
- description
This property is required. String - Action description.
- name
This property is required. String - Action name.
- description
This property is required. string - Action description.
- name
This property is required. string - Action name.
- description
This property is required. str - Action description.
- name
This property is required. str - Action name.
- description
This property is required. String - Action description.
- name
This property is required. String - Action name.
GetCamPolicyGrantingServiceAccessListPolicy
- Policy
Description This property is required. string - Policy description.
- Policy
Id This property is required. string - Policy Id.
- Policy
Name This property is required. string - Policy name.
- Policy
Type This property is required. string - Polic type.
- Policy
Description This property is required. string - Policy description.
- Policy
Id This property is required. string - Policy Id.
- Policy
Name This property is required. string - Policy name.
- Policy
Type This property is required. string - Polic type.
- policy
Description This property is required. String - Policy description.
- policy
Id This property is required. String - Policy Id.
- policy
Name This property is required. String - Policy name.
- policy
Type This property is required. String - Polic type.
- policy
Description This property is required. string - Policy description.
- policy
Id This property is required. string - Policy Id.
- policy
Name This property is required. string - Policy name.
- policy
Type This property is required. string - Polic type.
- policy_
description This property is required. str - Policy description.
- policy_
id This property is required. str - Policy Id.
- policy_
name This property is required. str - Policy name.
- policy_
type This property is required. str - Polic type.
- policy
Description This property is required. String - Policy description.
- policy
Id This property is required. String - Policy Id.
- policy
Name This property is required. String - Policy name.
- policy
Type This property is required. String - Polic type.
GetCamPolicyGrantingServiceAccessListService
- Service
Name This property is required. string - Service name.
- Service
Type This property is required. string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- Service
Name This property is required. string - Service name.
- Service
Type This property is required. string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- service
Name This property is required. String - Service name.
- service
Type This property is required. String - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- service
Name This property is required. string - Service name.
- service
Type This property is required. string - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- service_
name This property is required. str - Service name.
- service_
type This property is required. str - Service type, this field needs to be passed when viewing the details of the service authorization interface.
- service
Name This property is required. String - Service name.
- service
Type This property is required. String - Service type, this field needs to be passed when viewing the details of the service authorization interface.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack