Documentation
¶
Index ¶
- type GetGroupsArgs
- type GetGroupsGroup
- type GetGroupsGroupArgs
- type GetGroupsGroupArray
- type GetGroupsGroupArrayInput
- type GetGroupsGroupArrayOutput
- func (GetGroupsGroupArrayOutput) ElementType() reflect.Type
- func (o GetGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetGroupsGroupOutput
- func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput
- func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput
- type GetGroupsGroupInput
- type GetGroupsGroupOutput
- func (GetGroupsGroupOutput) ElementType() reflect.Type
- func (o GetGroupsGroupOutput) GroupFlag() pulumi.IntOutput
- func (o GetGroupsGroupOutput) GroupId() pulumi.StringOutput
- func (o GetGroupsGroupOutput) GroupName() pulumi.StringOutput
- func (o GetGroupsGroupOutput) Id() pulumi.StringOutput
- func (o GetGroupsGroupOutput) ToGetGroupsGroupOutput() GetGroupsGroupOutput
- func (o GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput
- type GetGroupsResult
- type Group
- type GroupArgs
- type GroupArray
- type GroupArrayInput
- type GroupArrayOutput
- type GroupInput
- type GroupMap
- type GroupMapInput
- type GroupMapOutput
- type GroupOutput
- func (GroupOutput) ElementType() reflect.Type
- func (o GroupOutput) ToGroupOutput() GroupOutput
- func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
- func (o GroupOutput) ToGroupPtrOutput() GroupPtrOutput
- func (o GroupOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
- type GroupPtrInput
- type GroupPtrOutput
- type GroupState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetGroupsArgs ¶
type GetGroupsArgs struct { // A list of Group IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by Group name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getGroups.
type GetGroupsGroup ¶
type GetGroupsGroup struct { // GroupFlag, '0' mean default group(created by system), '1' means customer defined group. GroupFlag int `pulumi:"groupFlag"` // The ID of Group. GroupId string `pulumi:"groupId"` // The name of Group. GroupName string `pulumi:"groupName"` // The ID of the Group(same as the group_id). Id string `pulumi:"id"` }
type GetGroupsGroupArgs ¶
type GetGroupsGroupArgs struct { // GroupFlag, '0' mean default group(created by system), '1' means customer defined group. GroupFlag pulumi.IntInput `pulumi:"groupFlag"` // The ID of Group. GroupId pulumi.StringInput `pulumi:"groupId"` // The name of Group. GroupName pulumi.StringInput `pulumi:"groupName"` // The ID of the Group(same as the group_id). Id pulumi.StringInput `pulumi:"id"` }
func (GetGroupsGroupArgs) ElementType ¶
func (GetGroupsGroupArgs) ElementType() reflect.Type
func (GetGroupsGroupArgs) ToGetGroupsGroupOutput ¶
func (i GetGroupsGroupArgs) ToGetGroupsGroupOutput() GetGroupsGroupOutput
func (GetGroupsGroupArgs) ToGetGroupsGroupOutputWithContext ¶
func (i GetGroupsGroupArgs) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput
type GetGroupsGroupArray ¶
type GetGroupsGroupArray []GetGroupsGroupInput
func (GetGroupsGroupArray) ElementType ¶
func (GetGroupsGroupArray) ElementType() reflect.Type
func (GetGroupsGroupArray) ToGetGroupsGroupArrayOutput ¶
func (i GetGroupsGroupArray) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput
func (GetGroupsGroupArray) ToGetGroupsGroupArrayOutputWithContext ¶
func (i GetGroupsGroupArray) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput
type GetGroupsGroupArrayInput ¶
type GetGroupsGroupArrayInput interface { pulumi.Input ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput ToGetGroupsGroupArrayOutputWithContext(context.Context) GetGroupsGroupArrayOutput }
GetGroupsGroupArrayInput is an input type that accepts GetGroupsGroupArray and GetGroupsGroupArrayOutput values. You can construct a concrete instance of `GetGroupsGroupArrayInput` via:
GetGroupsGroupArray{ GetGroupsGroupArgs{...} }
type GetGroupsGroupArrayOutput ¶
type GetGroupsGroupArrayOutput struct{ *pulumi.OutputState }
func (GetGroupsGroupArrayOutput) ElementType ¶
func (GetGroupsGroupArrayOutput) ElementType() reflect.Type
func (GetGroupsGroupArrayOutput) Index ¶
func (o GetGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetGroupsGroupOutput
func (GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput ¶
func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput
func (GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext ¶
func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput
type GetGroupsGroupInput ¶
type GetGroupsGroupInput interface { pulumi.Input ToGetGroupsGroupOutput() GetGroupsGroupOutput ToGetGroupsGroupOutputWithContext(context.Context) GetGroupsGroupOutput }
GetGroupsGroupInput is an input type that accepts GetGroupsGroupArgs and GetGroupsGroupOutput values. You can construct a concrete instance of `GetGroupsGroupInput` via:
GetGroupsGroupArgs{...}
type GetGroupsGroupOutput ¶
type GetGroupsGroupOutput struct{ *pulumi.OutputState }
func (GetGroupsGroupOutput) ElementType ¶
func (GetGroupsGroupOutput) ElementType() reflect.Type
func (GetGroupsGroupOutput) GroupFlag ¶
func (o GetGroupsGroupOutput) GroupFlag() pulumi.IntOutput
GroupFlag, '0' mean default group(created by system), '1' means customer defined group.
func (GetGroupsGroupOutput) GroupId ¶
func (o GetGroupsGroupOutput) GroupId() pulumi.StringOutput
The ID of Group.
func (GetGroupsGroupOutput) GroupName ¶
func (o GetGroupsGroupOutput) GroupName() pulumi.StringOutput
The name of Group.
func (GetGroupsGroupOutput) Id ¶
func (o GetGroupsGroupOutput) Id() pulumi.StringOutput
The ID of the Group(same as the group_id).
func (GetGroupsGroupOutput) ToGetGroupsGroupOutput ¶
func (o GetGroupsGroupOutput) ToGetGroupsGroupOutput() GetGroupsGroupOutput
func (GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext ¶
func (o GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput
type GetGroupsResult ¶
type GetGroupsResult struct { Groups []GetGroupsGroup `pulumi:"groups"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getGroups.
func GetGroups ¶
func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error)
This data source provides the Security Center Groups of the current Alibaba Cloud user.
> **NOTE:** Available in v1.133.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/securitycenter" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "^my-Group" nameRegex, err := securitycenter.GetGroups(ctx, &securitycenter.GetGroupsArgs{ NameRegex: &opt0, }, nil) if err != nil { return err } ctx.Export("securityCenterGroups", nameRegex.Groups[0].Id) return nil }) }
```
type Group ¶
type Group struct { pulumi.CustomResourceState // GroupId. GroupId pulumi.StringOutput `pulumi:"groupId"` // GroupName. GroupName pulumi.StringPtrOutput `pulumi:"groupName"` }
Provides a Security Center Group resource.
For information about Security Center Group and how to use it, see [What is Group](https://www.alibabacloud.com/help/doc-detail/129195.htm).
> **NOTE:** Available in v1.133.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/securitycenter" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := securitycenter.NewGroup(ctx, "example", &securitycenter.GroupArgs{ GroupName: pulumi.String("example_value"), }) if err != nil { return err } return nil }) }
```
## Import
Security Center Group can be imported using the id, e.g.
```sh
$ pulumi import alicloud:securitycenter/group:Group example <group_id>
```
func GetGroup ¶
func GetGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)
GetGroup gets an existing Group 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 NewGroup ¶
func NewGroup(ctx *pulumi.Context, name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)
NewGroup registers a new resource with the given unique name, arguments, and options.
func (*Group) ElementType ¶
func (*Group) ToGroupOutput ¶
func (i *Group) ToGroupOutput() GroupOutput
func (*Group) ToGroupOutputWithContext ¶
func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput
func (*Group) ToGroupPtrOutput ¶
func (i *Group) ToGroupPtrOutput() GroupPtrOutput
func (*Group) ToGroupPtrOutputWithContext ¶
func (i *Group) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupArgs ¶
type GroupArgs struct { // GroupId. GroupId pulumi.StringPtrInput // GroupName. GroupName pulumi.StringPtrInput }
The set of arguments for constructing a Group resource.
func (GroupArgs) ElementType ¶
type GroupArray ¶
type GroupArray []GroupInput
func (GroupArray) ElementType ¶
func (GroupArray) ElementType() reflect.Type
func (GroupArray) ToGroupArrayOutput ¶
func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput
func (GroupArray) ToGroupArrayOutputWithContext ¶
func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupArrayInput ¶
type GroupArrayInput interface { pulumi.Input ToGroupArrayOutput() GroupArrayOutput ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput }
GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:
GroupArray{ GroupArgs{...} }
type GroupArrayOutput ¶
type GroupArrayOutput struct{ *pulumi.OutputState }
func (GroupArrayOutput) ElementType ¶
func (GroupArrayOutput) ElementType() reflect.Type
func (GroupArrayOutput) Index ¶
func (o GroupArrayOutput) Index(i pulumi.IntInput) GroupOutput
func (GroupArrayOutput) ToGroupArrayOutput ¶
func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput
func (GroupArrayOutput) ToGroupArrayOutputWithContext ¶
func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupInput ¶
type GroupInput interface { pulumi.Input ToGroupOutput() GroupOutput ToGroupOutputWithContext(ctx context.Context) GroupOutput }
type GroupMap ¶
type GroupMap map[string]GroupInput
func (GroupMap) ElementType ¶
func (GroupMap) ToGroupMapOutput ¶
func (i GroupMap) ToGroupMapOutput() GroupMapOutput
func (GroupMap) ToGroupMapOutputWithContext ¶
func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupMapInput ¶
type GroupMapInput interface { pulumi.Input ToGroupMapOutput() GroupMapOutput ToGroupMapOutputWithContext(context.Context) GroupMapOutput }
GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:
GroupMap{ "key": GroupArgs{...} }
type GroupMapOutput ¶
type GroupMapOutput struct{ *pulumi.OutputState }
func (GroupMapOutput) ElementType ¶
func (GroupMapOutput) ElementType() reflect.Type
func (GroupMapOutput) MapIndex ¶
func (o GroupMapOutput) MapIndex(k pulumi.StringInput) GroupOutput
func (GroupMapOutput) ToGroupMapOutput ¶
func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput
func (GroupMapOutput) ToGroupMapOutputWithContext ¶
func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupOutput ¶
type GroupOutput struct {
*pulumi.OutputState
}
func (GroupOutput) ElementType ¶
func (GroupOutput) ElementType() reflect.Type
func (GroupOutput) ToGroupOutput ¶
func (o GroupOutput) ToGroupOutput() GroupOutput
func (GroupOutput) ToGroupOutputWithContext ¶
func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
func (GroupOutput) ToGroupPtrOutput ¶
func (o GroupOutput) ToGroupPtrOutput() GroupPtrOutput
func (GroupOutput) ToGroupPtrOutputWithContext ¶
func (o GroupOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupPtrInput ¶
type GroupPtrInput interface { pulumi.Input ToGroupPtrOutput() GroupPtrOutput ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput }
type GroupPtrOutput ¶
type GroupPtrOutput struct {
*pulumi.OutputState
}
func (GroupPtrOutput) ElementType ¶
func (GroupPtrOutput) ElementType() reflect.Type
func (GroupPtrOutput) ToGroupPtrOutput ¶
func (o GroupPtrOutput) ToGroupPtrOutput() GroupPtrOutput
func (GroupPtrOutput) ToGroupPtrOutputWithContext ¶
func (o GroupPtrOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupState ¶
type GroupState struct { // GroupId. GroupId pulumi.StringPtrInput // GroupName. GroupName pulumi.StringPtrInput }
func (GroupState) ElementType ¶
func (GroupState) ElementType() reflect.Type