ServiceLinkedRole constructor

ServiceLinkedRole(
  1. String name, {
  2. ServiceLinkedRoleArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new ServiceLinkedRole. name The Pulumi resource name. args Arguments used to configure this ServiceLinkedRole. The set of arguments for ServiceLinkedRole. options Resource options controlling this resource's behavior.

Implementation

ServiceLinkedRole(
  String name, {
  ServiceLinkedRoleArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:iam/serviceLinkedRole:ServiceLinkedRole',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  awsServiceName = registerOutput<String>('awsServiceName');
  createDate = registerOutput<String>('createDate');
  customSuffix = registerOutput<String?>('customSuffix');
  description = registerOutput<String?>('description');
  this.name = registerOutput<String>('name');
  path = registerOutput<String>('path');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  uniqueId = registerOutput<String>('uniqueId');
}