1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
security_service_yandex.php
См. документацию.
1
<?php
2
3
class
CCloudSecurityService_Yandex
extends
CCloudSecurityService_STS
4
{
5
protected
$service_host
=
'sts.yandexcloud.net'
;
6
7
public
function
GetID
()
8
{
9
return
'yandex_sts'
;
10
}
11
12
public
function
GetName
()
13
{
14
return
'YA Security Token Service'
;
15
}
16
17
public
function
GetDefaultBucketControlPolicy
($bucket, $prefix)
18
{
19
return
[
20
'Statement'
=> [
21
[
22
'Effect'
=>
'Allow'
,
23
'Principal'
=>
'*'
,
24
'Action'
=> [
25
's3:DeleteObject'
,
26
's3:GetObject'
,
27
's3:PutObject'
,
28
's3:PutObjectAcl'
29
],
30
'Resource'
=>
'arn:aws:s3:::'
. $bucket .
'/'
. $prefix .
'/*'
,
31
],
32
[
33
'Effect'
=>
'Allow'
,
34
'Principal'
=>
'*'
,
35
'Action'
=> [
36
's3:ListBucket'
37
],
38
'Resource'
=>
'arn:aws:s3:::'
. $bucket,
39
'Condition'
=> [
40
'StringLike'
=> [
41
's3:prefix'
=> $prefix .
'/*'
42
],
43
],
44
],
45
],
46
];
47
}
48
}
CCloudSecurityService_STS
Определения
security_service_sts.php:5
CCloudSecurityService_Yandex
Определения
security_service_yandex.php:4
CCloudSecurityService_Yandex\GetDefaultBucketControlPolicy
GetDefaultBucketControlPolicy($bucket, $prefix)
Определения
security_service_yandex.php:17
CCloudSecurityService_Yandex\$service_host
$service_host
Определения
security_service_yandex.php:5
CCloudSecurityService_Yandex\GetName
GetName()
Определения
security_service_yandex.php:12
CCloudSecurityService_Yandex\GetID
GetID()
Определения
security_service_yandex.php:7
bitrix
modules
clouds
classes
general
security_service_yandex.php
Создано системой
1.14.0