trimIamRolePath function

Future<String> trimIamRolePath(
  1. Input<String> arn, {
  2. InvokeOptions? options,
})

Trims the path prefix from an IAM role ARN. This function can be used when services require role ARNs to be passed without a path.

See the AWS IAM documentation for additional information on IAM role ARNs.

Signature

trim_iam_role_path(arn string) string

args Arguments passed to this invoke. Arguments for trimIamRolePath. arn Value for the arn invoke input. options Invoke options controlling this call.

Implementation

Future<String> trimIamRolePath(
  pulumi.Input<String> arn,
  {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final value = await deployment.invokeSingle<dynamic>(
    'aws:index/trimIamRolePath:trimIamRolePath',
    TrimIamRolePathArgs(arn: arn, ).toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return value as String;
}