Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getEndpointAclService

This data source provides the CR Endpoint Acl Service of the current Alibaba Cloud user.

For information about Event Bridge and how to use it, see What is CR Endpoint Acl.

NOTE: Available in v1.139.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.CR.GetEndpointAclService.InvokeAsync(new AliCloud.CR.GetEndpointAclServiceArgs
        {
            Enable = true,
            EndpointType = "internet",
            InstanceId = "example_id",
            ModuleName = "Registry",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cr.GetEndpointAclService(ctx, &cr.GetEndpointAclServiceArgs{
			Enable:       true,
			EndpointType: "internet",
			InstanceId:   "example_id",
			ModuleName:   pulumi.StringRef("Registry"),
		}, nil)
		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.cr.CrFunctions;
import com.pulumi.alicloud.cr.inputs.GetEndpointAclServiceArgs;
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 example = CrFunctions.getEndpointAclService(GetEndpointAclServiceArgs.builder()
            .enable(true)
            .endpointType("internet")
            .instanceId("example_id")
            .moduleName("Registry")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cr.get_endpoint_acl_service(enable=True,
    endpoint_type="internet",
    instance_id="example_id",
    module_name="Registry")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = pulumi.output(alicloud.cr.getEndpointAclService({
    enable: true,
    endpointType: "internet",
    instanceId: "example_id",
    moduleName: "Registry",
}));
variables:
  example:
    Fn::Invoke:
      Function: alicloud:cr:getEndpointAclService
      Arguments:
        enable: true
        endpointType: internet
        instanceId: example_id
        moduleName: Registry

Using getEndpointAclService

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 getEndpointAclService(args: GetEndpointAclServiceArgs, opts?: InvokeOptions): Promise<GetEndpointAclServiceResult>
function getEndpointAclServiceOutput(args: GetEndpointAclServiceOutputArgs, opts?: InvokeOptions): Output<GetEndpointAclServiceResult>
def get_endpoint_acl_service(enable: Optional[bool] = None,
                             endpoint_type: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             module_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetEndpointAclServiceResult
def get_endpoint_acl_service_output(enable: Optional[pulumi.Input[bool]] = None,
                             endpoint_type: Optional[pulumi.Input[str]] = None,
                             instance_id: Optional[pulumi.Input[str]] = None,
                             module_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetEndpointAclServiceResult]
func GetEndpointAclService(ctx *Context, args *GetEndpointAclServiceArgs, opts ...InvokeOption) (*GetEndpointAclServiceResult, error)
func GetEndpointAclServiceOutput(ctx *Context, args *GetEndpointAclServiceOutputArgs, opts ...InvokeOption) GetEndpointAclServiceResultOutput

> Note: This function is named GetEndpointAclService in the Go SDK.

public static class GetEndpointAclService 
{
    public static Task<GetEndpointAclServiceResult> InvokeAsync(GetEndpointAclServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetEndpointAclServiceResult> Invoke(GetEndpointAclServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEndpointAclServiceResult> getEndpointAclService(GetEndpointAclServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:cr/getEndpointAclService:getEndpointAclService
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Enable bool

Whether to enable Acl Service. Valid values: true and false.

EndpointType string

The type of endpoint. Valid values: internet.

InstanceId string

The ID of the CR Instance.

ModuleName string

The ModuleName. Valid values: Registry.

Enable bool

Whether to enable Acl Service. Valid values: true and false.

EndpointType string

The type of endpoint. Valid values: internet.

InstanceId string

The ID of the CR Instance.

ModuleName string

The ModuleName. Valid values: Registry.

enable Boolean

Whether to enable Acl Service. Valid values: true and false.

endpointType String

The type of endpoint. Valid values: internet.

instanceId String

The ID of the CR Instance.

moduleName String

The ModuleName. Valid values: Registry.

enable boolean

Whether to enable Acl Service. Valid values: true and false.

endpointType string

The type of endpoint. Valid values: internet.

instanceId string

The ID of the CR Instance.

moduleName string

The ModuleName. Valid values: Registry.

enable bool

Whether to enable Acl Service. Valid values: true and false.

endpoint_type str

The type of endpoint. Valid values: internet.

instance_id str

The ID of the CR Instance.

module_name str

The ModuleName. Valid values: Registry.

enable Boolean

Whether to enable Acl Service. Valid values: true and false.

endpointType String

The type of endpoint. Valid values: internet.

instanceId String

The ID of the CR Instance.

moduleName String

The ModuleName. Valid values: Registry.

getEndpointAclService Result

The following output properties are available:

Enable bool
EndpointType string
Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
Status string
ModuleName string
Enable bool
EndpointType string
Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
Status string
ModuleName string
enable Boolean
endpointType String
id String

The provider-assigned unique ID for this managed resource.

instanceId String
status String
moduleName String
enable boolean
endpointType string
id string

The provider-assigned unique ID for this managed resource.

instanceId string
status string
moduleName string
enable bool
endpoint_type str
id str

The provider-assigned unique ID for this managed resource.

instance_id str
status str
module_name str
enable Boolean
endpointType String
id String

The provider-assigned unique ID for this managed resource.

instanceId String
status String
moduleName String

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.