AWS::Detective::MemberInvitation - AWS CloudFormation
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

AWS::Detective::MemberInvitation

AWS::Detective::MemberInvitation 资源是一种 Amazon Detective 资源类型,用于发送加入 Detective 行为图的邀请。邀请从主账户发送到 AWS 账户的根用户电子邮件地址。

语法

要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:

JSON

{ "Type" : "AWS::Detective::MemberInvitation", "Properties" : { "GraphArn" : String, "MemberEmailAddress" : String, "MemberId" : String, "Message" : String } }

YAML

Type: AWS::Detective::MemberInvitation Properties: GraphArn: String MemberEmailAddress: String MemberId: String Message: String

属性

GraphArn

邀请账户向其贡献数据的行为图的 ARN。

必需:是

类型:字符串

Update requires: Replacement

MemberEmailAddress

受邀账户的根用户电子邮件地址。如果提供的电子邮件地址不是所提供账户的根用户电子邮件地址,则邀请的创建将失败。

必需:是

类型:字符串

Update requires: No interruption

MemberId

受邀账户的 AWS 账户标识符

必需:是

类型:字符串

Update requires: Replacement

Message

要包含在邀请电子邮件中的自定义文本。

必需:否

类型:字符串

Update requires: No interruption

返回值

Ref

在将此资源的逻辑 ID 传递给内部 Ref 函数时,Ref 返回行为图的 ARN 和成员账户标识符,使用管道字符(“|”)分隔。

For more information about using the Ref function, see Ref.

示例

向成员账户发送行为图邀请

此示例演示如何声明新 AWS:Detective:MemberInvitation 资源以创建对成员账户的新邀请

JSON

"MemberInvitation": { "Type": "AWS::Detective::MemberInvitation", "Properties": { "GraphArn": "arn:aws:detective:us-east-1:111122223333:graph:027c7c4610ea4aacaf0b883093cab899", "MemberId": "444455556666", "MemberEmailAddress": "mmajor@example.com", "Message": "This is Paul Santos. I need to add your account to the data we use for security investigation in Detective. If you have any questions, contact me at psantos@example.com." } }

YAML

MemberInvitation: Type: AWS::Detective::MemberInvitation Properties: GraphArn: "arn:aws:detective:us-east-1:111122223333:graph:027c7c4610ea4aacaf0b883093cab899" MemberId: 444455556666 MemberEmailAddress: mmajor@example.com Message: This is Paul Santos. I need to add your account to the data we use for security investigation in Detective. If you have any questions, contact me at psantos@example.com.