DATASOURCE::ECS::SecurityGroup は、セキュリティグループに関する情報をクエリするために使用されます。
構文
{
"Type": "DATASOURCE::ECS::SecurityGroup",
"Properties": {
"SecurityGroupId": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
SecurityGroupId | String | はい | はい | セキュリティグループの ID です。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックの更新時のデータソースリソースのリフレッシュポリシーです。 | 有効な値:
|
戻り値
Fn::GetAtt
Description: セキュリティグループの説明です。
SecurityGroupName: セキュリティグループの名前です。
ServiceManaged: セキュリティグループがクラウドサービスまたはディストリビューターによって所有されているかどうかを示します。
ResourceGroupId: リソースグループの ID です。
SecurityGroupReferences: セキュリティグループに関するすべての承認情報です。
SecurityGroupId: セキュリティグループの ID です。
CreateTime: セキュリティグループの作成時間です。
SecurityGroupType: セキュリティグループのタイプです。
ServiceId: セキュリティグループが属するディストリビューターの ID です。
VpcId: セキュリティグループが属する仮想プライベートクラウド (VPC) の ID です。
Permissions: セキュリティグループの権限です。
InnerAccessPolicy: セキュリティグループのネットワーク通信ポリシーです。
Tags: セキュリティグループに追加されているタグです。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SecurityGroupId:
AssociationPropertyMetadata:
VpcId: ${VpcId}
AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
Type: String
Description:
en: Security group ID.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ECS::SecurityGroup
Properties:
SecurityGroupId:
Ref: SecurityGroupId
Outputs:
Description:
Description: The description.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
SecurityGroupName:
Description: The security group name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupName
ServiceManaged:
Description: Whether the owner of the security group is a cloud product or vendor.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceManaged
ResourceGroupId:
Description: The enterprise resource group ID where the security group resides.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
SecurityGroupReferences:
Description: The complete information about the authorization of all user-specified security groups.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupReferences
SecurityGroupId:
Description: Security group ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupId
CreateTime:
Description: The create time.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
SecurityGroupType:
Description: Security group type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupType
ServiceId:
Description: The virtual quotient ID corresponding to the security group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ServiceId
VpcId:
Description: Secure the group's proprietary network.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcId
Permissions:
Description: A collection of Security Group permission rules.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Permissions
InnerAccessPolicy:
Description: Network connectivity policy within the security group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InnerAccessPolicy
Tags:
Description: The tags.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SecurityGroupId": {
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}"
},
"AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
"Type": "String",
"Description": {
"en": "Security group ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::SecurityGroup",
"Properties": {
"SecurityGroupId": {
"Ref": "SecurityGroupId"
}
}
}
},
"Outputs": {
"Description": {
"Description": "説明。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"SecurityGroupName": {
"Description": "セキュリティグループ名。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupName"
]
}
},
"ServiceManaged": {
"Description": "セキュリティグループの所有者がクラウド プロダクトかベンダーか。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceManaged"
]
}
},
"ResourceGroupId": {
"Description": "セキュリティグループが属するエンタープライズ リソースグループ ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"SecurityGroupReferences": {
"Description": "ユーザーが指定したすべてのセキュリティグループの承認に関する完全な情報。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupReferences"
]
}
},
"SecurityGroupId": {
"Description": "セキュリティグループ ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupId"
]
}
},
"CreateTime": {
"Description": "作成時間。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"SecurityGroupType": {
"Description": "セキュリティグループ タイプ。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupType"
]
}
},
"ServiceId": {
"Description": "セキュリティグループに対応する仮想商 ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ServiceId"
]
}
},
"VpcId": {
"Description": "グループの専用ネットワークを保護します。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcId"
]
}
},
"Permissions": {
"Description": "セキュリティグループの権限ルールの集合。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Permissions"
]
}
},
"InnerAccessPolicy": {
"Description": "セキュリティグループ内のネットワーク接続ポリシー。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InnerAccessPolicy"
]
}
},
"Tags": {
"Description": "タグ。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}