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