tencentcloud.ApiGatewayStrategyAttachment
Explore with Pulumi AI
Use this resource to create IP strategy attachment of API gateway.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const serviceApiGatewayService = new tencentcloud.ApiGatewayService("serviceApiGatewayService", {
    serviceName: "niceservice",
    protocol: "http&https",
    serviceDesc: "your nice service",
    netTypes: [
        "INNER",
        "OUTER",
    ],
    ipVersion: "IPv4",
});
const testApiGatewayIpStrategy = new tencentcloud.ApiGatewayIpStrategy("testApiGatewayIpStrategy", {
    serviceId: serviceApiGatewayService.apiGatewayServiceId,
    strategyName: "tf_test",
    strategyType: "BLACK",
    strategyData: "9.9.9.9",
});
const api = new tencentcloud.ApiGatewayApi("api", {
    serviceId: serviceApiGatewayService.apiGatewayServiceId,
    apiName: "tf_example",
    apiDesc: "my hello api update",
    authType: "SECRET",
    protocol: "HTTP",
    enableCors: true,
    requestConfigPath: "/user/info",
    requestConfigMethod: "POST",
    requestParameters: [{
        name: "email",
        position: "QUERY",
        type: "string",
        desc: "your email please?",
        defaultValue: "tom@qq.com",
        required: true,
    }],
    serviceConfigType: "HTTP",
    serviceConfigTimeout: 10,
    serviceConfigUrl: "http://www.tencent.com",
    serviceConfigPath: "/user",
    serviceConfigMethod: "POST",
    responseType: "XML",
    responseSuccessExample: "<note>success</note>",
    responseFailExample: "<note>fail</note>",
    responseErrorCodes: [{
        code: 10,
        msg: "system error",
        desc: "system error code",
        convertedCode: -10,
        needConvert: true,
    }],
});
const serviceApiGatewayServiceRelease = new tencentcloud.ApiGatewayServiceRelease("serviceApiGatewayServiceRelease", {
    serviceId: serviceApiGatewayService.apiGatewayServiceId,
    environmentName: "release",
    releaseDesc: "test service release",
});
const testApiGatewayStrategyAttachment = new tencentcloud.ApiGatewayStrategyAttachment("testApiGatewayStrategyAttachment", {
    serviceId: serviceApiGatewayServiceRelease.serviceId,
    strategyId: testApiGatewayIpStrategy.strategyId,
    environmentName: "release",
    bindApiId: api.apiGatewayApiId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
service_api_gateway_service = tencentcloud.ApiGatewayService("serviceApiGatewayService",
    service_name="niceservice",
    protocol="http&https",
    service_desc="your nice service",
    net_types=[
        "INNER",
        "OUTER",
    ],
    ip_version="IPv4")
test_api_gateway_ip_strategy = tencentcloud.ApiGatewayIpStrategy("testApiGatewayIpStrategy",
    service_id=service_api_gateway_service.api_gateway_service_id,
    strategy_name="tf_test",
    strategy_type="BLACK",
    strategy_data="9.9.9.9")
api = tencentcloud.ApiGatewayApi("api",
    service_id=service_api_gateway_service.api_gateway_service_id,
    api_name="tf_example",
    api_desc="my hello api update",
    auth_type="SECRET",
    protocol="HTTP",
    enable_cors=True,
    request_config_path="/user/info",
    request_config_method="POST",
    request_parameters=[{
        "name": "email",
        "position": "QUERY",
        "type": "string",
        "desc": "your email please?",
        "default_value": "tom@qq.com",
        "required": True,
    }],
    service_config_type="HTTP",
    service_config_timeout=10,
    service_config_url="http://www.tencent.com",
    service_config_path="/user",
    service_config_method="POST",
    response_type="XML",
    response_success_example="<note>success</note>",
    response_fail_example="<note>fail</note>",
    response_error_codes=[{
        "code": 10,
        "msg": "system error",
        "desc": "system error code",
        "converted_code": -10,
        "need_convert": True,
    }])
service_api_gateway_service_release = tencentcloud.ApiGatewayServiceRelease("serviceApiGatewayServiceRelease",
    service_id=service_api_gateway_service.api_gateway_service_id,
    environment_name="release",
    release_desc="test service release")
test_api_gateway_strategy_attachment = tencentcloud.ApiGatewayStrategyAttachment("testApiGatewayStrategyAttachment",
    service_id=service_api_gateway_service_release.service_id,
    strategy_id=test_api_gateway_ip_strategy.strategy_id,
    environment_name="release",
    bind_api_id=api.api_gateway_api_id)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		serviceApiGatewayService, err := tencentcloud.NewApiGatewayService(ctx, "serviceApiGatewayService", &tencentcloud.ApiGatewayServiceArgs{
			ServiceName: pulumi.String("niceservice"),
			Protocol:    pulumi.String("http&https"),
			ServiceDesc: pulumi.String("your nice service"),
			NetTypes: pulumi.StringArray{
				pulumi.String("INNER"),
				pulumi.String("OUTER"),
			},
			IpVersion: pulumi.String("IPv4"),
		})
		if err != nil {
			return err
		}
		testApiGatewayIpStrategy, err := tencentcloud.NewApiGatewayIpStrategy(ctx, "testApiGatewayIpStrategy", &tencentcloud.ApiGatewayIpStrategyArgs{
			ServiceId:    serviceApiGatewayService.ApiGatewayServiceId,
			StrategyName: pulumi.String("tf_test"),
			StrategyType: pulumi.String("BLACK"),
			StrategyData: pulumi.String("9.9.9.9"),
		})
		if err != nil {
			return err
		}
		api, err := tencentcloud.NewApiGatewayApi(ctx, "api", &tencentcloud.ApiGatewayApiArgs{
			ServiceId:           serviceApiGatewayService.ApiGatewayServiceId,
			ApiName:             pulumi.String("tf_example"),
			ApiDesc:             pulumi.String("my hello api update"),
			AuthType:            pulumi.String("SECRET"),
			Protocol:            pulumi.String("HTTP"),
			EnableCors:          pulumi.Bool(true),
			RequestConfigPath:   pulumi.String("/user/info"),
			RequestConfigMethod: pulumi.String("POST"),
			RequestParameters: tencentcloud.ApiGatewayApiRequestParameterArray{
				&tencentcloud.ApiGatewayApiRequestParameterArgs{
					Name:         pulumi.String("email"),
					Position:     pulumi.String("QUERY"),
					Type:         pulumi.String("string"),
					Desc:         pulumi.String("your email please?"),
					DefaultValue: pulumi.String("tom@qq.com"),
					Required:     pulumi.Bool(true),
				},
			},
			ServiceConfigType:      pulumi.String("HTTP"),
			ServiceConfigTimeout:   pulumi.Float64(10),
			ServiceConfigUrl:       pulumi.String("http://www.tencent.com"),
			ServiceConfigPath:      pulumi.String("/user"),
			ServiceConfigMethod:    pulumi.String("POST"),
			ResponseType:           pulumi.String("XML"),
			ResponseSuccessExample: pulumi.String("<note>success</note>"),
			ResponseFailExample:    pulumi.String("<note>fail</note>"),
			ResponseErrorCodes: tencentcloud.ApiGatewayApiResponseErrorCodeArray{
				&tencentcloud.ApiGatewayApiResponseErrorCodeArgs{
					Code:          pulumi.Float64(10),
					Msg:           pulumi.String("system error"),
					Desc:          pulumi.String("system error code"),
					ConvertedCode: pulumi.Float64(-10),
					NeedConvert:   pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		serviceApiGatewayServiceRelease, err := tencentcloud.NewApiGatewayServiceRelease(ctx, "serviceApiGatewayServiceRelease", &tencentcloud.ApiGatewayServiceReleaseArgs{
			ServiceId:       serviceApiGatewayService.ApiGatewayServiceId,
			EnvironmentName: pulumi.String("release"),
			ReleaseDesc:     pulumi.String("test service release"),
		})
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewApiGatewayStrategyAttachment(ctx, "testApiGatewayStrategyAttachment", &tencentcloud.ApiGatewayStrategyAttachmentArgs{
			ServiceId:       serviceApiGatewayServiceRelease.ServiceId,
			StrategyId:      testApiGatewayIpStrategy.StrategyId,
			EnvironmentName: pulumi.String("release"),
			BindApiId:       api.ApiGatewayApiId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() => 
{
    var serviceApiGatewayService = new Tencentcloud.ApiGatewayService("serviceApiGatewayService", new()
    {
        ServiceName = "niceservice",
        Protocol = "http&https",
        ServiceDesc = "your nice service",
        NetTypes = new[]
        {
            "INNER",
            "OUTER",
        },
        IpVersion = "IPv4",
    });
    var testApiGatewayIpStrategy = new Tencentcloud.ApiGatewayIpStrategy("testApiGatewayIpStrategy", new()
    {
        ServiceId = serviceApiGatewayService.ApiGatewayServiceId,
        StrategyName = "tf_test",
        StrategyType = "BLACK",
        StrategyData = "9.9.9.9",
    });
    var api = new Tencentcloud.ApiGatewayApi("api", new()
    {
        ServiceId = serviceApiGatewayService.ApiGatewayServiceId,
        ApiName = "tf_example",
        ApiDesc = "my hello api update",
        AuthType = "SECRET",
        Protocol = "HTTP",
        EnableCors = true,
        RequestConfigPath = "/user/info",
        RequestConfigMethod = "POST",
        RequestParameters = new[]
        {
            new Tencentcloud.Inputs.ApiGatewayApiRequestParameterArgs
            {
                Name = "email",
                Position = "QUERY",
                Type = "string",
                Desc = "your email please?",
                DefaultValue = "tom@qq.com",
                Required = true,
            },
        },
        ServiceConfigType = "HTTP",
        ServiceConfigTimeout = 10,
        ServiceConfigUrl = "http://www.tencent.com",
        ServiceConfigPath = "/user",
        ServiceConfigMethod = "POST",
        ResponseType = "XML",
        ResponseSuccessExample = "<note>success</note>",
        ResponseFailExample = "<note>fail</note>",
        ResponseErrorCodes = new[]
        {
            new Tencentcloud.Inputs.ApiGatewayApiResponseErrorCodeArgs
            {
                Code = 10,
                Msg = "system error",
                Desc = "system error code",
                ConvertedCode = -10,
                NeedConvert = true,
            },
        },
    });
    var serviceApiGatewayServiceRelease = new Tencentcloud.ApiGatewayServiceRelease("serviceApiGatewayServiceRelease", new()
    {
        ServiceId = serviceApiGatewayService.ApiGatewayServiceId,
        EnvironmentName = "release",
        ReleaseDesc = "test service release",
    });
    var testApiGatewayStrategyAttachment = new Tencentcloud.ApiGatewayStrategyAttachment("testApiGatewayStrategyAttachment", new()
    {
        ServiceId = serviceApiGatewayServiceRelease.ServiceId,
        StrategyId = testApiGatewayIpStrategy.StrategyId,
        EnvironmentName = "release",
        BindApiId = api.ApiGatewayApiId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApiGatewayService;
import com.pulumi.tencentcloud.ApiGatewayServiceArgs;
import com.pulumi.tencentcloud.ApiGatewayIpStrategy;
import com.pulumi.tencentcloud.ApiGatewayIpStrategyArgs;
import com.pulumi.tencentcloud.ApiGatewayApi;
import com.pulumi.tencentcloud.ApiGatewayApiArgs;
import com.pulumi.tencentcloud.inputs.ApiGatewayApiRequestParameterArgs;
import com.pulumi.tencentcloud.inputs.ApiGatewayApiResponseErrorCodeArgs;
import com.pulumi.tencentcloud.ApiGatewayServiceRelease;
import com.pulumi.tencentcloud.ApiGatewayServiceReleaseArgs;
import com.pulumi.tencentcloud.ApiGatewayStrategyAttachment;
import com.pulumi.tencentcloud.ApiGatewayStrategyAttachmentArgs;
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 serviceApiGatewayService = new ApiGatewayService("serviceApiGatewayService", ApiGatewayServiceArgs.builder()
            .serviceName("niceservice")
            .protocol("http&https")
            .serviceDesc("your nice service")
            .netTypes(            
                "INNER",
                "OUTER")
            .ipVersion("IPv4")
            .build());
        var testApiGatewayIpStrategy = new ApiGatewayIpStrategy("testApiGatewayIpStrategy", ApiGatewayIpStrategyArgs.builder()
            .serviceId(serviceApiGatewayService.apiGatewayServiceId())
            .strategyName("tf_test")
            .strategyType("BLACK")
            .strategyData("9.9.9.9")
            .build());
        var api = new ApiGatewayApi("api", ApiGatewayApiArgs.builder()
            .serviceId(serviceApiGatewayService.apiGatewayServiceId())
            .apiName("tf_example")
            .apiDesc("my hello api update")
            .authType("SECRET")
            .protocol("HTTP")
            .enableCors(true)
            .requestConfigPath("/user/info")
            .requestConfigMethod("POST")
            .requestParameters(ApiGatewayApiRequestParameterArgs.builder()
                .name("email")
                .position("QUERY")
                .type("string")
                .desc("your email please?")
                .defaultValue("tom@qq.com")
                .required(true)
                .build())
            .serviceConfigType("HTTP")
            .serviceConfigTimeout(10)
            .serviceConfigUrl("http://www.tencent.com")
            .serviceConfigPath("/user")
            .serviceConfigMethod("POST")
            .responseType("XML")
            .responseSuccessExample("<note>success</note>")
            .responseFailExample("<note>fail</note>")
            .responseErrorCodes(ApiGatewayApiResponseErrorCodeArgs.builder()
                .code(10)
                .msg("system error")
                .desc("system error code")
                .convertedCode(-10)
                .needConvert(true)
                .build())
            .build());
        var serviceApiGatewayServiceRelease = new ApiGatewayServiceRelease("serviceApiGatewayServiceRelease", ApiGatewayServiceReleaseArgs.builder()
            .serviceId(serviceApiGatewayService.apiGatewayServiceId())
            .environmentName("release")
            .releaseDesc("test service release")
            .build());
        var testApiGatewayStrategyAttachment = new ApiGatewayStrategyAttachment("testApiGatewayStrategyAttachment", ApiGatewayStrategyAttachmentArgs.builder()
            .serviceId(serviceApiGatewayServiceRelease.serviceId())
            .strategyId(testApiGatewayIpStrategy.strategyId())
            .environmentName("release")
            .bindApiId(api.apiGatewayApiId())
            .build());
    }
}
resources:
  serviceApiGatewayService:
    type: tencentcloud:ApiGatewayService
    properties:
      serviceName: niceservice
      protocol: http&https
      serviceDesc: your nice service
      netTypes:
        - INNER
        - OUTER
      ipVersion: IPv4
  testApiGatewayIpStrategy:
    type: tencentcloud:ApiGatewayIpStrategy
    properties:
      serviceId: ${serviceApiGatewayService.apiGatewayServiceId}
      strategyName: tf_test
      strategyType: BLACK
      strategyData: 9.9.9.9
  api:
    type: tencentcloud:ApiGatewayApi
    properties:
      serviceId: ${serviceApiGatewayService.apiGatewayServiceId}
      apiName: tf_example
      apiDesc: my hello api update
      authType: SECRET
      protocol: HTTP
      enableCors: true
      requestConfigPath: /user/info
      requestConfigMethod: POST
      requestParameters:
        - name: email
          position: QUERY
          type: string
          desc: your email please?
          defaultValue: tom@qq.com
          required: true
      serviceConfigType: HTTP
      serviceConfigTimeout: 10
      serviceConfigUrl: http://www.tencent.com
      serviceConfigPath: /user
      serviceConfigMethod: POST
      responseType: XML
      responseSuccessExample: <note>success</note>
      responseFailExample: <note>fail</note>
      responseErrorCodes:
        - code: 10
          msg: system error
          desc: system error code
          convertedCode: -10
          needConvert: true
  serviceApiGatewayServiceRelease:
    type: tencentcloud:ApiGatewayServiceRelease
    properties:
      serviceId: ${serviceApiGatewayService.apiGatewayServiceId}
      environmentName: release
      releaseDesc: test service release
  testApiGatewayStrategyAttachment:
    type: tencentcloud:ApiGatewayStrategyAttachment
    properties:
      serviceId: ${serviceApiGatewayServiceRelease.serviceId}
      strategyId: ${testApiGatewayIpStrategy.strategyId}
      environmentName: release
      bindApiId: ${api.apiGatewayApiId}
Create ApiGatewayStrategyAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiGatewayStrategyAttachment(name: string, args: ApiGatewayStrategyAttachmentArgs, opts?: CustomResourceOptions);@overload
def ApiGatewayStrategyAttachment(resource_name: str,
                                 args: ApiGatewayStrategyAttachmentArgs,
                                 opts: Optional[ResourceOptions] = None)
@overload
def ApiGatewayStrategyAttachment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 bind_api_id: Optional[str] = None,
                                 environment_name: Optional[str] = None,
                                 service_id: Optional[str] = None,
                                 strategy_id: Optional[str] = None,
                                 api_gateway_strategy_attachment_id: Optional[str] = None)func NewApiGatewayStrategyAttachment(ctx *Context, name string, args ApiGatewayStrategyAttachmentArgs, opts ...ResourceOption) (*ApiGatewayStrategyAttachment, error)public ApiGatewayStrategyAttachment(string name, ApiGatewayStrategyAttachmentArgs args, CustomResourceOptions? opts = null)
public ApiGatewayStrategyAttachment(String name, ApiGatewayStrategyAttachmentArgs args)
public ApiGatewayStrategyAttachment(String name, ApiGatewayStrategyAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:ApiGatewayStrategyAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
 - The unique name of the resource.
 - args ApiGatewayStrategyAttachmentArgs
 - 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 ApiGatewayStrategyAttachmentArgs
 - 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 ApiGatewayStrategyAttachmentArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args ApiGatewayStrategyAttachmentArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args ApiGatewayStrategyAttachmentArgs
 - The arguments to resource properties.
 - options CustomResourceOptions
 - Bag of options to control resource's behavior.
 
ApiGatewayStrategyAttachment 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 ApiGatewayStrategyAttachment resource accepts the following input properties:
- Bind
Api stringId  - The API that needs to be bound.
 - Environment
Name string - The environment of the strategy association. Valid values: 
test,release,prepub. - Service
Id string - The ID of the API gateway service.
 - Strategy
Id string - The ID of the API gateway strategy.
 - Api
Gateway stringStrategy Attachment Id  - ID of the resource.
 
- Bind
Api stringId  - The API that needs to be bound.
 - Environment
Name string - The environment of the strategy association. Valid values: 
test,release,prepub. - Service
Id string - The ID of the API gateway service.
 - Strategy
Id string - The ID of the API gateway strategy.
 - Api
Gateway stringStrategy Attachment Id  - ID of the resource.
 
- bind
Api StringId  - The API that needs to be bound.
 - environment
Name String - The environment of the strategy association. Valid values: 
test,release,prepub. - service
Id String - The ID of the API gateway service.
 - strategy
Id String - The ID of the API gateway strategy.
 - api
Gateway StringStrategy Attachment Id  - ID of the resource.
 
- bind
Api stringId  - The API that needs to be bound.
 - environment
Name string - The environment of the strategy association. Valid values: 
test,release,prepub. - service
Id string - The ID of the API gateway service.
 - strategy
Id string - The ID of the API gateway strategy.
 - api
Gateway stringStrategy Attachment Id  - ID of the resource.
 
- bind_
api_ strid  - The API that needs to be bound.
 - environment_
name str - The environment of the strategy association. Valid values: 
test,release,prepub. - service_
id str - The ID of the API gateway service.
 - strategy_
id str - The ID of the API gateway strategy.
 - api_
gateway_ strstrategy_ attachment_ id  - ID of the resource.
 
- bind
Api StringId  - The API that needs to be bound.
 - environment
Name String - The environment of the strategy association. Valid values: 
test,release,prepub. - service
Id String - The ID of the API gateway service.
 - strategy
Id String - The ID of the API gateway strategy.
 - api
Gateway StringStrategy Attachment Id  - ID of the resource.
 
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiGatewayStrategyAttachment 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 ApiGatewayStrategyAttachment Resource
Get an existing ApiGatewayStrategyAttachment 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?: ApiGatewayStrategyAttachmentState, opts?: CustomResourceOptions): ApiGatewayStrategyAttachment@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_gateway_strategy_attachment_id: Optional[str] = None,
        bind_api_id: Optional[str] = None,
        environment_name: Optional[str] = None,
        service_id: Optional[str] = None,
        strategy_id: Optional[str] = None) -> ApiGatewayStrategyAttachmentfunc GetApiGatewayStrategyAttachment(ctx *Context, name string, id IDInput, state *ApiGatewayStrategyAttachmentState, opts ...ResourceOption) (*ApiGatewayStrategyAttachment, error)public static ApiGatewayStrategyAttachment Get(string name, Input<string> id, ApiGatewayStrategyAttachmentState? state, CustomResourceOptions? opts = null)public static ApiGatewayStrategyAttachment get(String name, Output<String> id, ApiGatewayStrategyAttachmentState state, CustomResourceOptions options)resources:  _:    type: tencentcloud:ApiGatewayStrategyAttachment    get:      id: ${id}- 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.
 
- Api
Gateway stringStrategy Attachment Id  - ID of the resource.
 - Bind
Api stringId  - The API that needs to be bound.
 - Environment
Name string - The environment of the strategy association. Valid values: 
test,release,prepub. - Service
Id string - The ID of the API gateway service.
 - Strategy
Id string - The ID of the API gateway strategy.
 
- Api
Gateway stringStrategy Attachment Id  - ID of the resource.
 - Bind
Api stringId  - The API that needs to be bound.
 - Environment
Name string - The environment of the strategy association. Valid values: 
test,release,prepub. - Service
Id string - The ID of the API gateway service.
 - Strategy
Id string - The ID of the API gateway strategy.
 
- api
Gateway StringStrategy Attachment Id  - ID of the resource.
 - bind
Api StringId  - The API that needs to be bound.
 - environment
Name String - The environment of the strategy association. Valid values: 
test,release,prepub. - service
Id String - The ID of the API gateway service.
 - strategy
Id String - The ID of the API gateway strategy.
 
- api
Gateway stringStrategy Attachment Id  - ID of the resource.
 - bind
Api stringId  - The API that needs to be bound.
 - environment
Name string - The environment of the strategy association. Valid values: 
test,release,prepub. - service
Id string - The ID of the API gateway service.
 - strategy
Id string - The ID of the API gateway strategy.
 
- api_
gateway_ strstrategy_ attachment_ id  - ID of the resource.
 - bind_
api_ strid  - The API that needs to be bound.
 - environment_
name str - The environment of the strategy association. Valid values: 
test,release,prepub. - service_
id str - The ID of the API gateway service.
 - strategy_
id str - The ID of the API gateway strategy.
 
- api
Gateway StringStrategy Attachment Id  - ID of the resource.
 - bind
Api StringId  - The API that needs to be bound.
 - environment
Name String - The environment of the strategy association. Valid values: 
test,release,prepub. - service
Id String - The ID of the API gateway service.
 - strategy
Id String - The ID of the API gateway strategy.
 
Import
IP strategy attachment of API gateway can be imported using the id, e.g.
$ pulumi import tencentcloud:index/apiGatewayStrategyAttachment:ApiGatewayStrategyAttachment test service-pk2r6bcc#IPStrategy-4kz2ljfi#api-h3wc5r0s#release
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
 - tencentcloud tencentcloudstack/terraform-provider-tencentcloud
 - License
 - Notes
 - This Pulumi package is based on the 
tencentcloudTerraform Provider.