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

alicloud.alikafka.InstanceAllowedIpAttachment

Explore with Pulumi AI

Provides a AliKafka Instance Allowed Ip Attachment resource.

For information about AliKafka Instance Allowed Ip Attachment and how to use it, see What is Instance Allowed Ip Attachment.

NOTE: Available since v1.163.0.

Example Usage

Basic Usage

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

const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const defaultInteger = new random.index.Integer("default", {
    min: 10000,
    max: 99999,
});
const _default = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
    vpcName: name,
    cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    vswitchName: name,
    cidrBlock: "10.4.0.0/24",
    vpcId: defaultNetwork.id,
    zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {vpcId: defaultNetwork.id});
const defaultInstance = new alicloud.alikafka.Instance("default", {
    name: `${name}-${defaultInteger.result}`,
    partitionNum: 50,
    diskType: 1,
    diskSize: 500,
    deployType: 5,
    ioMax: 20,
    vswitchId: defaultSwitch.id,
    securityGroup: defaultSecurityGroup.id,
});
const defaultInstanceAllowedIpAttachment = new alicloud.alikafka.InstanceAllowedIpAttachment("default", {
    instanceId: defaultInstance.id,
    allowedType: "vpc",
    portRange: "9092/9092",
    allowedIp: "114.237.9.78/32",
});
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-example"
default_integer = random.index.Integer("default",
    min=10000,
    max=99999)
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("default",
    vpc_name=name,
    cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("default",
    vswitch_name=name,
    cidr_block="10.4.0.0/24",
    vpc_id=default_network.id,
    zone_id=default.zones[0].id)
default_security_group = alicloud.ecs.SecurityGroup("default", vpc_id=default_network.id)
default_instance = alicloud.alikafka.Instance("default",
    name=f"{name}-{default_integer['result']}",
    partition_num=50,
    disk_type=1,
    disk_size=500,
    deploy_type=5,
    io_max=20,
    vswitch_id=default_switch.id,
    security_group=default_security_group.id)
default_instance_allowed_ip_attachment = alicloud.alikafka.InstanceAllowedIpAttachment("default",
    instance_id=default_instance.id,
    allowed_type="vpc",
    port_range="9092/9092",
    allowed_ip="114.237.9.78/32")
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alikafka"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("10.4.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VswitchName: pulumi.String(name),
			CidrBlock:   pulumi.String("10.4.0.0/24"),
			VpcId:       defaultNetwork.ID(),
			ZoneId:      pulumi.String(_default.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
			VpcId: defaultNetwork.ID(),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := alikafka.NewInstance(ctx, "default", &alikafka.InstanceArgs{
			Name:          pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			PartitionNum:  pulumi.Int(50),
			DiskType:      pulumi.Int(1),
			DiskSize:      pulumi.Int(500),
			DeployType:    pulumi.Int(5),
			IoMax:         pulumi.Int(20),
			VswitchId:     defaultSwitch.ID(),
			SecurityGroup: defaultSecurityGroup.ID(),
		})
		if err != nil {
			return err
		}
		_, err = alikafka.NewInstanceAllowedIpAttachment(ctx, "default", &alikafka.InstanceAllowedIpAttachmentArgs{
			InstanceId:  defaultInstance.ID(),
			AllowedType: pulumi.String("vpc"),
			PortRange:   pulumi.String("9092/9092"),
			AllowedIp:   pulumi.String("114.237.9.78/32"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-example";
    var defaultInteger = new Random.Index.Integer("default", new()
    {
        Min = 10000,
        Max = 99999,
    });

    var @default = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });

    var defaultNetwork = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = name,
        CidrBlock = "10.4.0.0/16",
    });

    var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
    {
        VswitchName = name,
        CidrBlock = "10.4.0.0/24",
        VpcId = defaultNetwork.Id,
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
    });

    var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
    {
        VpcId = defaultNetwork.Id,
    });

    var defaultInstance = new AliCloud.AliKafka.Instance("default", new()
    {
        Name = $"{name}-{defaultInteger.Result}",
        PartitionNum = 50,
        DiskType = 1,
        DiskSize = 500,
        DeployType = 5,
        IoMax = 20,
        VswitchId = defaultSwitch.Id,
        SecurityGroup = defaultSecurityGroup.Id,
    });

    var defaultInstanceAllowedIpAttachment = new AliCloud.AliKafka.InstanceAllowedIpAttachment("default", new()
    {
        InstanceId = defaultInstance.Id,
        AllowedType = "vpc",
        PortRange = "9092/9092",
        AllowedIp = "114.237.9.78/32",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.alikafka.Instance;
import com.pulumi.alicloud.alikafka.InstanceArgs;
import com.pulumi.alicloud.alikafka.InstanceAllowedIpAttachment;
import com.pulumi.alicloud.alikafka.InstanceAllowedIpAttachmentArgs;
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 config = ctx.config();
        final var name = config.get("name").orElse("tf-example");
        var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
            .min(10000)
            .max(99999)
            .build());

        final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());

        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("10.4.0.0/16")
            .build());

        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
            .vswitchName(name)
            .cidrBlock("10.4.0.0/24")
            .vpcId(defaultNetwork.id())
            .zoneId(default_.zones()[0].id())
            .build());

        var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
            .vpcId(defaultNetwork.id())
            .build());

        var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
            .name(String.format("%s-%s", name,defaultInteger.result()))
            .partitionNum(50)
            .diskType(1)
            .diskSize(500)
            .deployType(5)
            .ioMax(20)
            .vswitchId(defaultSwitch.id())
            .securityGroup(defaultSecurityGroup.id())
            .build());

        var defaultInstanceAllowedIpAttachment = new InstanceAllowedIpAttachment("defaultInstanceAllowedIpAttachment", InstanceAllowedIpAttachmentArgs.builder()
            .instanceId(defaultInstance.id())
            .allowedType("vpc")
            .portRange("9092/9092")
            .allowedIp("114.237.9.78/32")
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: tf-example
resources:
  defaultInteger:
    type: random:integer
    name: default
    properties:
      min: 10000
      max: 99999
  defaultNetwork:
    type: alicloud:vpc:Network
    name: default
    properties:
      vpcName: ${name}
      cidrBlock: 10.4.0.0/16
  defaultSwitch:
    type: alicloud:vpc:Switch
    name: default
    properties:
      vswitchName: ${name}
      cidrBlock: 10.4.0.0/24
      vpcId: ${defaultNetwork.id}
      zoneId: ${default.zones[0].id}
  defaultSecurityGroup:
    type: alicloud:ecs:SecurityGroup
    name: default
    properties:
      vpcId: ${defaultNetwork.id}
  defaultInstance:
    type: alicloud:alikafka:Instance
    name: default
    properties:
      name: ${name}-${defaultInteger.result}
      partitionNum: 50
      diskType: 1
      diskSize: 500
      deployType: 5
      ioMax: 20
      vswitchId: ${defaultSwitch.id}
      securityGroup: ${defaultSecurityGroup.id}
  defaultInstanceAllowedIpAttachment:
    type: alicloud:alikafka:InstanceAllowedIpAttachment
    name: default
    properties:
      instanceId: ${defaultInstance.id}
      allowedType: vpc
      portRange: 9092/9092
      allowedIp: 114.237.9.78/32
variables:
  default:
    fn::invoke:
      function: alicloud:getZones
      arguments:
        availableResourceCreation: VSwitch
Copy

Create InstanceAllowedIpAttachment Resource

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

Constructor syntax

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

@overload
def InstanceAllowedIpAttachment(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                allowed_ip: Optional[str] = None,
                                allowed_type: Optional[str] = None,
                                instance_id: Optional[str] = None,
                                port_range: Optional[str] = None)
func NewInstanceAllowedIpAttachment(ctx *Context, name string, args InstanceAllowedIpAttachmentArgs, opts ...ResourceOption) (*InstanceAllowedIpAttachment, error)
public InstanceAllowedIpAttachment(string name, InstanceAllowedIpAttachmentArgs args, CustomResourceOptions? opts = null)
public InstanceAllowedIpAttachment(String name, InstanceAllowedIpAttachmentArgs args)
public InstanceAllowedIpAttachment(String name, InstanceAllowedIpAttachmentArgs args, CustomResourceOptions options)
type: alicloud:alikafka:InstanceAllowedIpAttachment
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. InstanceAllowedIpAttachmentArgs
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. InstanceAllowedIpAttachmentArgs
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. InstanceAllowedIpAttachmentArgs
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. InstanceAllowedIpAttachmentArgs
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. InstanceAllowedIpAttachmentArgs
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 instanceAllowedIpAttachmentResource = new AliCloud.AliKafka.InstanceAllowedIpAttachment("instanceAllowedIpAttachmentResource", new()
{
    AllowedIp = "string",
    AllowedType = "string",
    InstanceId = "string",
    PortRange = "string",
});
Copy
example, err := alikafka.NewInstanceAllowedIpAttachment(ctx, "instanceAllowedIpAttachmentResource", &alikafka.InstanceAllowedIpAttachmentArgs{
	AllowedIp:   pulumi.String("string"),
	AllowedType: pulumi.String("string"),
	InstanceId:  pulumi.String("string"),
	PortRange:   pulumi.String("string"),
})
Copy
var instanceAllowedIpAttachmentResource = new InstanceAllowedIpAttachment("instanceAllowedIpAttachmentResource", InstanceAllowedIpAttachmentArgs.builder()
    .allowedIp("string")
    .allowedType("string")
    .instanceId("string")
    .portRange("string")
    .build());
Copy
instance_allowed_ip_attachment_resource = alicloud.alikafka.InstanceAllowedIpAttachment("instanceAllowedIpAttachmentResource",
    allowed_ip="string",
    allowed_type="string",
    instance_id="string",
    port_range="string")
Copy
const instanceAllowedIpAttachmentResource = new alicloud.alikafka.InstanceAllowedIpAttachment("instanceAllowedIpAttachmentResource", {
    allowedIp: "string",
    allowedType: "string",
    instanceId: "string",
    portRange: "string",
});
Copy
type: alicloud:alikafka:InstanceAllowedIpAttachment
properties:
    allowedIp: string
    allowedType: string
    instanceId: string
    portRange: string
Copy

InstanceAllowedIpAttachment 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 InstanceAllowedIpAttachment resource accepts the following input properties:

AllowedIp
This property is required.
Changes to this property will trigger replacement.
string
The IP address whitelist. It can be a CIDR block.
AllowedType
This property is required.
Changes to this property will trigger replacement.
string
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
PortRange
This property is required.
Changes to this property will trigger replacement.
string
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
AllowedIp
This property is required.
Changes to this property will trigger replacement.
string
The IP address whitelist. It can be a CIDR block.
AllowedType
This property is required.
Changes to this property will trigger replacement.
string
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
PortRange
This property is required.
Changes to this property will trigger replacement.
string
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowedIp
This property is required.
Changes to this property will trigger replacement.
String
The IP address whitelist. It can be a CIDR block.
allowedType
This property is required.
Changes to this property will trigger replacement.
String
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
portRange
This property is required.
Changes to this property will trigger replacement.
String
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowedIp
This property is required.
Changes to this property will trigger replacement.
string
The IP address whitelist. It can be a CIDR block.
allowedType
This property is required.
Changes to this property will trigger replacement.
string
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
portRange
This property is required.
Changes to this property will trigger replacement.
string
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowed_ip
This property is required.
Changes to this property will trigger replacement.
str
The IP address whitelist. It can be a CIDR block.
allowed_type
This property is required.
Changes to this property will trigger replacement.
str
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instance_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the instance.
port_range
This property is required.
Changes to this property will trigger replacement.
str
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowedIp
This property is required.
Changes to this property will trigger replacement.
String
The IP address whitelist. It can be a CIDR block.
allowedType
This property is required.
Changes to this property will trigger replacement.
String
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
portRange
This property is required.
Changes to this property will trigger replacement.
String
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.

Outputs

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

Get an existing InstanceAllowedIpAttachment 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?: InstanceAllowedIpAttachmentState, opts?: CustomResourceOptions): InstanceAllowedIpAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allowed_ip: Optional[str] = None,
        allowed_type: Optional[str] = None,
        instance_id: Optional[str] = None,
        port_range: Optional[str] = None) -> InstanceAllowedIpAttachment
func GetInstanceAllowedIpAttachment(ctx *Context, name string, id IDInput, state *InstanceAllowedIpAttachmentState, opts ...ResourceOption) (*InstanceAllowedIpAttachment, error)
public static InstanceAllowedIpAttachment Get(string name, Input<string> id, InstanceAllowedIpAttachmentState? state, CustomResourceOptions? opts = null)
public static InstanceAllowedIpAttachment get(String name, Output<String> id, InstanceAllowedIpAttachmentState state, CustomResourceOptions options)
resources:  _:    type: alicloud:alikafka:InstanceAllowedIpAttachment    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:
AllowedIp Changes to this property will trigger replacement. string
The IP address whitelist. It can be a CIDR block.
AllowedType Changes to this property will trigger replacement. string
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
InstanceId Changes to this property will trigger replacement. string
The ID of the instance.
PortRange Changes to this property will trigger replacement. string
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
AllowedIp Changes to this property will trigger replacement. string
The IP address whitelist. It can be a CIDR block.
AllowedType Changes to this property will trigger replacement. string
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
InstanceId Changes to this property will trigger replacement. string
The ID of the instance.
PortRange Changes to this property will trigger replacement. string
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowedIp Changes to this property will trigger replacement. String
The IP address whitelist. It can be a CIDR block.
allowedType Changes to this property will trigger replacement. String
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instanceId Changes to this property will trigger replacement. String
The ID of the instance.
portRange Changes to this property will trigger replacement. String
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowedIp Changes to this property will trigger replacement. string
The IP address whitelist. It can be a CIDR block.
allowedType Changes to this property will trigger replacement. string
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instanceId Changes to this property will trigger replacement. string
The ID of the instance.
portRange Changes to this property will trigger replacement. string
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowed_ip Changes to this property will trigger replacement. str
The IP address whitelist. It can be a CIDR block.
allowed_type Changes to this property will trigger replacement. str
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instance_id Changes to this property will trigger replacement. str
The ID of the instance.
port_range Changes to this property will trigger replacement. str
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.
allowedIp Changes to this property will trigger replacement. String
The IP address whitelist. It can be a CIDR block.
allowedType Changes to this property will trigger replacement. String
The type of the whitelist. Valid Value: vpc, internet. NOTE: From version 1.179.0, allowed_type can be set to internet.
instanceId Changes to this property will trigger replacement. String
The ID of the instance.
portRange Changes to this property will trigger replacement. String
The Port range. Valid Value: 9092/9092, 9093/9093, 9094/9094, 9095/9095. NOTE: From version 1.179.0, port_range can be set to 9093/9093. From version 1.219.0, port_range can be set to 9094/9094, 9095/9095.

  • 9092/9092: The port range for access from virtual private clouds (VPCs) by using the default endpoint.
  • 9093/9093: The port range for access from the Internet.
  • 9094/9094: The port range for access from VPCs by using the Simple Authentication and Security Layer (SASL) endpoint.
  • 9095/9095: The port range for access from VPCs by using the Secure Sockets Layer (SSL) endpoint.

Import

AliKafka Instance Allowed Ip Attachment can be imported using the id, e.g.

$ pulumi import alicloud:alikafka/instanceAllowedIpAttachment:InstanceAllowedIpAttachment example <instance_id>:<allowed_type>:<port_range>:<allowed_ip>
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.