sag

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

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

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

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-2`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`]

type GetAclsResultOutput

type GetAclsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAcls.

func (GetAclsResultOutput) Acls

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

func (GetAclsResultOutput) ElementType

func (GetAclsResultOutput) ElementType() reflect.Type

func (GetAclsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetAclsResultOutput) Ids

A list of Sag Acl IDs.

func (GetAclsResultOutput) NameRegex

func (GetAclsResultOutput) Names

A list of Sag Acls names.

func (GetAclsResultOutput) OutputFile

func (GetAclsResultOutput) ToGetAclsResultOutput

func (o GetAclsResultOutput) ToGetAclsResultOutput() GetAclsResultOutput

func (GetAclsResultOutput) ToGetAclsResultOutputWithContext

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

type GetSmartagFlowLogsArgs

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"`
	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

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

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

func (GetSmartagFlowLogsLogArgs) ElementType() reflect.Type

func (GetSmartagFlowLogsLogArgs) ToGetSmartagFlowLogsLogOutput

func (i GetSmartagFlowLogsLogArgs) ToGetSmartagFlowLogsLogOutput() GetSmartagFlowLogsLogOutput

func (GetSmartagFlowLogsLogArgs) ToGetSmartagFlowLogsLogOutputWithContext

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

type GetSmartagFlowLogsLogArray

type GetSmartagFlowLogsLogArray []GetSmartagFlowLogsLogInput

func (GetSmartagFlowLogsLogArray) ElementType

func (GetSmartagFlowLogsLogArray) ElementType() reflect.Type

func (GetSmartagFlowLogsLogArray) ToGetSmartagFlowLogsLogArrayOutput

func (i GetSmartagFlowLogsLogArray) ToGetSmartagFlowLogsLogArrayOutput() GetSmartagFlowLogsLogArrayOutput

func (GetSmartagFlowLogsLogArray) ToGetSmartagFlowLogsLogArrayOutputWithContext

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

type GetSmartagFlowLogsLogArrayInput

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

type GetSmartagFlowLogsLogArrayOutput struct{ *pulumi.OutputState }

func (GetSmartagFlowLogsLogArrayOutput) ElementType

func (GetSmartagFlowLogsLogArrayOutput) Index

func (GetSmartagFlowLogsLogArrayOutput) ToGetSmartagFlowLogsLogArrayOutput

func (o GetSmartagFlowLogsLogArrayOutput) ToGetSmartagFlowLogsLogArrayOutput() GetSmartagFlowLogsLogArrayOutput

func (GetSmartagFlowLogsLogArrayOutput) ToGetSmartagFlowLogsLogArrayOutputWithContext

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

type GetSmartagFlowLogsLogInput

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

type GetSmartagFlowLogsLogOutput struct{ *pulumi.OutputState }

func (GetSmartagFlowLogsLogOutput) ActiveAging

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

The description of the flow log.

func (GetSmartagFlowLogsLogOutput) ElementType

func (GetSmartagFlowLogsLogOutput) FlowLogId

The ID of the flow log.

func (GetSmartagFlowLogsLogOutput) FlowLogName

The name of the flow log.

func (GetSmartagFlowLogsLogOutput) Id

The ID of the Flow Log.

func (GetSmartagFlowLogsLogOutput) InactiveAging

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

The name of the Log Service Logstore.

func (GetSmartagFlowLogsLogOutput) NetflowServerIp

func (o GetSmartagFlowLogsLogOutput) NetflowServerIp() pulumi.StringOutput

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

func (GetSmartagFlowLogsLogOutput) NetflowServerPort

func (o GetSmartagFlowLogsLogOutput) NetflowServerPort() pulumi.IntOutput

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

func (GetSmartagFlowLogsLogOutput) NetflowVersion

func (o GetSmartagFlowLogsLogOutput) NetflowVersion() pulumi.StringOutput

The NetFlow version. Default value: V9.

func (GetSmartagFlowLogsLogOutput) OutputType

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

The name of the Log Service project.

func (GetSmartagFlowLogsLogOutput) ResourceGroupId

func (o GetSmartagFlowLogsLogOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (GetSmartagFlowLogsLogOutput) SlsRegionId

The ID of the region where Log Service is deployed.

func (GetSmartagFlowLogsLogOutput) Status

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

func (GetSmartagFlowLogsLogOutput) ToGetSmartagFlowLogsLogOutput

func (o GetSmartagFlowLogsLogOutput) ToGetSmartagFlowLogsLogOutput() GetSmartagFlowLogsLogOutput

func (GetSmartagFlowLogsLogOutput) ToGetSmartagFlowLogsLogOutputWithContext

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

func (GetSmartagFlowLogsLogOutput) TotalSagNum

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

type GetSmartagFlowLogsOutputArgs

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"`
	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

type GetSmartagFlowLogsResult

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

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/go/alicloud/sag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/sag"

)

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

type GetSmartagFlowLogsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSmartagFlowLogs.

func (GetSmartagFlowLogsResultOutput) Description

func (GetSmartagFlowLogsResultOutput) ElementType

func (GetSmartagFlowLogsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSmartagFlowLogsResultOutput) Ids

func (GetSmartagFlowLogsResultOutput) Logs

func (GetSmartagFlowLogsResultOutput) NameRegex

func (GetSmartagFlowLogsResultOutput) Names

func (GetSmartagFlowLogsResultOutput) OutputFile

func (GetSmartagFlowLogsResultOutput) PageNumber

func (GetSmartagFlowLogsResultOutput) PageSize

func (GetSmartagFlowLogsResultOutput) Status

func (GetSmartagFlowLogsResultOutput) ToGetSmartagFlowLogsResultOutput

func (o GetSmartagFlowLogsResultOutput) ToGetSmartagFlowLogsResultOutput() GetSmartagFlowLogsResultOutput

func (GetSmartagFlowLogsResultOutput) ToGetSmartagFlowLogsResultOutputWithContext

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

type SmartagFlowLog

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:
	// - `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.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 in v1.168.0+.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sag.NewSmartagFlowLog(ctx, "example", &sag.SmartagFlowLogArgs{
			FlowLogName:       pulumi.String("example_value"),
			LogstoreName:      pulumi.String("example_value"),
			NetflowServerIp:   pulumi.String("example_value"),
			NetflowServerPort: pulumi.Int(1),
			OutputType:        pulumi.String("all"),
			ProjectName:       pulumi.String("example_value"),
			SlsRegionId:       pulumi.String("example_value"),
		})
		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

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

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

func (*SmartagFlowLog) ElementType() reflect.Type

func (*SmartagFlowLog) ToSmartagFlowLogOutput

func (i *SmartagFlowLog) ToSmartagFlowLogOutput() SmartagFlowLogOutput

func (*SmartagFlowLog) ToSmartagFlowLogOutputWithContext

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

type SmartagFlowLogArgs

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:
	// - `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
	// 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

func (SmartagFlowLogArgs) ElementType() reflect.Type

type SmartagFlowLogArray

type SmartagFlowLogArray []SmartagFlowLogInput

func (SmartagFlowLogArray) ElementType

func (SmartagFlowLogArray) ElementType() reflect.Type

func (SmartagFlowLogArray) ToSmartagFlowLogArrayOutput

func (i SmartagFlowLogArray) ToSmartagFlowLogArrayOutput() SmartagFlowLogArrayOutput

func (SmartagFlowLogArray) ToSmartagFlowLogArrayOutputWithContext

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

type SmartagFlowLogArrayInput

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

type SmartagFlowLogArrayOutput struct{ *pulumi.OutputState }

func (SmartagFlowLogArrayOutput) ElementType

func (SmartagFlowLogArrayOutput) ElementType() reflect.Type

func (SmartagFlowLogArrayOutput) Index

func (SmartagFlowLogArrayOutput) ToSmartagFlowLogArrayOutput

func (o SmartagFlowLogArrayOutput) ToSmartagFlowLogArrayOutput() SmartagFlowLogArrayOutput

func (SmartagFlowLogArrayOutput) ToSmartagFlowLogArrayOutputWithContext

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

type SmartagFlowLogInput

type SmartagFlowLogInput interface {
	pulumi.Input

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

type SmartagFlowLogMap

type SmartagFlowLogMap map[string]SmartagFlowLogInput

func (SmartagFlowLogMap) ElementType

func (SmartagFlowLogMap) ElementType() reflect.Type

func (SmartagFlowLogMap) ToSmartagFlowLogMapOutput

func (i SmartagFlowLogMap) ToSmartagFlowLogMapOutput() SmartagFlowLogMapOutput

func (SmartagFlowLogMap) ToSmartagFlowLogMapOutputWithContext

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

type SmartagFlowLogMapInput

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

type SmartagFlowLogMapOutput struct{ *pulumi.OutputState }

func (SmartagFlowLogMapOutput) ElementType

func (SmartagFlowLogMapOutput) ElementType() reflect.Type

func (SmartagFlowLogMapOutput) MapIndex

func (SmartagFlowLogMapOutput) ToSmartagFlowLogMapOutput

func (o SmartagFlowLogMapOutput) ToSmartagFlowLogMapOutput() SmartagFlowLogMapOutput

func (SmartagFlowLogMapOutput) ToSmartagFlowLogMapOutputWithContext

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

type SmartagFlowLogOutput

type SmartagFlowLogOutput struct{ *pulumi.OutputState }

func (SmartagFlowLogOutput) ActiveAging

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

The description of the flow log.

func (SmartagFlowLogOutput) ElementType

func (SmartagFlowLogOutput) ElementType() reflect.Type

func (SmartagFlowLogOutput) FlowLogName

The name of the flow log.

func (SmartagFlowLogOutput) InactiveAging

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

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

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

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

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

func (o SmartagFlowLogOutput) OutputType() pulumi.StringOutput

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 (SmartagFlowLogOutput) ProjectName

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

func (SmartagFlowLogOutput) SlsRegionId

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

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

func (SmartagFlowLogOutput) ToSmartagFlowLogOutput

func (o SmartagFlowLogOutput) ToSmartagFlowLogOutput() SmartagFlowLogOutput

func (SmartagFlowLogOutput) ToSmartagFlowLogOutputWithContext

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

type SmartagFlowLogState

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:
	// - `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.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

func (SmartagFlowLogState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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