1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. message
  5. ServiceEndpointAcl
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.message.ServiceEndpointAcl

Explore with Pulumi AI

Provides a Message Service Endpoint Acl resource.

For information about Message Service Endpoint Acl and how to use it, see What is Endpoint Acl.

NOTE: Available since v1.243.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.message.ServiceEndpoint("default", {
    endpointEnabled: true,
    endpointType: "public",
});
const defaultServiceEndpointAcl = new alicloud.message.ServiceEndpointAcl("default", {
    cidr: "192.168.1.1/23",
    endpointType: _default.id,
    aclStrategy: "allow",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.message.ServiceEndpoint("default",
    endpoint_enabled=True,
    endpoint_type="public")
default_service_endpoint_acl = alicloud.message.ServiceEndpointAcl("default",
    cidr="192.168.1.1/23",
    endpoint_type=default.id,
    acl_strategy="allow")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := message.NewServiceEndpoint(ctx, "default", &message.ServiceEndpointArgs{
			EndpointEnabled: pulumi.Bool(true),
			EndpointType:    pulumi.String("public"),
		})
		if err != nil {
			return err
		}
		_, err = message.NewServiceEndpointAcl(ctx, "default", &message.ServiceEndpointAclArgs{
			Cidr:         pulumi.String("192.168.1.1/23"),
			EndpointType: _default.ID(),
			AclStrategy:  pulumi.String("allow"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Message.ServiceEndpoint("default", new()
    {
        EndpointEnabled = true,
        EndpointType = "public",
    });

    var defaultServiceEndpointAcl = new AliCloud.Message.ServiceEndpointAcl("default", new()
    {
        Cidr = "192.168.1.1/23",
        EndpointType = @default.Id,
        AclStrategy = "allow",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.message.ServiceEndpoint;
import com.pulumi.alicloud.message.ServiceEndpointArgs;
import com.pulumi.alicloud.message.ServiceEndpointAcl;
import com.pulumi.alicloud.message.ServiceEndpointAclArgs;
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 default_ = new ServiceEndpoint("default", ServiceEndpointArgs.builder()
            .endpointEnabled(true)
            .endpointType("public")
            .build());

        var defaultServiceEndpointAcl = new ServiceEndpointAcl("defaultServiceEndpointAcl", ServiceEndpointAclArgs.builder()
            .cidr("192.168.1.1/23")
            .endpointType(default_.id())
            .aclStrategy("allow")
            .build());

    }
}
Copy
resources:
  default:
    type: alicloud:message:ServiceEndpoint
    properties:
      endpointEnabled: true
      endpointType: public
  defaultServiceEndpointAcl:
    type: alicloud:message:ServiceEndpointAcl
    name: default
    properties:
      cidr: 192.168.1.1/23
      endpointType: ${default.id}
      aclStrategy: allow
Copy

Create ServiceEndpointAcl Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ServiceEndpointAcl(name: string, args: ServiceEndpointAclArgs, opts?: CustomResourceOptions);
@overload
def ServiceEndpointAcl(resource_name: str,
                       args: ServiceEndpointAclArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def ServiceEndpointAcl(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       acl_strategy: Optional[str] = None,
                       cidr: Optional[str] = None,
                       endpoint_type: Optional[str] = None)
func NewServiceEndpointAcl(ctx *Context, name string, args ServiceEndpointAclArgs, opts ...ResourceOption) (*ServiceEndpointAcl, error)
public ServiceEndpointAcl(string name, ServiceEndpointAclArgs args, CustomResourceOptions? opts = null)
public ServiceEndpointAcl(String name, ServiceEndpointAclArgs args)
public ServiceEndpointAcl(String name, ServiceEndpointAclArgs args, CustomResourceOptions options)
type: alicloud:message:ServiceEndpointAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ServiceEndpointAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ServiceEndpointAclArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ServiceEndpointAclArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServiceEndpointAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ServiceEndpointAclArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var serviceEndpointAclResource = new AliCloud.Message.ServiceEndpointAcl("serviceEndpointAclResource", new()
{
    AclStrategy = "string",
    Cidr = "string",
    EndpointType = "string",
});
Copy
example, err := message.NewServiceEndpointAcl(ctx, "serviceEndpointAclResource", &message.ServiceEndpointAclArgs{
	AclStrategy:  pulumi.String("string"),
	Cidr:         pulumi.String("string"),
	EndpointType: pulumi.String("string"),
})
Copy
var serviceEndpointAclResource = new ServiceEndpointAcl("serviceEndpointAclResource", ServiceEndpointAclArgs.builder()
    .aclStrategy("string")
    .cidr("string")
    .endpointType("string")
    .build());
Copy
service_endpoint_acl_resource = alicloud.message.ServiceEndpointAcl("serviceEndpointAclResource",
    acl_strategy="string",
    cidr="string",
    endpoint_type="string")
Copy
const serviceEndpointAclResource = new alicloud.message.ServiceEndpointAcl("serviceEndpointAclResource", {
    aclStrategy: "string",
    cidr: "string",
    endpointType: "string",
});
Copy
type: alicloud:message:ServiceEndpointAcl
properties:
    aclStrategy: string
    cidr: string
    endpointType: string
Copy

ServiceEndpointAcl Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ServiceEndpointAcl resource accepts the following input properties:

AclStrategy
This property is required.
Changes to this property will trigger replacement.
string
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
Cidr
This property is required.
Changes to this property will trigger replacement.
string
EndpointType
This property is required.
Changes to this property will trigger replacement.
string
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
AclStrategy
This property is required.
Changes to this property will trigger replacement.
string
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
Cidr
This property is required.
Changes to this property will trigger replacement.
string
EndpointType
This property is required.
Changes to this property will trigger replacement.
string
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
aclStrategy
This property is required.
Changes to this property will trigger replacement.
String
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr
This property is required.
Changes to this property will trigger replacement.
String
endpointType
This property is required.
Changes to this property will trigger replacement.
String
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
aclStrategy
This property is required.
Changes to this property will trigger replacement.
string
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr
This property is required.
Changes to this property will trigger replacement.
string
endpointType
This property is required.
Changes to this property will trigger replacement.
string
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
acl_strategy
This property is required.
Changes to this property will trigger replacement.
str
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr
This property is required.
Changes to this property will trigger replacement.
str
endpoint_type
This property is required.
Changes to this property will trigger replacement.
str
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
aclStrategy
This property is required.
Changes to this property will trigger replacement.
String
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr
This property is required.
Changes to this property will trigger replacement.
String
endpointType
This property is required.
Changes to this property will trigger replacement.
String
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)

Outputs

All input properties are implicitly available as output properties. Additionally, the ServiceEndpointAcl 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 ServiceEndpointAcl Resource

Get an existing ServiceEndpointAcl 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?: ServiceEndpointAclState, opts?: CustomResourceOptions): ServiceEndpointAcl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acl_strategy: Optional[str] = None,
        cidr: Optional[str] = None,
        endpoint_type: Optional[str] = None) -> ServiceEndpointAcl
func GetServiceEndpointAcl(ctx *Context, name string, id IDInput, state *ServiceEndpointAclState, opts ...ResourceOption) (*ServiceEndpointAcl, error)
public static ServiceEndpointAcl Get(string name, Input<string> id, ServiceEndpointAclState? state, CustomResourceOptions? opts = null)
public static ServiceEndpointAcl get(String name, Output<String> id, ServiceEndpointAclState state, CustomResourceOptions options)
resources:  _:    type: alicloud:message:ServiceEndpointAcl    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AclStrategy Changes to this property will trigger replacement. string
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
Cidr Changes to this property will trigger replacement. string
EndpointType Changes to this property will trigger replacement. string
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
AclStrategy Changes to this property will trigger replacement. string
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
Cidr Changes to this property will trigger replacement. string
EndpointType Changes to this property will trigger replacement. string
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
aclStrategy Changes to this property will trigger replacement. String
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr Changes to this property will trigger replacement. String
endpointType Changes to this property will trigger replacement. String
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
aclStrategy Changes to this property will trigger replacement. string
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr Changes to this property will trigger replacement. string
endpointType Changes to this property will trigger replacement. string
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
acl_strategy Changes to this property will trigger replacement. str
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr Changes to this property will trigger replacement. str
endpoint_type Changes to this property will trigger replacement. str
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)
aclStrategy Changes to this property will trigger replacement. String
The ACL policy. Valid value:

  • allow: indicates that the current endpoint allows access from the corresponding CIDR block. (Only allow is supported)
cidr Changes to this property will trigger replacement. String
endpointType Changes to this property will trigger replacement. String
Access point type. Value:

  • public: indicates a public access point. (Currently only public is supported)

Import

Message Service Endpoint Acl can be imported using the id, e.g.

$ pulumi import alicloud:message/serviceEndpointAcl:ServiceEndpointAcl example <endpoint_type>:<acl_strategy>:<cidr>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.