1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eventbridge
  5. ServiceLinkedRole
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

alicloud.eventbridge.ServiceLinkedRole

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

    Using this data source can create Event Bridge service-linked roles(SLR). EventBridge may need to access another Alibaba Cloud service to implement a specific feature. In this case, EventBridge must assume a specific service-linked role, which is a Resource Access Management (RAM) role, to obtain permissions to access another Alibaba Cloud service.

    For information about Event Bridge service-linked roles(SLR) and how to use it, see What is service-linked roles.

    NOTE: Available in v1.129.0+. After the version 1.142.0, the resource is renamed as alicloud.eventbridge.ServiceLinkedRole.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var serviceLinkedRole = new AliCloud.EventBridge.ServiceLinkedRole("serviceLinkedRole", new()
        {
            ProductName = "AliyunServiceRoleForEventBridgeSendToMNS",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := eventbridge.NewServiceLinkedRole(ctx, "serviceLinkedRole", &eventbridge.ServiceLinkedRoleArgs{
    			ProductName: pulumi.String("AliyunServiceRoleForEventBridgeSendToMNS"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eventbridge.ServiceLinkedRole;
    import com.pulumi.alicloud.eventbridge.ServiceLinkedRoleArgs;
    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) {
            var serviceLinkedRole = new ServiceLinkedRole("serviceLinkedRole", ServiceLinkedRoleArgs.builder()        
                .productName("AliyunServiceRoleForEventBridgeSendToMNS")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    service_linked_role = alicloud.eventbridge.ServiceLinkedRole("serviceLinkedRole", product_name="AliyunServiceRoleForEventBridgeSendToMNS")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const serviceLinkedRole = new alicloud.eventbridge.ServiceLinkedRole("serviceLinkedRole", {productName: "AliyunServiceRoleForEventBridgeSendToMNS"});
    
    resources:
      serviceLinkedRole:
        type: alicloud:eventbridge:ServiceLinkedRole
        properties:
          productName: AliyunServiceRoleForEventBridgeSendToMNS
    

    Create ServiceLinkedRole Resource

    new ServiceLinkedRole(name: string, args: ServiceLinkedRoleArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceLinkedRole(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          product_name: Optional[str] = None)
    @overload
    def ServiceLinkedRole(resource_name: str,
                          args: ServiceLinkedRoleArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewServiceLinkedRole(ctx *Context, name string, args ServiceLinkedRoleArgs, opts ...ResourceOption) (*ServiceLinkedRole, error)
    public ServiceLinkedRole(string name, ServiceLinkedRoleArgs args, CustomResourceOptions? opts = null)
    public ServiceLinkedRole(String name, ServiceLinkedRoleArgs args)
    public ServiceLinkedRole(String name, ServiceLinkedRoleArgs args, CustomResourceOptions options)
    
    type: alicloud:eventbridge:ServiceLinkedRole
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ServiceLinkedRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceLinkedRoleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceLinkedRoleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceLinkedRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceLinkedRoleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ServiceLinkedRole Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServiceLinkedRole resource accepts the following input properties:

    ProductName string

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    ProductName string

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    productName String

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    productName string

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    product_name str

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    productName String

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceLinkedRole resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing ServiceLinkedRole Resource

    Get an existing ServiceLinkedRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceLinkedRoleState, opts?: CustomResourceOptions): ServiceLinkedRole
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            product_name: Optional[str] = None) -> ServiceLinkedRole
    func GetServiceLinkedRole(ctx *Context, name string, id IDInput, state *ServiceLinkedRoleState, opts ...ResourceOption) (*ServiceLinkedRole, error)
    public static ServiceLinkedRole Get(string name, Input<string> id, ServiceLinkedRoleState? state, CustomResourceOptions? opts = null)
    public static ServiceLinkedRole get(String name, Output<String> id, ServiceLinkedRoleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ProductName string

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    ProductName string

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    productName String

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    productName string

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    product_name str

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    productName String

    The product name for SLR. EventBridge can automatically create the following service-linked roles: Event source related: AliyunServiceRoleForEventBridgeSendToMNS,AliyunServiceRoleForEventBridgeSourceRocketMQ, AliyunServiceRoleForEventBridgeSourceActionTrail, AliyunServiceRoleForEventBridgeSourceRabbitMQ Target related: AliyunServiceRoleForEventBridgeConnectVPC, AliyunServiceRoleForEventBridgeSendToFC, AliyunServiceRoleForEventBridgeSendToSMS, AliyunServiceRoleForEventBridgeSendToDirectMail, AliyunServiceRoleForEventBridgeSendToRabbitMQ, AliyunServiceRoleForEventBridgeSendToRocketMQ

    Import

    Event Bridge service-linked roles(SLR) can be imported using the id, e.g.

     $ pulumi import alicloud:eventbridge/serviceLinkedRole:ServiceLinkedRole example <product_name>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi