Skip to content

Commit 683b762

Browse files
author
aws-sdk-cpp-automation
committed
AWS CodeBuild now allows you to set the access permissions for build artifacts, project artifacts, and log files that are uploaded to an Amazon S3 bucket that is owned by another account.
Support for cross-region and cross-account backup copies
1 parent 8e41fbb commit 683b762

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1975
-364
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/codebuild/CodeBuild_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
namespace Aws
11+
{
12+
namespace CodeBuild
13+
{
14+
namespace Model
15+
{
16+
enum class BucketOwnerAccess
17+
{
18+
NOT_SET,
19+
NONE,
20+
READ_ONLY,
21+
FULL
22+
};
23+
24+
namespace BucketOwnerAccessMapper
25+
{
26+
AWS_CODEBUILD_API BucketOwnerAccess GetBucketOwnerAccessForName(const Aws::String& name);
27+
28+
AWS_CODEBUILD_API Aws::String GetNameForBucketOwnerAccess(BucketOwnerAccess value);
29+
} // namespace BucketOwnerAccessMapper
30+
} // namespace Model
31+
} // namespace CodeBuild
32+
} // namespace Aws

aws-cpp-sdk-codebuild/include/aws/codebuild/model/Build.h

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,42 +1320,82 @@ namespace Model
13201320

13211321

13221322
/**
1323-
* <p> A list of exported environment variables for this build. </p>
1323+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1324+
* environment variables are used in conjunction with AWS CodePipeline to export
1325+
* environment variables from the current build stage to subsequent stages in the
1326+
* pipeline. For more information, see <a
1327+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1328+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13241329
*/
13251330
inline const Aws::Vector<ExportedEnvironmentVariable>& GetExportedEnvironmentVariables() const{ return m_exportedEnvironmentVariables; }
13261331

13271332
/**
1328-
* <p> A list of exported environment variables for this build. </p>
1333+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1334+
* environment variables are used in conjunction with AWS CodePipeline to export
1335+
* environment variables from the current build stage to subsequent stages in the
1336+
* pipeline. For more information, see <a
1337+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1338+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13291339
*/
13301340
inline bool ExportedEnvironmentVariablesHasBeenSet() const { return m_exportedEnvironmentVariablesHasBeenSet; }
13311341

13321342
/**
1333-
* <p> A list of exported environment variables for this build. </p>
1343+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1344+
* environment variables are used in conjunction with AWS CodePipeline to export
1345+
* environment variables from the current build stage to subsequent stages in the
1346+
* pipeline. For more information, see <a
1347+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1348+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13341349
*/
13351350
inline void SetExportedEnvironmentVariables(const Aws::Vector<ExportedEnvironmentVariable>& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables = value; }
13361351

13371352
/**
1338-
* <p> A list of exported environment variables for this build. </p>
1353+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1354+
* environment variables are used in conjunction with AWS CodePipeline to export
1355+
* environment variables from the current build stage to subsequent stages in the
1356+
* pipeline. For more information, see <a
1357+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1358+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13391359
*/
13401360
inline void SetExportedEnvironmentVariables(Aws::Vector<ExportedEnvironmentVariable>&& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables = std::move(value); }
13411361

13421362
/**
1343-
* <p> A list of exported environment variables for this build. </p>
1363+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1364+
* environment variables are used in conjunction with AWS CodePipeline to export
1365+
* environment variables from the current build stage to subsequent stages in the
1366+
* pipeline. For more information, see <a
1367+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1368+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13441369
*/
13451370
inline Build& WithExportedEnvironmentVariables(const Aws::Vector<ExportedEnvironmentVariable>& value) { SetExportedEnvironmentVariables(value); return *this;}
13461371

13471372
/**
1348-
* <p> A list of exported environment variables for this build. </p>
1373+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1374+
* environment variables are used in conjunction with AWS CodePipeline to export
1375+
* environment variables from the current build stage to subsequent stages in the
1376+
* pipeline. For more information, see <a
1377+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1378+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13491379
*/
13501380
inline Build& WithExportedEnvironmentVariables(Aws::Vector<ExportedEnvironmentVariable>&& value) { SetExportedEnvironmentVariables(std::move(value)); return *this;}
13511381

13521382
/**
1353-
* <p> A list of exported environment variables for this build. </p>
1383+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1384+
* environment variables are used in conjunction with AWS CodePipeline to export
1385+
* environment variables from the current build stage to subsequent stages in the
1386+
* pipeline. For more information, see <a
1387+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1388+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13541389
*/
13551390
inline Build& AddExportedEnvironmentVariables(const ExportedEnvironmentVariable& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables.push_back(value); return *this; }
13561391

13571392
/**
1358-
* <p> A list of exported environment variables for this build. </p>
1393+
* <p>A list of exported environment variables for this build.</p> <p>Exported
1394+
* environment variables are used in conjunction with AWS CodePipeline to export
1395+
* environment variables from the current build stage to subsequent stages in the
1396+
* pipeline. For more information, see <a
1397+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
1398+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p>
13591399
*/
13601400
inline Build& AddExportedEnvironmentVariables(ExportedEnvironmentVariable&& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables.push_back(std::move(value)); return *this; }
13611401

aws-cpp-sdk-codebuild/include/aws/codebuild/model/BuildArtifacts.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#pragma once
77
#include <aws/codebuild/CodeBuild_EXPORTS.h>
88
#include <aws/core/utils/memory/stl/AWSString.h>
9+
#include <aws/codebuild/model/BucketOwnerAccess.h>
910
#include <utility>
1011

1112
namespace Aws
@@ -306,6 +307,25 @@ namespace Model
306307
*/
307308
inline BuildArtifacts& WithArtifactIdentifier(const char* value) { SetArtifactIdentifier(value); return *this;}
308309

310+
311+
312+
inline const BucketOwnerAccess& GetBucketOwnerAccess() const{ return m_bucketOwnerAccess; }
313+
314+
315+
inline bool BucketOwnerAccessHasBeenSet() const { return m_bucketOwnerAccessHasBeenSet; }
316+
317+
318+
inline void SetBucketOwnerAccess(const BucketOwnerAccess& value) { m_bucketOwnerAccessHasBeenSet = true; m_bucketOwnerAccess = value; }
319+
320+
321+
inline void SetBucketOwnerAccess(BucketOwnerAccess&& value) { m_bucketOwnerAccessHasBeenSet = true; m_bucketOwnerAccess = std::move(value); }
322+
323+
324+
inline BuildArtifacts& WithBucketOwnerAccess(const BucketOwnerAccess& value) { SetBucketOwnerAccess(value); return *this;}
325+
326+
327+
inline BuildArtifacts& WithBucketOwnerAccess(BucketOwnerAccess&& value) { SetBucketOwnerAccess(std::move(value)); return *this;}
328+
309329
private:
310330

311331
Aws::String m_location;
@@ -325,6 +345,9 @@ namespace Model
325345

326346
Aws::String m_artifactIdentifier;
327347
bool m_artifactIdentifierHasBeenSet;
348+
349+
BucketOwnerAccess m_bucketOwnerAccess;
350+
bool m_bucketOwnerAccessHasBeenSet;
328351
};
329352

330353
} // namespace Model

aws-cpp-sdk-codebuild/include/aws/codebuild/model/BuildBatch.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ namespace Model
12991299

13001300

13011301
/**
1302-
* <p/> <p>Specifies if session debugging is enabled for this batch build. For more
1302+
* <p>Specifies if session debugging is enabled for this batch build. For more
13031303
* information, see <a
13041304
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing
13051305
* a running build in Session Manager</a>. Batch session debugging is not supported
@@ -1308,7 +1308,7 @@ namespace Model
13081308
inline bool GetDebugSessionEnabled() const{ return m_debugSessionEnabled; }
13091309

13101310
/**
1311-
* <p/> <p>Specifies if session debugging is enabled for this batch build. For more
1311+
* <p>Specifies if session debugging is enabled for this batch build. For more
13121312
* information, see <a
13131313
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing
13141314
* a running build in Session Manager</a>. Batch session debugging is not supported
@@ -1317,7 +1317,7 @@ namespace Model
13171317
inline bool DebugSessionEnabledHasBeenSet() const { return m_debugSessionEnabledHasBeenSet; }
13181318

13191319
/**
1320-
* <p/> <p>Specifies if session debugging is enabled for this batch build. For more
1320+
* <p>Specifies if session debugging is enabled for this batch build. For more
13211321
* information, see <a
13221322
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing
13231323
* a running build in Session Manager</a>. Batch session debugging is not supported
@@ -1326,7 +1326,7 @@ namespace Model
13261326
inline void SetDebugSessionEnabled(bool value) { m_debugSessionEnabledHasBeenSet = true; m_debugSessionEnabled = value; }
13271327

13281328
/**
1329-
* <p/> <p>Specifies if session debugging is enabled for this batch build. For more
1329+
* <p>Specifies if session debugging is enabled for this batch build. For more
13301330
* information, see <a
13311331
* href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing
13321332
* a running build in Session Manager</a>. Batch session debugging is not supported

aws-cpp-sdk-codebuild/include/aws/codebuild/model/ExportedEnvironmentVariable.h

Lines changed: 27 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,17 @@ namespace Model
2424
{
2525

2626
/**
27-
* <p> Information about an exported environment variable. </p><p><h3>See
28-
* Also:</h3> <a
27+
* <p>Contains information about an exported environment variable. </p> <p>Exported
28+
* environment variables are used in conjunction with AWS CodePipeline to export
29+
* environment variables from the current build stage to subsequent stages in the
30+
* pipeline. For more information, see <a
31+
* href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working
32+
* with variables</a> in the <i>AWS CodePipeline User Guide</i>.</p> <p>
33+
* During a build, the value of a variable is available starting with the
34+
* <code>install</code> phase. It can be updated between the start of the
35+
* <code>install</code> phase and the end of the <code>post_build</code> phase.
36+
* After the <code>post_build</code> phase ends, the value of exported variables
37+
* cannot change.</p> <p><h3>See Also:</h3> <a
2938
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ExportedEnvironmentVariable">AWS
3039
* API Reference</a></p>
3140
*/
@@ -39,123 +48,83 @@ namespace Model
3948

4049

4150
/**
42-
* <p> The name of this exported environment variable. </p>
51+
* <p>The name of the exported environment variable.</p>
4352
*/
4453
inline const Aws::String& GetName() const{ return m_name; }
4554

4655
/**
47-
* <p> The name of this exported environment variable. </p>
56+
* <p>The name of the exported environment variable.</p>
4857
*/
4958
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
5059

5160
/**
52-
* <p> The name of this exported environment variable. </p>
61+
* <p>The name of the exported environment variable.</p>
5362
*/
5463
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
5564

5665
/**
57-
* <p> The name of this exported environment variable. </p>
66+
* <p>The name of the exported environment variable.</p>
5867
*/
5968
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
6069

6170
/**
62-
* <p> The name of this exported environment variable. </p>
71+
* <p>The name of the exported environment variable.</p>
6372
*/
6473
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
6574

6675
/**
67-
* <p> The name of this exported environment variable. </p>
76+
* <p>The name of the exported environment variable.</p>
6877
*/
6978
inline ExportedEnvironmentVariable& WithName(const Aws::String& value) { SetName(value); return *this;}
7079

7180
/**
72-
* <p> The name of this exported environment variable. </p>
81+
* <p>The name of the exported environment variable.</p>
7382
*/
7483
inline ExportedEnvironmentVariable& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
7584

7685
/**
77-
* <p> The name of this exported environment variable. </p>
86+
* <p>The name of the exported environment variable.</p>
7887
*/
7988
inline ExportedEnvironmentVariable& WithName(const char* value) { SetName(value); return *this;}
8089

8190

8291
/**
83-
* <p> The value assigned to this exported environment variable. </p> <p>
84-
* During a build, the value of a variable is available starting with the
85-
* <code>install</code> phase. It can be updated between the start of the
86-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
87-
* After the <code>post_build</code> phase ends, the value of exported variables
88-
* cannot change.</p>
92+
* <p>The value assigned to the exported environment variable.</p>
8993
*/
9094
inline const Aws::String& GetValue() const{ return m_value; }
9195

9296
/**
93-
* <p> The value assigned to this exported environment variable. </p> <p>
94-
* During a build, the value of a variable is available starting with the
95-
* <code>install</code> phase. It can be updated between the start of the
96-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
97-
* After the <code>post_build</code> phase ends, the value of exported variables
98-
* cannot change.</p>
97+
* <p>The value assigned to the exported environment variable.</p>
9998
*/
10099
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
101100

102101
/**
103-
* <p> The value assigned to this exported environment variable. </p> <p>
104-
* During a build, the value of a variable is available starting with the
105-
* <code>install</code> phase. It can be updated between the start of the
106-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
107-
* After the <code>post_build</code> phase ends, the value of exported variables
108-
* cannot change.</p>
102+
* <p>The value assigned to the exported environment variable.</p>
109103
*/
110104
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
111105

112106
/**
113-
* <p> The value assigned to this exported environment variable. </p> <p>
114-
* During a build, the value of a variable is available starting with the
115-
* <code>install</code> phase. It can be updated between the start of the
116-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
117-
* After the <code>post_build</code> phase ends, the value of exported variables
118-
* cannot change.</p>
107+
* <p>The value assigned to the exported environment variable.</p>
119108
*/
120109
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
121110

122111
/**
123-
* <p> The value assigned to this exported environment variable. </p> <p>
124-
* During a build, the value of a variable is available starting with the
125-
* <code>install</code> phase. It can be updated between the start of the
126-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
127-
* After the <code>post_build</code> phase ends, the value of exported variables
128-
* cannot change.</p>
112+
* <p>The value assigned to the exported environment variable.</p>
129113
*/
130114
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
131115

132116
/**
133-
* <p> The value assigned to this exported environment variable. </p> <p>
134-
* During a build, the value of a variable is available starting with the
135-
* <code>install</code> phase. It can be updated between the start of the
136-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
137-
* After the <code>post_build</code> phase ends, the value of exported variables
138-
* cannot change.</p>
117+
* <p>The value assigned to the exported environment variable.</p>
139118
*/
140119
inline ExportedEnvironmentVariable& WithValue(const Aws::String& value) { SetValue(value); return *this;}
141120

142121
/**
143-
* <p> The value assigned to this exported environment variable. </p> <p>
144-
* During a build, the value of a variable is available starting with the
145-
* <code>install</code> phase. It can be updated between the start of the
146-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
147-
* After the <code>post_build</code> phase ends, the value of exported variables
148-
* cannot change.</p>
122+
* <p>The value assigned to the exported environment variable.</p>
149123
*/
150124
inline ExportedEnvironmentVariable& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
151125

152126
/**
153-
* <p> The value assigned to this exported environment variable. </p> <p>
154-
* During a build, the value of a variable is available starting with the
155-
* <code>install</code> phase. It can be updated between the start of the
156-
* <code>install</code> phase and the end of the <code>post_build</code> phase.
157-
* After the <code>post_build</code> phase ends, the value of exported variables
158-
* cannot change.</p>
127+
* <p>The value assigned to the exported environment variable.</p>
159128
*/
160129
inline ExportedEnvironmentVariable& WithValue(const char* value) { SetValue(value); return *this;}
161130

0 commit comments

Comments
 (0)