sag

package
v3.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAclsAcl

type GetAclsAcl struct {
	// The ID of the ACL. For example "acl-xxx".
	Id string `pulumi:"id"`
	// The name of the Acl.
	Name string `pulumi:"name"`
}

type GetAclsAclArgs

type GetAclsAclArgs struct {
	// The ID of the ACL. For example "acl-xxx".
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the Acl.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetAclsAclArgs) ElementType

func (GetAclsAclArgs) ElementType() reflect.Type

func (GetAclsAclArgs) ToGetAclsAclOutput

func (i GetAclsAclArgs) ToGetAclsAclOutput() GetAclsAclOutput

func (GetAclsAclArgs) ToGetAclsAclOutputWithContext

func (i GetAclsAclArgs) ToGetAclsAclOutputWithContext(ctx context.Context) GetAclsAclOutput

type GetAclsAclArray

type GetAclsAclArray []GetAclsAclInput

func (GetAclsAclArray) ElementType

func (GetAclsAclArray) ElementType() reflect.Type

func (GetAclsAclArray) ToGetAclsAclArrayOutput

func (i GetAclsAclArray) ToGetAclsAclArrayOutput() GetAclsAclArrayOutput

func (GetAclsAclArray) ToGetAclsAclArrayOutputWithContext

func (i GetAclsAclArray) ToGetAclsAclArrayOutputWithContext(ctx context.Context) GetAclsAclArrayOutput

type GetAclsAclArrayInput

type GetAclsAclArrayInput interface {
	pulumi.Input

	ToGetAclsAclArrayOutput() GetAclsAclArrayOutput
	ToGetAclsAclArrayOutputWithContext(context.Context) GetAclsAclArrayOutput
}

GetAclsAclArrayInput is an input type that accepts GetAclsAclArray and GetAclsAclArrayOutput values. You can construct a concrete instance of `GetAclsAclArrayInput` via:

GetAclsAclArray{ GetAclsAclArgs{...} }

type GetAclsAclArrayOutput

type GetAclsAclArrayOutput struct{ *pulumi.OutputState }

func (GetAclsAclArrayOutput) ElementType

func (GetAclsAclArrayOutput) ElementType() reflect.Type

func (GetAclsAclArrayOutput) Index

func (GetAclsAclArrayOutput) ToGetAclsAclArrayOutput

func (o GetAclsAclArrayOutput) ToGetAclsAclArrayOutput() GetAclsAclArrayOutput

func (GetAclsAclArrayOutput) ToGetAclsAclArrayOutputWithContext

func (o GetAclsAclArrayOutput) ToGetAclsAclArrayOutputWithContext(ctx context.Context) GetAclsAclArrayOutput

type GetAclsAclInput

type GetAclsAclInput interface {
	pulumi.Input

	ToGetAclsAclOutput() GetAclsAclOutput
	ToGetAclsAclOutputWithContext(context.Context) GetAclsAclOutput
}

GetAclsAclInput is an input type that accepts GetAclsAclArgs and GetAclsAclOutput values. You can construct a concrete instance of `GetAclsAclInput` via:

GetAclsAclArgs{...}

type GetAclsAclOutput

type GetAclsAclOutput struct{ *pulumi.OutputState }

func (GetAclsAclOutput) ElementType

func (GetAclsAclOutput) ElementType() reflect.Type

func (GetAclsAclOutput) Id

The ID of the ACL. For example "acl-xxx".

func (GetAclsAclOutput) Name

The name of the Acl.

func (GetAclsAclOutput) ToGetAclsAclOutput

func (o GetAclsAclOutput) ToGetAclsAclOutput() GetAclsAclOutput

func (GetAclsAclOutput) ToGetAclsAclOutputWithContext

func (o GetAclsAclOutput) ToGetAclsAclOutputWithContext(ctx context.Context) GetAclsAclOutput

type GetAclsArgs

type GetAclsArgs struct {
	// A list of Sag Acl IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter Sag Acl instances by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getAcls.

type GetAclsOutputArgs added in v3.9.0

type GetAclsOutputArgs struct {
	// A list of Sag Acl IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter Sag Acl instances by name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getAcls.

func (GetAclsOutputArgs) ElementType added in v3.9.0

func (GetAclsOutputArgs) ElementType() reflect.Type

type GetAclsResult

type GetAclsResult struct {
	// A list of Sag Acls. Each element contains the following attributes:
	Acls []GetAclsAcl `pulumi:"acls"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Sag Acl IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of Sag Acls names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getAcls.

func GetAcls

func GetAcls(ctx *pulumi.Context, args *GetAclsArgs, opts ...pulumi.InvokeOption) (*GetAclsResult, error)

This data source provides Sag Acls available to the user.

> **NOTE:** Available in 1.60.0+

> **NOTE:** Only the following regions support create Cloud Connect Network. [`cn-shanghai`, `cn-shanghai-finance-1`, `cn-hongkong`, `ap-southeast-1`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`]

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rocketmq"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := sag.GetAcls(ctx, &sag.GetAclsArgs{ Ids: interface{}{ defaultAlicloudSagAcls.Id, }, NameRegex: pulumi.StringRef("^tf-testAcc.*"), }, nil); if err != nil { return err } _, err = rocketmq.NewAcl(ctx, "default", &rocketmq.AclArgs{ Name: pulumi.String("tf-testAccSagAclName"), }) if err != nil { return err } return nil }) } ```

type GetAclsResultOutput added in v3.9.0

type GetAclsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAcls.

func GetAclsOutput added in v3.9.0

func GetAclsOutput(ctx *pulumi.Context, args GetAclsOutputArgs, opts ...pulumi.InvokeOption) GetAclsResultOutput

func (GetAclsResultOutput) Acls added in v3.9.0

A list of Sag Acls. Each element contains the following attributes:

func (GetAclsResultOutput) ElementType added in v3.9.0

func (GetAclsResultOutput) ElementType() reflect.Type

func (GetAclsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetAclsResultOutput) Ids added in v3.9.0

A list of Sag Acl IDs.

func (GetAclsResultOutput) NameRegex added in v3.9.0

func (GetAclsResultOutput) Names added in v3.9.0

A list of Sag Acls names.

func (GetAclsResultOutput) OutputFile added in v3.9.0

func (GetAclsResultOutput) ToGetAclsResultOutput added in v3.9.0

func (o GetAclsResultOutput) ToGetAclsResultOutput() GetAclsResultOutput

func (GetAclsResultOutput) ToGetAclsResultOutputWithContext added in v3.9.0

func (o GetAclsResultOutput) ToGetAclsResultOutputWithContext(ctx context.Context) GetAclsResultOutput

type GetSmartagFlowLogsArgs added in v3.20.0

type GetSmartagFlowLogsArgs struct {
	// The description of the flow log.
	Description *string `pulumi:"description"`
	// A list of Flow Log IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Flow Log name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The status of the flow log. Valid values:  `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getSmartagFlowLogs.

type GetSmartagFlowLogsLog added in v3.20.0

type GetSmartagFlowLogsLog struct {
	// The time interval at which log data of active connections is collected. Valid values: 60 to 6000. Default value: 300. Unit: second.
	ActiveAging int `pulumi:"activeAging"`
	// The description of the flow log.
	Description string `pulumi:"description"`
	// The ID of the flow log.
	FlowLogId string `pulumi:"flowLogId"`
	// The name of the flow log.
	FlowLogName string `pulumi:"flowLogName"`
	// The ID of the Flow Log.
	Id string `pulumi:"id"`
	// The time interval at which log data of inactive connections is connected. Valid values: 10 to 600. Default value: 15. Unit: second.
	InactiveAging int `pulumi:"inactiveAging"`
	// The name of the Log Service Logstore.
	LogstoreName string `pulumi:"logstoreName"`
	// The IP address of the NetFlow collector where the flow log is stored.
	NetflowServerIp string `pulumi:"netflowServerIp"`
	// The port of the NetFlow collector. Default value: 9995.
	NetflowServerPort int `pulumi:"netflowServerPort"`
	// The NetFlow version. Default value: V9.
	NetflowVersion string `pulumi:"netflowVersion"`
	// The location where the flow log is stored. Valid values:  sls: The flow log is stored in Log Service. netflow: The flow log is stored on a NetFlow collector. all: The flow log is stored both in Log Service and on a NetFlow collector.
	OutputType string `pulumi:"outputType"`
	// The name of the Log Service project.
	ProjectName string `pulumi:"projectName"`
	// The ID of the resource group.
	ResourceGroupId string `pulumi:"resourceGroupId"`
	// The ID of the region where Log Service is deployed.
	SlsRegionId string `pulumi:"slsRegionId"`
	// The status of the flow log. Valid values:  `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.
	Status string `pulumi:"status"`
	// The number of Smart Access gateway (SAG) instances with which the flow log is associated.
	TotalSagNum int `pulumi:"totalSagNum"`
}

type GetSmartagFlowLogsLogArgs added in v3.20.0

type GetSmartagFlowLogsLogArgs struct {
	// The time interval at which log data of active connections is collected. Valid values: 60 to 6000. Default value: 300. Unit: second.
	ActiveAging pulumi.IntInput `pulumi:"activeAging"`
	// The description of the flow log.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the flow log.
	FlowLogId pulumi.StringInput `pulumi:"flowLogId"`
	// The name of the flow log.
	FlowLogName pulumi.StringInput `pulumi:"flowLogName"`
	// The ID of the Flow Log.
	Id pulumi.StringInput `pulumi:"id"`
	// The time interval at which log data of inactive connections is connected. Valid values: 10 to 600. Default value: 15. Unit: second.
	InactiveAging pulumi.IntInput `pulumi:"inactiveAging"`
	// The name of the Log Service Logstore.
	LogstoreName pulumi.StringInput `pulumi:"logstoreName"`
	// The IP address of the NetFlow collector where the flow log is stored.
	NetflowServerIp pulumi.StringInput `pulumi:"netflowServerIp"`
	// The port of the NetFlow collector. Default value: 9995.
	NetflowServerPort pulumi.IntInput `pulumi:"netflowServerPort"`
	// The NetFlow version. Default value: V9.
	NetflowVersion pulumi.StringInput `pulumi:"netflowVersion"`
	// The location where the flow log is stored. Valid values:  sls: The flow log is stored in Log Service. netflow: The flow log is stored on a NetFlow collector. all: The flow log is stored both in Log Service and on a NetFlow collector.
	OutputType pulumi.StringInput `pulumi:"outputType"`
	// The name of the Log Service project.
	ProjectName pulumi.StringInput `pulumi:"projectName"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringInput `pulumi:"resourceGroupId"`
	// The ID of the region where Log Service is deployed.
	SlsRegionId pulumi.StringInput `pulumi:"slsRegionId"`
	// The status of the flow log. Valid values:  `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.
	Status pulumi.StringInput `pulumi:"status"`
	// The number of Smart Access gateway (SAG) instances with which the flow log is associated.
	TotalSagNum pulumi.IntInput `pulumi:"totalSagNum"`
}

func (GetSmartagFlowLogsLogArgs) ElementType added in v3.20.0

func (GetSmartagFlowLogsLogArgs) ElementType() reflect.Type

func (GetSmartagFlowLogsLogArgs) ToGetSmartagFlowLogsLogOutput added in v3.20.0

func (i GetSmartagFlowLogsLogArgs) ToGetSmartagFlowLogsLogOutput() GetSmartagFlowLogsLogOutput

func (GetSmartagFlowLogsLogArgs) ToGetSmartagFlowLogsLogOutputWithContext added in v3.20.0

func (i GetSmartagFlowLogsLogArgs) ToGetSmartagFlowLogsLogOutputWithContext(ctx context.Context) GetSmartagFlowLogsLogOutput

type GetSmartagFlowLogsLogArray added in v3.20.0

type GetSmartagFlowLogsLogArray []GetSmartagFlowLogsLogInput

func (GetSmartagFlowLogsLogArray) ElementType added in v3.20.0

func (GetSmartagFlowLogsLogArray) ElementType() reflect.Type

func (GetSmartagFlowLogsLogArray) ToGetSmartagFlowLogsLogArrayOutput added in v3.20.0

func (i GetSmartagFlowLogsLogArray) ToGetSmartagFlowLogsLogArrayOutput() GetSmartagFlowLogsLogArrayOutput

func (GetSmartagFlowLogsLogArray) ToGetSmartagFlowLogsLogArrayOutputWithContext added in v3.20.0

func (i GetSmartagFlowLogsLogArray) ToGetSmartagFlowLogsLogArrayOutputWithContext(ctx context.Context) GetSmartagFlowLogsLogArrayOutput

type GetSmartagFlowLogsLogArrayInput added in v3.20.0

type GetSmartagFlowLogsLogArrayInput interface {
	pulumi.Input

	ToGetSmartagFlowLogsLogArrayOutput() GetSmartagFlowLogsLogArrayOutput
	ToGetSmartagFlowLogsLogArrayOutputWithContext(context.Context) GetSmartagFlowLogsLogArrayOutput
}

GetSmartagFlowLogsLogArrayInput is an input type that accepts GetSmartagFlowLogsLogArray and GetSmartagFlowLogsLogArrayOutput values. You can construct a concrete instance of `GetSmartagFlowLogsLogArrayInput` via:

GetSmartagFlowLogsLogArray{ GetSmartagFlowLogsLogArgs{...} }

type GetSmartagFlowLogsLogArrayOutput added in v3.20.0

type GetSmartagFlowLogsLogArrayOutput struct{ *pulumi.OutputState }

func (GetSmartagFlowLogsLogArrayOutput) ElementType added in v3.20.0

func (GetSmartagFlowLogsLogArrayOutput) Index added in v3.20.0

func (GetSmartagFlowLogsLogArrayOutput) ToGetSmartagFlowLogsLogArrayOutput added in v3.20.0

func (o GetSmartagFlowLogsLogArrayOutput) ToGetSmartagFlowLogsLogArrayOutput() GetSmartagFlowLogsLogArrayOutput

func (GetSmartagFlowLogsLogArrayOutput) ToGetSmartagFlowLogsLogArrayOutputWithContext added in v3.20.0

func (o GetSmartagFlowLogsLogArrayOutput) ToGetSmartagFlowLogsLogArrayOutputWithContext(ctx context.Context) GetSmartagFlowLogsLogArrayOutput

type GetSmartagFlowLogsLogInput added in v3.20.0

type GetSmartagFlowLogsLogInput interface {
	pulumi.Input

	ToGetSmartagFlowLogsLogOutput() GetSmartagFlowLogsLogOutput
	ToGetSmartagFlowLogsLogOutputWithContext(context.Context) GetSmartagFlowLogsLogOutput
}

GetSmartagFlowLogsLogInput is an input type that accepts GetSmartagFlowLogsLogArgs and GetSmartagFlowLogsLogOutput values. You can construct a concrete instance of `GetSmartagFlowLogsLogInput` via:

GetSmartagFlowLogsLogArgs{...}

type GetSmartagFlowLogsLogOutput added in v3.20.0

type GetSmartagFlowLogsLogOutput struct{ *pulumi.OutputState }

func (GetSmartagFlowLogsLogOutput) ActiveAging added in v3.20.0

The time interval at which log data of active connections is collected. Valid values: 60 to 6000. Default value: 300. Unit: second.

func (GetSmartagFlowLogsLogOutput) Description added in v3.20.0

The description of the flow log.

func (GetSmartagFlowLogsLogOutput) ElementType added in v3.20.0

func (GetSmartagFlowLogsLogOutput) FlowLogId added in v3.20.0

The ID of the flow log.

func (GetSmartagFlowLogsLogOutput) FlowLogName added in v3.20.0

The name of the flow log.

func (GetSmartagFlowLogsLogOutput) Id added in v3.20.0

The ID of the Flow Log.

func (GetSmartagFlowLogsLogOutput) InactiveAging added in v3.20.0

func (o GetSmartagFlowLogsLogOutput) InactiveAging() pulumi.IntOutput

The time interval at which log data of inactive connections is connected. Valid values: 10 to 600. Default value: 15. Unit: second.

func (GetSmartagFlowLogsLogOutput) LogstoreName added in v3.20.0

The name of the Log Service Logstore.

func (GetSmartagFlowLogsLogOutput) NetflowServerIp added in v3.20.0

func (o GetSmartagFlowLogsLogOutput) NetflowServerIp() pulumi.StringOutput

The IP address of the NetFlow collector where the flow log is stored.

func (GetSmartagFlowLogsLogOutput) NetflowServerPort added in v3.20.0

func (o GetSmartagFlowLogsLogOutput) NetflowServerPort() pulumi.IntOutput

The port of the NetFlow collector. Default value: 9995.

func (GetSmartagFlowLogsLogOutput) NetflowVersion added in v3.20.0

func (o GetSmartagFlowLogsLogOutput) NetflowVersion() pulumi.StringOutput

The NetFlow version. Default value: V9.

func (GetSmartagFlowLogsLogOutput) OutputType added in v3.20.0

The location where the flow log is stored. Valid values: sls: The flow log is stored in Log Service. netflow: The flow log is stored on a NetFlow collector. all: The flow log is stored both in Log Service and on a NetFlow collector.

func (GetSmartagFlowLogsLogOutput) ProjectName added in v3.20.0

The name of the Log Service project.

func (GetSmartagFlowLogsLogOutput) ResourceGroupId added in v3.20.0

func (o GetSmartagFlowLogsLogOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (GetSmartagFlowLogsLogOutput) SlsRegionId added in v3.20.0

The ID of the region where Log Service is deployed.

func (GetSmartagFlowLogsLogOutput) Status added in v3.20.0

The status of the flow log. Valid values: `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.

func (GetSmartagFlowLogsLogOutput) ToGetSmartagFlowLogsLogOutput added in v3.20.0

func (o GetSmartagFlowLogsLogOutput) ToGetSmartagFlowLogsLogOutput() GetSmartagFlowLogsLogOutput

func (GetSmartagFlowLogsLogOutput) ToGetSmartagFlowLogsLogOutputWithContext added in v3.20.0

func (o GetSmartagFlowLogsLogOutput) ToGetSmartagFlowLogsLogOutputWithContext(ctx context.Context) GetSmartagFlowLogsLogOutput

func (GetSmartagFlowLogsLogOutput) TotalSagNum added in v3.20.0

The number of Smart Access gateway (SAG) instances with which the flow log is associated.

type GetSmartagFlowLogsOutputArgs added in v3.20.0

type GetSmartagFlowLogsOutputArgs struct {
	// The description of the flow log.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// A list of Flow Log IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Flow Log name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The status of the flow log. Valid values:  `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getSmartagFlowLogs.

func (GetSmartagFlowLogsOutputArgs) ElementType added in v3.20.0

type GetSmartagFlowLogsResult added in v3.20.0

type GetSmartagFlowLogsResult struct {
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	Logs       []GetSmartagFlowLogsLog `pulumi:"logs"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	PageNumber *int                    `pulumi:"pageNumber"`
	PageSize   *int                    `pulumi:"pageSize"`
	Status     *string                 `pulumi:"status"`
}

A collection of values returned by getSmartagFlowLogs.

func GetSmartagFlowLogs added in v3.20.0

func GetSmartagFlowLogs(ctx *pulumi.Context, args *GetSmartagFlowLogsArgs, opts ...pulumi.InvokeOption) (*GetSmartagFlowLogsResult, error)

This data source provides the Smartag Flow Logs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.168.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := sag.GetSmartagFlowLogs(ctx, &sag.GetSmartagFlowLogsArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("smartagFlowLogId1", ids.Logs[0].Id)
		nameRegex, err := sag.GetSmartagFlowLogs(ctx, &sag.GetSmartagFlowLogsArgs{
			NameRegex: pulumi.StringRef("^my-FlowLog"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("smartagFlowLogId2", nameRegex.Logs[0].Id)
		return nil
	})
}

```

type GetSmartagFlowLogsResultOutput added in v3.20.0

type GetSmartagFlowLogsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSmartagFlowLogs.

func GetSmartagFlowLogsOutput added in v3.20.0

func (GetSmartagFlowLogsResultOutput) Description added in v3.20.0

func (GetSmartagFlowLogsResultOutput) ElementType added in v3.20.0

func (GetSmartagFlowLogsResultOutput) Id added in v3.20.0

The provider-assigned unique ID for this managed resource.

func (GetSmartagFlowLogsResultOutput) Ids added in v3.20.0

func (GetSmartagFlowLogsResultOutput) Logs added in v3.20.0

func (GetSmartagFlowLogsResultOutput) NameRegex added in v3.20.0

func (GetSmartagFlowLogsResultOutput) Names added in v3.20.0

func (GetSmartagFlowLogsResultOutput) OutputFile added in v3.20.0

func (GetSmartagFlowLogsResultOutput) PageNumber added in v3.20.0

func (GetSmartagFlowLogsResultOutput) PageSize added in v3.20.0

func (GetSmartagFlowLogsResultOutput) Status added in v3.20.0

func (GetSmartagFlowLogsResultOutput) ToGetSmartagFlowLogsResultOutput added in v3.20.0

func (o GetSmartagFlowLogsResultOutput) ToGetSmartagFlowLogsResultOutput() GetSmartagFlowLogsResultOutput

func (GetSmartagFlowLogsResultOutput) ToGetSmartagFlowLogsResultOutputWithContext added in v3.20.0

func (o GetSmartagFlowLogsResultOutput) ToGetSmartagFlowLogsResultOutputWithContext(ctx context.Context) GetSmartagFlowLogsResultOutput

type SmartagFlowLog added in v3.20.0

type SmartagFlowLog struct {
	pulumi.CustomResourceState

	// The time interval at which log data of active connections is collected. Valid values: `60` to `6000`. Default value: `300`. Unit: second.
	ActiveAging pulumi.IntOutput `pulumi:"activeAging"`
	// The description of the flow log.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the flow log.
	FlowLogName pulumi.StringPtrOutput `pulumi:"flowLogName"`
	// The time interval at which log data of inactive connections is connected. Valid values: `10` to `600`. Default value: `15`. Unit: second.
	InactiveAging pulumi.IntOutput `pulumi:"inactiveAging"`
	// The Logstore in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.
	LogstoreName pulumi.StringPtrOutput `pulumi:"logstoreName"`
	// The IP address of the NetFlow collector where the flow log is stored. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowServerIp pulumi.StringPtrOutput `pulumi:"netflowServerIp"`
	// The port of the NetFlow collector. Default value: `9995`. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowServerPort pulumi.IntOutput `pulumi:"netflowServerPort"`
	// The NetFlow version. Default value: `V9`. Valid values: `V10`, `V5`, `V9`. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowVersion pulumi.StringOutput `pulumi:"netflowVersion"`
	// The location where the flow log is stored. Valid values:
	OutputType pulumi.StringOutput `pulumi:"outputType"`
	// The project in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.
	ProjectName pulumi.StringPtrOutput `pulumi:"projectName"`
	// The ID of the region where Log Service is deployed. If `outputType` is set to `sls` or `all`, this parameter is required.
	SlsRegionId pulumi.StringPtrOutput `pulumi:"slsRegionId"`
	// The status of the flow log. Valid values:  `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Smartag Flow Log resource.

For information about Smartag Flow Log and how to use it, see [What is Flow Log](https://www.alibabacloud.com/help/en/smart-access-gateway/latest/createflowlog).

> **NOTE:** Available since v1.168.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sag.NewSmartagFlowLog(ctx, "example", &sag.SmartagFlowLogArgs{
			NetflowServerIp:   pulumi.String("192.168.0.2"),
			NetflowServerPort: pulumi.Int(9995),
			NetflowVersion:    pulumi.String("V9"),
			OutputType:        pulumi.String("netflow"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Smartag Flow Log can be imported using the id, e.g.

```sh $ pulumi import alicloud:sag/smartagFlowLog:SmartagFlowLog example <id> ```

func GetSmartagFlowLog added in v3.20.0

func GetSmartagFlowLog(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SmartagFlowLogState, opts ...pulumi.ResourceOption) (*SmartagFlowLog, error)

GetSmartagFlowLog gets an existing SmartagFlowLog resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSmartagFlowLog added in v3.20.0

func NewSmartagFlowLog(ctx *pulumi.Context,
	name string, args *SmartagFlowLogArgs, opts ...pulumi.ResourceOption) (*SmartagFlowLog, error)

NewSmartagFlowLog registers a new resource with the given unique name, arguments, and options.

func (*SmartagFlowLog) ElementType added in v3.20.0

func (*SmartagFlowLog) ElementType() reflect.Type

func (*SmartagFlowLog) ToSmartagFlowLogOutput added in v3.20.0

func (i *SmartagFlowLog) ToSmartagFlowLogOutput() SmartagFlowLogOutput

func (*SmartagFlowLog) ToSmartagFlowLogOutputWithContext added in v3.20.0

func (i *SmartagFlowLog) ToSmartagFlowLogOutputWithContext(ctx context.Context) SmartagFlowLogOutput

type SmartagFlowLogArgs added in v3.20.0

type SmartagFlowLogArgs struct {
	// The time interval at which log data of active connections is collected. Valid values: `60` to `6000`. Default value: `300`. Unit: second.
	ActiveAging pulumi.IntPtrInput
	// The description of the flow log.
	Description pulumi.StringPtrInput
	// The name of the flow log.
	FlowLogName pulumi.StringPtrInput
	// The time interval at which log data of inactive connections is connected. Valid values: `10` to `600`. Default value: `15`. Unit: second.
	InactiveAging pulumi.IntPtrInput
	// The Logstore in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.
	LogstoreName pulumi.StringPtrInput
	// The IP address of the NetFlow collector where the flow log is stored. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowServerIp pulumi.StringPtrInput
	// The port of the NetFlow collector. Default value: `9995`. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowServerPort pulumi.IntPtrInput
	// The NetFlow version. Default value: `V9`. Valid values: `V10`, `V5`, `V9`. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowVersion pulumi.StringPtrInput
	// The location where the flow log is stored. Valid values:
	OutputType pulumi.StringInput
	// The project in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.
	ProjectName pulumi.StringPtrInput
	// The ID of the region where Log Service is deployed. If `outputType` is set to `sls` or `all`, this parameter is required.
	SlsRegionId pulumi.StringPtrInput
	// The status of the flow log. Valid values:  `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.
	Status pulumi.StringPtrInput
}

The set of arguments for constructing a SmartagFlowLog resource.

func (SmartagFlowLogArgs) ElementType added in v3.20.0

func (SmartagFlowLogArgs) ElementType() reflect.Type

type SmartagFlowLogArray added in v3.20.0

type SmartagFlowLogArray []SmartagFlowLogInput

func (SmartagFlowLogArray) ElementType added in v3.20.0

func (SmartagFlowLogArray) ElementType() reflect.Type

func (SmartagFlowLogArray) ToSmartagFlowLogArrayOutput added in v3.20.0

func (i SmartagFlowLogArray) ToSmartagFlowLogArrayOutput() SmartagFlowLogArrayOutput

func (SmartagFlowLogArray) ToSmartagFlowLogArrayOutputWithContext added in v3.20.0

func (i SmartagFlowLogArray) ToSmartagFlowLogArrayOutputWithContext(ctx context.Context) SmartagFlowLogArrayOutput

type SmartagFlowLogArrayInput added in v3.20.0

type SmartagFlowLogArrayInput interface {
	pulumi.Input

	ToSmartagFlowLogArrayOutput() SmartagFlowLogArrayOutput
	ToSmartagFlowLogArrayOutputWithContext(context.Context) SmartagFlowLogArrayOutput
}

SmartagFlowLogArrayInput is an input type that accepts SmartagFlowLogArray and SmartagFlowLogArrayOutput values. You can construct a concrete instance of `SmartagFlowLogArrayInput` via:

SmartagFlowLogArray{ SmartagFlowLogArgs{...} }

type SmartagFlowLogArrayOutput added in v3.20.0

type SmartagFlowLogArrayOutput struct{ *pulumi.OutputState }

func (SmartagFlowLogArrayOutput) ElementType added in v3.20.0

func (SmartagFlowLogArrayOutput) ElementType() reflect.Type

func (SmartagFlowLogArrayOutput) Index added in v3.20.0

func (SmartagFlowLogArrayOutput) ToSmartagFlowLogArrayOutput added in v3.20.0

func (o SmartagFlowLogArrayOutput) ToSmartagFlowLogArrayOutput() SmartagFlowLogArrayOutput

func (SmartagFlowLogArrayOutput) ToSmartagFlowLogArrayOutputWithContext added in v3.20.0

func (o SmartagFlowLogArrayOutput) ToSmartagFlowLogArrayOutputWithContext(ctx context.Context) SmartagFlowLogArrayOutput

type SmartagFlowLogInput added in v3.20.0

type SmartagFlowLogInput interface {
	pulumi.Input

	ToSmartagFlowLogOutput() SmartagFlowLogOutput
	ToSmartagFlowLogOutputWithContext(ctx context.Context) SmartagFlowLogOutput
}

type SmartagFlowLogMap added in v3.20.0

type SmartagFlowLogMap map[string]SmartagFlowLogInput

func (SmartagFlowLogMap) ElementType added in v3.20.0

func (SmartagFlowLogMap) ElementType() reflect.Type

func (SmartagFlowLogMap) ToSmartagFlowLogMapOutput added in v3.20.0

func (i SmartagFlowLogMap) ToSmartagFlowLogMapOutput() SmartagFlowLogMapOutput

func (SmartagFlowLogMap) ToSmartagFlowLogMapOutputWithContext added in v3.20.0

func (i SmartagFlowLogMap) ToSmartagFlowLogMapOutputWithContext(ctx context.Context) SmartagFlowLogMapOutput

type SmartagFlowLogMapInput added in v3.20.0

type SmartagFlowLogMapInput interface {
	pulumi.Input

	ToSmartagFlowLogMapOutput() SmartagFlowLogMapOutput
	ToSmartagFlowLogMapOutputWithContext(context.Context) SmartagFlowLogMapOutput
}

SmartagFlowLogMapInput is an input type that accepts SmartagFlowLogMap and SmartagFlowLogMapOutput values. You can construct a concrete instance of `SmartagFlowLogMapInput` via:

SmartagFlowLogMap{ "key": SmartagFlowLogArgs{...} }

type SmartagFlowLogMapOutput added in v3.20.0

type SmartagFlowLogMapOutput struct{ *pulumi.OutputState }

func (SmartagFlowLogMapOutput) ElementType added in v3.20.0

func (SmartagFlowLogMapOutput) ElementType() reflect.Type

func (SmartagFlowLogMapOutput) MapIndex added in v3.20.0

func (SmartagFlowLogMapOutput) ToSmartagFlowLogMapOutput added in v3.20.0

func (o SmartagFlowLogMapOutput) ToSmartagFlowLogMapOutput() SmartagFlowLogMapOutput

func (SmartagFlowLogMapOutput) ToSmartagFlowLogMapOutputWithContext added in v3.20.0

func (o SmartagFlowLogMapOutput) ToSmartagFlowLogMapOutputWithContext(ctx context.Context) SmartagFlowLogMapOutput

type SmartagFlowLogOutput added in v3.20.0

type SmartagFlowLogOutput struct{ *pulumi.OutputState }

func (SmartagFlowLogOutput) ActiveAging added in v3.27.0

func (o SmartagFlowLogOutput) ActiveAging() pulumi.IntOutput

The time interval at which log data of active connections is collected. Valid values: `60` to `6000`. Default value: `300`. Unit: second.

func (SmartagFlowLogOutput) Description added in v3.27.0

The description of the flow log.

func (SmartagFlowLogOutput) ElementType added in v3.20.0

func (SmartagFlowLogOutput) ElementType() reflect.Type

func (SmartagFlowLogOutput) FlowLogName added in v3.27.0

The name of the flow log.

func (SmartagFlowLogOutput) InactiveAging added in v3.27.0

func (o SmartagFlowLogOutput) InactiveAging() pulumi.IntOutput

The time interval at which log data of inactive connections is connected. Valid values: `10` to `600`. Default value: `15`. Unit: second.

func (SmartagFlowLogOutput) LogstoreName added in v3.27.0

func (o SmartagFlowLogOutput) LogstoreName() pulumi.StringPtrOutput

The Logstore in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.

func (SmartagFlowLogOutput) NetflowServerIp added in v3.27.0

func (o SmartagFlowLogOutput) NetflowServerIp() pulumi.StringPtrOutput

The IP address of the NetFlow collector where the flow log is stored. If `outputType` is set to `netflow` or `all`, this parameter is required.

func (SmartagFlowLogOutput) NetflowServerPort added in v3.27.0

func (o SmartagFlowLogOutput) NetflowServerPort() pulumi.IntOutput

The port of the NetFlow collector. Default value: `9995`. If `outputType` is set to `netflow` or `all`, this parameter is required.

func (SmartagFlowLogOutput) NetflowVersion added in v3.27.0

func (o SmartagFlowLogOutput) NetflowVersion() pulumi.StringOutput

The NetFlow version. Default value: `V9`. Valid values: `V10`, `V5`, `V9`. If `outputType` is set to `netflow` or `all`, this parameter is required.

func (SmartagFlowLogOutput) OutputType added in v3.27.0

func (o SmartagFlowLogOutput) OutputType() pulumi.StringOutput

The location where the flow log is stored. Valid values:

func (SmartagFlowLogOutput) ProjectName added in v3.27.0

The project in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.

func (SmartagFlowLogOutput) SlsRegionId added in v3.27.0

The ID of the region where Log Service is deployed. If `outputType` is set to `sls` or `all`, this parameter is required.

func (SmartagFlowLogOutput) Status added in v3.27.0

The status of the flow log. Valid values: `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.

func (SmartagFlowLogOutput) ToSmartagFlowLogOutput added in v3.20.0

func (o SmartagFlowLogOutput) ToSmartagFlowLogOutput() SmartagFlowLogOutput

func (SmartagFlowLogOutput) ToSmartagFlowLogOutputWithContext added in v3.20.0

func (o SmartagFlowLogOutput) ToSmartagFlowLogOutputWithContext(ctx context.Context) SmartagFlowLogOutput

type SmartagFlowLogState added in v3.20.0

type SmartagFlowLogState struct {
	// The time interval at which log data of active connections is collected. Valid values: `60` to `6000`. Default value: `300`. Unit: second.
	ActiveAging pulumi.IntPtrInput
	// The description of the flow log.
	Description pulumi.StringPtrInput
	// The name of the flow log.
	FlowLogName pulumi.StringPtrInput
	// The time interval at which log data of inactive connections is connected. Valid values: `10` to `600`. Default value: `15`. Unit: second.
	InactiveAging pulumi.IntPtrInput
	// The Logstore in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.
	LogstoreName pulumi.StringPtrInput
	// The IP address of the NetFlow collector where the flow log is stored. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowServerIp pulumi.StringPtrInput
	// The port of the NetFlow collector. Default value: `9995`. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowServerPort pulumi.IntPtrInput
	// The NetFlow version. Default value: `V9`. Valid values: `V10`, `V5`, `V9`. If `outputType` is set to `netflow` or `all`, this parameter is required.
	NetflowVersion pulumi.StringPtrInput
	// The location where the flow log is stored. Valid values:
	OutputType pulumi.StringPtrInput
	// The project in Log Service. If `outputType` is set to `sls` or `all`, this parameter is required.
	ProjectName pulumi.StringPtrInput
	// The ID of the region where Log Service is deployed. If `outputType` is set to `sls` or `all`, this parameter is required.
	SlsRegionId pulumi.StringPtrInput
	// The status of the flow log. Valid values:  `Active`: The flow log is enabled. `Inactive`: The flow log is disabled.
	Status pulumi.StringPtrInput
}

func (SmartagFlowLogState) ElementType added in v3.20.0

func (SmartagFlowLogState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL