getServiceIamPolicy function

Future<GetServiceIamPolicyResult> getServiceIamPolicy(
  1. GetServiceIamPolicyArgs args, {
  2. InvokeOptions? options,
})

Gets the IAM Access Control policy currently in effect for the given Cloud Run service. This result does not include any inherited policies. args Arguments passed to this invoke. Arguments for getServiceIamPolicy. options Invoke options controlling this call.

Implementation

Future<GetServiceIamPolicyResult> getServiceIamPolicy(
  GetServiceIamPolicyArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:run/v1:getServiceIamPolicy',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetServiceIamPolicyResult.fromMap(result);
}