Documentation ¶
Index ¶
- type TagBinding
- func (*TagBinding) ElementType() reflect.Type
- func (i *TagBinding) ToTagBindingOutput() TagBindingOutput
- func (i *TagBinding) ToTagBindingOutputWithContext(ctx context.Context) TagBindingOutput
- func (i *TagBinding) ToTagBindingPtrOutput() TagBindingPtrOutput
- func (i *TagBinding) ToTagBindingPtrOutputWithContext(ctx context.Context) TagBindingPtrOutput
- type TagBindingArgs
- type TagBindingArray
- type TagBindingArrayInput
- type TagBindingArrayOutput
- func (TagBindingArrayOutput) ElementType() reflect.Type
- func (o TagBindingArrayOutput) Index(i pulumi.IntInput) TagBindingOutput
- func (o TagBindingArrayOutput) ToTagBindingArrayOutput() TagBindingArrayOutput
- func (o TagBindingArrayOutput) ToTagBindingArrayOutputWithContext(ctx context.Context) TagBindingArrayOutput
- type TagBindingInput
- type TagBindingMap
- type TagBindingMapInput
- type TagBindingMapOutput
- func (TagBindingMapOutput) ElementType() reflect.Type
- func (o TagBindingMapOutput) MapIndex(k pulumi.StringInput) TagBindingOutput
- func (o TagBindingMapOutput) ToTagBindingMapOutput() TagBindingMapOutput
- func (o TagBindingMapOutput) ToTagBindingMapOutputWithContext(ctx context.Context) TagBindingMapOutput
- type TagBindingOutput
- func (TagBindingOutput) ElementType() reflect.Type
- func (o TagBindingOutput) ToTagBindingOutput() TagBindingOutput
- func (o TagBindingOutput) ToTagBindingOutputWithContext(ctx context.Context) TagBindingOutput
- func (o TagBindingOutput) ToTagBindingPtrOutput() TagBindingPtrOutput
- func (o TagBindingOutput) ToTagBindingPtrOutputWithContext(ctx context.Context) TagBindingPtrOutput
- type TagBindingPtrInput
- type TagBindingPtrOutput
- type TagBindingState
- type TagKey
- func (*TagKey) ElementType() reflect.Type
- func (i *TagKey) ToTagKeyOutput() TagKeyOutput
- func (i *TagKey) ToTagKeyOutputWithContext(ctx context.Context) TagKeyOutput
- func (i *TagKey) ToTagKeyPtrOutput() TagKeyPtrOutput
- func (i *TagKey) ToTagKeyPtrOutputWithContext(ctx context.Context) TagKeyPtrOutput
- type TagKeyArgs
- type TagKeyArray
- type TagKeyArrayInput
- type TagKeyArrayOutput
- type TagKeyIamBinding
- func (*TagKeyIamBinding) ElementType() reflect.Type
- func (i *TagKeyIamBinding) ToTagKeyIamBindingOutput() TagKeyIamBindingOutput
- func (i *TagKeyIamBinding) ToTagKeyIamBindingOutputWithContext(ctx context.Context) TagKeyIamBindingOutput
- func (i *TagKeyIamBinding) ToTagKeyIamBindingPtrOutput() TagKeyIamBindingPtrOutput
- func (i *TagKeyIamBinding) ToTagKeyIamBindingPtrOutputWithContext(ctx context.Context) TagKeyIamBindingPtrOutput
- type TagKeyIamBindingArgs
- type TagKeyIamBindingArray
- type TagKeyIamBindingArrayInput
- type TagKeyIamBindingArrayOutput
- func (TagKeyIamBindingArrayOutput) ElementType() reflect.Type
- func (o TagKeyIamBindingArrayOutput) Index(i pulumi.IntInput) TagKeyIamBindingOutput
- func (o TagKeyIamBindingArrayOutput) ToTagKeyIamBindingArrayOutput() TagKeyIamBindingArrayOutput
- func (o TagKeyIamBindingArrayOutput) ToTagKeyIamBindingArrayOutputWithContext(ctx context.Context) TagKeyIamBindingArrayOutput
- type TagKeyIamBindingCondition
- type TagKeyIamBindingConditionArgs
- func (TagKeyIamBindingConditionArgs) ElementType() reflect.Type
- func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionOutput() TagKeyIamBindingConditionOutput
- func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionOutputWithContext(ctx context.Context) TagKeyIamBindingConditionOutput
- func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionPtrOutput() TagKeyIamBindingConditionPtrOutput
- func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionPtrOutputWithContext(ctx context.Context) TagKeyIamBindingConditionPtrOutput
- type TagKeyIamBindingConditionInput
- type TagKeyIamBindingConditionOutput
- func (o TagKeyIamBindingConditionOutput) Description() pulumi.StringPtrOutput
- func (TagKeyIamBindingConditionOutput) ElementType() reflect.Type
- func (o TagKeyIamBindingConditionOutput) Expression() pulumi.StringOutput
- func (o TagKeyIamBindingConditionOutput) Title() pulumi.StringOutput
- func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionOutput() TagKeyIamBindingConditionOutput
- func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionOutputWithContext(ctx context.Context) TagKeyIamBindingConditionOutput
- func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionPtrOutput() TagKeyIamBindingConditionPtrOutput
- func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionPtrOutputWithContext(ctx context.Context) TagKeyIamBindingConditionPtrOutput
- type TagKeyIamBindingConditionPtrInput
- type TagKeyIamBindingConditionPtrOutput
- func (o TagKeyIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o TagKeyIamBindingConditionPtrOutput) Elem() TagKeyIamBindingConditionOutput
- func (TagKeyIamBindingConditionPtrOutput) ElementType() reflect.Type
- func (o TagKeyIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o TagKeyIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o TagKeyIamBindingConditionPtrOutput) ToTagKeyIamBindingConditionPtrOutput() TagKeyIamBindingConditionPtrOutput
- func (o TagKeyIamBindingConditionPtrOutput) ToTagKeyIamBindingConditionPtrOutputWithContext(ctx context.Context) TagKeyIamBindingConditionPtrOutput
- type TagKeyIamBindingInput
- type TagKeyIamBindingMap
- type TagKeyIamBindingMapInput
- type TagKeyIamBindingMapOutput
- func (TagKeyIamBindingMapOutput) ElementType() reflect.Type
- func (o TagKeyIamBindingMapOutput) MapIndex(k pulumi.StringInput) TagKeyIamBindingOutput
- func (o TagKeyIamBindingMapOutput) ToTagKeyIamBindingMapOutput() TagKeyIamBindingMapOutput
- func (o TagKeyIamBindingMapOutput) ToTagKeyIamBindingMapOutputWithContext(ctx context.Context) TagKeyIamBindingMapOutput
- type TagKeyIamBindingOutput
- func (TagKeyIamBindingOutput) ElementType() reflect.Type
- func (o TagKeyIamBindingOutput) ToTagKeyIamBindingOutput() TagKeyIamBindingOutput
- func (o TagKeyIamBindingOutput) ToTagKeyIamBindingOutputWithContext(ctx context.Context) TagKeyIamBindingOutput
- func (o TagKeyIamBindingOutput) ToTagKeyIamBindingPtrOutput() TagKeyIamBindingPtrOutput
- func (o TagKeyIamBindingOutput) ToTagKeyIamBindingPtrOutputWithContext(ctx context.Context) TagKeyIamBindingPtrOutput
- type TagKeyIamBindingPtrInput
- type TagKeyIamBindingPtrOutput
- func (o TagKeyIamBindingPtrOutput) Elem() TagKeyIamBindingOutput
- func (TagKeyIamBindingPtrOutput) ElementType() reflect.Type
- func (o TagKeyIamBindingPtrOutput) ToTagKeyIamBindingPtrOutput() TagKeyIamBindingPtrOutput
- func (o TagKeyIamBindingPtrOutput) ToTagKeyIamBindingPtrOutputWithContext(ctx context.Context) TagKeyIamBindingPtrOutput
- type TagKeyIamBindingState
- type TagKeyIamMember
- func (*TagKeyIamMember) ElementType() reflect.Type
- func (i *TagKeyIamMember) ToTagKeyIamMemberOutput() TagKeyIamMemberOutput
- func (i *TagKeyIamMember) ToTagKeyIamMemberOutputWithContext(ctx context.Context) TagKeyIamMemberOutput
- func (i *TagKeyIamMember) ToTagKeyIamMemberPtrOutput() TagKeyIamMemberPtrOutput
- func (i *TagKeyIamMember) ToTagKeyIamMemberPtrOutputWithContext(ctx context.Context) TagKeyIamMemberPtrOutput
- type TagKeyIamMemberArgs
- type TagKeyIamMemberArray
- type TagKeyIamMemberArrayInput
- type TagKeyIamMemberArrayOutput
- func (TagKeyIamMemberArrayOutput) ElementType() reflect.Type
- func (o TagKeyIamMemberArrayOutput) Index(i pulumi.IntInput) TagKeyIamMemberOutput
- func (o TagKeyIamMemberArrayOutput) ToTagKeyIamMemberArrayOutput() TagKeyIamMemberArrayOutput
- func (o TagKeyIamMemberArrayOutput) ToTagKeyIamMemberArrayOutputWithContext(ctx context.Context) TagKeyIamMemberArrayOutput
- type TagKeyIamMemberCondition
- type TagKeyIamMemberConditionArgs
- func (TagKeyIamMemberConditionArgs) ElementType() reflect.Type
- func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionOutput() TagKeyIamMemberConditionOutput
- func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionOutputWithContext(ctx context.Context) TagKeyIamMemberConditionOutput
- func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionPtrOutput() TagKeyIamMemberConditionPtrOutput
- func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionPtrOutputWithContext(ctx context.Context) TagKeyIamMemberConditionPtrOutput
- type TagKeyIamMemberConditionInput
- type TagKeyIamMemberConditionOutput
- func (o TagKeyIamMemberConditionOutput) Description() pulumi.StringPtrOutput
- func (TagKeyIamMemberConditionOutput) ElementType() reflect.Type
- func (o TagKeyIamMemberConditionOutput) Expression() pulumi.StringOutput
- func (o TagKeyIamMemberConditionOutput) Title() pulumi.StringOutput
- func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionOutput() TagKeyIamMemberConditionOutput
- func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionOutputWithContext(ctx context.Context) TagKeyIamMemberConditionOutput
- func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionPtrOutput() TagKeyIamMemberConditionPtrOutput
- func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionPtrOutputWithContext(ctx context.Context) TagKeyIamMemberConditionPtrOutput
- type TagKeyIamMemberConditionPtrInput
- type TagKeyIamMemberConditionPtrOutput
- func (o TagKeyIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o TagKeyIamMemberConditionPtrOutput) Elem() TagKeyIamMemberConditionOutput
- func (TagKeyIamMemberConditionPtrOutput) ElementType() reflect.Type
- func (o TagKeyIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o TagKeyIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o TagKeyIamMemberConditionPtrOutput) ToTagKeyIamMemberConditionPtrOutput() TagKeyIamMemberConditionPtrOutput
- func (o TagKeyIamMemberConditionPtrOutput) ToTagKeyIamMemberConditionPtrOutputWithContext(ctx context.Context) TagKeyIamMemberConditionPtrOutput
- type TagKeyIamMemberInput
- type TagKeyIamMemberMap
- type TagKeyIamMemberMapInput
- type TagKeyIamMemberMapOutput
- func (TagKeyIamMemberMapOutput) ElementType() reflect.Type
- func (o TagKeyIamMemberMapOutput) MapIndex(k pulumi.StringInput) TagKeyIamMemberOutput
- func (o TagKeyIamMemberMapOutput) ToTagKeyIamMemberMapOutput() TagKeyIamMemberMapOutput
- func (o TagKeyIamMemberMapOutput) ToTagKeyIamMemberMapOutputWithContext(ctx context.Context) TagKeyIamMemberMapOutput
- type TagKeyIamMemberOutput
- func (TagKeyIamMemberOutput) ElementType() reflect.Type
- func (o TagKeyIamMemberOutput) ToTagKeyIamMemberOutput() TagKeyIamMemberOutput
- func (o TagKeyIamMemberOutput) ToTagKeyIamMemberOutputWithContext(ctx context.Context) TagKeyIamMemberOutput
- func (o TagKeyIamMemberOutput) ToTagKeyIamMemberPtrOutput() TagKeyIamMemberPtrOutput
- func (o TagKeyIamMemberOutput) ToTagKeyIamMemberPtrOutputWithContext(ctx context.Context) TagKeyIamMemberPtrOutput
- type TagKeyIamMemberPtrInput
- type TagKeyIamMemberPtrOutput
- func (o TagKeyIamMemberPtrOutput) Elem() TagKeyIamMemberOutput
- func (TagKeyIamMemberPtrOutput) ElementType() reflect.Type
- func (o TagKeyIamMemberPtrOutput) ToTagKeyIamMemberPtrOutput() TagKeyIamMemberPtrOutput
- func (o TagKeyIamMemberPtrOutput) ToTagKeyIamMemberPtrOutputWithContext(ctx context.Context) TagKeyIamMemberPtrOutput
- type TagKeyIamMemberState
- type TagKeyIamPolicy
- func (*TagKeyIamPolicy) ElementType() reflect.Type
- func (i *TagKeyIamPolicy) ToTagKeyIamPolicyOutput() TagKeyIamPolicyOutput
- func (i *TagKeyIamPolicy) ToTagKeyIamPolicyOutputWithContext(ctx context.Context) TagKeyIamPolicyOutput
- func (i *TagKeyIamPolicy) ToTagKeyIamPolicyPtrOutput() TagKeyIamPolicyPtrOutput
- func (i *TagKeyIamPolicy) ToTagKeyIamPolicyPtrOutputWithContext(ctx context.Context) TagKeyIamPolicyPtrOutput
- type TagKeyIamPolicyArgs
- type TagKeyIamPolicyArray
- type TagKeyIamPolicyArrayInput
- type TagKeyIamPolicyArrayOutput
- func (TagKeyIamPolicyArrayOutput) ElementType() reflect.Type
- func (o TagKeyIamPolicyArrayOutput) Index(i pulumi.IntInput) TagKeyIamPolicyOutput
- func (o TagKeyIamPolicyArrayOutput) ToTagKeyIamPolicyArrayOutput() TagKeyIamPolicyArrayOutput
- func (o TagKeyIamPolicyArrayOutput) ToTagKeyIamPolicyArrayOutputWithContext(ctx context.Context) TagKeyIamPolicyArrayOutput
- type TagKeyIamPolicyInput
- type TagKeyIamPolicyMap
- type TagKeyIamPolicyMapInput
- type TagKeyIamPolicyMapOutput
- func (TagKeyIamPolicyMapOutput) ElementType() reflect.Type
- func (o TagKeyIamPolicyMapOutput) MapIndex(k pulumi.StringInput) TagKeyIamPolicyOutput
- func (o TagKeyIamPolicyMapOutput) ToTagKeyIamPolicyMapOutput() TagKeyIamPolicyMapOutput
- func (o TagKeyIamPolicyMapOutput) ToTagKeyIamPolicyMapOutputWithContext(ctx context.Context) TagKeyIamPolicyMapOutput
- type TagKeyIamPolicyOutput
- func (TagKeyIamPolicyOutput) ElementType() reflect.Type
- func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyOutput() TagKeyIamPolicyOutput
- func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyOutputWithContext(ctx context.Context) TagKeyIamPolicyOutput
- func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyPtrOutput() TagKeyIamPolicyPtrOutput
- func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyPtrOutputWithContext(ctx context.Context) TagKeyIamPolicyPtrOutput
- type TagKeyIamPolicyPtrInput
- type TagKeyIamPolicyPtrOutput
- func (o TagKeyIamPolicyPtrOutput) Elem() TagKeyIamPolicyOutput
- func (TagKeyIamPolicyPtrOutput) ElementType() reflect.Type
- func (o TagKeyIamPolicyPtrOutput) ToTagKeyIamPolicyPtrOutput() TagKeyIamPolicyPtrOutput
- func (o TagKeyIamPolicyPtrOutput) ToTagKeyIamPolicyPtrOutputWithContext(ctx context.Context) TagKeyIamPolicyPtrOutput
- type TagKeyIamPolicyState
- type TagKeyInput
- type TagKeyMap
- type TagKeyMapInput
- type TagKeyMapOutput
- type TagKeyOutput
- func (TagKeyOutput) ElementType() reflect.Type
- func (o TagKeyOutput) ToTagKeyOutput() TagKeyOutput
- func (o TagKeyOutput) ToTagKeyOutputWithContext(ctx context.Context) TagKeyOutput
- func (o TagKeyOutput) ToTagKeyPtrOutput() TagKeyPtrOutput
- func (o TagKeyOutput) ToTagKeyPtrOutputWithContext(ctx context.Context) TagKeyPtrOutput
- type TagKeyPtrInput
- type TagKeyPtrOutput
- type TagKeyState
- type TagValue
- func (*TagValue) ElementType() reflect.Type
- func (i *TagValue) ToTagValueOutput() TagValueOutput
- func (i *TagValue) ToTagValueOutputWithContext(ctx context.Context) TagValueOutput
- func (i *TagValue) ToTagValuePtrOutput() TagValuePtrOutput
- func (i *TagValue) ToTagValuePtrOutputWithContext(ctx context.Context) TagValuePtrOutput
- type TagValueArgs
- type TagValueArray
- type TagValueArrayInput
- type TagValueArrayOutput
- type TagValueIamBinding
- func (*TagValueIamBinding) ElementType() reflect.Type
- func (i *TagValueIamBinding) ToTagValueIamBindingOutput() TagValueIamBindingOutput
- func (i *TagValueIamBinding) ToTagValueIamBindingOutputWithContext(ctx context.Context) TagValueIamBindingOutput
- func (i *TagValueIamBinding) ToTagValueIamBindingPtrOutput() TagValueIamBindingPtrOutput
- func (i *TagValueIamBinding) ToTagValueIamBindingPtrOutputWithContext(ctx context.Context) TagValueIamBindingPtrOutput
- type TagValueIamBindingArgs
- type TagValueIamBindingArray
- type TagValueIamBindingArrayInput
- type TagValueIamBindingArrayOutput
- func (TagValueIamBindingArrayOutput) ElementType() reflect.Type
- func (o TagValueIamBindingArrayOutput) Index(i pulumi.IntInput) TagValueIamBindingOutput
- func (o TagValueIamBindingArrayOutput) ToTagValueIamBindingArrayOutput() TagValueIamBindingArrayOutput
- func (o TagValueIamBindingArrayOutput) ToTagValueIamBindingArrayOutputWithContext(ctx context.Context) TagValueIamBindingArrayOutput
- type TagValueIamBindingCondition
- type TagValueIamBindingConditionArgs
- func (TagValueIamBindingConditionArgs) ElementType() reflect.Type
- func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionOutput() TagValueIamBindingConditionOutput
- func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionOutputWithContext(ctx context.Context) TagValueIamBindingConditionOutput
- func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionPtrOutput() TagValueIamBindingConditionPtrOutput
- func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionPtrOutputWithContext(ctx context.Context) TagValueIamBindingConditionPtrOutput
- type TagValueIamBindingConditionInput
- type TagValueIamBindingConditionOutput
- func (o TagValueIamBindingConditionOutput) Description() pulumi.StringPtrOutput
- func (TagValueIamBindingConditionOutput) ElementType() reflect.Type
- func (o TagValueIamBindingConditionOutput) Expression() pulumi.StringOutput
- func (o TagValueIamBindingConditionOutput) Title() pulumi.StringOutput
- func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionOutput() TagValueIamBindingConditionOutput
- func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionOutputWithContext(ctx context.Context) TagValueIamBindingConditionOutput
- func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionPtrOutput() TagValueIamBindingConditionPtrOutput
- func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionPtrOutputWithContext(ctx context.Context) TagValueIamBindingConditionPtrOutput
- type TagValueIamBindingConditionPtrInput
- type TagValueIamBindingConditionPtrOutput
- func (o TagValueIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o TagValueIamBindingConditionPtrOutput) Elem() TagValueIamBindingConditionOutput
- func (TagValueIamBindingConditionPtrOutput) ElementType() reflect.Type
- func (o TagValueIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o TagValueIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o TagValueIamBindingConditionPtrOutput) ToTagValueIamBindingConditionPtrOutput() TagValueIamBindingConditionPtrOutput
- func (o TagValueIamBindingConditionPtrOutput) ToTagValueIamBindingConditionPtrOutputWithContext(ctx context.Context) TagValueIamBindingConditionPtrOutput
- type TagValueIamBindingInput
- type TagValueIamBindingMap
- type TagValueIamBindingMapInput
- type TagValueIamBindingMapOutput
- func (TagValueIamBindingMapOutput) ElementType() reflect.Type
- func (o TagValueIamBindingMapOutput) MapIndex(k pulumi.StringInput) TagValueIamBindingOutput
- func (o TagValueIamBindingMapOutput) ToTagValueIamBindingMapOutput() TagValueIamBindingMapOutput
- func (o TagValueIamBindingMapOutput) ToTagValueIamBindingMapOutputWithContext(ctx context.Context) TagValueIamBindingMapOutput
- type TagValueIamBindingOutput
- func (TagValueIamBindingOutput) ElementType() reflect.Type
- func (o TagValueIamBindingOutput) ToTagValueIamBindingOutput() TagValueIamBindingOutput
- func (o TagValueIamBindingOutput) ToTagValueIamBindingOutputWithContext(ctx context.Context) TagValueIamBindingOutput
- func (o TagValueIamBindingOutput) ToTagValueIamBindingPtrOutput() TagValueIamBindingPtrOutput
- func (o TagValueIamBindingOutput) ToTagValueIamBindingPtrOutputWithContext(ctx context.Context) TagValueIamBindingPtrOutput
- type TagValueIamBindingPtrInput
- type TagValueIamBindingPtrOutput
- func (o TagValueIamBindingPtrOutput) Elem() TagValueIamBindingOutput
- func (TagValueIamBindingPtrOutput) ElementType() reflect.Type
- func (o TagValueIamBindingPtrOutput) ToTagValueIamBindingPtrOutput() TagValueIamBindingPtrOutput
- func (o TagValueIamBindingPtrOutput) ToTagValueIamBindingPtrOutputWithContext(ctx context.Context) TagValueIamBindingPtrOutput
- type TagValueIamBindingState
- type TagValueIamMember
- func (*TagValueIamMember) ElementType() reflect.Type
- func (i *TagValueIamMember) ToTagValueIamMemberOutput() TagValueIamMemberOutput
- func (i *TagValueIamMember) ToTagValueIamMemberOutputWithContext(ctx context.Context) TagValueIamMemberOutput
- func (i *TagValueIamMember) ToTagValueIamMemberPtrOutput() TagValueIamMemberPtrOutput
- func (i *TagValueIamMember) ToTagValueIamMemberPtrOutputWithContext(ctx context.Context) TagValueIamMemberPtrOutput
- type TagValueIamMemberArgs
- type TagValueIamMemberArray
- type TagValueIamMemberArrayInput
- type TagValueIamMemberArrayOutput
- func (TagValueIamMemberArrayOutput) ElementType() reflect.Type
- func (o TagValueIamMemberArrayOutput) Index(i pulumi.IntInput) TagValueIamMemberOutput
- func (o TagValueIamMemberArrayOutput) ToTagValueIamMemberArrayOutput() TagValueIamMemberArrayOutput
- func (o TagValueIamMemberArrayOutput) ToTagValueIamMemberArrayOutputWithContext(ctx context.Context) TagValueIamMemberArrayOutput
- type TagValueIamMemberCondition
- type TagValueIamMemberConditionArgs
- func (TagValueIamMemberConditionArgs) ElementType() reflect.Type
- func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionOutput() TagValueIamMemberConditionOutput
- func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionOutputWithContext(ctx context.Context) TagValueIamMemberConditionOutput
- func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionPtrOutput() TagValueIamMemberConditionPtrOutput
- func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionPtrOutputWithContext(ctx context.Context) TagValueIamMemberConditionPtrOutput
- type TagValueIamMemberConditionInput
- type TagValueIamMemberConditionOutput
- func (o TagValueIamMemberConditionOutput) Description() pulumi.StringPtrOutput
- func (TagValueIamMemberConditionOutput) ElementType() reflect.Type
- func (o TagValueIamMemberConditionOutput) Expression() pulumi.StringOutput
- func (o TagValueIamMemberConditionOutput) Title() pulumi.StringOutput
- func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionOutput() TagValueIamMemberConditionOutput
- func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionOutputWithContext(ctx context.Context) TagValueIamMemberConditionOutput
- func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionPtrOutput() TagValueIamMemberConditionPtrOutput
- func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionPtrOutputWithContext(ctx context.Context) TagValueIamMemberConditionPtrOutput
- type TagValueIamMemberConditionPtrInput
- type TagValueIamMemberConditionPtrOutput
- func (o TagValueIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o TagValueIamMemberConditionPtrOutput) Elem() TagValueIamMemberConditionOutput
- func (TagValueIamMemberConditionPtrOutput) ElementType() reflect.Type
- func (o TagValueIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o TagValueIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o TagValueIamMemberConditionPtrOutput) ToTagValueIamMemberConditionPtrOutput() TagValueIamMemberConditionPtrOutput
- func (o TagValueIamMemberConditionPtrOutput) ToTagValueIamMemberConditionPtrOutputWithContext(ctx context.Context) TagValueIamMemberConditionPtrOutput
- type TagValueIamMemberInput
- type TagValueIamMemberMap
- type TagValueIamMemberMapInput
- type TagValueIamMemberMapOutput
- func (TagValueIamMemberMapOutput) ElementType() reflect.Type
- func (o TagValueIamMemberMapOutput) MapIndex(k pulumi.StringInput) TagValueIamMemberOutput
- func (o TagValueIamMemberMapOutput) ToTagValueIamMemberMapOutput() TagValueIamMemberMapOutput
- func (o TagValueIamMemberMapOutput) ToTagValueIamMemberMapOutputWithContext(ctx context.Context) TagValueIamMemberMapOutput
- type TagValueIamMemberOutput
- func (TagValueIamMemberOutput) ElementType() reflect.Type
- func (o TagValueIamMemberOutput) ToTagValueIamMemberOutput() TagValueIamMemberOutput
- func (o TagValueIamMemberOutput) ToTagValueIamMemberOutputWithContext(ctx context.Context) TagValueIamMemberOutput
- func (o TagValueIamMemberOutput) ToTagValueIamMemberPtrOutput() TagValueIamMemberPtrOutput
- func (o TagValueIamMemberOutput) ToTagValueIamMemberPtrOutputWithContext(ctx context.Context) TagValueIamMemberPtrOutput
- type TagValueIamMemberPtrInput
- type TagValueIamMemberPtrOutput
- func (o TagValueIamMemberPtrOutput) Elem() TagValueIamMemberOutput
- func (TagValueIamMemberPtrOutput) ElementType() reflect.Type
- func (o TagValueIamMemberPtrOutput) ToTagValueIamMemberPtrOutput() TagValueIamMemberPtrOutput
- func (o TagValueIamMemberPtrOutput) ToTagValueIamMemberPtrOutputWithContext(ctx context.Context) TagValueIamMemberPtrOutput
- type TagValueIamMemberState
- type TagValueIamPolicy
- func (*TagValueIamPolicy) ElementType() reflect.Type
- func (i *TagValueIamPolicy) ToTagValueIamPolicyOutput() TagValueIamPolicyOutput
- func (i *TagValueIamPolicy) ToTagValueIamPolicyOutputWithContext(ctx context.Context) TagValueIamPolicyOutput
- func (i *TagValueIamPolicy) ToTagValueIamPolicyPtrOutput() TagValueIamPolicyPtrOutput
- func (i *TagValueIamPolicy) ToTagValueIamPolicyPtrOutputWithContext(ctx context.Context) TagValueIamPolicyPtrOutput
- type TagValueIamPolicyArgs
- type TagValueIamPolicyArray
- type TagValueIamPolicyArrayInput
- type TagValueIamPolicyArrayOutput
- func (TagValueIamPolicyArrayOutput) ElementType() reflect.Type
- func (o TagValueIamPolicyArrayOutput) Index(i pulumi.IntInput) TagValueIamPolicyOutput
- func (o TagValueIamPolicyArrayOutput) ToTagValueIamPolicyArrayOutput() TagValueIamPolicyArrayOutput
- func (o TagValueIamPolicyArrayOutput) ToTagValueIamPolicyArrayOutputWithContext(ctx context.Context) TagValueIamPolicyArrayOutput
- type TagValueIamPolicyInput
- type TagValueIamPolicyMap
- type TagValueIamPolicyMapInput
- type TagValueIamPolicyMapOutput
- func (TagValueIamPolicyMapOutput) ElementType() reflect.Type
- func (o TagValueIamPolicyMapOutput) MapIndex(k pulumi.StringInput) TagValueIamPolicyOutput
- func (o TagValueIamPolicyMapOutput) ToTagValueIamPolicyMapOutput() TagValueIamPolicyMapOutput
- func (o TagValueIamPolicyMapOutput) ToTagValueIamPolicyMapOutputWithContext(ctx context.Context) TagValueIamPolicyMapOutput
- type TagValueIamPolicyOutput
- func (TagValueIamPolicyOutput) ElementType() reflect.Type
- func (o TagValueIamPolicyOutput) ToTagValueIamPolicyOutput() TagValueIamPolicyOutput
- func (o TagValueIamPolicyOutput) ToTagValueIamPolicyOutputWithContext(ctx context.Context) TagValueIamPolicyOutput
- func (o TagValueIamPolicyOutput) ToTagValueIamPolicyPtrOutput() TagValueIamPolicyPtrOutput
- func (o TagValueIamPolicyOutput) ToTagValueIamPolicyPtrOutputWithContext(ctx context.Context) TagValueIamPolicyPtrOutput
- type TagValueIamPolicyPtrInput
- type TagValueIamPolicyPtrOutput
- func (o TagValueIamPolicyPtrOutput) Elem() TagValueIamPolicyOutput
- func (TagValueIamPolicyPtrOutput) ElementType() reflect.Type
- func (o TagValueIamPolicyPtrOutput) ToTagValueIamPolicyPtrOutput() TagValueIamPolicyPtrOutput
- func (o TagValueIamPolicyPtrOutput) ToTagValueIamPolicyPtrOutputWithContext(ctx context.Context) TagValueIamPolicyPtrOutput
- type TagValueIamPolicyState
- type TagValueInput
- type TagValueMap
- type TagValueMapInput
- type TagValueMapOutput
- type TagValueOutput
- func (TagValueOutput) ElementType() reflect.Type
- func (o TagValueOutput) ToTagValueOutput() TagValueOutput
- func (o TagValueOutput) ToTagValueOutputWithContext(ctx context.Context) TagValueOutput
- func (o TagValueOutput) ToTagValuePtrOutput() TagValuePtrOutput
- func (o TagValueOutput) ToTagValuePtrOutputWithContext(ctx context.Context) TagValuePtrOutput
- type TagValuePtrInput
- type TagValuePtrOutput
- type TagValueState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TagBinding ¶
type TagBinding struct { pulumi.CustomResourceState // The generated id for the TagBinding. This is a string of the form: 'tagBindings/{full-resource-name}/{tag-value-name}' Name pulumi.StringOutput `pulumi:"name"` // The full resource name of the resource the TagValue is bound to. E.g. //cloudresourcemanager.googleapis.com/projects/123 Parent pulumi.StringOutput `pulumi:"parent"` // The TagValue of the TagBinding. Must be of the form tagValues/456. TagValue pulumi.StringOutput `pulumi:"tagValue"` }
A TagBinding represents a connection between a TagValue and a cloud resource (currently project, folder, or organization). Once a TagBinding is created, the TagValue is applied to all the descendants of the cloud resource.
To get more information about TagBinding, see:
* [API documentation](https://cloud.google.com/resource-manager/reference/rest/v3/tagBindings) * How-to Guides
- [Official Documentation](https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
## Example Usage ### Tag Binding Basic
```go package main
import (
"fmt" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { project, err := organizations.NewProject(ctx, "project", &organizations.ProjectArgs{ OrgId: pulumi.String("123456789"), ProjectId: pulumi.String("project_id"), }) if err != nil { return err } key, err := tags.NewTagKey(ctx, "key", &tags.TagKeyArgs{ Description: pulumi.String("For keyname resources."), Parent: pulumi.String("organizations/123456789"), ShortName: pulumi.String("keyname"), }) if err != nil { return err } value, err := tags.NewTagValue(ctx, "value", &tags.TagValueArgs{ Description: pulumi.String("For valuename resources."), Parent: key.Name.ApplyT(func(name string) (string, error) { return fmt.Sprintf("%v%v", "tagKeys/", name), nil }).(pulumi.StringOutput), ShortName: pulumi.String("valuename"), }) if err != nil { return err } _, err = tags.NewTagBinding(ctx, "binding", &tags.TagBindingArgs{ Parent: project.Number.ApplyT(func(number string) (string, error) { return fmt.Sprintf("%v%v", "//cloudresourcemanager.googleapis.com/projects/", number), nil }).(pulumi.StringOutput), TagValue: value.Name.ApplyT(func(name string) (string, error) { return fmt.Sprintf("%v%v", "tagValues/", name), nil }).(pulumi.StringOutput), }) if err != nil { return err } return nil }) }
```
## Import
TagBinding can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:tags/tagBinding:TagBinding default tagBindings/{{name}}
```
```sh
$ pulumi import gcp:tags/tagBinding:TagBinding default {{name}}
```
func GetTagBinding ¶
func GetTagBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagBindingState, opts ...pulumi.ResourceOption) (*TagBinding, error)
GetTagBinding gets an existing TagBinding 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 NewTagBinding ¶
func NewTagBinding(ctx *pulumi.Context, name string, args *TagBindingArgs, opts ...pulumi.ResourceOption) (*TagBinding, error)
NewTagBinding registers a new resource with the given unique name, arguments, and options.
func (*TagBinding) ElementType ¶
func (*TagBinding) ElementType() reflect.Type
func (*TagBinding) ToTagBindingOutput ¶
func (i *TagBinding) ToTagBindingOutput() TagBindingOutput
func (*TagBinding) ToTagBindingOutputWithContext ¶
func (i *TagBinding) ToTagBindingOutputWithContext(ctx context.Context) TagBindingOutput
func (*TagBinding) ToTagBindingPtrOutput ¶
func (i *TagBinding) ToTagBindingPtrOutput() TagBindingPtrOutput
func (*TagBinding) ToTagBindingPtrOutputWithContext ¶
func (i *TagBinding) ToTagBindingPtrOutputWithContext(ctx context.Context) TagBindingPtrOutput
type TagBindingArgs ¶
type TagBindingArgs struct { // The full resource name of the resource the TagValue is bound to. E.g. //cloudresourcemanager.googleapis.com/projects/123 Parent pulumi.StringInput // The TagValue of the TagBinding. Must be of the form tagValues/456. TagValue pulumi.StringInput }
The set of arguments for constructing a TagBinding resource.
func (TagBindingArgs) ElementType ¶
func (TagBindingArgs) ElementType() reflect.Type
type TagBindingArray ¶
type TagBindingArray []TagBindingInput
func (TagBindingArray) ElementType ¶
func (TagBindingArray) ElementType() reflect.Type
func (TagBindingArray) ToTagBindingArrayOutput ¶
func (i TagBindingArray) ToTagBindingArrayOutput() TagBindingArrayOutput
func (TagBindingArray) ToTagBindingArrayOutputWithContext ¶
func (i TagBindingArray) ToTagBindingArrayOutputWithContext(ctx context.Context) TagBindingArrayOutput
type TagBindingArrayInput ¶
type TagBindingArrayInput interface { pulumi.Input ToTagBindingArrayOutput() TagBindingArrayOutput ToTagBindingArrayOutputWithContext(context.Context) TagBindingArrayOutput }
TagBindingArrayInput is an input type that accepts TagBindingArray and TagBindingArrayOutput values. You can construct a concrete instance of `TagBindingArrayInput` via:
TagBindingArray{ TagBindingArgs{...} }
type TagBindingArrayOutput ¶
type TagBindingArrayOutput struct{ *pulumi.OutputState }
func (TagBindingArrayOutput) ElementType ¶
func (TagBindingArrayOutput) ElementType() reflect.Type
func (TagBindingArrayOutput) Index ¶
func (o TagBindingArrayOutput) Index(i pulumi.IntInput) TagBindingOutput
func (TagBindingArrayOutput) ToTagBindingArrayOutput ¶
func (o TagBindingArrayOutput) ToTagBindingArrayOutput() TagBindingArrayOutput
func (TagBindingArrayOutput) ToTagBindingArrayOutputWithContext ¶
func (o TagBindingArrayOutput) ToTagBindingArrayOutputWithContext(ctx context.Context) TagBindingArrayOutput
type TagBindingInput ¶
type TagBindingInput interface { pulumi.Input ToTagBindingOutput() TagBindingOutput ToTagBindingOutputWithContext(ctx context.Context) TagBindingOutput }
type TagBindingMap ¶
type TagBindingMap map[string]TagBindingInput
func (TagBindingMap) ElementType ¶
func (TagBindingMap) ElementType() reflect.Type
func (TagBindingMap) ToTagBindingMapOutput ¶
func (i TagBindingMap) ToTagBindingMapOutput() TagBindingMapOutput
func (TagBindingMap) ToTagBindingMapOutputWithContext ¶
func (i TagBindingMap) ToTagBindingMapOutputWithContext(ctx context.Context) TagBindingMapOutput
type TagBindingMapInput ¶
type TagBindingMapInput interface { pulumi.Input ToTagBindingMapOutput() TagBindingMapOutput ToTagBindingMapOutputWithContext(context.Context) TagBindingMapOutput }
TagBindingMapInput is an input type that accepts TagBindingMap and TagBindingMapOutput values. You can construct a concrete instance of `TagBindingMapInput` via:
TagBindingMap{ "key": TagBindingArgs{...} }
type TagBindingMapOutput ¶
type TagBindingMapOutput struct{ *pulumi.OutputState }
func (TagBindingMapOutput) ElementType ¶
func (TagBindingMapOutput) ElementType() reflect.Type
func (TagBindingMapOutput) MapIndex ¶
func (o TagBindingMapOutput) MapIndex(k pulumi.StringInput) TagBindingOutput
func (TagBindingMapOutput) ToTagBindingMapOutput ¶
func (o TagBindingMapOutput) ToTagBindingMapOutput() TagBindingMapOutput
func (TagBindingMapOutput) ToTagBindingMapOutputWithContext ¶
func (o TagBindingMapOutput) ToTagBindingMapOutputWithContext(ctx context.Context) TagBindingMapOutput
type TagBindingOutput ¶
type TagBindingOutput struct{ *pulumi.OutputState }
func (TagBindingOutput) ElementType ¶
func (TagBindingOutput) ElementType() reflect.Type
func (TagBindingOutput) ToTagBindingOutput ¶
func (o TagBindingOutput) ToTagBindingOutput() TagBindingOutput
func (TagBindingOutput) ToTagBindingOutputWithContext ¶
func (o TagBindingOutput) ToTagBindingOutputWithContext(ctx context.Context) TagBindingOutput
func (TagBindingOutput) ToTagBindingPtrOutput ¶
func (o TagBindingOutput) ToTagBindingPtrOutput() TagBindingPtrOutput
func (TagBindingOutput) ToTagBindingPtrOutputWithContext ¶
func (o TagBindingOutput) ToTagBindingPtrOutputWithContext(ctx context.Context) TagBindingPtrOutput
type TagBindingPtrInput ¶
type TagBindingPtrInput interface { pulumi.Input ToTagBindingPtrOutput() TagBindingPtrOutput ToTagBindingPtrOutputWithContext(ctx context.Context) TagBindingPtrOutput }
type TagBindingPtrOutput ¶
type TagBindingPtrOutput struct{ *pulumi.OutputState }
func (TagBindingPtrOutput) Elem ¶ added in v5.21.0
func (o TagBindingPtrOutput) Elem() TagBindingOutput
func (TagBindingPtrOutput) ElementType ¶
func (TagBindingPtrOutput) ElementType() reflect.Type
func (TagBindingPtrOutput) ToTagBindingPtrOutput ¶
func (o TagBindingPtrOutput) ToTagBindingPtrOutput() TagBindingPtrOutput
func (TagBindingPtrOutput) ToTagBindingPtrOutputWithContext ¶
func (o TagBindingPtrOutput) ToTagBindingPtrOutputWithContext(ctx context.Context) TagBindingPtrOutput
type TagBindingState ¶
type TagBindingState struct { // The generated id for the TagBinding. This is a string of the form: 'tagBindings/{full-resource-name}/{tag-value-name}' Name pulumi.StringPtrInput // The full resource name of the resource the TagValue is bound to. E.g. //cloudresourcemanager.googleapis.com/projects/123 Parent pulumi.StringPtrInput // The TagValue of the TagBinding. Must be of the form tagValues/456. TagValue pulumi.StringPtrInput }
func (TagBindingState) ElementType ¶
func (TagBindingState) ElementType() reflect.Type
type TagKey ¶
type TagKey struct { pulumi.CustomResourceState // Output only. Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". CreateTime pulumi.StringOutput `pulumi:"createTime"` // User-assigned description of the TagKey. Must not exceed 256 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // The generated numeric id for the TagKey. Name pulumi.StringOutput `pulumi:"name"` // Output only. Namespaced name of the TagKey. NamespacedName pulumi.StringOutput `pulumi:"namespacedName"` // Input only. The resource name of the new TagKey's parent. Must be of the form organizations/{org_id}. Parent pulumi.StringOutput `pulumi:"parent"` // Input only. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. // The short name must be 1-63 characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. ShortName pulumi.StringOutput `pulumi:"shortName"` // Output only. Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional // digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". UpdateTime pulumi.StringOutput `pulumi:"updateTime"` }
A TagKey, used to group a set of TagValues.
To get more information about TagKey, see:
* [API documentation](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys) * How-to Guides
- [Official Documentation](https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
## Example Usage ### Tag Key Basic
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagKey(ctx, "key", &tags.TagKeyArgs{ Description: pulumi.String("For keyname resources."), Parent: pulumi.String("organizations/123456789"), ShortName: pulumi.String("keyname"), }) if err != nil { return err } return nil }) }
```
## Import
TagKey can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:tags/tagKey:TagKey default tagKeys/{{name}}
```
```sh
$ pulumi import gcp:tags/tagKey:TagKey default {{name}}
```
func GetTagKey ¶
func GetTagKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagKeyState, opts ...pulumi.ResourceOption) (*TagKey, error)
GetTagKey gets an existing TagKey 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 NewTagKey ¶
func NewTagKey(ctx *pulumi.Context, name string, args *TagKeyArgs, opts ...pulumi.ResourceOption) (*TagKey, error)
NewTagKey registers a new resource with the given unique name, arguments, and options.
func (*TagKey) ElementType ¶
func (*TagKey) ToTagKeyOutput ¶
func (i *TagKey) ToTagKeyOutput() TagKeyOutput
func (*TagKey) ToTagKeyOutputWithContext ¶
func (i *TagKey) ToTagKeyOutputWithContext(ctx context.Context) TagKeyOutput
func (*TagKey) ToTagKeyPtrOutput ¶
func (i *TagKey) ToTagKeyPtrOutput() TagKeyPtrOutput
func (*TagKey) ToTagKeyPtrOutputWithContext ¶
func (i *TagKey) ToTagKeyPtrOutputWithContext(ctx context.Context) TagKeyPtrOutput
type TagKeyArgs ¶
type TagKeyArgs struct { // User-assigned description of the TagKey. Must not exceed 256 characters. Description pulumi.StringPtrInput // Input only. The resource name of the new TagKey's parent. Must be of the form organizations/{org_id}. Parent pulumi.StringInput // Input only. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. // The short name must be 1-63 characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. ShortName pulumi.StringInput }
The set of arguments for constructing a TagKey resource.
func (TagKeyArgs) ElementType ¶
func (TagKeyArgs) ElementType() reflect.Type
type TagKeyArray ¶
type TagKeyArray []TagKeyInput
func (TagKeyArray) ElementType ¶
func (TagKeyArray) ElementType() reflect.Type
func (TagKeyArray) ToTagKeyArrayOutput ¶
func (i TagKeyArray) ToTagKeyArrayOutput() TagKeyArrayOutput
func (TagKeyArray) ToTagKeyArrayOutputWithContext ¶
func (i TagKeyArray) ToTagKeyArrayOutputWithContext(ctx context.Context) TagKeyArrayOutput
type TagKeyArrayInput ¶
type TagKeyArrayInput interface { pulumi.Input ToTagKeyArrayOutput() TagKeyArrayOutput ToTagKeyArrayOutputWithContext(context.Context) TagKeyArrayOutput }
TagKeyArrayInput is an input type that accepts TagKeyArray and TagKeyArrayOutput values. You can construct a concrete instance of `TagKeyArrayInput` via:
TagKeyArray{ TagKeyArgs{...} }
type TagKeyArrayOutput ¶
type TagKeyArrayOutput struct{ *pulumi.OutputState }
func (TagKeyArrayOutput) ElementType ¶
func (TagKeyArrayOutput) ElementType() reflect.Type
func (TagKeyArrayOutput) Index ¶
func (o TagKeyArrayOutput) Index(i pulumi.IntInput) TagKeyOutput
func (TagKeyArrayOutput) ToTagKeyArrayOutput ¶
func (o TagKeyArrayOutput) ToTagKeyArrayOutput() TagKeyArrayOutput
func (TagKeyArrayOutput) ToTagKeyArrayOutputWithContext ¶
func (o TagKeyArrayOutput) ToTagKeyArrayOutputWithContext(ctx context.Context) TagKeyArrayOutput
type TagKeyIamBinding ¶
type TagKeyIamBinding struct { pulumi.CustomResourceState Condition TagKeyIamBindingConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` Members pulumi.StringArrayOutput `pulumi:"members"` // The role that should be applied. Only one // `tags.TagKeyIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringOutput `pulumi:"tagKey"` }
Three different resources help you manage your IAM policy for Tags TagKey. Each of these resources serves a different use case:
* `tags.TagKeyIamPolicy`: Authoritative. Sets the IAM policy for the tagkey and replaces any existing policy already attached. * `tags.TagKeyIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the tagkey are preserved. * `tags.TagKeyIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagkey are preserved.
> **Note:** `tags.TagKeyIamPolicy` **cannot** be used in conjunction with `tags.TagKeyIamBinding` and `tags.TagKeyIamMember` or they will fight over what your policy should be.
> **Note:** `tags.TagKeyIamBinding` resources **can be** used in conjunction with `tags.TagKeyIamMember` resources **only if** they do not grant privilege to the same role.
## google\_tags\_tag\_key\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = tags.NewTagKeyIamPolicy(ctx, "policy", &tags.TagKeyIamPolicyArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_key\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagKeyIamBinding(ctx, "binding", &tags.TagKeyIamBindingArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_key\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagKeyIamMember(ctx, "member", &tags.TagKeyIamMemberArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* tagKeys/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Tags tagkey IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamBinding:TagKeyIamBinding editor "tagKeys/{{tag_key}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamBinding:TagKeyIamBinding editor "tagKeys/{{tag_key}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamBinding:TagKeyIamBinding editor tagKeys/{{tag_key}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetTagKeyIamBinding ¶
func GetTagKeyIamBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagKeyIamBindingState, opts ...pulumi.ResourceOption) (*TagKeyIamBinding, error)
GetTagKeyIamBinding gets an existing TagKeyIamBinding 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 NewTagKeyIamBinding ¶
func NewTagKeyIamBinding(ctx *pulumi.Context, name string, args *TagKeyIamBindingArgs, opts ...pulumi.ResourceOption) (*TagKeyIamBinding, error)
NewTagKeyIamBinding registers a new resource with the given unique name, arguments, and options.
func (*TagKeyIamBinding) ElementType ¶
func (*TagKeyIamBinding) ElementType() reflect.Type
func (*TagKeyIamBinding) ToTagKeyIamBindingOutput ¶
func (i *TagKeyIamBinding) ToTagKeyIamBindingOutput() TagKeyIamBindingOutput
func (*TagKeyIamBinding) ToTagKeyIamBindingOutputWithContext ¶
func (i *TagKeyIamBinding) ToTagKeyIamBindingOutputWithContext(ctx context.Context) TagKeyIamBindingOutput
func (*TagKeyIamBinding) ToTagKeyIamBindingPtrOutput ¶
func (i *TagKeyIamBinding) ToTagKeyIamBindingPtrOutput() TagKeyIamBindingPtrOutput
func (*TagKeyIamBinding) ToTagKeyIamBindingPtrOutputWithContext ¶
func (i *TagKeyIamBinding) ToTagKeyIamBindingPtrOutputWithContext(ctx context.Context) TagKeyIamBindingPtrOutput
type TagKeyIamBindingArgs ¶
type TagKeyIamBindingArgs struct { Condition TagKeyIamBindingConditionPtrInput Members pulumi.StringArrayInput // The role that should be applied. Only one // `tags.TagKeyIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringInput }
The set of arguments for constructing a TagKeyIamBinding resource.
func (TagKeyIamBindingArgs) ElementType ¶
func (TagKeyIamBindingArgs) ElementType() reflect.Type
type TagKeyIamBindingArray ¶
type TagKeyIamBindingArray []TagKeyIamBindingInput
func (TagKeyIamBindingArray) ElementType ¶
func (TagKeyIamBindingArray) ElementType() reflect.Type
func (TagKeyIamBindingArray) ToTagKeyIamBindingArrayOutput ¶
func (i TagKeyIamBindingArray) ToTagKeyIamBindingArrayOutput() TagKeyIamBindingArrayOutput
func (TagKeyIamBindingArray) ToTagKeyIamBindingArrayOutputWithContext ¶
func (i TagKeyIamBindingArray) ToTagKeyIamBindingArrayOutputWithContext(ctx context.Context) TagKeyIamBindingArrayOutput
type TagKeyIamBindingArrayInput ¶
type TagKeyIamBindingArrayInput interface { pulumi.Input ToTagKeyIamBindingArrayOutput() TagKeyIamBindingArrayOutput ToTagKeyIamBindingArrayOutputWithContext(context.Context) TagKeyIamBindingArrayOutput }
TagKeyIamBindingArrayInput is an input type that accepts TagKeyIamBindingArray and TagKeyIamBindingArrayOutput values. You can construct a concrete instance of `TagKeyIamBindingArrayInput` via:
TagKeyIamBindingArray{ TagKeyIamBindingArgs{...} }
type TagKeyIamBindingArrayOutput ¶
type TagKeyIamBindingArrayOutput struct{ *pulumi.OutputState }
func (TagKeyIamBindingArrayOutput) ElementType ¶
func (TagKeyIamBindingArrayOutput) ElementType() reflect.Type
func (TagKeyIamBindingArrayOutput) Index ¶
func (o TagKeyIamBindingArrayOutput) Index(i pulumi.IntInput) TagKeyIamBindingOutput
func (TagKeyIamBindingArrayOutput) ToTagKeyIamBindingArrayOutput ¶
func (o TagKeyIamBindingArrayOutput) ToTagKeyIamBindingArrayOutput() TagKeyIamBindingArrayOutput
func (TagKeyIamBindingArrayOutput) ToTagKeyIamBindingArrayOutputWithContext ¶
func (o TagKeyIamBindingArrayOutput) ToTagKeyIamBindingArrayOutputWithContext(ctx context.Context) TagKeyIamBindingArrayOutput
type TagKeyIamBindingConditionArgs ¶
type TagKeyIamBindingConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (TagKeyIamBindingConditionArgs) ElementType ¶
func (TagKeyIamBindingConditionArgs) ElementType() reflect.Type
func (TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionOutput ¶
func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionOutput() TagKeyIamBindingConditionOutput
func (TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionOutputWithContext ¶
func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionOutputWithContext(ctx context.Context) TagKeyIamBindingConditionOutput
func (TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionPtrOutput ¶
func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionPtrOutput() TagKeyIamBindingConditionPtrOutput
func (TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionPtrOutputWithContext ¶
func (i TagKeyIamBindingConditionArgs) ToTagKeyIamBindingConditionPtrOutputWithContext(ctx context.Context) TagKeyIamBindingConditionPtrOutput
type TagKeyIamBindingConditionInput ¶
type TagKeyIamBindingConditionInput interface { pulumi.Input ToTagKeyIamBindingConditionOutput() TagKeyIamBindingConditionOutput ToTagKeyIamBindingConditionOutputWithContext(context.Context) TagKeyIamBindingConditionOutput }
TagKeyIamBindingConditionInput is an input type that accepts TagKeyIamBindingConditionArgs and TagKeyIamBindingConditionOutput values. You can construct a concrete instance of `TagKeyIamBindingConditionInput` via:
TagKeyIamBindingConditionArgs{...}
type TagKeyIamBindingConditionOutput ¶
type TagKeyIamBindingConditionOutput struct{ *pulumi.OutputState }
func (TagKeyIamBindingConditionOutput) Description ¶
func (o TagKeyIamBindingConditionOutput) Description() pulumi.StringPtrOutput
func (TagKeyIamBindingConditionOutput) ElementType ¶
func (TagKeyIamBindingConditionOutput) ElementType() reflect.Type
func (TagKeyIamBindingConditionOutput) Expression ¶
func (o TagKeyIamBindingConditionOutput) Expression() pulumi.StringOutput
func (TagKeyIamBindingConditionOutput) Title ¶
func (o TagKeyIamBindingConditionOutput) Title() pulumi.StringOutput
func (TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionOutput ¶
func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionOutput() TagKeyIamBindingConditionOutput
func (TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionOutputWithContext ¶
func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionOutputWithContext(ctx context.Context) TagKeyIamBindingConditionOutput
func (TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionPtrOutput ¶
func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionPtrOutput() TagKeyIamBindingConditionPtrOutput
func (TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionPtrOutputWithContext ¶
func (o TagKeyIamBindingConditionOutput) ToTagKeyIamBindingConditionPtrOutputWithContext(ctx context.Context) TagKeyIamBindingConditionPtrOutput
type TagKeyIamBindingConditionPtrInput ¶
type TagKeyIamBindingConditionPtrInput interface { pulumi.Input ToTagKeyIamBindingConditionPtrOutput() TagKeyIamBindingConditionPtrOutput ToTagKeyIamBindingConditionPtrOutputWithContext(context.Context) TagKeyIamBindingConditionPtrOutput }
TagKeyIamBindingConditionPtrInput is an input type that accepts TagKeyIamBindingConditionArgs, TagKeyIamBindingConditionPtr and TagKeyIamBindingConditionPtrOutput values. You can construct a concrete instance of `TagKeyIamBindingConditionPtrInput` via:
TagKeyIamBindingConditionArgs{...} or: nil
func TagKeyIamBindingConditionPtr ¶
func TagKeyIamBindingConditionPtr(v *TagKeyIamBindingConditionArgs) TagKeyIamBindingConditionPtrInput
type TagKeyIamBindingConditionPtrOutput ¶
type TagKeyIamBindingConditionPtrOutput struct{ *pulumi.OutputState }
func (TagKeyIamBindingConditionPtrOutput) Description ¶
func (o TagKeyIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
func (TagKeyIamBindingConditionPtrOutput) Elem ¶
func (o TagKeyIamBindingConditionPtrOutput) Elem() TagKeyIamBindingConditionOutput
func (TagKeyIamBindingConditionPtrOutput) ElementType ¶
func (TagKeyIamBindingConditionPtrOutput) ElementType() reflect.Type
func (TagKeyIamBindingConditionPtrOutput) Expression ¶
func (o TagKeyIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (TagKeyIamBindingConditionPtrOutput) Title ¶
func (o TagKeyIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
func (TagKeyIamBindingConditionPtrOutput) ToTagKeyIamBindingConditionPtrOutput ¶
func (o TagKeyIamBindingConditionPtrOutput) ToTagKeyIamBindingConditionPtrOutput() TagKeyIamBindingConditionPtrOutput
func (TagKeyIamBindingConditionPtrOutput) ToTagKeyIamBindingConditionPtrOutputWithContext ¶
func (o TagKeyIamBindingConditionPtrOutput) ToTagKeyIamBindingConditionPtrOutputWithContext(ctx context.Context) TagKeyIamBindingConditionPtrOutput
type TagKeyIamBindingInput ¶
type TagKeyIamBindingInput interface { pulumi.Input ToTagKeyIamBindingOutput() TagKeyIamBindingOutput ToTagKeyIamBindingOutputWithContext(ctx context.Context) TagKeyIamBindingOutput }
type TagKeyIamBindingMap ¶
type TagKeyIamBindingMap map[string]TagKeyIamBindingInput
func (TagKeyIamBindingMap) ElementType ¶
func (TagKeyIamBindingMap) ElementType() reflect.Type
func (TagKeyIamBindingMap) ToTagKeyIamBindingMapOutput ¶
func (i TagKeyIamBindingMap) ToTagKeyIamBindingMapOutput() TagKeyIamBindingMapOutput
func (TagKeyIamBindingMap) ToTagKeyIamBindingMapOutputWithContext ¶
func (i TagKeyIamBindingMap) ToTagKeyIamBindingMapOutputWithContext(ctx context.Context) TagKeyIamBindingMapOutput
type TagKeyIamBindingMapInput ¶
type TagKeyIamBindingMapInput interface { pulumi.Input ToTagKeyIamBindingMapOutput() TagKeyIamBindingMapOutput ToTagKeyIamBindingMapOutputWithContext(context.Context) TagKeyIamBindingMapOutput }
TagKeyIamBindingMapInput is an input type that accepts TagKeyIamBindingMap and TagKeyIamBindingMapOutput values. You can construct a concrete instance of `TagKeyIamBindingMapInput` via:
TagKeyIamBindingMap{ "key": TagKeyIamBindingArgs{...} }
type TagKeyIamBindingMapOutput ¶
type TagKeyIamBindingMapOutput struct{ *pulumi.OutputState }
func (TagKeyIamBindingMapOutput) ElementType ¶
func (TagKeyIamBindingMapOutput) ElementType() reflect.Type
func (TagKeyIamBindingMapOutput) MapIndex ¶
func (o TagKeyIamBindingMapOutput) MapIndex(k pulumi.StringInput) TagKeyIamBindingOutput
func (TagKeyIamBindingMapOutput) ToTagKeyIamBindingMapOutput ¶
func (o TagKeyIamBindingMapOutput) ToTagKeyIamBindingMapOutput() TagKeyIamBindingMapOutput
func (TagKeyIamBindingMapOutput) ToTagKeyIamBindingMapOutputWithContext ¶
func (o TagKeyIamBindingMapOutput) ToTagKeyIamBindingMapOutputWithContext(ctx context.Context) TagKeyIamBindingMapOutput
type TagKeyIamBindingOutput ¶
type TagKeyIamBindingOutput struct{ *pulumi.OutputState }
func (TagKeyIamBindingOutput) ElementType ¶
func (TagKeyIamBindingOutput) ElementType() reflect.Type
func (TagKeyIamBindingOutput) ToTagKeyIamBindingOutput ¶
func (o TagKeyIamBindingOutput) ToTagKeyIamBindingOutput() TagKeyIamBindingOutput
func (TagKeyIamBindingOutput) ToTagKeyIamBindingOutputWithContext ¶
func (o TagKeyIamBindingOutput) ToTagKeyIamBindingOutputWithContext(ctx context.Context) TagKeyIamBindingOutput
func (TagKeyIamBindingOutput) ToTagKeyIamBindingPtrOutput ¶
func (o TagKeyIamBindingOutput) ToTagKeyIamBindingPtrOutput() TagKeyIamBindingPtrOutput
func (TagKeyIamBindingOutput) ToTagKeyIamBindingPtrOutputWithContext ¶
func (o TagKeyIamBindingOutput) ToTagKeyIamBindingPtrOutputWithContext(ctx context.Context) TagKeyIamBindingPtrOutput
type TagKeyIamBindingPtrInput ¶
type TagKeyIamBindingPtrInput interface { pulumi.Input ToTagKeyIamBindingPtrOutput() TagKeyIamBindingPtrOutput ToTagKeyIamBindingPtrOutputWithContext(ctx context.Context) TagKeyIamBindingPtrOutput }
type TagKeyIamBindingPtrOutput ¶
type TagKeyIamBindingPtrOutput struct{ *pulumi.OutputState }
func (TagKeyIamBindingPtrOutput) Elem ¶ added in v5.21.0
func (o TagKeyIamBindingPtrOutput) Elem() TagKeyIamBindingOutput
func (TagKeyIamBindingPtrOutput) ElementType ¶
func (TagKeyIamBindingPtrOutput) ElementType() reflect.Type
func (TagKeyIamBindingPtrOutput) ToTagKeyIamBindingPtrOutput ¶
func (o TagKeyIamBindingPtrOutput) ToTagKeyIamBindingPtrOutput() TagKeyIamBindingPtrOutput
func (TagKeyIamBindingPtrOutput) ToTagKeyIamBindingPtrOutputWithContext ¶
func (o TagKeyIamBindingPtrOutput) ToTagKeyIamBindingPtrOutputWithContext(ctx context.Context) TagKeyIamBindingPtrOutput
type TagKeyIamBindingState ¶
type TagKeyIamBindingState struct { Condition TagKeyIamBindingConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput Members pulumi.StringArrayInput // The role that should be applied. Only one // `tags.TagKeyIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringPtrInput }
func (TagKeyIamBindingState) ElementType ¶
func (TagKeyIamBindingState) ElementType() reflect.Type
type TagKeyIamMember ¶
type TagKeyIamMember struct { pulumi.CustomResourceState Condition TagKeyIamMemberConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` Member pulumi.StringOutput `pulumi:"member"` // The role that should be applied. Only one // `tags.TagKeyIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringOutput `pulumi:"tagKey"` }
Three different resources help you manage your IAM policy for Tags TagKey. Each of these resources serves a different use case:
* `tags.TagKeyIamPolicy`: Authoritative. Sets the IAM policy for the tagkey and replaces any existing policy already attached. * `tags.TagKeyIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the tagkey are preserved. * `tags.TagKeyIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagkey are preserved.
> **Note:** `tags.TagKeyIamPolicy` **cannot** be used in conjunction with `tags.TagKeyIamBinding` and `tags.TagKeyIamMember` or they will fight over what your policy should be.
> **Note:** `tags.TagKeyIamBinding` resources **can be** used in conjunction with `tags.TagKeyIamMember` resources **only if** they do not grant privilege to the same role.
## google\_tags\_tag\_key\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = tags.NewTagKeyIamPolicy(ctx, "policy", &tags.TagKeyIamPolicyArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_key\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagKeyIamBinding(ctx, "binding", &tags.TagKeyIamBindingArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_key\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagKeyIamMember(ctx, "member", &tags.TagKeyIamMemberArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* tagKeys/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Tags tagkey IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamMember:TagKeyIamMember editor "tagKeys/{{tag_key}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamMember:TagKeyIamMember editor "tagKeys/{{tag_key}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamMember:TagKeyIamMember editor tagKeys/{{tag_key}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetTagKeyIamMember ¶
func GetTagKeyIamMember(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagKeyIamMemberState, opts ...pulumi.ResourceOption) (*TagKeyIamMember, error)
GetTagKeyIamMember gets an existing TagKeyIamMember 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 NewTagKeyIamMember ¶
func NewTagKeyIamMember(ctx *pulumi.Context, name string, args *TagKeyIamMemberArgs, opts ...pulumi.ResourceOption) (*TagKeyIamMember, error)
NewTagKeyIamMember registers a new resource with the given unique name, arguments, and options.
func (*TagKeyIamMember) ElementType ¶
func (*TagKeyIamMember) ElementType() reflect.Type
func (*TagKeyIamMember) ToTagKeyIamMemberOutput ¶
func (i *TagKeyIamMember) ToTagKeyIamMemberOutput() TagKeyIamMemberOutput
func (*TagKeyIamMember) ToTagKeyIamMemberOutputWithContext ¶
func (i *TagKeyIamMember) ToTagKeyIamMemberOutputWithContext(ctx context.Context) TagKeyIamMemberOutput
func (*TagKeyIamMember) ToTagKeyIamMemberPtrOutput ¶
func (i *TagKeyIamMember) ToTagKeyIamMemberPtrOutput() TagKeyIamMemberPtrOutput
func (*TagKeyIamMember) ToTagKeyIamMemberPtrOutputWithContext ¶
func (i *TagKeyIamMember) ToTagKeyIamMemberPtrOutputWithContext(ctx context.Context) TagKeyIamMemberPtrOutput
type TagKeyIamMemberArgs ¶
type TagKeyIamMemberArgs struct { Condition TagKeyIamMemberConditionPtrInput Member pulumi.StringInput // The role that should be applied. Only one // `tags.TagKeyIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringInput }
The set of arguments for constructing a TagKeyIamMember resource.
func (TagKeyIamMemberArgs) ElementType ¶
func (TagKeyIamMemberArgs) ElementType() reflect.Type
type TagKeyIamMemberArray ¶
type TagKeyIamMemberArray []TagKeyIamMemberInput
func (TagKeyIamMemberArray) ElementType ¶
func (TagKeyIamMemberArray) ElementType() reflect.Type
func (TagKeyIamMemberArray) ToTagKeyIamMemberArrayOutput ¶
func (i TagKeyIamMemberArray) ToTagKeyIamMemberArrayOutput() TagKeyIamMemberArrayOutput
func (TagKeyIamMemberArray) ToTagKeyIamMemberArrayOutputWithContext ¶
func (i TagKeyIamMemberArray) ToTagKeyIamMemberArrayOutputWithContext(ctx context.Context) TagKeyIamMemberArrayOutput
type TagKeyIamMemberArrayInput ¶
type TagKeyIamMemberArrayInput interface { pulumi.Input ToTagKeyIamMemberArrayOutput() TagKeyIamMemberArrayOutput ToTagKeyIamMemberArrayOutputWithContext(context.Context) TagKeyIamMemberArrayOutput }
TagKeyIamMemberArrayInput is an input type that accepts TagKeyIamMemberArray and TagKeyIamMemberArrayOutput values. You can construct a concrete instance of `TagKeyIamMemberArrayInput` via:
TagKeyIamMemberArray{ TagKeyIamMemberArgs{...} }
type TagKeyIamMemberArrayOutput ¶
type TagKeyIamMemberArrayOutput struct{ *pulumi.OutputState }
func (TagKeyIamMemberArrayOutput) ElementType ¶
func (TagKeyIamMemberArrayOutput) ElementType() reflect.Type
func (TagKeyIamMemberArrayOutput) Index ¶
func (o TagKeyIamMemberArrayOutput) Index(i pulumi.IntInput) TagKeyIamMemberOutput
func (TagKeyIamMemberArrayOutput) ToTagKeyIamMemberArrayOutput ¶
func (o TagKeyIamMemberArrayOutput) ToTagKeyIamMemberArrayOutput() TagKeyIamMemberArrayOutput
func (TagKeyIamMemberArrayOutput) ToTagKeyIamMemberArrayOutputWithContext ¶
func (o TagKeyIamMemberArrayOutput) ToTagKeyIamMemberArrayOutputWithContext(ctx context.Context) TagKeyIamMemberArrayOutput
type TagKeyIamMemberConditionArgs ¶
type TagKeyIamMemberConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (TagKeyIamMemberConditionArgs) ElementType ¶
func (TagKeyIamMemberConditionArgs) ElementType() reflect.Type
func (TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionOutput ¶
func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionOutput() TagKeyIamMemberConditionOutput
func (TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionOutputWithContext ¶
func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionOutputWithContext(ctx context.Context) TagKeyIamMemberConditionOutput
func (TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionPtrOutput ¶
func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionPtrOutput() TagKeyIamMemberConditionPtrOutput
func (TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionPtrOutputWithContext ¶
func (i TagKeyIamMemberConditionArgs) ToTagKeyIamMemberConditionPtrOutputWithContext(ctx context.Context) TagKeyIamMemberConditionPtrOutput
type TagKeyIamMemberConditionInput ¶
type TagKeyIamMemberConditionInput interface { pulumi.Input ToTagKeyIamMemberConditionOutput() TagKeyIamMemberConditionOutput ToTagKeyIamMemberConditionOutputWithContext(context.Context) TagKeyIamMemberConditionOutput }
TagKeyIamMemberConditionInput is an input type that accepts TagKeyIamMemberConditionArgs and TagKeyIamMemberConditionOutput values. You can construct a concrete instance of `TagKeyIamMemberConditionInput` via:
TagKeyIamMemberConditionArgs{...}
type TagKeyIamMemberConditionOutput ¶
type TagKeyIamMemberConditionOutput struct{ *pulumi.OutputState }
func (TagKeyIamMemberConditionOutput) Description ¶
func (o TagKeyIamMemberConditionOutput) Description() pulumi.StringPtrOutput
func (TagKeyIamMemberConditionOutput) ElementType ¶
func (TagKeyIamMemberConditionOutput) ElementType() reflect.Type
func (TagKeyIamMemberConditionOutput) Expression ¶
func (o TagKeyIamMemberConditionOutput) Expression() pulumi.StringOutput
func (TagKeyIamMemberConditionOutput) Title ¶
func (o TagKeyIamMemberConditionOutput) Title() pulumi.StringOutput
func (TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionOutput ¶
func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionOutput() TagKeyIamMemberConditionOutput
func (TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionOutputWithContext ¶
func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionOutputWithContext(ctx context.Context) TagKeyIamMemberConditionOutput
func (TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionPtrOutput ¶
func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionPtrOutput() TagKeyIamMemberConditionPtrOutput
func (TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionPtrOutputWithContext ¶
func (o TagKeyIamMemberConditionOutput) ToTagKeyIamMemberConditionPtrOutputWithContext(ctx context.Context) TagKeyIamMemberConditionPtrOutput
type TagKeyIamMemberConditionPtrInput ¶
type TagKeyIamMemberConditionPtrInput interface { pulumi.Input ToTagKeyIamMemberConditionPtrOutput() TagKeyIamMemberConditionPtrOutput ToTagKeyIamMemberConditionPtrOutputWithContext(context.Context) TagKeyIamMemberConditionPtrOutput }
TagKeyIamMemberConditionPtrInput is an input type that accepts TagKeyIamMemberConditionArgs, TagKeyIamMemberConditionPtr and TagKeyIamMemberConditionPtrOutput values. You can construct a concrete instance of `TagKeyIamMemberConditionPtrInput` via:
TagKeyIamMemberConditionArgs{...} or: nil
func TagKeyIamMemberConditionPtr ¶
func TagKeyIamMemberConditionPtr(v *TagKeyIamMemberConditionArgs) TagKeyIamMemberConditionPtrInput
type TagKeyIamMemberConditionPtrOutput ¶
type TagKeyIamMemberConditionPtrOutput struct{ *pulumi.OutputState }
func (TagKeyIamMemberConditionPtrOutput) Description ¶
func (o TagKeyIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
func (TagKeyIamMemberConditionPtrOutput) Elem ¶
func (o TagKeyIamMemberConditionPtrOutput) Elem() TagKeyIamMemberConditionOutput
func (TagKeyIamMemberConditionPtrOutput) ElementType ¶
func (TagKeyIamMemberConditionPtrOutput) ElementType() reflect.Type
func (TagKeyIamMemberConditionPtrOutput) Expression ¶
func (o TagKeyIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (TagKeyIamMemberConditionPtrOutput) Title ¶
func (o TagKeyIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
func (TagKeyIamMemberConditionPtrOutput) ToTagKeyIamMemberConditionPtrOutput ¶
func (o TagKeyIamMemberConditionPtrOutput) ToTagKeyIamMemberConditionPtrOutput() TagKeyIamMemberConditionPtrOutput
func (TagKeyIamMemberConditionPtrOutput) ToTagKeyIamMemberConditionPtrOutputWithContext ¶
func (o TagKeyIamMemberConditionPtrOutput) ToTagKeyIamMemberConditionPtrOutputWithContext(ctx context.Context) TagKeyIamMemberConditionPtrOutput
type TagKeyIamMemberInput ¶
type TagKeyIamMemberInput interface { pulumi.Input ToTagKeyIamMemberOutput() TagKeyIamMemberOutput ToTagKeyIamMemberOutputWithContext(ctx context.Context) TagKeyIamMemberOutput }
type TagKeyIamMemberMap ¶
type TagKeyIamMemberMap map[string]TagKeyIamMemberInput
func (TagKeyIamMemberMap) ElementType ¶
func (TagKeyIamMemberMap) ElementType() reflect.Type
func (TagKeyIamMemberMap) ToTagKeyIamMemberMapOutput ¶
func (i TagKeyIamMemberMap) ToTagKeyIamMemberMapOutput() TagKeyIamMemberMapOutput
func (TagKeyIamMemberMap) ToTagKeyIamMemberMapOutputWithContext ¶
func (i TagKeyIamMemberMap) ToTagKeyIamMemberMapOutputWithContext(ctx context.Context) TagKeyIamMemberMapOutput
type TagKeyIamMemberMapInput ¶
type TagKeyIamMemberMapInput interface { pulumi.Input ToTagKeyIamMemberMapOutput() TagKeyIamMemberMapOutput ToTagKeyIamMemberMapOutputWithContext(context.Context) TagKeyIamMemberMapOutput }
TagKeyIamMemberMapInput is an input type that accepts TagKeyIamMemberMap and TagKeyIamMemberMapOutput values. You can construct a concrete instance of `TagKeyIamMemberMapInput` via:
TagKeyIamMemberMap{ "key": TagKeyIamMemberArgs{...} }
type TagKeyIamMemberMapOutput ¶
type TagKeyIamMemberMapOutput struct{ *pulumi.OutputState }
func (TagKeyIamMemberMapOutput) ElementType ¶
func (TagKeyIamMemberMapOutput) ElementType() reflect.Type
func (TagKeyIamMemberMapOutput) MapIndex ¶
func (o TagKeyIamMemberMapOutput) MapIndex(k pulumi.StringInput) TagKeyIamMemberOutput
func (TagKeyIamMemberMapOutput) ToTagKeyIamMemberMapOutput ¶
func (o TagKeyIamMemberMapOutput) ToTagKeyIamMemberMapOutput() TagKeyIamMemberMapOutput
func (TagKeyIamMemberMapOutput) ToTagKeyIamMemberMapOutputWithContext ¶
func (o TagKeyIamMemberMapOutput) ToTagKeyIamMemberMapOutputWithContext(ctx context.Context) TagKeyIamMemberMapOutput
type TagKeyIamMemberOutput ¶
type TagKeyIamMemberOutput struct{ *pulumi.OutputState }
func (TagKeyIamMemberOutput) ElementType ¶
func (TagKeyIamMemberOutput) ElementType() reflect.Type
func (TagKeyIamMemberOutput) ToTagKeyIamMemberOutput ¶
func (o TagKeyIamMemberOutput) ToTagKeyIamMemberOutput() TagKeyIamMemberOutput
func (TagKeyIamMemberOutput) ToTagKeyIamMemberOutputWithContext ¶
func (o TagKeyIamMemberOutput) ToTagKeyIamMemberOutputWithContext(ctx context.Context) TagKeyIamMemberOutput
func (TagKeyIamMemberOutput) ToTagKeyIamMemberPtrOutput ¶
func (o TagKeyIamMemberOutput) ToTagKeyIamMemberPtrOutput() TagKeyIamMemberPtrOutput
func (TagKeyIamMemberOutput) ToTagKeyIamMemberPtrOutputWithContext ¶
func (o TagKeyIamMemberOutput) ToTagKeyIamMemberPtrOutputWithContext(ctx context.Context) TagKeyIamMemberPtrOutput
type TagKeyIamMemberPtrInput ¶
type TagKeyIamMemberPtrInput interface { pulumi.Input ToTagKeyIamMemberPtrOutput() TagKeyIamMemberPtrOutput ToTagKeyIamMemberPtrOutputWithContext(ctx context.Context) TagKeyIamMemberPtrOutput }
type TagKeyIamMemberPtrOutput ¶
type TagKeyIamMemberPtrOutput struct{ *pulumi.OutputState }
func (TagKeyIamMemberPtrOutput) Elem ¶ added in v5.21.0
func (o TagKeyIamMemberPtrOutput) Elem() TagKeyIamMemberOutput
func (TagKeyIamMemberPtrOutput) ElementType ¶
func (TagKeyIamMemberPtrOutput) ElementType() reflect.Type
func (TagKeyIamMemberPtrOutput) ToTagKeyIamMemberPtrOutput ¶
func (o TagKeyIamMemberPtrOutput) ToTagKeyIamMemberPtrOutput() TagKeyIamMemberPtrOutput
func (TagKeyIamMemberPtrOutput) ToTagKeyIamMemberPtrOutputWithContext ¶
func (o TagKeyIamMemberPtrOutput) ToTagKeyIamMemberPtrOutputWithContext(ctx context.Context) TagKeyIamMemberPtrOutput
type TagKeyIamMemberState ¶
type TagKeyIamMemberState struct { Condition TagKeyIamMemberConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput Member pulumi.StringPtrInput // The role that should be applied. Only one // `tags.TagKeyIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringPtrInput }
func (TagKeyIamMemberState) ElementType ¶
func (TagKeyIamMemberState) ElementType() reflect.Type
type TagKeyIamPolicy ¶
type TagKeyIamPolicy struct { pulumi.CustomResourceState // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringOutput `pulumi:"policyData"` // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringOutput `pulumi:"tagKey"` }
Three different resources help you manage your IAM policy for Tags TagKey. Each of these resources serves a different use case:
* `tags.TagKeyIamPolicy`: Authoritative. Sets the IAM policy for the tagkey and replaces any existing policy already attached. * `tags.TagKeyIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the tagkey are preserved. * `tags.TagKeyIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagkey are preserved.
> **Note:** `tags.TagKeyIamPolicy` **cannot** be used in conjunction with `tags.TagKeyIamBinding` and `tags.TagKeyIamMember` or they will fight over what your policy should be.
> **Note:** `tags.TagKeyIamBinding` resources **can be** used in conjunction with `tags.TagKeyIamMember` resources **only if** they do not grant privilege to the same role.
## google\_tags\_tag\_key\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = tags.NewTagKeyIamPolicy(ctx, "policy", &tags.TagKeyIamPolicyArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_key\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagKeyIamBinding(ctx, "binding", &tags.TagKeyIamBindingArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_key\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagKeyIamMember(ctx, "member", &tags.TagKeyIamMemberArgs{ TagKey: pulumi.Any(google_tags_tag_key.Key.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* tagKeys/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Tags tagkey IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamPolicy:TagKeyIamPolicy editor "tagKeys/{{tag_key}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamPolicy:TagKeyIamPolicy editor "tagKeys/{{tag_key}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:tags/tagKeyIamPolicy:TagKeyIamPolicy editor tagKeys/{{tag_key}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetTagKeyIamPolicy ¶
func GetTagKeyIamPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagKeyIamPolicyState, opts ...pulumi.ResourceOption) (*TagKeyIamPolicy, error)
GetTagKeyIamPolicy gets an existing TagKeyIamPolicy 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 NewTagKeyIamPolicy ¶
func NewTagKeyIamPolicy(ctx *pulumi.Context, name string, args *TagKeyIamPolicyArgs, opts ...pulumi.ResourceOption) (*TagKeyIamPolicy, error)
NewTagKeyIamPolicy registers a new resource with the given unique name, arguments, and options.
func (*TagKeyIamPolicy) ElementType ¶
func (*TagKeyIamPolicy) ElementType() reflect.Type
func (*TagKeyIamPolicy) ToTagKeyIamPolicyOutput ¶
func (i *TagKeyIamPolicy) ToTagKeyIamPolicyOutput() TagKeyIamPolicyOutput
func (*TagKeyIamPolicy) ToTagKeyIamPolicyOutputWithContext ¶
func (i *TagKeyIamPolicy) ToTagKeyIamPolicyOutputWithContext(ctx context.Context) TagKeyIamPolicyOutput
func (*TagKeyIamPolicy) ToTagKeyIamPolicyPtrOutput ¶
func (i *TagKeyIamPolicy) ToTagKeyIamPolicyPtrOutput() TagKeyIamPolicyPtrOutput
func (*TagKeyIamPolicy) ToTagKeyIamPolicyPtrOutputWithContext ¶
func (i *TagKeyIamPolicy) ToTagKeyIamPolicyPtrOutputWithContext(ctx context.Context) TagKeyIamPolicyPtrOutput
type TagKeyIamPolicyArgs ¶
type TagKeyIamPolicyArgs struct { // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringInput // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringInput }
The set of arguments for constructing a TagKeyIamPolicy resource.
func (TagKeyIamPolicyArgs) ElementType ¶
func (TagKeyIamPolicyArgs) ElementType() reflect.Type
type TagKeyIamPolicyArray ¶
type TagKeyIamPolicyArray []TagKeyIamPolicyInput
func (TagKeyIamPolicyArray) ElementType ¶
func (TagKeyIamPolicyArray) ElementType() reflect.Type
func (TagKeyIamPolicyArray) ToTagKeyIamPolicyArrayOutput ¶
func (i TagKeyIamPolicyArray) ToTagKeyIamPolicyArrayOutput() TagKeyIamPolicyArrayOutput
func (TagKeyIamPolicyArray) ToTagKeyIamPolicyArrayOutputWithContext ¶
func (i TagKeyIamPolicyArray) ToTagKeyIamPolicyArrayOutputWithContext(ctx context.Context) TagKeyIamPolicyArrayOutput
type TagKeyIamPolicyArrayInput ¶
type TagKeyIamPolicyArrayInput interface { pulumi.Input ToTagKeyIamPolicyArrayOutput() TagKeyIamPolicyArrayOutput ToTagKeyIamPolicyArrayOutputWithContext(context.Context) TagKeyIamPolicyArrayOutput }
TagKeyIamPolicyArrayInput is an input type that accepts TagKeyIamPolicyArray and TagKeyIamPolicyArrayOutput values. You can construct a concrete instance of `TagKeyIamPolicyArrayInput` via:
TagKeyIamPolicyArray{ TagKeyIamPolicyArgs{...} }
type TagKeyIamPolicyArrayOutput ¶
type TagKeyIamPolicyArrayOutput struct{ *pulumi.OutputState }
func (TagKeyIamPolicyArrayOutput) ElementType ¶
func (TagKeyIamPolicyArrayOutput) ElementType() reflect.Type
func (TagKeyIamPolicyArrayOutput) Index ¶
func (o TagKeyIamPolicyArrayOutput) Index(i pulumi.IntInput) TagKeyIamPolicyOutput
func (TagKeyIamPolicyArrayOutput) ToTagKeyIamPolicyArrayOutput ¶
func (o TagKeyIamPolicyArrayOutput) ToTagKeyIamPolicyArrayOutput() TagKeyIamPolicyArrayOutput
func (TagKeyIamPolicyArrayOutput) ToTagKeyIamPolicyArrayOutputWithContext ¶
func (o TagKeyIamPolicyArrayOutput) ToTagKeyIamPolicyArrayOutputWithContext(ctx context.Context) TagKeyIamPolicyArrayOutput
type TagKeyIamPolicyInput ¶
type TagKeyIamPolicyInput interface { pulumi.Input ToTagKeyIamPolicyOutput() TagKeyIamPolicyOutput ToTagKeyIamPolicyOutputWithContext(ctx context.Context) TagKeyIamPolicyOutput }
type TagKeyIamPolicyMap ¶
type TagKeyIamPolicyMap map[string]TagKeyIamPolicyInput
func (TagKeyIamPolicyMap) ElementType ¶
func (TagKeyIamPolicyMap) ElementType() reflect.Type
func (TagKeyIamPolicyMap) ToTagKeyIamPolicyMapOutput ¶
func (i TagKeyIamPolicyMap) ToTagKeyIamPolicyMapOutput() TagKeyIamPolicyMapOutput
func (TagKeyIamPolicyMap) ToTagKeyIamPolicyMapOutputWithContext ¶
func (i TagKeyIamPolicyMap) ToTagKeyIamPolicyMapOutputWithContext(ctx context.Context) TagKeyIamPolicyMapOutput
type TagKeyIamPolicyMapInput ¶
type TagKeyIamPolicyMapInput interface { pulumi.Input ToTagKeyIamPolicyMapOutput() TagKeyIamPolicyMapOutput ToTagKeyIamPolicyMapOutputWithContext(context.Context) TagKeyIamPolicyMapOutput }
TagKeyIamPolicyMapInput is an input type that accepts TagKeyIamPolicyMap and TagKeyIamPolicyMapOutput values. You can construct a concrete instance of `TagKeyIamPolicyMapInput` via:
TagKeyIamPolicyMap{ "key": TagKeyIamPolicyArgs{...} }
type TagKeyIamPolicyMapOutput ¶
type TagKeyIamPolicyMapOutput struct{ *pulumi.OutputState }
func (TagKeyIamPolicyMapOutput) ElementType ¶
func (TagKeyIamPolicyMapOutput) ElementType() reflect.Type
func (TagKeyIamPolicyMapOutput) MapIndex ¶
func (o TagKeyIamPolicyMapOutput) MapIndex(k pulumi.StringInput) TagKeyIamPolicyOutput
func (TagKeyIamPolicyMapOutput) ToTagKeyIamPolicyMapOutput ¶
func (o TagKeyIamPolicyMapOutput) ToTagKeyIamPolicyMapOutput() TagKeyIamPolicyMapOutput
func (TagKeyIamPolicyMapOutput) ToTagKeyIamPolicyMapOutputWithContext ¶
func (o TagKeyIamPolicyMapOutput) ToTagKeyIamPolicyMapOutputWithContext(ctx context.Context) TagKeyIamPolicyMapOutput
type TagKeyIamPolicyOutput ¶
type TagKeyIamPolicyOutput struct{ *pulumi.OutputState }
func (TagKeyIamPolicyOutput) ElementType ¶
func (TagKeyIamPolicyOutput) ElementType() reflect.Type
func (TagKeyIamPolicyOutput) ToTagKeyIamPolicyOutput ¶
func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyOutput() TagKeyIamPolicyOutput
func (TagKeyIamPolicyOutput) ToTagKeyIamPolicyOutputWithContext ¶
func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyOutputWithContext(ctx context.Context) TagKeyIamPolicyOutput
func (TagKeyIamPolicyOutput) ToTagKeyIamPolicyPtrOutput ¶
func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyPtrOutput() TagKeyIamPolicyPtrOutput
func (TagKeyIamPolicyOutput) ToTagKeyIamPolicyPtrOutputWithContext ¶
func (o TagKeyIamPolicyOutput) ToTagKeyIamPolicyPtrOutputWithContext(ctx context.Context) TagKeyIamPolicyPtrOutput
type TagKeyIamPolicyPtrInput ¶
type TagKeyIamPolicyPtrInput interface { pulumi.Input ToTagKeyIamPolicyPtrOutput() TagKeyIamPolicyPtrOutput ToTagKeyIamPolicyPtrOutputWithContext(ctx context.Context) TagKeyIamPolicyPtrOutput }
type TagKeyIamPolicyPtrOutput ¶
type TagKeyIamPolicyPtrOutput struct{ *pulumi.OutputState }
func (TagKeyIamPolicyPtrOutput) Elem ¶ added in v5.21.0
func (o TagKeyIamPolicyPtrOutput) Elem() TagKeyIamPolicyOutput
func (TagKeyIamPolicyPtrOutput) ElementType ¶
func (TagKeyIamPolicyPtrOutput) ElementType() reflect.Type
func (TagKeyIamPolicyPtrOutput) ToTagKeyIamPolicyPtrOutput ¶
func (o TagKeyIamPolicyPtrOutput) ToTagKeyIamPolicyPtrOutput() TagKeyIamPolicyPtrOutput
func (TagKeyIamPolicyPtrOutput) ToTagKeyIamPolicyPtrOutputWithContext ¶
func (o TagKeyIamPolicyPtrOutput) ToTagKeyIamPolicyPtrOutputWithContext(ctx context.Context) TagKeyIamPolicyPtrOutput
type TagKeyIamPolicyState ¶
type TagKeyIamPolicyState struct { // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to TagKey pulumi.StringPtrInput }
func (TagKeyIamPolicyState) ElementType ¶
func (TagKeyIamPolicyState) ElementType() reflect.Type
type TagKeyInput ¶
type TagKeyInput interface { pulumi.Input ToTagKeyOutput() TagKeyOutput ToTagKeyOutputWithContext(ctx context.Context) TagKeyOutput }
type TagKeyMap ¶
type TagKeyMap map[string]TagKeyInput
func (TagKeyMap) ElementType ¶
func (TagKeyMap) ToTagKeyMapOutput ¶
func (i TagKeyMap) ToTagKeyMapOutput() TagKeyMapOutput
func (TagKeyMap) ToTagKeyMapOutputWithContext ¶
func (i TagKeyMap) ToTagKeyMapOutputWithContext(ctx context.Context) TagKeyMapOutput
type TagKeyMapInput ¶
type TagKeyMapInput interface { pulumi.Input ToTagKeyMapOutput() TagKeyMapOutput ToTagKeyMapOutputWithContext(context.Context) TagKeyMapOutput }
TagKeyMapInput is an input type that accepts TagKeyMap and TagKeyMapOutput values. You can construct a concrete instance of `TagKeyMapInput` via:
TagKeyMap{ "key": TagKeyArgs{...} }
type TagKeyMapOutput ¶
type TagKeyMapOutput struct{ *pulumi.OutputState }
func (TagKeyMapOutput) ElementType ¶
func (TagKeyMapOutput) ElementType() reflect.Type
func (TagKeyMapOutput) MapIndex ¶
func (o TagKeyMapOutput) MapIndex(k pulumi.StringInput) TagKeyOutput
func (TagKeyMapOutput) ToTagKeyMapOutput ¶
func (o TagKeyMapOutput) ToTagKeyMapOutput() TagKeyMapOutput
func (TagKeyMapOutput) ToTagKeyMapOutputWithContext ¶
func (o TagKeyMapOutput) ToTagKeyMapOutputWithContext(ctx context.Context) TagKeyMapOutput
type TagKeyOutput ¶
type TagKeyOutput struct{ *pulumi.OutputState }
func (TagKeyOutput) ElementType ¶
func (TagKeyOutput) ElementType() reflect.Type
func (TagKeyOutput) ToTagKeyOutput ¶
func (o TagKeyOutput) ToTagKeyOutput() TagKeyOutput
func (TagKeyOutput) ToTagKeyOutputWithContext ¶
func (o TagKeyOutput) ToTagKeyOutputWithContext(ctx context.Context) TagKeyOutput
func (TagKeyOutput) ToTagKeyPtrOutput ¶
func (o TagKeyOutput) ToTagKeyPtrOutput() TagKeyPtrOutput
func (TagKeyOutput) ToTagKeyPtrOutputWithContext ¶
func (o TagKeyOutput) ToTagKeyPtrOutputWithContext(ctx context.Context) TagKeyPtrOutput
type TagKeyPtrInput ¶
type TagKeyPtrInput interface { pulumi.Input ToTagKeyPtrOutput() TagKeyPtrOutput ToTagKeyPtrOutputWithContext(ctx context.Context) TagKeyPtrOutput }
type TagKeyPtrOutput ¶
type TagKeyPtrOutput struct{ *pulumi.OutputState }
func (TagKeyPtrOutput) Elem ¶ added in v5.21.0
func (o TagKeyPtrOutput) Elem() TagKeyOutput
func (TagKeyPtrOutput) ElementType ¶
func (TagKeyPtrOutput) ElementType() reflect.Type
func (TagKeyPtrOutput) ToTagKeyPtrOutput ¶
func (o TagKeyPtrOutput) ToTagKeyPtrOutput() TagKeyPtrOutput
func (TagKeyPtrOutput) ToTagKeyPtrOutputWithContext ¶
func (o TagKeyPtrOutput) ToTagKeyPtrOutputWithContext(ctx context.Context) TagKeyPtrOutput
type TagKeyState ¶
type TagKeyState struct { // Output only. Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". CreateTime pulumi.StringPtrInput // User-assigned description of the TagKey. Must not exceed 256 characters. Description pulumi.StringPtrInput // The generated numeric id for the TagKey. Name pulumi.StringPtrInput // Output only. Namespaced name of the TagKey. NamespacedName pulumi.StringPtrInput // Input only. The resource name of the new TagKey's parent. Must be of the form organizations/{org_id}. Parent pulumi.StringPtrInput // Input only. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. // The short name must be 1-63 characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. ShortName pulumi.StringPtrInput // Output only. Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional // digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". UpdateTime pulumi.StringPtrInput }
func (TagKeyState) ElementType ¶
func (TagKeyState) ElementType() reflect.Type
type TagValue ¶
type TagValue struct { pulumi.CustomResourceState // Output only. Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". CreateTime pulumi.StringOutput `pulumi:"createTime"` // User-assigned description of the TagValue. Must not exceed 256 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // The generated numeric id for the TagValue. Name pulumi.StringOutput `pulumi:"name"` // Output only. Namespaced name of the TagValue. Will be in the format {organizationId}/{tag_key_short_name}/{shortName}. NamespacedName pulumi.StringOutput `pulumi:"namespacedName"` // Input only. The resource name of the new TagValue's parent. Must be of the form tagKeys/{tag_key_id}. Parent pulumi.StringOutput `pulumi:"parent"` // Input only. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. // The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. ShortName pulumi.StringOutput `pulumi:"shortName"` // Output only. Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional // digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". UpdateTime pulumi.StringOutput `pulumi:"updateTime"` }
A TagValue is a child of a particular TagKey. TagValues are used to group cloud resources for the purpose of controlling them using policies.
To get more information about TagValue, see:
* [API documentation](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues) * How-to Guides
- [Official Documentation](https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
## Example Usage ### Tag Value Basic
```go package main
import (
"fmt" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { key, err := tags.NewTagKey(ctx, "key", &tags.TagKeyArgs{ Description: pulumi.String("For keyname resources."), Parent: pulumi.String("organizations/123456789"), ShortName: pulumi.String("keyname"), }) if err != nil { return err } _, err = tags.NewTagValue(ctx, "value", &tags.TagValueArgs{ Description: pulumi.String("For valuename resources."), Parent: key.Name.ApplyT(func(name string) (string, error) { return fmt.Sprintf("%v%v", "tagKeys/", name), nil }).(pulumi.StringOutput), ShortName: pulumi.String("valuename"), }) if err != nil { return err } return nil }) }
```
## Import
TagValue can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:tags/tagValue:TagValue default tagValues/{{name}}
```
```sh
$ pulumi import gcp:tags/tagValue:TagValue default {{name}}
```
func GetTagValue ¶
func GetTagValue(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagValueState, opts ...pulumi.ResourceOption) (*TagValue, error)
GetTagValue gets an existing TagValue 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 NewTagValue ¶
func NewTagValue(ctx *pulumi.Context, name string, args *TagValueArgs, opts ...pulumi.ResourceOption) (*TagValue, error)
NewTagValue registers a new resource with the given unique name, arguments, and options.
func (*TagValue) ElementType ¶
func (*TagValue) ToTagValueOutput ¶
func (i *TagValue) ToTagValueOutput() TagValueOutput
func (*TagValue) ToTagValueOutputWithContext ¶
func (i *TagValue) ToTagValueOutputWithContext(ctx context.Context) TagValueOutput
func (*TagValue) ToTagValuePtrOutput ¶
func (i *TagValue) ToTagValuePtrOutput() TagValuePtrOutput
func (*TagValue) ToTagValuePtrOutputWithContext ¶
func (i *TagValue) ToTagValuePtrOutputWithContext(ctx context.Context) TagValuePtrOutput
type TagValueArgs ¶
type TagValueArgs struct { // User-assigned description of the TagValue. Must not exceed 256 characters. Description pulumi.StringPtrInput // Input only. The resource name of the new TagValue's parent. Must be of the form tagKeys/{tag_key_id}. Parent pulumi.StringInput // Input only. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. // The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. ShortName pulumi.StringInput }
The set of arguments for constructing a TagValue resource.
func (TagValueArgs) ElementType ¶
func (TagValueArgs) ElementType() reflect.Type
type TagValueArray ¶
type TagValueArray []TagValueInput
func (TagValueArray) ElementType ¶
func (TagValueArray) ElementType() reflect.Type
func (TagValueArray) ToTagValueArrayOutput ¶
func (i TagValueArray) ToTagValueArrayOutput() TagValueArrayOutput
func (TagValueArray) ToTagValueArrayOutputWithContext ¶
func (i TagValueArray) ToTagValueArrayOutputWithContext(ctx context.Context) TagValueArrayOutput
type TagValueArrayInput ¶
type TagValueArrayInput interface { pulumi.Input ToTagValueArrayOutput() TagValueArrayOutput ToTagValueArrayOutputWithContext(context.Context) TagValueArrayOutput }
TagValueArrayInput is an input type that accepts TagValueArray and TagValueArrayOutput values. You can construct a concrete instance of `TagValueArrayInput` via:
TagValueArray{ TagValueArgs{...} }
type TagValueArrayOutput ¶
type TagValueArrayOutput struct{ *pulumi.OutputState }
func (TagValueArrayOutput) ElementType ¶
func (TagValueArrayOutput) ElementType() reflect.Type
func (TagValueArrayOutput) Index ¶
func (o TagValueArrayOutput) Index(i pulumi.IntInput) TagValueOutput
func (TagValueArrayOutput) ToTagValueArrayOutput ¶
func (o TagValueArrayOutput) ToTagValueArrayOutput() TagValueArrayOutput
func (TagValueArrayOutput) ToTagValueArrayOutputWithContext ¶
func (o TagValueArrayOutput) ToTagValueArrayOutputWithContext(ctx context.Context) TagValueArrayOutput
type TagValueIamBinding ¶
type TagValueIamBinding struct { pulumi.CustomResourceState Condition TagValueIamBindingConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` Members pulumi.StringArrayOutput `pulumi:"members"` // The role that should be applied. Only one // `tags.TagValueIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringOutput `pulumi:"tagValue"` }
Three different resources help you manage your IAM policy for Tags TagValue. Each of these resources serves a different use case:
* `tags.TagValueIamPolicy`: Authoritative. Sets the IAM policy for the tagvalue and replaces any existing policy already attached. * `tags.TagValueIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the tagvalue are preserved. * `tags.TagValueIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagvalue are preserved.
> **Note:** `tags.TagValueIamPolicy` **cannot** be used in conjunction with `tags.TagValueIamBinding` and `tags.TagValueIamMember` or they will fight over what your policy should be.
> **Note:** `tags.TagValueIamBinding` resources **can be** used in conjunction with `tags.TagValueIamMember` resources **only if** they do not grant privilege to the same role.
## google\_tags\_tag\_value\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = tags.NewTagValueIamPolicy(ctx, "policy", &tags.TagValueIamPolicyArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_value\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagValueIamBinding(ctx, "binding", &tags.TagValueIamBindingArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_value\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagValueIamMember(ctx, "member", &tags.TagValueIamMemberArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* tagValues/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Tags tagvalue IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamBinding:TagValueIamBinding editor "tagValues/{{tag_value}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamBinding:TagValueIamBinding editor "tagValues/{{tag_value}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamBinding:TagValueIamBinding editor tagValues/{{tag_value}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetTagValueIamBinding ¶
func GetTagValueIamBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagValueIamBindingState, opts ...pulumi.ResourceOption) (*TagValueIamBinding, error)
GetTagValueIamBinding gets an existing TagValueIamBinding 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 NewTagValueIamBinding ¶
func NewTagValueIamBinding(ctx *pulumi.Context, name string, args *TagValueIamBindingArgs, opts ...pulumi.ResourceOption) (*TagValueIamBinding, error)
NewTagValueIamBinding registers a new resource with the given unique name, arguments, and options.
func (*TagValueIamBinding) ElementType ¶
func (*TagValueIamBinding) ElementType() reflect.Type
func (*TagValueIamBinding) ToTagValueIamBindingOutput ¶
func (i *TagValueIamBinding) ToTagValueIamBindingOutput() TagValueIamBindingOutput
func (*TagValueIamBinding) ToTagValueIamBindingOutputWithContext ¶
func (i *TagValueIamBinding) ToTagValueIamBindingOutputWithContext(ctx context.Context) TagValueIamBindingOutput
func (*TagValueIamBinding) ToTagValueIamBindingPtrOutput ¶
func (i *TagValueIamBinding) ToTagValueIamBindingPtrOutput() TagValueIamBindingPtrOutput
func (*TagValueIamBinding) ToTagValueIamBindingPtrOutputWithContext ¶
func (i *TagValueIamBinding) ToTagValueIamBindingPtrOutputWithContext(ctx context.Context) TagValueIamBindingPtrOutput
type TagValueIamBindingArgs ¶
type TagValueIamBindingArgs struct { Condition TagValueIamBindingConditionPtrInput Members pulumi.StringArrayInput // The role that should be applied. Only one // `tags.TagValueIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringInput }
The set of arguments for constructing a TagValueIamBinding resource.
func (TagValueIamBindingArgs) ElementType ¶
func (TagValueIamBindingArgs) ElementType() reflect.Type
type TagValueIamBindingArray ¶
type TagValueIamBindingArray []TagValueIamBindingInput
func (TagValueIamBindingArray) ElementType ¶
func (TagValueIamBindingArray) ElementType() reflect.Type
func (TagValueIamBindingArray) ToTagValueIamBindingArrayOutput ¶
func (i TagValueIamBindingArray) ToTagValueIamBindingArrayOutput() TagValueIamBindingArrayOutput
func (TagValueIamBindingArray) ToTagValueIamBindingArrayOutputWithContext ¶
func (i TagValueIamBindingArray) ToTagValueIamBindingArrayOutputWithContext(ctx context.Context) TagValueIamBindingArrayOutput
type TagValueIamBindingArrayInput ¶
type TagValueIamBindingArrayInput interface { pulumi.Input ToTagValueIamBindingArrayOutput() TagValueIamBindingArrayOutput ToTagValueIamBindingArrayOutputWithContext(context.Context) TagValueIamBindingArrayOutput }
TagValueIamBindingArrayInput is an input type that accepts TagValueIamBindingArray and TagValueIamBindingArrayOutput values. You can construct a concrete instance of `TagValueIamBindingArrayInput` via:
TagValueIamBindingArray{ TagValueIamBindingArgs{...} }
type TagValueIamBindingArrayOutput ¶
type TagValueIamBindingArrayOutput struct{ *pulumi.OutputState }
func (TagValueIamBindingArrayOutput) ElementType ¶
func (TagValueIamBindingArrayOutput) ElementType() reflect.Type
func (TagValueIamBindingArrayOutput) Index ¶
func (o TagValueIamBindingArrayOutput) Index(i pulumi.IntInput) TagValueIamBindingOutput
func (TagValueIamBindingArrayOutput) ToTagValueIamBindingArrayOutput ¶
func (o TagValueIamBindingArrayOutput) ToTagValueIamBindingArrayOutput() TagValueIamBindingArrayOutput
func (TagValueIamBindingArrayOutput) ToTagValueIamBindingArrayOutputWithContext ¶
func (o TagValueIamBindingArrayOutput) ToTagValueIamBindingArrayOutputWithContext(ctx context.Context) TagValueIamBindingArrayOutput
type TagValueIamBindingConditionArgs ¶
type TagValueIamBindingConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (TagValueIamBindingConditionArgs) ElementType ¶
func (TagValueIamBindingConditionArgs) ElementType() reflect.Type
func (TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionOutput ¶
func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionOutput() TagValueIamBindingConditionOutput
func (TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionOutputWithContext ¶
func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionOutputWithContext(ctx context.Context) TagValueIamBindingConditionOutput
func (TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionPtrOutput ¶
func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionPtrOutput() TagValueIamBindingConditionPtrOutput
func (TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionPtrOutputWithContext ¶
func (i TagValueIamBindingConditionArgs) ToTagValueIamBindingConditionPtrOutputWithContext(ctx context.Context) TagValueIamBindingConditionPtrOutput
type TagValueIamBindingConditionInput ¶
type TagValueIamBindingConditionInput interface { pulumi.Input ToTagValueIamBindingConditionOutput() TagValueIamBindingConditionOutput ToTagValueIamBindingConditionOutputWithContext(context.Context) TagValueIamBindingConditionOutput }
TagValueIamBindingConditionInput is an input type that accepts TagValueIamBindingConditionArgs and TagValueIamBindingConditionOutput values. You can construct a concrete instance of `TagValueIamBindingConditionInput` via:
TagValueIamBindingConditionArgs{...}
type TagValueIamBindingConditionOutput ¶
type TagValueIamBindingConditionOutput struct{ *pulumi.OutputState }
func (TagValueIamBindingConditionOutput) Description ¶
func (o TagValueIamBindingConditionOutput) Description() pulumi.StringPtrOutput
func (TagValueIamBindingConditionOutput) ElementType ¶
func (TagValueIamBindingConditionOutput) ElementType() reflect.Type
func (TagValueIamBindingConditionOutput) Expression ¶
func (o TagValueIamBindingConditionOutput) Expression() pulumi.StringOutput
func (TagValueIamBindingConditionOutput) Title ¶
func (o TagValueIamBindingConditionOutput) Title() pulumi.StringOutput
func (TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionOutput ¶
func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionOutput() TagValueIamBindingConditionOutput
func (TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionOutputWithContext ¶
func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionOutputWithContext(ctx context.Context) TagValueIamBindingConditionOutput
func (TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionPtrOutput ¶
func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionPtrOutput() TagValueIamBindingConditionPtrOutput
func (TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionPtrOutputWithContext ¶
func (o TagValueIamBindingConditionOutput) ToTagValueIamBindingConditionPtrOutputWithContext(ctx context.Context) TagValueIamBindingConditionPtrOutput
type TagValueIamBindingConditionPtrInput ¶
type TagValueIamBindingConditionPtrInput interface { pulumi.Input ToTagValueIamBindingConditionPtrOutput() TagValueIamBindingConditionPtrOutput ToTagValueIamBindingConditionPtrOutputWithContext(context.Context) TagValueIamBindingConditionPtrOutput }
TagValueIamBindingConditionPtrInput is an input type that accepts TagValueIamBindingConditionArgs, TagValueIamBindingConditionPtr and TagValueIamBindingConditionPtrOutput values. You can construct a concrete instance of `TagValueIamBindingConditionPtrInput` via:
TagValueIamBindingConditionArgs{...} or: nil
func TagValueIamBindingConditionPtr ¶
func TagValueIamBindingConditionPtr(v *TagValueIamBindingConditionArgs) TagValueIamBindingConditionPtrInput
type TagValueIamBindingConditionPtrOutput ¶
type TagValueIamBindingConditionPtrOutput struct{ *pulumi.OutputState }
func (TagValueIamBindingConditionPtrOutput) Description ¶
func (o TagValueIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
func (TagValueIamBindingConditionPtrOutput) ElementType ¶
func (TagValueIamBindingConditionPtrOutput) ElementType() reflect.Type
func (TagValueIamBindingConditionPtrOutput) Expression ¶
func (o TagValueIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (TagValueIamBindingConditionPtrOutput) Title ¶
func (o TagValueIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
func (TagValueIamBindingConditionPtrOutput) ToTagValueIamBindingConditionPtrOutput ¶
func (o TagValueIamBindingConditionPtrOutput) ToTagValueIamBindingConditionPtrOutput() TagValueIamBindingConditionPtrOutput
func (TagValueIamBindingConditionPtrOutput) ToTagValueIamBindingConditionPtrOutputWithContext ¶
func (o TagValueIamBindingConditionPtrOutput) ToTagValueIamBindingConditionPtrOutputWithContext(ctx context.Context) TagValueIamBindingConditionPtrOutput
type TagValueIamBindingInput ¶
type TagValueIamBindingInput interface { pulumi.Input ToTagValueIamBindingOutput() TagValueIamBindingOutput ToTagValueIamBindingOutputWithContext(ctx context.Context) TagValueIamBindingOutput }
type TagValueIamBindingMap ¶
type TagValueIamBindingMap map[string]TagValueIamBindingInput
func (TagValueIamBindingMap) ElementType ¶
func (TagValueIamBindingMap) ElementType() reflect.Type
func (TagValueIamBindingMap) ToTagValueIamBindingMapOutput ¶
func (i TagValueIamBindingMap) ToTagValueIamBindingMapOutput() TagValueIamBindingMapOutput
func (TagValueIamBindingMap) ToTagValueIamBindingMapOutputWithContext ¶
func (i TagValueIamBindingMap) ToTagValueIamBindingMapOutputWithContext(ctx context.Context) TagValueIamBindingMapOutput
type TagValueIamBindingMapInput ¶
type TagValueIamBindingMapInput interface { pulumi.Input ToTagValueIamBindingMapOutput() TagValueIamBindingMapOutput ToTagValueIamBindingMapOutputWithContext(context.Context) TagValueIamBindingMapOutput }
TagValueIamBindingMapInput is an input type that accepts TagValueIamBindingMap and TagValueIamBindingMapOutput values. You can construct a concrete instance of `TagValueIamBindingMapInput` via:
TagValueIamBindingMap{ "key": TagValueIamBindingArgs{...} }
type TagValueIamBindingMapOutput ¶
type TagValueIamBindingMapOutput struct{ *pulumi.OutputState }
func (TagValueIamBindingMapOutput) ElementType ¶
func (TagValueIamBindingMapOutput) ElementType() reflect.Type
func (TagValueIamBindingMapOutput) MapIndex ¶
func (o TagValueIamBindingMapOutput) MapIndex(k pulumi.StringInput) TagValueIamBindingOutput
func (TagValueIamBindingMapOutput) ToTagValueIamBindingMapOutput ¶
func (o TagValueIamBindingMapOutput) ToTagValueIamBindingMapOutput() TagValueIamBindingMapOutput
func (TagValueIamBindingMapOutput) ToTagValueIamBindingMapOutputWithContext ¶
func (o TagValueIamBindingMapOutput) ToTagValueIamBindingMapOutputWithContext(ctx context.Context) TagValueIamBindingMapOutput
type TagValueIamBindingOutput ¶
type TagValueIamBindingOutput struct{ *pulumi.OutputState }
func (TagValueIamBindingOutput) ElementType ¶
func (TagValueIamBindingOutput) ElementType() reflect.Type
func (TagValueIamBindingOutput) ToTagValueIamBindingOutput ¶
func (o TagValueIamBindingOutput) ToTagValueIamBindingOutput() TagValueIamBindingOutput
func (TagValueIamBindingOutput) ToTagValueIamBindingOutputWithContext ¶
func (o TagValueIamBindingOutput) ToTagValueIamBindingOutputWithContext(ctx context.Context) TagValueIamBindingOutput
func (TagValueIamBindingOutput) ToTagValueIamBindingPtrOutput ¶
func (o TagValueIamBindingOutput) ToTagValueIamBindingPtrOutput() TagValueIamBindingPtrOutput
func (TagValueIamBindingOutput) ToTagValueIamBindingPtrOutputWithContext ¶
func (o TagValueIamBindingOutput) ToTagValueIamBindingPtrOutputWithContext(ctx context.Context) TagValueIamBindingPtrOutput
type TagValueIamBindingPtrInput ¶
type TagValueIamBindingPtrInput interface { pulumi.Input ToTagValueIamBindingPtrOutput() TagValueIamBindingPtrOutput ToTagValueIamBindingPtrOutputWithContext(ctx context.Context) TagValueIamBindingPtrOutput }
type TagValueIamBindingPtrOutput ¶
type TagValueIamBindingPtrOutput struct{ *pulumi.OutputState }
func (TagValueIamBindingPtrOutput) Elem ¶ added in v5.21.0
func (o TagValueIamBindingPtrOutput) Elem() TagValueIamBindingOutput
func (TagValueIamBindingPtrOutput) ElementType ¶
func (TagValueIamBindingPtrOutput) ElementType() reflect.Type
func (TagValueIamBindingPtrOutput) ToTagValueIamBindingPtrOutput ¶
func (o TagValueIamBindingPtrOutput) ToTagValueIamBindingPtrOutput() TagValueIamBindingPtrOutput
func (TagValueIamBindingPtrOutput) ToTagValueIamBindingPtrOutputWithContext ¶
func (o TagValueIamBindingPtrOutput) ToTagValueIamBindingPtrOutputWithContext(ctx context.Context) TagValueIamBindingPtrOutput
type TagValueIamBindingState ¶
type TagValueIamBindingState struct { Condition TagValueIamBindingConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput Members pulumi.StringArrayInput // The role that should be applied. Only one // `tags.TagValueIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringPtrInput }
func (TagValueIamBindingState) ElementType ¶
func (TagValueIamBindingState) ElementType() reflect.Type
type TagValueIamMember ¶
type TagValueIamMember struct { pulumi.CustomResourceState Condition TagValueIamMemberConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` Member pulumi.StringOutput `pulumi:"member"` // The role that should be applied. Only one // `tags.TagValueIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringOutput `pulumi:"tagValue"` }
Three different resources help you manage your IAM policy for Tags TagValue. Each of these resources serves a different use case:
* `tags.TagValueIamPolicy`: Authoritative. Sets the IAM policy for the tagvalue and replaces any existing policy already attached. * `tags.TagValueIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the tagvalue are preserved. * `tags.TagValueIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagvalue are preserved.
> **Note:** `tags.TagValueIamPolicy` **cannot** be used in conjunction with `tags.TagValueIamBinding` and `tags.TagValueIamMember` or they will fight over what your policy should be.
> **Note:** `tags.TagValueIamBinding` resources **can be** used in conjunction with `tags.TagValueIamMember` resources **only if** they do not grant privilege to the same role.
## google\_tags\_tag\_value\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = tags.NewTagValueIamPolicy(ctx, "policy", &tags.TagValueIamPolicyArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_value\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagValueIamBinding(ctx, "binding", &tags.TagValueIamBindingArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_value\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagValueIamMember(ctx, "member", &tags.TagValueIamMemberArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* tagValues/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Tags tagvalue IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamMember:TagValueIamMember editor "tagValues/{{tag_value}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamMember:TagValueIamMember editor "tagValues/{{tag_value}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamMember:TagValueIamMember editor tagValues/{{tag_value}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetTagValueIamMember ¶
func GetTagValueIamMember(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagValueIamMemberState, opts ...pulumi.ResourceOption) (*TagValueIamMember, error)
GetTagValueIamMember gets an existing TagValueIamMember 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 NewTagValueIamMember ¶
func NewTagValueIamMember(ctx *pulumi.Context, name string, args *TagValueIamMemberArgs, opts ...pulumi.ResourceOption) (*TagValueIamMember, error)
NewTagValueIamMember registers a new resource with the given unique name, arguments, and options.
func (*TagValueIamMember) ElementType ¶
func (*TagValueIamMember) ElementType() reflect.Type
func (*TagValueIamMember) ToTagValueIamMemberOutput ¶
func (i *TagValueIamMember) ToTagValueIamMemberOutput() TagValueIamMemberOutput
func (*TagValueIamMember) ToTagValueIamMemberOutputWithContext ¶
func (i *TagValueIamMember) ToTagValueIamMemberOutputWithContext(ctx context.Context) TagValueIamMemberOutput
func (*TagValueIamMember) ToTagValueIamMemberPtrOutput ¶
func (i *TagValueIamMember) ToTagValueIamMemberPtrOutput() TagValueIamMemberPtrOutput
func (*TagValueIamMember) ToTagValueIamMemberPtrOutputWithContext ¶
func (i *TagValueIamMember) ToTagValueIamMemberPtrOutputWithContext(ctx context.Context) TagValueIamMemberPtrOutput
type TagValueIamMemberArgs ¶
type TagValueIamMemberArgs struct { Condition TagValueIamMemberConditionPtrInput Member pulumi.StringInput // The role that should be applied. Only one // `tags.TagValueIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringInput }
The set of arguments for constructing a TagValueIamMember resource.
func (TagValueIamMemberArgs) ElementType ¶
func (TagValueIamMemberArgs) ElementType() reflect.Type
type TagValueIamMemberArray ¶
type TagValueIamMemberArray []TagValueIamMemberInput
func (TagValueIamMemberArray) ElementType ¶
func (TagValueIamMemberArray) ElementType() reflect.Type
func (TagValueIamMemberArray) ToTagValueIamMemberArrayOutput ¶
func (i TagValueIamMemberArray) ToTagValueIamMemberArrayOutput() TagValueIamMemberArrayOutput
func (TagValueIamMemberArray) ToTagValueIamMemberArrayOutputWithContext ¶
func (i TagValueIamMemberArray) ToTagValueIamMemberArrayOutputWithContext(ctx context.Context) TagValueIamMemberArrayOutput
type TagValueIamMemberArrayInput ¶
type TagValueIamMemberArrayInput interface { pulumi.Input ToTagValueIamMemberArrayOutput() TagValueIamMemberArrayOutput ToTagValueIamMemberArrayOutputWithContext(context.Context) TagValueIamMemberArrayOutput }
TagValueIamMemberArrayInput is an input type that accepts TagValueIamMemberArray and TagValueIamMemberArrayOutput values. You can construct a concrete instance of `TagValueIamMemberArrayInput` via:
TagValueIamMemberArray{ TagValueIamMemberArgs{...} }
type TagValueIamMemberArrayOutput ¶
type TagValueIamMemberArrayOutput struct{ *pulumi.OutputState }
func (TagValueIamMemberArrayOutput) ElementType ¶
func (TagValueIamMemberArrayOutput) ElementType() reflect.Type
func (TagValueIamMemberArrayOutput) Index ¶
func (o TagValueIamMemberArrayOutput) Index(i pulumi.IntInput) TagValueIamMemberOutput
func (TagValueIamMemberArrayOutput) ToTagValueIamMemberArrayOutput ¶
func (o TagValueIamMemberArrayOutput) ToTagValueIamMemberArrayOutput() TagValueIamMemberArrayOutput
func (TagValueIamMemberArrayOutput) ToTagValueIamMemberArrayOutputWithContext ¶
func (o TagValueIamMemberArrayOutput) ToTagValueIamMemberArrayOutputWithContext(ctx context.Context) TagValueIamMemberArrayOutput
type TagValueIamMemberConditionArgs ¶
type TagValueIamMemberConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (TagValueIamMemberConditionArgs) ElementType ¶
func (TagValueIamMemberConditionArgs) ElementType() reflect.Type
func (TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionOutput ¶
func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionOutput() TagValueIamMemberConditionOutput
func (TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionOutputWithContext ¶
func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionOutputWithContext(ctx context.Context) TagValueIamMemberConditionOutput
func (TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionPtrOutput ¶
func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionPtrOutput() TagValueIamMemberConditionPtrOutput
func (TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionPtrOutputWithContext ¶
func (i TagValueIamMemberConditionArgs) ToTagValueIamMemberConditionPtrOutputWithContext(ctx context.Context) TagValueIamMemberConditionPtrOutput
type TagValueIamMemberConditionInput ¶
type TagValueIamMemberConditionInput interface { pulumi.Input ToTagValueIamMemberConditionOutput() TagValueIamMemberConditionOutput ToTagValueIamMemberConditionOutputWithContext(context.Context) TagValueIamMemberConditionOutput }
TagValueIamMemberConditionInput is an input type that accepts TagValueIamMemberConditionArgs and TagValueIamMemberConditionOutput values. You can construct a concrete instance of `TagValueIamMemberConditionInput` via:
TagValueIamMemberConditionArgs{...}
type TagValueIamMemberConditionOutput ¶
type TagValueIamMemberConditionOutput struct{ *pulumi.OutputState }
func (TagValueIamMemberConditionOutput) Description ¶
func (o TagValueIamMemberConditionOutput) Description() pulumi.StringPtrOutput
func (TagValueIamMemberConditionOutput) ElementType ¶
func (TagValueIamMemberConditionOutput) ElementType() reflect.Type
func (TagValueIamMemberConditionOutput) Expression ¶
func (o TagValueIamMemberConditionOutput) Expression() pulumi.StringOutput
func (TagValueIamMemberConditionOutput) Title ¶
func (o TagValueIamMemberConditionOutput) Title() pulumi.StringOutput
func (TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionOutput ¶
func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionOutput() TagValueIamMemberConditionOutput
func (TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionOutputWithContext ¶
func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionOutputWithContext(ctx context.Context) TagValueIamMemberConditionOutput
func (TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionPtrOutput ¶
func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionPtrOutput() TagValueIamMemberConditionPtrOutput
func (TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionPtrOutputWithContext ¶
func (o TagValueIamMemberConditionOutput) ToTagValueIamMemberConditionPtrOutputWithContext(ctx context.Context) TagValueIamMemberConditionPtrOutput
type TagValueIamMemberConditionPtrInput ¶
type TagValueIamMemberConditionPtrInput interface { pulumi.Input ToTagValueIamMemberConditionPtrOutput() TagValueIamMemberConditionPtrOutput ToTagValueIamMemberConditionPtrOutputWithContext(context.Context) TagValueIamMemberConditionPtrOutput }
TagValueIamMemberConditionPtrInput is an input type that accepts TagValueIamMemberConditionArgs, TagValueIamMemberConditionPtr and TagValueIamMemberConditionPtrOutput values. You can construct a concrete instance of `TagValueIamMemberConditionPtrInput` via:
TagValueIamMemberConditionArgs{...} or: nil
func TagValueIamMemberConditionPtr ¶
func TagValueIamMemberConditionPtr(v *TagValueIamMemberConditionArgs) TagValueIamMemberConditionPtrInput
type TagValueIamMemberConditionPtrOutput ¶
type TagValueIamMemberConditionPtrOutput struct{ *pulumi.OutputState }
func (TagValueIamMemberConditionPtrOutput) Description ¶
func (o TagValueIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
func (TagValueIamMemberConditionPtrOutput) Elem ¶
func (o TagValueIamMemberConditionPtrOutput) Elem() TagValueIamMemberConditionOutput
func (TagValueIamMemberConditionPtrOutput) ElementType ¶
func (TagValueIamMemberConditionPtrOutput) ElementType() reflect.Type
func (TagValueIamMemberConditionPtrOutput) Expression ¶
func (o TagValueIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (TagValueIamMemberConditionPtrOutput) Title ¶
func (o TagValueIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
func (TagValueIamMemberConditionPtrOutput) ToTagValueIamMemberConditionPtrOutput ¶
func (o TagValueIamMemberConditionPtrOutput) ToTagValueIamMemberConditionPtrOutput() TagValueIamMemberConditionPtrOutput
func (TagValueIamMemberConditionPtrOutput) ToTagValueIamMemberConditionPtrOutputWithContext ¶
func (o TagValueIamMemberConditionPtrOutput) ToTagValueIamMemberConditionPtrOutputWithContext(ctx context.Context) TagValueIamMemberConditionPtrOutput
type TagValueIamMemberInput ¶
type TagValueIamMemberInput interface { pulumi.Input ToTagValueIamMemberOutput() TagValueIamMemberOutput ToTagValueIamMemberOutputWithContext(ctx context.Context) TagValueIamMemberOutput }
type TagValueIamMemberMap ¶
type TagValueIamMemberMap map[string]TagValueIamMemberInput
func (TagValueIamMemberMap) ElementType ¶
func (TagValueIamMemberMap) ElementType() reflect.Type
func (TagValueIamMemberMap) ToTagValueIamMemberMapOutput ¶
func (i TagValueIamMemberMap) ToTagValueIamMemberMapOutput() TagValueIamMemberMapOutput
func (TagValueIamMemberMap) ToTagValueIamMemberMapOutputWithContext ¶
func (i TagValueIamMemberMap) ToTagValueIamMemberMapOutputWithContext(ctx context.Context) TagValueIamMemberMapOutput
type TagValueIamMemberMapInput ¶
type TagValueIamMemberMapInput interface { pulumi.Input ToTagValueIamMemberMapOutput() TagValueIamMemberMapOutput ToTagValueIamMemberMapOutputWithContext(context.Context) TagValueIamMemberMapOutput }
TagValueIamMemberMapInput is an input type that accepts TagValueIamMemberMap and TagValueIamMemberMapOutput values. You can construct a concrete instance of `TagValueIamMemberMapInput` via:
TagValueIamMemberMap{ "key": TagValueIamMemberArgs{...} }
type TagValueIamMemberMapOutput ¶
type TagValueIamMemberMapOutput struct{ *pulumi.OutputState }
func (TagValueIamMemberMapOutput) ElementType ¶
func (TagValueIamMemberMapOutput) ElementType() reflect.Type
func (TagValueIamMemberMapOutput) MapIndex ¶
func (o TagValueIamMemberMapOutput) MapIndex(k pulumi.StringInput) TagValueIamMemberOutput
func (TagValueIamMemberMapOutput) ToTagValueIamMemberMapOutput ¶
func (o TagValueIamMemberMapOutput) ToTagValueIamMemberMapOutput() TagValueIamMemberMapOutput
func (TagValueIamMemberMapOutput) ToTagValueIamMemberMapOutputWithContext ¶
func (o TagValueIamMemberMapOutput) ToTagValueIamMemberMapOutputWithContext(ctx context.Context) TagValueIamMemberMapOutput
type TagValueIamMemberOutput ¶
type TagValueIamMemberOutput struct{ *pulumi.OutputState }
func (TagValueIamMemberOutput) ElementType ¶
func (TagValueIamMemberOutput) ElementType() reflect.Type
func (TagValueIamMemberOutput) ToTagValueIamMemberOutput ¶
func (o TagValueIamMemberOutput) ToTagValueIamMemberOutput() TagValueIamMemberOutput
func (TagValueIamMemberOutput) ToTagValueIamMemberOutputWithContext ¶
func (o TagValueIamMemberOutput) ToTagValueIamMemberOutputWithContext(ctx context.Context) TagValueIamMemberOutput
func (TagValueIamMemberOutput) ToTagValueIamMemberPtrOutput ¶
func (o TagValueIamMemberOutput) ToTagValueIamMemberPtrOutput() TagValueIamMemberPtrOutput
func (TagValueIamMemberOutput) ToTagValueIamMemberPtrOutputWithContext ¶
func (o TagValueIamMemberOutput) ToTagValueIamMemberPtrOutputWithContext(ctx context.Context) TagValueIamMemberPtrOutput
type TagValueIamMemberPtrInput ¶
type TagValueIamMemberPtrInput interface { pulumi.Input ToTagValueIamMemberPtrOutput() TagValueIamMemberPtrOutput ToTagValueIamMemberPtrOutputWithContext(ctx context.Context) TagValueIamMemberPtrOutput }
type TagValueIamMemberPtrOutput ¶
type TagValueIamMemberPtrOutput struct{ *pulumi.OutputState }
func (TagValueIamMemberPtrOutput) Elem ¶ added in v5.21.0
func (o TagValueIamMemberPtrOutput) Elem() TagValueIamMemberOutput
func (TagValueIamMemberPtrOutput) ElementType ¶
func (TagValueIamMemberPtrOutput) ElementType() reflect.Type
func (TagValueIamMemberPtrOutput) ToTagValueIamMemberPtrOutput ¶
func (o TagValueIamMemberPtrOutput) ToTagValueIamMemberPtrOutput() TagValueIamMemberPtrOutput
func (TagValueIamMemberPtrOutput) ToTagValueIamMemberPtrOutputWithContext ¶
func (o TagValueIamMemberPtrOutput) ToTagValueIamMemberPtrOutputWithContext(ctx context.Context) TagValueIamMemberPtrOutput
type TagValueIamMemberState ¶
type TagValueIamMemberState struct { Condition TagValueIamMemberConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput Member pulumi.StringPtrInput // The role that should be applied. Only one // `tags.TagValueIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringPtrInput }
func (TagValueIamMemberState) ElementType ¶
func (TagValueIamMemberState) ElementType() reflect.Type
type TagValueIamPolicy ¶
type TagValueIamPolicy struct { pulumi.CustomResourceState // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringOutput `pulumi:"policyData"` // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringOutput `pulumi:"tagValue"` }
Three different resources help you manage your IAM policy for Tags TagValue. Each of these resources serves a different use case:
* `tags.TagValueIamPolicy`: Authoritative. Sets the IAM policy for the tagvalue and replaces any existing policy already attached. * `tags.TagValueIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the tagvalue are preserved. * `tags.TagValueIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagvalue are preserved.
> **Note:** `tags.TagValueIamPolicy` **cannot** be used in conjunction with `tags.TagValueIamBinding` and `tags.TagValueIamMember` or they will fight over what your policy should be.
> **Note:** `tags.TagValueIamBinding` resources **can be** used in conjunction with `tags.TagValueIamMember` resources **only if** they do not grant privilege to the same role.
## google\_tags\_tag\_value\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = tags.NewTagValueIamPolicy(ctx, "policy", &tags.TagValueIamPolicyArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_value\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagValueIamBinding(ctx, "binding", &tags.TagValueIamBindingArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_tags\_tag\_value\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tags" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := tags.NewTagValueIamMember(ctx, "member", &tags.TagValueIamMemberArgs{ TagValue: pulumi.Any(google_tags_tag_value.Value.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* tagValues/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Tags tagvalue IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamPolicy:TagValueIamPolicy editor "tagValues/{{tag_value}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamPolicy:TagValueIamPolicy editor "tagValues/{{tag_value}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:tags/tagValueIamPolicy:TagValueIamPolicy editor tagValues/{{tag_value}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetTagValueIamPolicy ¶
func GetTagValueIamPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TagValueIamPolicyState, opts ...pulumi.ResourceOption) (*TagValueIamPolicy, error)
GetTagValueIamPolicy gets an existing TagValueIamPolicy 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 NewTagValueIamPolicy ¶
func NewTagValueIamPolicy(ctx *pulumi.Context, name string, args *TagValueIamPolicyArgs, opts ...pulumi.ResourceOption) (*TagValueIamPolicy, error)
NewTagValueIamPolicy registers a new resource with the given unique name, arguments, and options.
func (*TagValueIamPolicy) ElementType ¶
func (*TagValueIamPolicy) ElementType() reflect.Type
func (*TagValueIamPolicy) ToTagValueIamPolicyOutput ¶
func (i *TagValueIamPolicy) ToTagValueIamPolicyOutput() TagValueIamPolicyOutput
func (*TagValueIamPolicy) ToTagValueIamPolicyOutputWithContext ¶
func (i *TagValueIamPolicy) ToTagValueIamPolicyOutputWithContext(ctx context.Context) TagValueIamPolicyOutput
func (*TagValueIamPolicy) ToTagValueIamPolicyPtrOutput ¶
func (i *TagValueIamPolicy) ToTagValueIamPolicyPtrOutput() TagValueIamPolicyPtrOutput
func (*TagValueIamPolicy) ToTagValueIamPolicyPtrOutputWithContext ¶
func (i *TagValueIamPolicy) ToTagValueIamPolicyPtrOutputWithContext(ctx context.Context) TagValueIamPolicyPtrOutput
type TagValueIamPolicyArgs ¶
type TagValueIamPolicyArgs struct { // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringInput // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringInput }
The set of arguments for constructing a TagValueIamPolicy resource.
func (TagValueIamPolicyArgs) ElementType ¶
func (TagValueIamPolicyArgs) ElementType() reflect.Type
type TagValueIamPolicyArray ¶
type TagValueIamPolicyArray []TagValueIamPolicyInput
func (TagValueIamPolicyArray) ElementType ¶
func (TagValueIamPolicyArray) ElementType() reflect.Type
func (TagValueIamPolicyArray) ToTagValueIamPolicyArrayOutput ¶
func (i TagValueIamPolicyArray) ToTagValueIamPolicyArrayOutput() TagValueIamPolicyArrayOutput
func (TagValueIamPolicyArray) ToTagValueIamPolicyArrayOutputWithContext ¶
func (i TagValueIamPolicyArray) ToTagValueIamPolicyArrayOutputWithContext(ctx context.Context) TagValueIamPolicyArrayOutput
type TagValueIamPolicyArrayInput ¶
type TagValueIamPolicyArrayInput interface { pulumi.Input ToTagValueIamPolicyArrayOutput() TagValueIamPolicyArrayOutput ToTagValueIamPolicyArrayOutputWithContext(context.Context) TagValueIamPolicyArrayOutput }
TagValueIamPolicyArrayInput is an input type that accepts TagValueIamPolicyArray and TagValueIamPolicyArrayOutput values. You can construct a concrete instance of `TagValueIamPolicyArrayInput` via:
TagValueIamPolicyArray{ TagValueIamPolicyArgs{...} }
type TagValueIamPolicyArrayOutput ¶
type TagValueIamPolicyArrayOutput struct{ *pulumi.OutputState }
func (TagValueIamPolicyArrayOutput) ElementType ¶
func (TagValueIamPolicyArrayOutput) ElementType() reflect.Type
func (TagValueIamPolicyArrayOutput) Index ¶
func (o TagValueIamPolicyArrayOutput) Index(i pulumi.IntInput) TagValueIamPolicyOutput
func (TagValueIamPolicyArrayOutput) ToTagValueIamPolicyArrayOutput ¶
func (o TagValueIamPolicyArrayOutput) ToTagValueIamPolicyArrayOutput() TagValueIamPolicyArrayOutput
func (TagValueIamPolicyArrayOutput) ToTagValueIamPolicyArrayOutputWithContext ¶
func (o TagValueIamPolicyArrayOutput) ToTagValueIamPolicyArrayOutputWithContext(ctx context.Context) TagValueIamPolicyArrayOutput
type TagValueIamPolicyInput ¶
type TagValueIamPolicyInput interface { pulumi.Input ToTagValueIamPolicyOutput() TagValueIamPolicyOutput ToTagValueIamPolicyOutputWithContext(ctx context.Context) TagValueIamPolicyOutput }
type TagValueIamPolicyMap ¶
type TagValueIamPolicyMap map[string]TagValueIamPolicyInput
func (TagValueIamPolicyMap) ElementType ¶
func (TagValueIamPolicyMap) ElementType() reflect.Type
func (TagValueIamPolicyMap) ToTagValueIamPolicyMapOutput ¶
func (i TagValueIamPolicyMap) ToTagValueIamPolicyMapOutput() TagValueIamPolicyMapOutput
func (TagValueIamPolicyMap) ToTagValueIamPolicyMapOutputWithContext ¶
func (i TagValueIamPolicyMap) ToTagValueIamPolicyMapOutputWithContext(ctx context.Context) TagValueIamPolicyMapOutput
type TagValueIamPolicyMapInput ¶
type TagValueIamPolicyMapInput interface { pulumi.Input ToTagValueIamPolicyMapOutput() TagValueIamPolicyMapOutput ToTagValueIamPolicyMapOutputWithContext(context.Context) TagValueIamPolicyMapOutput }
TagValueIamPolicyMapInput is an input type that accepts TagValueIamPolicyMap and TagValueIamPolicyMapOutput values. You can construct a concrete instance of `TagValueIamPolicyMapInput` via:
TagValueIamPolicyMap{ "key": TagValueIamPolicyArgs{...} }
type TagValueIamPolicyMapOutput ¶
type TagValueIamPolicyMapOutput struct{ *pulumi.OutputState }
func (TagValueIamPolicyMapOutput) ElementType ¶
func (TagValueIamPolicyMapOutput) ElementType() reflect.Type
func (TagValueIamPolicyMapOutput) MapIndex ¶
func (o TagValueIamPolicyMapOutput) MapIndex(k pulumi.StringInput) TagValueIamPolicyOutput
func (TagValueIamPolicyMapOutput) ToTagValueIamPolicyMapOutput ¶
func (o TagValueIamPolicyMapOutput) ToTagValueIamPolicyMapOutput() TagValueIamPolicyMapOutput
func (TagValueIamPolicyMapOutput) ToTagValueIamPolicyMapOutputWithContext ¶
func (o TagValueIamPolicyMapOutput) ToTagValueIamPolicyMapOutputWithContext(ctx context.Context) TagValueIamPolicyMapOutput
type TagValueIamPolicyOutput ¶
type TagValueIamPolicyOutput struct{ *pulumi.OutputState }
func (TagValueIamPolicyOutput) ElementType ¶
func (TagValueIamPolicyOutput) ElementType() reflect.Type
func (TagValueIamPolicyOutput) ToTagValueIamPolicyOutput ¶
func (o TagValueIamPolicyOutput) ToTagValueIamPolicyOutput() TagValueIamPolicyOutput
func (TagValueIamPolicyOutput) ToTagValueIamPolicyOutputWithContext ¶
func (o TagValueIamPolicyOutput) ToTagValueIamPolicyOutputWithContext(ctx context.Context) TagValueIamPolicyOutput
func (TagValueIamPolicyOutput) ToTagValueIamPolicyPtrOutput ¶
func (o TagValueIamPolicyOutput) ToTagValueIamPolicyPtrOutput() TagValueIamPolicyPtrOutput
func (TagValueIamPolicyOutput) ToTagValueIamPolicyPtrOutputWithContext ¶
func (o TagValueIamPolicyOutput) ToTagValueIamPolicyPtrOutputWithContext(ctx context.Context) TagValueIamPolicyPtrOutput
type TagValueIamPolicyPtrInput ¶
type TagValueIamPolicyPtrInput interface { pulumi.Input ToTagValueIamPolicyPtrOutput() TagValueIamPolicyPtrOutput ToTagValueIamPolicyPtrOutputWithContext(ctx context.Context) TagValueIamPolicyPtrOutput }
type TagValueIamPolicyPtrOutput ¶
type TagValueIamPolicyPtrOutput struct{ *pulumi.OutputState }
func (TagValueIamPolicyPtrOutput) Elem ¶ added in v5.21.0
func (o TagValueIamPolicyPtrOutput) Elem() TagValueIamPolicyOutput
func (TagValueIamPolicyPtrOutput) ElementType ¶
func (TagValueIamPolicyPtrOutput) ElementType() reflect.Type
func (TagValueIamPolicyPtrOutput) ToTagValueIamPolicyPtrOutput ¶
func (o TagValueIamPolicyPtrOutput) ToTagValueIamPolicyPtrOutput() TagValueIamPolicyPtrOutput
func (TagValueIamPolicyPtrOutput) ToTagValueIamPolicyPtrOutputWithContext ¶
func (o TagValueIamPolicyPtrOutput) ToTagValueIamPolicyPtrOutputWithContext(ctx context.Context) TagValueIamPolicyPtrOutput
type TagValueIamPolicyState ¶
type TagValueIamPolicyState struct { // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to TagValue pulumi.StringPtrInput }
func (TagValueIamPolicyState) ElementType ¶
func (TagValueIamPolicyState) ElementType() reflect.Type
type TagValueInput ¶
type TagValueInput interface { pulumi.Input ToTagValueOutput() TagValueOutput ToTagValueOutputWithContext(ctx context.Context) TagValueOutput }
type TagValueMap ¶
type TagValueMap map[string]TagValueInput
func (TagValueMap) ElementType ¶
func (TagValueMap) ElementType() reflect.Type
func (TagValueMap) ToTagValueMapOutput ¶
func (i TagValueMap) ToTagValueMapOutput() TagValueMapOutput
func (TagValueMap) ToTagValueMapOutputWithContext ¶
func (i TagValueMap) ToTagValueMapOutputWithContext(ctx context.Context) TagValueMapOutput
type TagValueMapInput ¶
type TagValueMapInput interface { pulumi.Input ToTagValueMapOutput() TagValueMapOutput ToTagValueMapOutputWithContext(context.Context) TagValueMapOutput }
TagValueMapInput is an input type that accepts TagValueMap and TagValueMapOutput values. You can construct a concrete instance of `TagValueMapInput` via:
TagValueMap{ "key": TagValueArgs{...} }
type TagValueMapOutput ¶
type TagValueMapOutput struct{ *pulumi.OutputState }
func (TagValueMapOutput) ElementType ¶
func (TagValueMapOutput) ElementType() reflect.Type
func (TagValueMapOutput) MapIndex ¶
func (o TagValueMapOutput) MapIndex(k pulumi.StringInput) TagValueOutput
func (TagValueMapOutput) ToTagValueMapOutput ¶
func (o TagValueMapOutput) ToTagValueMapOutput() TagValueMapOutput
func (TagValueMapOutput) ToTagValueMapOutputWithContext ¶
func (o TagValueMapOutput) ToTagValueMapOutputWithContext(ctx context.Context) TagValueMapOutput
type TagValueOutput ¶
type TagValueOutput struct{ *pulumi.OutputState }
func (TagValueOutput) ElementType ¶
func (TagValueOutput) ElementType() reflect.Type
func (TagValueOutput) ToTagValueOutput ¶
func (o TagValueOutput) ToTagValueOutput() TagValueOutput
func (TagValueOutput) ToTagValueOutputWithContext ¶
func (o TagValueOutput) ToTagValueOutputWithContext(ctx context.Context) TagValueOutput
func (TagValueOutput) ToTagValuePtrOutput ¶
func (o TagValueOutput) ToTagValuePtrOutput() TagValuePtrOutput
func (TagValueOutput) ToTagValuePtrOutputWithContext ¶
func (o TagValueOutput) ToTagValuePtrOutputWithContext(ctx context.Context) TagValuePtrOutput
type TagValuePtrInput ¶
type TagValuePtrInput interface { pulumi.Input ToTagValuePtrOutput() TagValuePtrOutput ToTagValuePtrOutputWithContext(ctx context.Context) TagValuePtrOutput }
type TagValuePtrOutput ¶
type TagValuePtrOutput struct{ *pulumi.OutputState }
func (TagValuePtrOutput) Elem ¶ added in v5.21.0
func (o TagValuePtrOutput) Elem() TagValueOutput
func (TagValuePtrOutput) ElementType ¶
func (TagValuePtrOutput) ElementType() reflect.Type
func (TagValuePtrOutput) ToTagValuePtrOutput ¶
func (o TagValuePtrOutput) ToTagValuePtrOutput() TagValuePtrOutput
func (TagValuePtrOutput) ToTagValuePtrOutputWithContext ¶
func (o TagValuePtrOutput) ToTagValuePtrOutputWithContext(ctx context.Context) TagValuePtrOutput
type TagValueState ¶
type TagValueState struct { // Output only. Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". CreateTime pulumi.StringPtrInput // User-assigned description of the TagValue. Must not exceed 256 characters. Description pulumi.StringPtrInput // The generated numeric id for the TagValue. Name pulumi.StringPtrInput // Output only. Namespaced name of the TagValue. Will be in the format {organizationId}/{tag_key_short_name}/{shortName}. NamespacedName pulumi.StringPtrInput // Input only. The resource name of the new TagValue's parent. Must be of the form tagKeys/{tag_key_id}. Parent pulumi.StringPtrInput // Input only. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. // The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. ShortName pulumi.StringPtrInput // Output only. Update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional // digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". UpdateTime pulumi.StringPtrInput }
func (TagValueState) ElementType ¶
func (TagValueState) ElementType() reflect.Type