Documentation
¶
Overview ¶
Package dfw provides the client and types for making API requests to SecurityGroup.
欢迎使用安全组(SecurityGroup)
腾讯安全组(SecurityGroup,以下又称DFW)运行在腾讯数据中心,它提供了可以弹性伸缩的计算服务,可以根据业务需要来构建和托管软件系统。
云服务器向用户提供弹性的计算、存储和网络资源。用户可以使用本文档介绍的 API,并参照相应的示例,对云服务器进行相关操作:如创建、销毁、更改带宽、重启等;支持的全部操作可参见API概览页 (https://cloud.tencent.com/document/api/213/1232)。
See dfw package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/dfw/
Using the Client ¶
To contact SecurityGroup with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See sdf.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the SecurityGroup client DFW for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/dfw/#New
Index ¶
- Constants
- type CreateSecurityGroupInput
- func (s CreateSecurityGroupInput) GoString() string
- func (s *CreateSecurityGroupInput) SetProjectId(v int64) *CreateSecurityGroupInput
- func (s *CreateSecurityGroupInput) SetSgName(v string) *CreateSecurityGroupInput
- func (s *CreateSecurityGroupInput) SetSgRemark(v string) *CreateSecurityGroupInput
- func (s CreateSecurityGroupInput) String() string
- type CreateSecurityGroupOutput
- func (s CreateSecurityGroupOutput) GoString() string
- func (s *CreateSecurityGroupOutput) SetCode(v int64) *CreateSecurityGroupOutput
- func (s *CreateSecurityGroupOutput) SetCodeDesc(v string) *CreateSecurityGroupOutput
- func (s *CreateSecurityGroupOutput) SetData(v *SecurityGroup) *CreateSecurityGroupOutput
- func (s *CreateSecurityGroupOutput) SetMessage(v string) *CreateSecurityGroupOutput
- func (s CreateSecurityGroupOutput) String() string
- type CreateSecurityGroupPolicyInput
- func (s CreateSecurityGroupPolicyInput) GoString() string
- func (s *CreateSecurityGroupPolicyInput) SetDirection(v string) *CreateSecurityGroupPolicyInput
- func (s *CreateSecurityGroupPolicyInput) SetIndex(v int64) *CreateSecurityGroupPolicyInput
- func (s *CreateSecurityGroupPolicyInput) SetPolicys(v []*SecurityGroupPolicy) *CreateSecurityGroupPolicyInput
- func (s *CreateSecurityGroupPolicyInput) SetSgId(v string) *CreateSecurityGroupPolicyInput
- func (s *CreateSecurityGroupPolicyInput) SetVersion(v int64) *CreateSecurityGroupPolicyInput
- func (s CreateSecurityGroupPolicyInput) String() string
- type CreateSecurityGroupPolicyOutput
- func (s CreateSecurityGroupPolicyOutput) GoString() string
- func (s *CreateSecurityGroupPolicyOutput) SetCode(v int64) *CreateSecurityGroupPolicyOutput
- func (s *CreateSecurityGroupPolicyOutput) SetCodeDesc(v string) *CreateSecurityGroupPolicyOutput
- func (s *CreateSecurityGroupPolicyOutput) SetMessage(v string) *CreateSecurityGroupPolicyOutput
- func (s CreateSecurityGroupPolicyOutput) String() string
- type DFW
- func (c *DFW) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error)
- func (c *DFW) CreateSecurityGroupPolicy(input *CreateSecurityGroupPolicyInput) (*CreateSecurityGroupPolicyOutput, error)
- func (c *DFW) CreateSecurityGroupPolicyRequest(input *CreateSecurityGroupPolicyInput) (req *request.Request, output *CreateSecurityGroupPolicyOutput)
- func (c *DFW) CreateSecurityGroupPolicyWithContext(ctx sdf.Context, input *CreateSecurityGroupPolicyInput, opts ...request.Option) (*CreateSecurityGroupPolicyOutput, error)
- func (c *DFW) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput)
- func (c *DFW) CreateSecurityGroupWithContext(ctx sdf.Context, input *CreateSecurityGroupInput, opts ...request.Option) (*CreateSecurityGroupOutput, error)
- func (c *DFW) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error)
- func (c *DFW) DeleteSecurityGroupPolicy(input *DeleteSecurityGroupPolicyInput) (*DeleteSecurityGroupPolicyOutput, error)
- func (c *DFW) DeleteSecurityGroupPolicyRequest(input *DeleteSecurityGroupPolicyInput) (req *request.Request, output *DeleteSecurityGroupPolicyOutput)
- func (c *DFW) DeleteSecurityGroupPolicyWithContext(ctx sdf.Context, input *DeleteSecurityGroupPolicyInput, opts ...request.Option) (*DeleteSecurityGroupPolicyOutput, error)
- func (c *DFW) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput)
- func (c *DFW) DeleteSecurityGroupWithContext(ctx sdf.Context, input *DeleteSecurityGroupInput, opts ...request.Option) (*DeleteSecurityGroupOutput, error)
- func (c *DFW) DescribeSecurityGroupPolicys(input *DescribeSecurityGroupPolicysInput) (*DescribeSecurityGroupPolicysOutput, error)
- func (c *DFW) DescribeSecurityGroupPolicysRequest(input *DescribeSecurityGroupPolicysInput) (req *request.Request, output *DescribeSecurityGroupPolicysOutput)
- func (c *DFW) DescribeSecurityGroupPolicysWithContext(ctx sdf.Context, input *DescribeSecurityGroupPolicysInput, ...) (*DescribeSecurityGroupPolicysOutput, error)
- func (c *DFW) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error)
- func (c *DFW) DescribeSecurityGroupsPages(input *DescribeSecurityGroupsInput, ...) error
- func (c *DFW) DescribeSecurityGroupsPagesWithContext(ctx sdf.Context, input *DescribeSecurityGroupsInput, ...) error
- func (c *DFW) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput)
- func (c *DFW) DescribeSecurityGroupsWithContext(ctx sdf.Context, input *DescribeSecurityGroupsInput, opts ...request.Option) (*DescribeSecurityGroupsOutput, error)
- type DeleteSecurityGroupInput
- type DeleteSecurityGroupOutput
- type DeleteSecurityGroupPolicyInput
- func (s DeleteSecurityGroupPolicyInput) GoString() string
- func (s *DeleteSecurityGroupPolicyInput) SetDirection(v string) *DeleteSecurityGroupPolicyInput
- func (s *DeleteSecurityGroupPolicyInput) SetIndexes(v []*int64) *DeleteSecurityGroupPolicyInput
- func (s *DeleteSecurityGroupPolicyInput) SetSgId(v string) *DeleteSecurityGroupPolicyInput
- func (s *DeleteSecurityGroupPolicyInput) SetVersion(v int64) *DeleteSecurityGroupPolicyInput
- func (s DeleteSecurityGroupPolicyInput) String() string
- type DeleteSecurityGroupPolicyOutput
- func (s DeleteSecurityGroupPolicyOutput) GoString() string
- func (s *DeleteSecurityGroupPolicyOutput) SetCode(v int64) *DeleteSecurityGroupPolicyOutput
- func (s *DeleteSecurityGroupPolicyOutput) SetMessage(v string) *DeleteSecurityGroupPolicyOutput
- func (s DeleteSecurityGroupPolicyOutput) String() string
- type DescribeSecurityGroupData
- type DescribeSecurityGroupPolicyData
- func (s DescribeSecurityGroupPolicyData) GoString() string
- func (s *DescribeSecurityGroupPolicyData) SetEgress(v []*SecurityGroupPolicy) *DescribeSecurityGroupPolicyData
- func (s *DescribeSecurityGroupPolicyData) SetIngress(v []*SecurityGroupPolicy) *DescribeSecurityGroupPolicyData
- func (s DescribeSecurityGroupPolicyData) String() string
- type DescribeSecurityGroupPolicysInput
- type DescribeSecurityGroupPolicysOutput
- func (s DescribeSecurityGroupPolicysOutput) GoString() string
- func (s *DescribeSecurityGroupPolicysOutput) SetCode(v int64) *DescribeSecurityGroupPolicysOutput
- func (s *DescribeSecurityGroupPolicysOutput) SetCodeDesc(v string) *DescribeSecurityGroupPolicysOutput
- func (s *DescribeSecurityGroupPolicysOutput) SetData(v *DescribeSecurityGroupPolicyData) *DescribeSecurityGroupPolicysOutput
- func (s *DescribeSecurityGroupPolicysOutput) SetMessage(v string) *DescribeSecurityGroupPolicysOutput
- func (s DescribeSecurityGroupPolicysOutput) String() string
- type DescribeSecurityGroupsInput
- func (s DescribeSecurityGroupsInput) GoString() string
- func (s *DescribeSecurityGroupsInput) SetLimit(v int64) *DescribeSecurityGroupsInput
- func (s *DescribeSecurityGroupsInput) SetOffset(v int64) *DescribeSecurityGroupsInput
- func (s *DescribeSecurityGroupsInput) SetOffsetLine(v int64) *DescribeSecurityGroupsInput
- func (s *DescribeSecurityGroupsInput) SetProjectId(v int64) *DescribeSecurityGroupsInput
- func (s *DescribeSecurityGroupsInput) SetSgId(v string) *DescribeSecurityGroupsInput
- func (s *DescribeSecurityGroupsInput) SetSgName(v string) *DescribeSecurityGroupsInput
- func (s DescribeSecurityGroupsInput) String() string
- type DescribeSecurityGroupsOutput
- func (s DescribeSecurityGroupsOutput) GoString() string
- func (s *DescribeSecurityGroupsOutput) SetCode(v int64) *DescribeSecurityGroupsOutput
- func (s *DescribeSecurityGroupsOutput) SetCodeDesc(v string) *DescribeSecurityGroupsOutput
- func (s *DescribeSecurityGroupsOutput) SetData(v *DescribeSecurityGroupData) *DescribeSecurityGroupsOutput
- func (s *DescribeSecurityGroupsOutput) SetMessage(v string) *DescribeSecurityGroupsOutput
- func (s DescribeSecurityGroupsOutput) String() string
- type SecurityGroup
- func (s SecurityGroup) GoString() string
- func (s *SecurityGroup) SetBeAssociateCount(v int64) *SecurityGroup
- func (s *SecurityGroup) SetCreateTime(v string) *SecurityGroup
- func (s *SecurityGroup) SetSgId(v string) *SecurityGroup
- func (s *SecurityGroup) SetSgName(v string) *SecurityGroup
- func (s *SecurityGroup) SetSgRemark(v string) *SecurityGroup
- func (s *SecurityGroup) SetVersion(v int64) *SecurityGroup
- func (s SecurityGroup) String() string
- type SecurityGroupPolicy
- func (s SecurityGroupPolicy) GoString() string
- func (s *SecurityGroupPolicy) SetAction(v string) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetAddressModule(v string) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetCidrIp(v string) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetDesc(v string) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetIpProtocol(v string) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetKey(v int64) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetPortRange(v string) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetServiceModule(v string) *SecurityGroupPolicy
- func (s *SecurityGroupPolicy) SetSgId(v string) *SecurityGroupPolicy
- func (s SecurityGroupPolicy) String() string
Examples ¶
Constants ¶
const ( // RegionEnumApBeijing is a RegionEnum enum value RegionEnumApBeijing = "ap-beijing" // RegionEnumApChengdu is a RegionEnum enum value RegionEnumApChengdu = "ap-chengdu" // RegionEnumApGuangzhou is a RegionEnum enum value RegionEnumApGuangzhou = "ap-guangzhou" // RegionEnumApGuangzhouOpen is a RegionEnum enum value RegionEnumApGuangzhouOpen = "ap-guangzhou-open" // RegionEnumApHongkong is a RegionEnum enum value RegionEnumApHongkong = "ap-hongkong" // RegionEnumApShanghai is a RegionEnum enum value RegionEnumApShanghai = "ap-shanghai" // RegionEnumApSingapore is a RegionEnum enum value RegionEnumApSingapore = "ap-singapore" // RegionEnumEuFrankfurt is a RegionEnum enum value RegionEnumEuFrankfurt = "eu-frankfurt" // RegionEnumNaSiliconvalley is a RegionEnum enum value RegionEnumNaSiliconvalley = "na-siliconvalley" // RegionEnumNaToronto is a RegionEnum enum value RegionEnumNaToronto = "na-toronto" // RegionEnumApShanghaiFsi is a RegionEnum enum value RegionEnumApShanghaiFsi = "ap-shanghai-fsi" // RegionEnumApShenzhenFsi is a RegionEnum enum value RegionEnumApShenzhenFsi = "ap-shenzhen-fsi" )
const ( ServiceName = "dfw" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSecurityGroupInput ¶
type CreateSecurityGroupInput struct { ProjectId *int64 `locationName:"projectId" type:"integer"` SgName *string `locationName:"sgName" type:"string"` SgRemark *string `locationName:"sgRemark" type:"string"` // contains filtered or unexported fields }
func (CreateSecurityGroupInput) GoString ¶
func (s CreateSecurityGroupInput) GoString() string
GoString returns the string representation
func (*CreateSecurityGroupInput) SetProjectId ¶
func (s *CreateSecurityGroupInput) SetProjectId(v int64) *CreateSecurityGroupInput
SetProjectId sets the ProjectId field's value.
func (*CreateSecurityGroupInput) SetSgName ¶
func (s *CreateSecurityGroupInput) SetSgName(v string) *CreateSecurityGroupInput
SetSgName sets the SgName field's value.
func (*CreateSecurityGroupInput) SetSgRemark ¶
func (s *CreateSecurityGroupInput) SetSgRemark(v string) *CreateSecurityGroupInput
SetSgRemark sets the SgRemark field's value.
func (CreateSecurityGroupInput) String ¶
func (s CreateSecurityGroupInput) String() string
String returns the string representation
type CreateSecurityGroupOutput ¶
type CreateSecurityGroupOutput struct { Code *int64 `locationName:"codc" type:"integer"` CodeDesc *string `locationName:"codeDesc" type:"string"` Data *SecurityGroup `locationName:"data" type:"structure"` Message *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (CreateSecurityGroupOutput) GoString ¶
func (s CreateSecurityGroupOutput) GoString() string
GoString returns the string representation
func (*CreateSecurityGroupOutput) SetCode ¶
func (s *CreateSecurityGroupOutput) SetCode(v int64) *CreateSecurityGroupOutput
SetCode sets the Code field's value.
func (*CreateSecurityGroupOutput) SetCodeDesc ¶
func (s *CreateSecurityGroupOutput) SetCodeDesc(v string) *CreateSecurityGroupOutput
SetCodeDesc sets the CodeDesc field's value.
func (*CreateSecurityGroupOutput) SetData ¶
func (s *CreateSecurityGroupOutput) SetData(v *SecurityGroup) *CreateSecurityGroupOutput
SetData sets the Data field's value.
func (*CreateSecurityGroupOutput) SetMessage ¶
func (s *CreateSecurityGroupOutput) SetMessage(v string) *CreateSecurityGroupOutput
SetMessage sets the Message field's value.
func (CreateSecurityGroupOutput) String ¶
func (s CreateSecurityGroupOutput) String() string
String returns the string representation
type CreateSecurityGroupPolicyInput ¶
type CreateSecurityGroupPolicyInput struct { Direction *string `locationName:"direction" type:"string"` Index *int64 `locationName:"index" type:"integer"` Policys []*SecurityGroupPolicy `locationName:"policys" type:"list" flattened:"true"` SgId *string `locationName:"sgId" type:"string"` Version *int64 `locationName:"version" type:"integer"` // contains filtered or unexported fields }
func (CreateSecurityGroupPolicyInput) GoString ¶
func (s CreateSecurityGroupPolicyInput) GoString() string
GoString returns the string representation
func (*CreateSecurityGroupPolicyInput) SetDirection ¶
func (s *CreateSecurityGroupPolicyInput) SetDirection(v string) *CreateSecurityGroupPolicyInput
SetDirection sets the Direction field's value.
func (*CreateSecurityGroupPolicyInput) SetIndex ¶
func (s *CreateSecurityGroupPolicyInput) SetIndex(v int64) *CreateSecurityGroupPolicyInput
SetIndex sets the Index field's value.
func (*CreateSecurityGroupPolicyInput) SetPolicys ¶
func (s *CreateSecurityGroupPolicyInput) SetPolicys(v []*SecurityGroupPolicy) *CreateSecurityGroupPolicyInput
SetPolicys sets the Policys field's value.
func (*CreateSecurityGroupPolicyInput) SetSgId ¶
func (s *CreateSecurityGroupPolicyInput) SetSgId(v string) *CreateSecurityGroupPolicyInput
SetSgId sets the SgId field's value.
func (*CreateSecurityGroupPolicyInput) SetVersion ¶
func (s *CreateSecurityGroupPolicyInput) SetVersion(v int64) *CreateSecurityGroupPolicyInput
SetVersion sets the Version field's value.
func (CreateSecurityGroupPolicyInput) String ¶
func (s CreateSecurityGroupPolicyInput) String() string
String returns the string representation
type CreateSecurityGroupPolicyOutput ¶
type CreateSecurityGroupPolicyOutput struct { Code *int64 `locationName:"code" type:"integer"` CodeDesc *string `locationName:"codeDesc" type:"string"` Message *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (CreateSecurityGroupPolicyOutput) GoString ¶
func (s CreateSecurityGroupPolicyOutput) GoString() string
GoString returns the string representation
func (*CreateSecurityGroupPolicyOutput) SetCode ¶
func (s *CreateSecurityGroupPolicyOutput) SetCode(v int64) *CreateSecurityGroupPolicyOutput
SetCode sets the Code field's value.
func (*CreateSecurityGroupPolicyOutput) SetCodeDesc ¶
func (s *CreateSecurityGroupPolicyOutput) SetCodeDesc(v string) *CreateSecurityGroupPolicyOutput
SetCodeDesc sets the CodeDesc field's value.
func (*CreateSecurityGroupPolicyOutput) SetMessage ¶
func (s *CreateSecurityGroupPolicyOutput) SetMessage(v string) *CreateSecurityGroupPolicyOutput
SetMessage sets the Message field's value.
func (CreateSecurityGroupPolicyOutput) String ¶
func (s CreateSecurityGroupPolicyOutput) String() string
String returns the string representation
type DFW ¶
DFW provides the API operation methods for making requests to SecurityGroup. See this package's package overview docs for details on the service.
DFW methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*sdf.Config) *DFW
New creates a new instance of the DFW client with a session. If additional configuration is needed for the client instance use the optional sdf.Config parameter to add your extra config.
Example:
// Create a DFW client from just a session. svc := dfw.New(mySession) // Create a DFW client with additional configuration svc := dfw.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*DFW) CreateSecurityGroup ¶
func (c *DFW) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error)
CreateSecurityGroup API operation for SecurityGroup.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for SecurityGroup's API operation CreateSecurityGroup for usage and error information.
func (*DFW) CreateSecurityGroupPolicy ¶
func (c *DFW) CreateSecurityGroupPolicy(input *CreateSecurityGroupPolicyInput) (*CreateSecurityGroupPolicyOutput, error)
CreateSecurityGroupPolicy API operation for SecurityGroup.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for SecurityGroup's API operation CreateSecurityGroupPolicy for usage and error information.
func (*DFW) CreateSecurityGroupPolicyRequest ¶
func (c *DFW) CreateSecurityGroupPolicyRequest(input *CreateSecurityGroupPolicyInput) (req *request.Request, output *CreateSecurityGroupPolicyOutput)
CreateSecurityGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the CreateSecurityGroupPolicy operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateSecurityGroupPolicy for more information on using the CreateSecurityGroupPolicy API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateSecurityGroupPolicyRequest method. req, resp := client.CreateSecurityGroupPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*DFW) CreateSecurityGroupPolicyWithContext ¶
func (c *DFW) CreateSecurityGroupPolicyWithContext(ctx sdf.Context, input *CreateSecurityGroupPolicyInput, opts ...request.Option) (*CreateSecurityGroupPolicyOutput, error)
CreateSecurityGroupPolicyWithContext is the same as CreateSecurityGroupPolicy with the addition of the ability to pass a context and additional request options.
See CreateSecurityGroupPolicy for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*DFW) CreateSecurityGroupRequest ¶
func (c *DFW) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput)
CreateSecurityGroupRequest generates a "aws/request.Request" representing the client's request for the CreateSecurityGroup operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateSecurityGroup for more information on using the CreateSecurityGroup API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateSecurityGroupRequest method. req, resp := client.CreateSecurityGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*DFW) CreateSecurityGroupWithContext ¶
func (c *DFW) CreateSecurityGroupWithContext(ctx sdf.Context, input *CreateSecurityGroupInput, opts ...request.Option) (*CreateSecurityGroupOutput, error)
CreateSecurityGroupWithContext is the same as CreateSecurityGroup with the addition of the ability to pass a context and additional request options.
See CreateSecurityGroup for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*DFW) DeleteSecurityGroup ¶
func (c *DFW) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error)
DeleteSecurityGroup API operation for SecurityGroup.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for SecurityGroup's API operation DeleteSecurityGroup for usage and error information.
func (*DFW) DeleteSecurityGroupPolicy ¶
func (c *DFW) DeleteSecurityGroupPolicy(input *DeleteSecurityGroupPolicyInput) (*DeleteSecurityGroupPolicyOutput, error)
DeleteSecurityGroupPolicy API operation for SecurityGroup.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for SecurityGroup's API operation DeleteSecurityGroupPolicy for usage and error information.
func (*DFW) DeleteSecurityGroupPolicyRequest ¶
func (c *DFW) DeleteSecurityGroupPolicyRequest(input *DeleteSecurityGroupPolicyInput) (req *request.Request, output *DeleteSecurityGroupPolicyOutput)
DeleteSecurityGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteSecurityGroupPolicy operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteSecurityGroupPolicy for more information on using the DeleteSecurityGroupPolicy API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteSecurityGroupPolicyRequest method. req, resp := client.DeleteSecurityGroupPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*DFW) DeleteSecurityGroupPolicyWithContext ¶
func (c *DFW) DeleteSecurityGroupPolicyWithContext(ctx sdf.Context, input *DeleteSecurityGroupPolicyInput, opts ...request.Option) (*DeleteSecurityGroupPolicyOutput, error)
DeleteSecurityGroupPolicyWithContext is the same as DeleteSecurityGroupPolicy with the addition of the ability to pass a context and additional request options.
See DeleteSecurityGroupPolicy for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*DFW) DeleteSecurityGroupRequest ¶
func (c *DFW) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput)
DeleteSecurityGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteSecurityGroup operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteSecurityGroup for more information on using the DeleteSecurityGroup API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteSecurityGroupRequest method. req, resp := client.DeleteSecurityGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*DFW) DeleteSecurityGroupWithContext ¶
func (c *DFW) DeleteSecurityGroupWithContext(ctx sdf.Context, input *DeleteSecurityGroupInput, opts ...request.Option) (*DeleteSecurityGroupOutput, error)
DeleteSecurityGroupWithContext is the same as DeleteSecurityGroup with the addition of the ability to pass a context and additional request options.
See DeleteSecurityGroup for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*DFW) DescribeSecurityGroupPolicys ¶
func (c *DFW) DescribeSecurityGroupPolicys(input *DescribeSecurityGroupPolicysInput) (*DescribeSecurityGroupPolicysOutput, error)
DescribeSecurityGroupPolicys API operation for SecurityGroup.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for SecurityGroup's API operation DescribeSecurityGroupPolicys for usage and error information.
func (*DFW) DescribeSecurityGroupPolicysRequest ¶
func (c *DFW) DescribeSecurityGroupPolicysRequest(input *DescribeSecurityGroupPolicysInput) (req *request.Request, output *DescribeSecurityGroupPolicysOutput)
DescribeSecurityGroupPolicysRequest generates a "aws/request.Request" representing the client's request for the DescribeSecurityGroupPolicys operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeSecurityGroupPolicys for more information on using the DescribeSecurityGroupPolicys API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeSecurityGroupPolicysRequest method. req, resp := client.DescribeSecurityGroupPolicysRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*DFW) DescribeSecurityGroupPolicysWithContext ¶
func (c *DFW) DescribeSecurityGroupPolicysWithContext(ctx sdf.Context, input *DescribeSecurityGroupPolicysInput, opts ...request.Option) (*DescribeSecurityGroupPolicysOutput, error)
DescribeSecurityGroupPolicysWithContext is the same as DescribeSecurityGroupPolicys with the addition of the ability to pass a context and additional request options.
See DescribeSecurityGroupPolicys for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*DFW) DescribeSecurityGroups ¶
func (c *DFW) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error)
DescribeSecurityGroups API operation for SecurityGroup.
本接口 (DescribeSecurityGroup) )用于根据多种索引查询一个或多个安全组的基本信息。
接口请求域名:dfw.api.qcloud.com
- 可以根据实例ID、实例名称或者实例计费模式等信息来查询实例的详细信息。过滤信息详细请见过滤器Filter。
- 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for SecurityGroup's API operation DescribeSecurityGroups for usage and error information.
func (*DFW) DescribeSecurityGroupsPages ¶
func (c *DFW) DescribeSecurityGroupsPages(input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool) error
DescribeSecurityGroupsPages iterates over the pages of a DescribeSecurityGroups operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See DescribeSecurityGroups method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a DescribeSecurityGroups operation. pageNum := 0 err := client.DescribeSecurityGroupsPages(params, func(page *DescribeSecurityGroupsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*DFW) DescribeSecurityGroupsPagesWithContext ¶
func (c *DFW) DescribeSecurityGroupsPagesWithContext(ctx sdf.Context, input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool, opts ...request.Option) error
DescribeSecurityGroupsPagesWithContext same as DescribeSecurityGroupsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*DFW) DescribeSecurityGroupsRequest ¶
func (c *DFW) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput)
DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeSecurityGroups operation. The "output" return value will be populated with the request's response once the request completes successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeSecurityGroups for more information on using the DescribeSecurityGroups API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeSecurityGroupsRequest method. req, resp := client.DescribeSecurityGroupsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*DFW) DescribeSecurityGroupsWithContext ¶
func (c *DFW) DescribeSecurityGroupsWithContext(ctx sdf.Context, input *DescribeSecurityGroupsInput, opts ...request.Option) (*DescribeSecurityGroupsOutput, error)
DescribeSecurityGroupsWithContext is the same as DescribeSecurityGroups with the addition of the ability to pass a context and additional request options.
See DescribeSecurityGroups for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type DeleteSecurityGroupInput ¶
type DeleteSecurityGroupInput struct { Region *string `locationName:"Region" type:"string" enum:"RegionEnum"` SgId *string `locationName:"sgId" type:"string"` // contains filtered or unexported fields }
func (DeleteSecurityGroupInput) GoString ¶
func (s DeleteSecurityGroupInput) GoString() string
GoString returns the string representation
func (*DeleteSecurityGroupInput) SetRegion ¶
func (s *DeleteSecurityGroupInput) SetRegion(v string) *DeleteSecurityGroupInput
SetRegion sets the Region field's value.
func (*DeleteSecurityGroupInput) SetSgId ¶
func (s *DeleteSecurityGroupInput) SetSgId(v string) *DeleteSecurityGroupInput
SetSgId sets the SgId field's value.
func (DeleteSecurityGroupInput) String ¶
func (s DeleteSecurityGroupInput) String() string
String returns the string representation
type DeleteSecurityGroupOutput ¶
type DeleteSecurityGroupOutput struct { Code *int64 `locationName:"code" type:"integer"` Message *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (DeleteSecurityGroupOutput) GoString ¶
func (s DeleteSecurityGroupOutput) GoString() string
GoString returns the string representation
func (*DeleteSecurityGroupOutput) SetCode ¶
func (s *DeleteSecurityGroupOutput) SetCode(v int64) *DeleteSecurityGroupOutput
SetCode sets the Code field's value.
func (*DeleteSecurityGroupOutput) SetMessage ¶
func (s *DeleteSecurityGroupOutput) SetMessage(v string) *DeleteSecurityGroupOutput
SetMessage sets the Message field's value.
func (DeleteSecurityGroupOutput) String ¶
func (s DeleteSecurityGroupOutput) String() string
String returns the string representation
type DeleteSecurityGroupPolicyInput ¶
type DeleteSecurityGroupPolicyInput struct { Direction *string `locationName:"direction" type:"string"` Indexes []*int64 `locationName:"indexes" type:"list"` SgId *string `locationName:"sgId" type:"string"` Version *int64 `locationName:"version" type:"integer"` // contains filtered or unexported fields }
func (DeleteSecurityGroupPolicyInput) GoString ¶
func (s DeleteSecurityGroupPolicyInput) GoString() string
GoString returns the string representation
func (*DeleteSecurityGroupPolicyInput) SetDirection ¶
func (s *DeleteSecurityGroupPolicyInput) SetDirection(v string) *DeleteSecurityGroupPolicyInput
SetDirection sets the Direction field's value.
func (*DeleteSecurityGroupPolicyInput) SetIndexes ¶
func (s *DeleteSecurityGroupPolicyInput) SetIndexes(v []*int64) *DeleteSecurityGroupPolicyInput
SetIndexes sets the Indexes field's value.
func (*DeleteSecurityGroupPolicyInput) SetSgId ¶
func (s *DeleteSecurityGroupPolicyInput) SetSgId(v string) *DeleteSecurityGroupPolicyInput
SetSgId sets the SgId field's value.
func (*DeleteSecurityGroupPolicyInput) SetVersion ¶
func (s *DeleteSecurityGroupPolicyInput) SetVersion(v int64) *DeleteSecurityGroupPolicyInput
SetVersion sets the Version field's value.
func (DeleteSecurityGroupPolicyInput) String ¶
func (s DeleteSecurityGroupPolicyInput) String() string
String returns the string representation
type DeleteSecurityGroupPolicyOutput ¶
type DeleteSecurityGroupPolicyOutput struct { Code *int64 `locationName:"code" type:"integer"` Message *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (DeleteSecurityGroupPolicyOutput) GoString ¶
func (s DeleteSecurityGroupPolicyOutput) GoString() string
GoString returns the string representation
func (*DeleteSecurityGroupPolicyOutput) SetCode ¶
func (s *DeleteSecurityGroupPolicyOutput) SetCode(v int64) *DeleteSecurityGroupPolicyOutput
SetCode sets the Code field's value.
func (*DeleteSecurityGroupPolicyOutput) SetMessage ¶
func (s *DeleteSecurityGroupPolicyOutput) SetMessage(v string) *DeleteSecurityGroupPolicyOutput
SetMessage sets the Message field's value.
func (DeleteSecurityGroupPolicyOutput) String ¶
func (s DeleteSecurityGroupPolicyOutput) String() string
String returns the string representation
type DescribeSecurityGroupData ¶
type DescribeSecurityGroupData struct { Detail []*SecurityGroup `locationName:"detail" type:"list"` TotalNum *int64 `locationName:"totalNum" type:"integer"` // contains filtered or unexported fields }
func (DescribeSecurityGroupData) GoString ¶
func (s DescribeSecurityGroupData) GoString() string
GoString returns the string representation
func (*DescribeSecurityGroupData) SetDetail ¶
func (s *DescribeSecurityGroupData) SetDetail(v []*SecurityGroup) *DescribeSecurityGroupData
SetDetail sets the Detail field's value.
func (*DescribeSecurityGroupData) SetTotalNum ¶
func (s *DescribeSecurityGroupData) SetTotalNum(v int64) *DescribeSecurityGroupData
SetTotalNum sets the TotalNum field's value.
func (DescribeSecurityGroupData) String ¶
func (s DescribeSecurityGroupData) String() string
String returns the string representation
type DescribeSecurityGroupPolicyData ¶
type DescribeSecurityGroupPolicyData struct { Egress []*SecurityGroupPolicy `locationName:"egress" type:"list" flattened:"true"` Ingress []*SecurityGroupPolicy `locationName:"ingress" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (DescribeSecurityGroupPolicyData) GoString ¶
func (s DescribeSecurityGroupPolicyData) GoString() string
GoString returns the string representation
func (*DescribeSecurityGroupPolicyData) SetEgress ¶
func (s *DescribeSecurityGroupPolicyData) SetEgress(v []*SecurityGroupPolicy) *DescribeSecurityGroupPolicyData
SetEgress sets the Egress field's value.
func (*DescribeSecurityGroupPolicyData) SetIngress ¶
func (s *DescribeSecurityGroupPolicyData) SetIngress(v []*SecurityGroupPolicy) *DescribeSecurityGroupPolicyData
SetIngress sets the Ingress field's value.
func (DescribeSecurityGroupPolicyData) String ¶
func (s DescribeSecurityGroupPolicyData) String() string
String returns the string representation
type DescribeSecurityGroupPolicysInput ¶
type DescribeSecurityGroupPolicysInput struct { SgId *string `locationName:"sgId" type:"string"` // contains filtered or unexported fields }
func (DescribeSecurityGroupPolicysInput) GoString ¶
func (s DescribeSecurityGroupPolicysInput) GoString() string
GoString returns the string representation
func (*DescribeSecurityGroupPolicysInput) SetSgId ¶
func (s *DescribeSecurityGroupPolicysInput) SetSgId(v string) *DescribeSecurityGroupPolicysInput
SetSgId sets the SgId field's value.
func (DescribeSecurityGroupPolicysInput) String ¶
func (s DescribeSecurityGroupPolicysInput) String() string
String returns the string representation
type DescribeSecurityGroupPolicysOutput ¶
type DescribeSecurityGroupPolicysOutput struct { Code *int64 `locationName:"code" type:"integer"` CodeDesc *string `locationName:"codeDesc" type:"string"` Data *DescribeSecurityGroupPolicyData `locationName:"data" type:"structure"` Message *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (DescribeSecurityGroupPolicysOutput) GoString ¶
func (s DescribeSecurityGroupPolicysOutput) GoString() string
GoString returns the string representation
func (*DescribeSecurityGroupPolicysOutput) SetCode ¶
func (s *DescribeSecurityGroupPolicysOutput) SetCode(v int64) *DescribeSecurityGroupPolicysOutput
SetCode sets the Code field's value.
func (*DescribeSecurityGroupPolicysOutput) SetCodeDesc ¶
func (s *DescribeSecurityGroupPolicysOutput) SetCodeDesc(v string) *DescribeSecurityGroupPolicysOutput
SetCodeDesc sets the CodeDesc field's value.
func (*DescribeSecurityGroupPolicysOutput) SetData ¶
func (s *DescribeSecurityGroupPolicysOutput) SetData(v *DescribeSecurityGroupPolicyData) *DescribeSecurityGroupPolicysOutput
SetData sets the Data field's value.
func (*DescribeSecurityGroupPolicysOutput) SetMessage ¶
func (s *DescribeSecurityGroupPolicysOutput) SetMessage(v string) *DescribeSecurityGroupPolicysOutput
SetMessage sets the Message field's value.
func (DescribeSecurityGroupPolicysOutput) String ¶
func (s DescribeSecurityGroupPolicysOutput) String() string
String returns the string representation
type DescribeSecurityGroupsInput ¶
type DescribeSecurityGroupsInput struct { Limit *int64 `locationName:"Limit," type:"integer"` Offset *int64 `locationName:"Offset," type:"integer"` OffsetLine *int64 `locationName:"OffsetLine," type:"integer"` ProjectId *int64 `locationName:"ProjectId" type:"integer"` SgId *string `locationName:"SgId" type:"string"` SgName *string `locationName:"SgName" type:"string"` // contains filtered or unexported fields }
func (DescribeSecurityGroupsInput) GoString ¶
func (s DescribeSecurityGroupsInput) GoString() string
GoString returns the string representation
func (*DescribeSecurityGroupsInput) SetLimit ¶
func (s *DescribeSecurityGroupsInput) SetLimit(v int64) *DescribeSecurityGroupsInput
SetLimit sets the Limit field's value.
func (*DescribeSecurityGroupsInput) SetOffset ¶
func (s *DescribeSecurityGroupsInput) SetOffset(v int64) *DescribeSecurityGroupsInput
SetOffset sets the Offset field's value.
func (*DescribeSecurityGroupsInput) SetOffsetLine ¶
func (s *DescribeSecurityGroupsInput) SetOffsetLine(v int64) *DescribeSecurityGroupsInput
SetOffsetLine sets the OffsetLine field's value.
func (*DescribeSecurityGroupsInput) SetProjectId ¶
func (s *DescribeSecurityGroupsInput) SetProjectId(v int64) *DescribeSecurityGroupsInput
SetProjectId sets the ProjectId field's value.
func (*DescribeSecurityGroupsInput) SetSgId ¶
func (s *DescribeSecurityGroupsInput) SetSgId(v string) *DescribeSecurityGroupsInput
SetSgId sets the SgId field's value.
func (*DescribeSecurityGroupsInput) SetSgName ¶
func (s *DescribeSecurityGroupsInput) SetSgName(v string) *DescribeSecurityGroupsInput
SetSgName sets the SgName field's value.
func (DescribeSecurityGroupsInput) String ¶
func (s DescribeSecurityGroupsInput) String() string
String returns the string representation
type DescribeSecurityGroupsOutput ¶
type DescribeSecurityGroupsOutput struct { Code *int64 `locationName:"code" type:"integer"` CodeDesc *string `locationName:"codeDesc" type:"string"` Data *DescribeSecurityGroupData `locationName:"data" type:"structure"` Message *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
func (DescribeSecurityGroupsOutput) GoString ¶
func (s DescribeSecurityGroupsOutput) GoString() string
GoString returns the string representation
func (*DescribeSecurityGroupsOutput) SetCode ¶
func (s *DescribeSecurityGroupsOutput) SetCode(v int64) *DescribeSecurityGroupsOutput
SetCode sets the Code field's value.
func (*DescribeSecurityGroupsOutput) SetCodeDesc ¶
func (s *DescribeSecurityGroupsOutput) SetCodeDesc(v string) *DescribeSecurityGroupsOutput
SetCodeDesc sets the CodeDesc field's value.
func (*DescribeSecurityGroupsOutput) SetData ¶
func (s *DescribeSecurityGroupsOutput) SetData(v *DescribeSecurityGroupData) *DescribeSecurityGroupsOutput
SetData sets the Data field's value.
func (*DescribeSecurityGroupsOutput) SetMessage ¶
func (s *DescribeSecurityGroupsOutput) SetMessage(v string) *DescribeSecurityGroupsOutput
SetMessage sets the Message field's value.
func (DescribeSecurityGroupsOutput) String ¶
func (s DescribeSecurityGroupsOutput) String() string
String returns the string representation
type SecurityGroup ¶
type SecurityGroup struct { BeAssociateCount *int64 `locationName:"beAssociateCount" type:"integer"` CreateTime *string `locationName:"createTime" type:"string"` SgId *string `locationName:"sgId" type:"string"` SgName *string `locationName:"sgName" type:"string"` SgRemark *string `locationName:"sgRemark" type:"string"` Version *int64 `locationName:"version" type:"integer"` // contains filtered or unexported fields }
func (SecurityGroup) GoString ¶
func (s SecurityGroup) GoString() string
GoString returns the string representation
func (*SecurityGroup) SetBeAssociateCount ¶
func (s *SecurityGroup) SetBeAssociateCount(v int64) *SecurityGroup
SetBeAssociateCount sets the BeAssociateCount field's value.
func (*SecurityGroup) SetCreateTime ¶
func (s *SecurityGroup) SetCreateTime(v string) *SecurityGroup
SetCreateTime sets the CreateTime field's value.
func (*SecurityGroup) SetSgId ¶
func (s *SecurityGroup) SetSgId(v string) *SecurityGroup
SetSgId sets the SgId field's value.
func (*SecurityGroup) SetSgName ¶
func (s *SecurityGroup) SetSgName(v string) *SecurityGroup
SetSgName sets the SgName field's value.
func (*SecurityGroup) SetSgRemark ¶
func (s *SecurityGroup) SetSgRemark(v string) *SecurityGroup
SetSgRemark sets the SgRemark field's value.
func (*SecurityGroup) SetVersion ¶
func (s *SecurityGroup) SetVersion(v int64) *SecurityGroup
SetVersion sets the Version field's value.
func (SecurityGroup) String ¶
func (s SecurityGroup) String() string
String returns the string representation
type SecurityGroupPolicy ¶
type SecurityGroupPolicy struct { Action *string `locationName:"action" type:"string"` AddressModule *string `locationName:"addressModule" type:"string"` CidrIp *string `locationName:"cidrIp" type:"string"` Desc *string `locationName:"desc" type:"string"` IpProtocol *string `locationName:"ipProtocol" type:"string"` Key *int64 `locationName:"key" type:"integer"` PortRange *string `locationName:"portRange" type:"string"` ServiceModule *string `locationName:"serviceModule" type:"string"` SgId *string `locationName:"sgId" type:"string"` // contains filtered or unexported fields }
func (SecurityGroupPolicy) GoString ¶
func (s SecurityGroupPolicy) GoString() string
GoString returns the string representation
func (*SecurityGroupPolicy) SetAction ¶
func (s *SecurityGroupPolicy) SetAction(v string) *SecurityGroupPolicy
SetAction sets the Action field's value.
func (*SecurityGroupPolicy) SetAddressModule ¶
func (s *SecurityGroupPolicy) SetAddressModule(v string) *SecurityGroupPolicy
SetAddressModule sets the AddressModule field's value.
func (*SecurityGroupPolicy) SetCidrIp ¶
func (s *SecurityGroupPolicy) SetCidrIp(v string) *SecurityGroupPolicy
SetCidrIp sets the CidrIp field's value.
func (*SecurityGroupPolicy) SetDesc ¶
func (s *SecurityGroupPolicy) SetDesc(v string) *SecurityGroupPolicy
SetDesc sets the Desc field's value.
func (*SecurityGroupPolicy) SetIpProtocol ¶
func (s *SecurityGroupPolicy) SetIpProtocol(v string) *SecurityGroupPolicy
SetIpProtocol sets the IpProtocol field's value.
func (*SecurityGroupPolicy) SetKey ¶
func (s *SecurityGroupPolicy) SetKey(v int64) *SecurityGroupPolicy
SetKey sets the Key field's value.
func (*SecurityGroupPolicy) SetPortRange ¶
func (s *SecurityGroupPolicy) SetPortRange(v string) *SecurityGroupPolicy
SetPortRange sets the PortRange field's value.
func (*SecurityGroupPolicy) SetServiceModule ¶
func (s *SecurityGroupPolicy) SetServiceModule(v string) *SecurityGroupPolicy
SetServiceModule sets the ServiceModule field's value.
func (*SecurityGroupPolicy) SetSgId ¶
func (s *SecurityGroupPolicy) SetSgId(v string) *SecurityGroupPolicy
SetSgId sets the SgId field's value.
func (SecurityGroupPolicy) String ¶
func (s SecurityGroupPolicy) String() string
String returns the string representation