-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayer.php
More file actions
88 lines (77 loc) · 1.89 KB
/
Copy pathLayer.php
File metadata and controls
88 lines (77 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
namespace AsyncAws\Lambda\ValueObject;
/**
* An Lambda layer [^1].
*
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
*/
final class Layer
{
/**
* The Amazon Resource Name (ARN) of the function layer.
*
* @var string|null
*/
private $arn;
/**
* The size of the layer archive in bytes.
*
* @var int|null
*/
private $codeSize;
/**
* The Amazon Resource Name (ARN) for a signing profile version.
*
* @var string|null
*/
private $signingProfileVersionArn;
/**
* The Amazon Resource Name (ARN) of a signing job.
*
* @var string|null
*/
private $signingJobArn;
/**
* @param array{
* Arn?: string|null,
* CodeSize?: int|null,
* SigningProfileVersionArn?: string|null,
* SigningJobArn?: string|null,
* } $input
*/
public function __construct(array $input)
{
$this->arn = $input['Arn'] ?? null;
$this->codeSize = $input['CodeSize'] ?? null;
$this->signingProfileVersionArn = $input['SigningProfileVersionArn'] ?? null;
$this->signingJobArn = $input['SigningJobArn'] ?? null;
}
/**
* @param array{
* Arn?: string|null,
* CodeSize?: int|null,
* SigningProfileVersionArn?: string|null,
* SigningJobArn?: string|null,
* }|Layer $input
*/
public static function create($input): self
{
return $input instanceof self ? $input : new self($input);
}
public function getArn(): ?string
{
return $this->arn;
}
public function getCodeSize(): ?int
{
return $this->codeSize;
}
public function getSigningJobArn(): ?string
{
return $this->signingJobArn;
}
public function getSigningProfileVersionArn(): ?string
{
return $this->signingProfileVersionArn;
}
}