Struct: kms.GrantListEntry

import "../ibm-cos-sdk-go/service/kms"

Overview

Contains information about a grant.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Constraints *GrantConstraints `type:"structure"`

A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

CreationDate *time.Time `type:"timestamp"`

The date and time when the grant was created.

GrantId *string `min:"1" type:"string"`

The unique identifier for the grant.

GranteePrincipal *string `min:"1" type:"string"`

The identity that gets the permissions in the grant.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal (docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services), which might represent several different grantee principals.

IssuingAccount *string `min:"1" type:"string"`

The Amazon Web Services account under which the grant was issued.

KeyId *string `min:"1" type:"string"`

The unique identifier for the KMS key to which the grant applies.

Name *string `min:"1" type:"string"`

The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.

Operations []*string `type:"list" enum:"GrantOperation"`

The list of operations permitted by the grant.

RetiringPrincipal *string `min:"1" type:"string"`

The principal that can retire the grant.

_ struct{} `type:"structure"`

Method Details

func (s GrantListEntry) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



12993
12994
12995
// File 'service/kms/api.go', line 12993

func (s GrantListEntry) GoString() string { return s.String() }

func (s *GrantListEntry) SetConstraints(v *GrantConstraints) *GrantListEntry

SetConstraints sets the Constraints field's value.



12998
12999
13000
13001
// File 'service/kms/api.go', line 12998

func (s *GrantListEntry) SetConstraints(v *GrantConstraints) *GrantListEntry { s.Constraints = v return s }

func (s *GrantListEntry) SetCreationDate(v time.Time) *GrantListEntry

SetCreationDate sets the CreationDate field's value.



13004
13005
13006
13007
// File 'service/kms/api.go', line 13004

func (s *GrantListEntry) SetCreationDate(v time.Time) *GrantListEntry { s.CreationDate = &v return s }

func (s *GrantListEntry) SetGranteePrincipal(v string) *GrantListEntry

SetGranteePrincipal sets the GranteePrincipal field's value.



13016
13017
13018
13019
// File 'service/kms/api.go', line 13016

func (s *GrantListEntry) SetGranteePrincipal(v string) *GrantListEntry { s.GranteePrincipal = &v return s }

func (s *GrantListEntry) SetGrantId(v string) *GrantListEntry

SetGrantId sets the GrantId field's value.



13010
13011
13012
13013
// File 'service/kms/api.go', line 13010

func (s *GrantListEntry) SetGrantId(v string) *GrantListEntry { s.GrantId = &v return s }

func (s *GrantListEntry) SetIssuingAccount(v string) *GrantListEntry

SetIssuingAccount sets the IssuingAccount field's value.



13022
13023
13024
13025
// File 'service/kms/api.go', line 13022

func (s *GrantListEntry) SetIssuingAccount(v string) *GrantListEntry { s.IssuingAccount = &v return s }

func (s *GrantListEntry) SetKeyId(v string) *GrantListEntry

SetKeyId sets the KeyId field's value.



13028
13029
13030
13031
// File 'service/kms/api.go', line 13028

func (s *GrantListEntry) SetKeyId(v string) *GrantListEntry { s.KeyId = &v return s }

func (s *GrantListEntry) SetName(v string) *GrantListEntry

SetName sets the Name field's value.



13034
13035
13036
13037
// File 'service/kms/api.go', line 13034

func (s *GrantListEntry) SetName(v string) *GrantListEntry { s.Name = &v return s }

func (s *GrantListEntry) SetOperations(v []*string) *GrantListEntry

SetOperations sets the Operations field's value.



13040
13041
13042
13043
// File 'service/kms/api.go', line 13040

func (s *GrantListEntry) SetOperations(v []*string) *GrantListEntry { s.Operations = v return s }

func (s *GrantListEntry) SetRetiringPrincipal(v string) *GrantListEntry

SetRetiringPrincipal sets the RetiringPrincipal field's value.



13046
13047
13048
13049
// File 'service/kms/api.go', line 13046

func (s *GrantListEntry) SetRetiringPrincipal(v string) *GrantListEntry { s.RetiringPrincipal = &v return s }

func (s GrantListEntry) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



12984
12985
12986
// File 'service/kms/api.go', line 12984

func (s GrantListEntry) String() string { return awsutil.Prettify(s) }